auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public android.content.ContentValues coalesce ( java.util.List < android.content.ContentValues > individualRowsSortedByTimestampDesc ) { assertNoVoicemailsInRows ( individualRowsSortedByTimestampDesc ) ; return new com.android.dialer.calllog.datasources.util.RowCombiner ( individualRowsSortedByTimestampDesc ) . useMostRecentLong ( AnnotatedCallLog.TIMESTAMP ) . useMostRecentLong ( AnnotatedCallLog.NEW ) . useMostRecentBlob ( AnnotatedCallLog.NUMBER ) . useMostRecentString ( AnnotatedCallLog.FORMATTED_NUMBER ) . useMostRecentString ( AnnotatedCallLog.GEOCODED_LOCATION ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_ID ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_LABEL ) . useSingleValueLong ( AnnotatedCallLog.PHONE_ACCOUNT_COLOR ) . useMostRecentLong ( AnnotatedCallLog.CALL_TYPE ) . combine ( ) ; }

Target:
public android.content.ContentValues coalesce ( java.util.List < android.content.ContentValues > individualRowsSortedByTimestampDesc ) { assertNoVoicemailsInRows ( individualRowsSortedByTimestampDesc ) ; return new com.android.dialer.calllog.datasources.util.RowCombiner ( individualRowsSortedByTimestampDesc ) . useMostRecentLong ( AnnotatedCallLog.TIMESTAMP ) . useMostRecentLong ( AnnotatedCallLog.NEW ) . useMostRecentBlob ( AnnotatedCallLog.NUMBER ) . useMostRecentString ( AnnotatedCallLog.FORMATTED_NUMBER ) . useMostRecentString ( AnnotatedCallLog.GEOCODED_LOCATION ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_ID ) . useSingleValueString ( AnnotatedCallLog.PHONE_ACCOUNT_LABEL ) . useSingleValueLong ( AnnotatedCallLog.PHONE_ACCOUNT_COLOR ) . useMostRecentLong ( AnnotatedCallLog.CALL_TYPE ) . bitwiseOr ( AnnotatedCallLog.FEATURES ) . combine ( ) ; }
Source:
public void testLanscape ( ) { assertEquals ( true , soq.checkAndSet ( "land" , config ) ) ; assertTrue ( ( ( config.getScreenOrientationQualifier ( ) ) != null ) ) ; assertEquals ( ScreenOrientation.LANDSCAPE , config.getScreenOrientationQualifier ( ) . getValue ( ) ) ; assertEquals ( "land" , config.getScreenOrientationQualifier ( ) . toString ( ) ) ; }

Target:
public void testLandscape ( ) { assertEquals ( true , soq.checkAndSet ( "land" , config ) ) ; assertTrue ( ( ( config.getScreenOrientationQualifier ( ) ) != null ) ) ; assertEquals ( ScreenOrientation.LANDSCAPE , config.getScreenOrientationQualifier ( ) . getValue ( ) ) ; assertEquals ( "land" , config.getScreenOrientationQualifier ( ) . toString ( ) ) ; }
Source:
private void showToast ( int messageId ) { android.widget.Toast.makeText ( this , messageId , Toast.LENGTH_SHORT ) . show ( ) ; }

Target:
protected void setupItsTests ( com.android.cts.verifier.ArrayTestListAdapter adapter ) { for ( java.lang.String cam : mNonLegacyCameraIds ) { for ( java.lang.String scene : com.android.cts.verifier.camera.its.ItsTestActivity.mSceneIds ) { adapter.add ( new com.android.cts.verifier.camera.its.DialogTestListItem ( this , testTitle ( cam , scene ) , testId ( cam , scene ) ) ) ; } } }
Source:
public long insert ( com.android.dialer.speeddial.database.SpeedDialEntry entry ) { long updateRowId ; try ( android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ) { updateRowId = db.insert ( com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper.TABLE_NAME , null , buildContentValues ( entry ) ) ; } if ( updateRowId == ( - 1 ) ) { throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( "Attempted to insert a row that already exists." ) ; } return updateRowId ; }

Target:
private void insert ( android.database.sqlite.SQLiteDatabase writeableDatabase , com.google.common.collect.ImmutableList < com.android.dialer.speeddial.database.SpeedDialEntry > entries ) { for ( com.android.dialer.speeddial.database.SpeedDialEntry entry : entries ) { com.android.dialer.common.Assert.checkArgument ( ( ( entry.id ( ) ) == null ) ) ; if ( ( writeableDatabase.insert ( com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper.TABLE_NAME , null , buildContentValuesWithoutId ( entry ) ) ) == ( - 1L ) ) { throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( "Attempted to insert a row that already exists." ) ; } } }
Source:
com.android.ide.common.api.Point displayToCanvasPoint ( int displayX , int displayY ) { com.android.ide.common.api.Point p = this . toControl ( displayX , displayY ) ; int x = mHScale.inverseTranslate ( p.x ) ; int y = mVScale.inverseTranslate ( p.y ) ; return new com.android.ide.common.api.Point ( x , y ) ; }

Target:
void setScale ( double scale , boolean redraw ) { mHScale.setScale ( scale ) ; mVScale.setScale ( scale ) ; if ( redraw ) { redraw ( ) ; } }
Source:
private void sortPackages ( boolean updateButtons ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByApiLevel ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; updateMenuCheckmarks ( ) ; } }

Target:
private void sortPackages ( boolean updateButtons ) { if ( isSortByApi ( ) ) { sortByApiLevel ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; updateMenuCheckmarks ( ) ; } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) return false ; com.android.sdkuilib.internal.repository.sdkman2.PkgCategory other = ( ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategory ) ( obj ) ) ; if ( ( mKey ) == null ) { if ( ( other.mKey ) != null ) return false ; } else if ( ! ( mKey.equals ( other.mKey ) ) ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) return false ; com.android.sdkuilib.internal.repository.core.PkgCategory other = ( ( com.android.sdkuilib.internal.repository.core.PkgCategory ) ( obj ) ) ; if ( ( mKey ) == null ) { if ( ( other.mKey ) != null ) return false ; } else if ( ! ( mKey.equals ( other.mKey ) ) ) return false ; return true ; }
Source:
public void setQualifier ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier q = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier ) ( qualifier ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier.ScreenRatio value = q.getValue ( ) ; if ( value == null ) { mSize.clearSelection ( ) ; } else { mSize.select ( com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier.ScreenRatio.getIndex ( value ) ) ; } }

Target:
public void setQualifier ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier q = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier ) ( qualifier ) ) ; com.android.sdklib.resources.ScreenRatio value = q.getValue ( ) ; if ( value == null ) { mSize.clearSelection ( ) ; } else { mSize.select ( com.android.sdklib.resources.ScreenRatio.getIndex ( value ) ) ; } }
Source:
public boolean mergeProfiles ( int uid , java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { return mInstalld.mergeProfiles ( uid , packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void dexopt ( java.lang.String apkPath , int uid , @ android.annotation.Nullable java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , @ android.annotation.Nullable java.lang.String outputPath , int dexFlags , java.lang.String compilerFilter , @ android.annotation.Nullable java.lang.String volumeUuid , @ android.annotation.Nullable java.lang.String sharedLibraries ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; mInstaller.dexopt ( apkPath , uid , pkgName , instructionSet , dexoptNeeded , outputPath , dexFlags , compilerFilter , volumeUuid , sharedLibraries ) ; }
Source:
HEAD ( ) { com.android.compatibility.common.util.fa Merge ; }

Target:
private static java.io.File storeMergedConfigFile ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > configMap , java.lang.String moduleName ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { java.io.File folder = com.android.tradefed.util.FileUtil.createTempDir ( com.android.compatibility.common.util.DynamicConfigHandler.MERGED_CONFIG_FILE_FOLDER ) ; java.io.File mergedConfigFile = new java.io.File ( folder , ( moduleName + ".dynamic" ) ) ; java.io.OutputStream stream = new java.io.FileOutputStream ( mergedConfigFile ) ; org.xmlpull.v1.XmlSerializer serializer = org.xmlpull.v1.XmlPullParserFactory.newInstance ( ) . newSerializer ( ) ; serializer.setOutput ( stream , com.android.compatibility.common.util.DynamicConfigHandler.ENCODING ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; serializer.startDocument ( com.android.compatibility.common.util.DynamicConfigHandler.ENCODING , false ) ; serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; for ( java.lang.String key : configMap.keySet ( ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; serializer.attribute ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.KEY_ATTR , key ) ; for ( java.lang.String value : configMap.get ( key ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; serializer.text ( value ) ; serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; serializer.endDocument ( ) ; return mergedConfigFile ; }
Source:
synchronized void nScriptForEach ( int id , int slot , int ain , int aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nAllocationResize2D ( long id , int dimX , int dimY ) { validate ( ) ; rsnAllocationResize2D ( mContext , id , dimX , dimY ) ; }
Source:
public static java.lang.String constantToHuman ( com.android.jack.dx.rop.cst.Constant cst ) { int type = com.android.jack.dx.dex.file.ValueEncoder.constantToValueType ( cst ) ; if ( type == ( com.android.jack.dx.dex.file.ValueEncoder.VALUE_NULL ) ) { return "null" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( cst.typeName ( ) ) ; sb.append ( ' ' ) ; sb.append ( cst.toHuman ( ) ) ; return sb.toString ( ) ; }

Target:
public static java.lang.String constantToHuman ( com.android.jack.dx.rop.cst.Constant cst ) { if ( ( cst.getEncodedValueType ( ) ) == ( com.android.jack.dx.dex.file.ValueEncoder.ValueType.VALUE_NULL ) ) { return "null" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( cst.typeName ( ) ) ; sb.append ( ' ' ) ; sb.append ( cst.toHuman ( ) ) ; return sb.toString ( ) ; }
Source:
public void testMetadata2 ( ) throws java.lang.Exception { com.android.util.Pair < org.eclipse.jface.text.IDocument , com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > pair = getNode ( "metadata.xml" , "button1" ) ; org.eclipse.jface.text.IDocument document = pair.getFirst ( ) ; com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = pair.getSecond ( ) ; org.w3c.dom.Node node = uiNode.getXmlNode ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata metadata = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.get ( ) ; assertNull ( metadata.getProperty ( document , node , "foo" ) ) ; java.lang.String before = "<Button android:text=\"Button\" android:id=\"@+id/button1\"/>" ; assertEquals ( before , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadataTest.getText ( document , node ) ) ; metadata.setProperty ( document , node , "listitem" , "@android:layout/simple_list_item_checked" ) ; java.lang.String after = "<Button android:text=\"Button\" android:id=\"@+id/button1\">\n" + ( " <!-- Preview: listitem=@android:layout/simple_list_item_checked -->\n" + " </Button>" ) ; assertEquals ( after , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadataTest.getText ( document , node ) ) ; }

Target:
public void testMetadata2 ( ) throws java.lang.Exception { com.android.util.Pair < org.eclipse.jface.text.IDocument , com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > pair = getNode ( "metadata.xml" , "button1" ) ; org.eclipse.jface.text.IDocument document = pair.getFirst ( ) ; com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = pair.getSecond ( ) ; org.w3c.dom.Node node = uiNode.getXmlNode ( ) ; assertNull ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.getProperty ( document , node , "foo" ) ) ; java.lang.String before = "<Button android:text=\"Button\" android:id=\"@+id/button1\"/>" ; assertEquals ( before , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadataTest.getText ( document , node ) ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.setProperty ( document , node , "listitem" , "@android:layout/simple_list_item_checked" ) ; java.lang.String after = "<Button android:text=\"Button\" android:id=\"@+id/button1\">\n" + ( " <!-- Preview: listitem=@android:layout/simple_list_item_checked -->\n" + " </Button>" ) ; assertEquals ( after , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadataTest.getText ( document , node ) ) ; }
Source:
private void sendImsServiceIntent ( @ android.telephony.ims.feature.ImsFeature.ImsState int state ) { if ( ( ( mContext ) == null ) || ( ( mSlotId ) == ( android.telephony.SubscriptionManager.INVALID_SIM_SLOT_INDEX ) ) ) { return ; } android.content.Intent intent ; switch ( state ) { case android.telephony.ims.feature.ImsFeature.STATE_NOT_AVAILABLE : case android.telephony.ims.feature.ImsFeature.STATE_INITIALIZING : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_DOWN ) ; break ; case android.telephony.ims.feature.ImsFeature.STATE_READY : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_UP ) ; break ; default : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_DOWN ) ; } intent.putExtra ( android.telephony.ims.feature.ImsFeature.EXTRA_PHONE_ID , mSlotId ) ; mContext.sendBroadcast ( intent ) ; }

Target:
private void sendImsServiceIntent ( @ android.telephony.ims.feature.ImsFeature.ImsState int state ) { if ( ( ( mContext ) == null ) || ( ( mSlotId ) == ( android.telephony.SubscriptionManager.INVALID_SIM_SLOT_INDEX ) ) ) { return ; } android.content.Intent intent ; switch ( state ) { case android.telephony.ims.feature.ImsFeature.STATE_UNAVAILABLE : case android.telephony.ims.feature.ImsFeature.STATE_INITIALIZING : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_DOWN ) ; break ; case android.telephony.ims.feature.ImsFeature.STATE_READY : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_UP ) ; break ; default : intent = new android.content.Intent ( android.telephony.ims.feature.ImsFeature.ACTION_IMS_SERVICE_DOWN ) ; } intent.putExtra ( android.telephony.ims.feature.ImsFeature.EXTRA_PHONE_ID , mSlotId ) ; mContext.sendBroadcast ( intent ) ; }
Source:
private com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.google.common.base.Optional < com.android.manifmerger.XmlDocument > xmlDocument , com.android.utils.Pair < java.lang.String , java.io.File > lowerPriorityXmlFile , com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) throws com.android.manifmerger.ManifestMerger2.MergeFailureException { com.android.manifmerger.XmlDocument lowerPriorityDocument ; try { lowerPriorityDocument = com.android.manifmerger.XmlLoader.load ( selectors , lowerPriorityXmlFile.getFirst ( ) , lowerPriorityXmlFile.getSecond ( ) ) ; } catch ( java.lang.Exception e ) { throw new com.android.manifmerger.ManifestMerger2.MergeFailureException ( e ) ; } return merge ( xmlDocument , lowerPriorityDocument , mergingReportBuilder ) ; }

Target:
private com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.google.common.base.Optional < com.android.manifmerger.XmlDocument > xmlDocument , com.android.utils.Pair < java.lang.String , java.io.File > lowerPriorityXmlFile , com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) throws com.android.manifmerger.ManifestMerger2.MergeFailureException { com.android.manifmerger.XmlDocument lowerPriorityDocument ; try { lowerPriorityDocument = com.android.manifmerger.XmlLoader.load ( selectors , mSystemPropertyResolver , lowerPriorityXmlFile.getFirst ( ) , lowerPriorityXmlFile.getSecond ( ) ) ; } catch ( java.lang.Exception e ) { throw new com.android.manifmerger.ManifestMerger2.MergeFailureException ( e ) ; } return merge ( xmlDocument , lowerPriorityDocument , mergingReportBuilder ) ; }
Source:
public void testQuickFix_parameterWithNoNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "someParam" , PsiType.INT ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( "@Named(\"someParam\")int someParam" , parameter.getText ( ) ) ; }

Target:
private void runQuickFixTest ( java.lang.String parameterText , java.lang.String expectedString ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameterFromText ( parameterText , null ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.testFramework.MockProblemDescriptor problemDescriptor = new com.intellij.testFramework.MockProblemDescriptor ( parameter , "" , com.intellij.codeInspection.ProblemHighlightType.ERROR , null ) ; myQuickFix.applyFix ( myFixture.getProject ( ) , problemDescriptor ) ; junit.framework.Assert.assertEquals ( expectedString , parameter.getText ( ) ) ; }
Source:
private static com.android.dx.rop.code.RegisterSpec intern ( int reg , com.android.dx.rop.type.TypeBearer type , com.android.dx.rop.code.LocalItem local ) { synchronized ( com.android.dx.rop.code.RegisterSpec.theInterns ) { com.android.dx.rop.code.RegisterSpec.theInterningItem.set ( reg , type , local ) ; com.android.dx.rop.code.RegisterSpec found = com.android.dx.rop.code.RegisterSpec.theInterns.get ( com.android.dx.rop.code.RegisterSpec.theInterningItem ) ; if ( found != null ) { return found ; } found = com.android.dx.rop.code.RegisterSpec.theInterningItem.toRegisterSpec ( ) ; com.android.dx.rop.code.RegisterSpec.theInterns.put ( found , found ) ; return found ; } }

Target:
private static com.android.dx.rop.code.RegisterSpec intern ( int reg , com.android.dx.rop.type.TypeBearer type , com.android.dx.rop.code.LocalItem local ) { com.android.dx.rop.code.RegisterSpec.ForComparison interningItem = com.android.dx.rop.code.RegisterSpec.theInterningItem.get ( ) ; interningItem.set ( reg , type , local ) ; com.android.dx.rop.code.RegisterSpec found = com.android.dx.rop.code.RegisterSpec.theInterns.get ( interningItem ) ; if ( found == null ) { found = interningItem.toRegisterSpec ( ) ; com.android.dx.rop.code.RegisterSpec existing = com.android.dx.rop.code.RegisterSpec.theInterns.putIfAbsent ( found , found ) ; if ( existing != null ) { return existing ; } } return found ; }
Source:
boolean getProtocolMode ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_GET_PROTOCOL_MODE , device ) ; mHandler.sendMessage ( msg ) ; return true ; }

Target:
boolean getProtocolMode ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "getProtocolMode: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_GET_PROTOCOL_MODE , device ) ; mHandler.sendMessage ( msg ) ; return true ; }
Source:
public void informAvrcpPassThroughCmd ( android.bluetooth.BluetoothDevice device , int keyCode , int keyState ) { if ( ( mStateMachine ) != null ) { if ( ( keyCode == ( android.bluetooth.BluetoothAvrcpController.PASS_THRU_CMD_ID_PLAY ) ) && ( keyState == ( android.bluetooth.BluetoothAvrcpController.KEY_STATE_RELEASED ) ) ) { mStateMachine.sendMessage ( A2dpSinkStateMachine.EVENT_AVRCP_CT_PLAY ) ; } else if ( ( ( keyCode == ( android.bluetooth.BluetoothAvrcpController.PASS_THRU_CMD_ID_PAUSE ) ) || ( keyCode == ( android.bluetooth.BluetoothAvrcpController.PASS_THRU_CMD_ID_STOP ) ) ) && ( keyState == ( android.bluetooth.BluetoothAvrcpController.KEY_STATE_RELEASED ) ) ) { mStateMachine.sendMessage ( A2dpSinkStateMachine.EVENT_AVRCP_CT_PAUSE ) ; } } }

Target:
public void informAvrcpPassThroughCmd ( android.bluetooth.BluetoothDevice device , int keyCode , int keyState ) { if ( ( mStateMachine ) != null ) { if ( ( keyCode == ( com.android.bluetooth.avrcpcontroller.AvrcpControllerService.PASS_THRU_CMD_ID_PLAY ) ) && ( keyState == ( com.android.bluetooth.avrcpcontroller.AvrcpControllerService.KEY_STATE_RELEASED ) ) ) { mStateMachine.sendMessage ( A2dpSinkStateMachine.EVENT_AVRCP_CT_PLAY ) ; } else if ( ( ( keyCode == ( com.android.bluetooth.avrcpcontroller.AvrcpControllerService.PASS_THRU_CMD_ID_PAUSE ) ) || ( keyCode == ( com.android.bluetooth.avrcpcontroller.AvrcpControllerService.PASS_THRU_CMD_ID_STOP ) ) ) && ( keyState == ( com.android.bluetooth.avrcpcontroller.AvrcpControllerService.KEY_STATE_RELEASED ) ) ) { mStateMachine.sendMessage ( A2dpSinkStateMachine.EVENT_AVRCP_CT_PAUSE ) ; } } }
Source:
public void onDeviceAttributesChanged ( ) { setTitle ( mCachedDevice.getName ( ) ) ; int summaryResId = mCachedDevice.getConnectionSummary ( ) ; if ( summaryResId != 0 ) { setSummary ( summaryResId ) ; } else { setSummary ( null ) ; } int iconResId = getBtClassDrawable ( ) ; if ( iconResId != 0 ) { setIcon ( iconResId ) ; } setEnabled ( ( ! ( mCachedDevice.isBusy ( ) ) ) ) ; notifyHierarchyChanged ( ) ; }

Target:
void rebind ( ) { notifyChanged ( ) ; }
Source:
public void onChange ( boolean selfChange ) { android.telecom.Log.startSession ( "DDC.oC" ) ; try { synchronized ( mLock ) { refreshCachesForUsersWithPackage ( null ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_USER_REMOVED.equals ( intent.getAction ( ) ) ) { int removedUser = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , UserHandle.USER_NULL ) ; if ( removedUser == ( android.os.UserHandle.USER_NULL ) ) { android.telecom.Log.w ( com.android.server.telecom.DefaultDialerCache.LOG_TAG , "Expected EXTRA_USER_HANDLE with ACTION_USER_REMOVED" ) ; } else { removeUserFromCache ( removedUser ) ; android.telecom.Log.i ( com.android.server.telecom.DefaultDialerCache.LOG_TAG , "Removing user %s" , removedUser ) ; } } }
Source:
public static com.android.ahat.DocString render ( com.android.ahat.AhatSnapshot snapshot , java.lang.Object val ) { if ( val instanceof com.android.tools.perflib.heap.Instance ) { return com.android.ahat.Value.renderInstance ( snapshot , ( ( com.android.tools.perflib.heap.Instance ) ( val ) ) ) ; } else { return com.android.ahat.DocString.format ( "%s" , val ) ; } }

Target:
public static com.android.ahat.DocString summarize ( com.android.ahat.heapdump.Value value ) { if ( value == null ) { return com.android.ahat.DocString.text ( "null" ) ; } if ( value.isAhatInstance ( ) ) { return com.android.ahat.Summarizer.summarize ( value.asAhatInstance ( ) ) ; } return com.android.ahat.DocString.text ( value.toString ( ) ) ; }
Source:
private java.lang.String getBackendUrl ( ) { if ( useProd.isSelected ( ) ) { return prodUrlField.getText ( ) ; } if ( useStaging.isSelected ( ) ) { return stagingUrlField.getText ( ) ; } if ( useTest.isSelected ( ) ) { return testUrlField.getText ( ) ; } if ( useCustom.isSelected ( ) ) { return customUrlField.getText ( ) ; } throw new java.lang.RuntimeException ( "No URL option is selected!" ) ; }

Target:
private java.lang.String getTestBackendUrl ( ) { switch ( getBackendOption ( ) ) { case PROD : return prodUrlField.getText ( ) ; case STAGING : return stagingUrlField.getText ( ) ; case TEST : return testUrlField.getText ( ) ; case CUSTOM : return customUrlField.getText ( ) ; default : throw new java.lang.RuntimeException ( "No URL option is selected!" ) ; } }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }
Source:
public void onResult ( com.google.android.gms.wearable.CapabilityApi.GetCapabilityResult getCapabilityResult ) { if ( getCapabilityResult.getStatus ( ) . isSuccess ( ) ) { com.google.android.gms.wearable.CapabilityInfo capabilityInfo = getCapabilityResult.getCapability ( ) ; mPhoneNodeId = pickBestNodeId ( capabilityInfo.getNodes ( ) ) ; } else { android.util.Log.d ( com.example.android.wearable.runtimepermissions.MainWearActivity.TAG , ( "Failed CapabilityApi result: " + ( getCapabilityResult.getStatus ( ) ) ) ) ; } }

Target:
public void onLayoutInflated ( android.support.wearable.view.WatchViewStub stub ) { mWearBodySensorsPermissionButton = ( ( android.widget.Button ) ( stub.findViewById ( R.id.wearBodySensorsPermissionButton ) ) ) ; if ( mWearBodySensorsPermissionApproved ) { mWearBodySensorsPermissionButton.setCompoundDrawablesWithIntrinsicBounds ( R.drawable.ic_permission_approved , 0 , 0 , 0 ) ; } mPhoneStoragePermissionButton = ( ( android.widget.Button ) ( stub.findViewById ( R.id.phoneStoragePermissionButton ) ) ) ; mOutputTextView = ( ( android.widget.TextView ) ( stub.findViewById ( R.id.output ) ) ) ; if ( mPhoneRequestingWearSensorPermission ) { launchPermissionDialogForPhone ( ) ; } }
Source:
public static java.lang.String floatToDoubleToIntPrint ( float value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
public boolean isImsRegistered ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return false ; return telephony.isImsRegistered ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public boolean isVisualVoicemailEnabled ( android.telecom.PhoneAccountHandle phoneAccountHandle ) { return false ; }
Source:
private void validateCorrectAwareStatusChangeBroadcast ( org.mockito.InOrder inOrder , boolean expectedEnabled ) { org.mockito.ArgumentCaptor < android.content.Intent > intent = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; inOrder.verify ( mMockContext ) . sendBroadcastAsUser ( intent.capture ( ) , org.mockito.Matchers.eq ( UserHandle.ALL ) ) ; collector.checkThat ( "intent action" , intent.getValue ( ) . getAction ( ) , org.hamcrest.core.IsEqual.equalTo ( WifiAwareManager.ACTION_WIFI_AWARE_STATE_CHANGED ) ) ; }

Target:
private void validateCorrectAwareStatusChangeBroadcast ( org.mockito.InOrder inOrder , boolean expectedEnabled ) { org.mockito.ArgumentCaptor < android.content.Intent > intent = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; inOrder.verify ( mMockContext ) . sendBroadcastAsUser ( intent.capture ( ) , org.mockito.ArgumentMatchers.eq ( UserHandle.ALL ) ) ; collector.checkThat ( "intent action" , intent.getValue ( ) . getAction ( ) , org.hamcrest.core.IsEqual.equalTo ( WifiAwareManager.ACTION_WIFI_AWARE_STATE_CHANGED ) ) ; }
Source:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; mContext.unregisterReceiver ( mReceiver ) ; resetRecords ( ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; mParentApp.unregisterForNetworkLocked ( this ) ; mContext.unregisterReceiver ( mReceiver ) ; resetRecords ( ) ; super . dispose ( ) ; }
Source:
public boolean onKey ( android.view.View v , int keyCode , android.view.KeyEvent event ) { switch ( keyCode ) { case android.view.KeyEvent.KEYCODE_CALL : case android.view.KeyEvent.KEYCODE_ENTER : phone.sendUssdResponse ( inputText.getText ( ) . toString ( ) ) ; newDialog.dismiss ( ) ; return true ; } return false ; }

Target:
public boolean onKey ( android.view.View v , int keyCode , android.view.KeyEvent event ) { switch ( keyCode ) { case android.view.KeyEvent.KEYCODE_CALL : case android.view.KeyEvent.KEYCODE_ENTER : if ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_DOWN ) ) { phone.sendUssdResponse ( inputText.getText ( ) . toString ( ) ) ; newDialog.dismiss ( ) ; } return true ; } return false ; }
Source:
private static boolean isSharedPreferenceGetString ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation call ) { if ( ! ( com.android.SdkConstants.GET_STRING_METHOD.equals ( call.astName ( ) . astValue ( ) ) ) ) { return false ; } com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( call ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod resolvedMethod = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.client.api.JavaParser.TypeDescriptor containingClass = resolvedMethod.getContainingClass ( ) ; return com.android.tools.lint.checks.SharedPrefsDetector.ANDROID_CONTENT_SHARED_PREFERENCES.equals ( containingClass.getName ( ) ) ; } return false ; }

Target:
private static boolean isSharedPreferenceGetString ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation call ) { if ( ! ( com.android.SdkConstants.GET_STRING_METHOD.equals ( call.astName ( ) . astValue ( ) ) ) ) { return false ; } com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( call ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod resolvedMethod = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass containingClass = resolvedMethod.getContainingClass ( ) ; return containingClass.isSubclassOf ( com.android.tools.lint.checks.SharedPrefsDetector.ANDROID_CONTENT_SHARED_PREFERENCES , false ) ; } return false ; }
Source:
public void testFindByText ( ) throws java.lang.Exception { java.util.List < android.view.accessibility.AccessibilityNodeInfo > buttons = getInstrumentation ( ) . getUiAutomation ( ) . getRootInActiveWindow ( ) . findAccessibilityNodeInfosByText ( "b" ) ; assertEquals ( 9 , buttons.size ( ) ) ; }

Target:
public void testFindByText ( ) throws java.lang.Exception { getActivity ( ) . findViewById ( R.id.added_content ) . setImportantForAccessibility ( View.IMPORTANT_FOR_ACCESSIBILITY_YES ) ; java.util.List < android.view.accessibility.AccessibilityNodeInfo > buttons = getInstrumentation ( ) . getUiAutomation ( ) . getRootInActiveWindow ( ) . findAccessibilityNodeInfosByText ( "b" ) ; buttons = filterForOwnNodes ( buttons ) ; assertEquals ( 9 , buttons.size ( ) ) ; }
Source:
protected void onSizeChanged ( int w , int h , int ow , int oh ) { super . onSizeChanged ( w , h , ow , oh ) ; mZoomCenterX = ( getViewWidth ( ) ) * 0.5F ; mZoomCenterY = ( getViewHeight ( ) ) * 0.5F ; if ( ! ( mMinZoomScaleFixed ) ) { mMinZoomScale = ( ( float ) ( getViewWidth ( ) ) ) / ( java.lang.Math.max ( android.webkit.WebView.ZOOM_OUT_WIDTH , mContentWidth ) ) ; } setNewZoomScale ( mActualScale , true ) ; }

Target:
public boolean zoomOut ( ) { switchOutDrawHistory ( ) ; mZoomCenterX = ( getViewWidth ( ) ) * 0.5F ; mZoomCenterY = ( getViewHeight ( ) ) * 0.5F ; mAnchorX = viewToContentX ( ( ( ( int ) ( mZoomCenterX ) ) + ( mScrollX ) ) ) ; mAnchorY = viewToContentY ( ( ( ( int ) ( mZoomCenterY ) ) + ( mScrollY ) ) ) ; return zoomWithPreview ( ( ( mActualScale ) * 0.8F ) ) ; }
Source:
private android.view.animation.Animation loadAnimation ( java.lang.String packageName , int resId ) { int anim = 0 ; android.content.Context context = mContext ; if ( resId >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( packageName , resId ) ; if ( ent != null ) { context = ent.context ; anim = resId ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }

Target:
android.view.animation.Animation loadAnimation ( int userId , android.view.WindowManager.LayoutParams lp , int animAttr ) { int anim = 0 ; android.content.Context context = mContext ; if ( animAttr >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( userId , lp ) ; if ( ent != null ) { context = ent.context ; anim = ent.array.getResourceId ( animAttr , 0 ) ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }
Source:
public void testVFE15 ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "dot.junit.opcodes.invoke_direct.d.T_invoke_direct_11" ) ; java.lang.Object o = c.newInstance ( ) ; java.lang.reflect.Method m = c.getDeclaredMethod ( "run" ) ; m.invoke ( o ) ; fail ( "expected an invocation target exception with an incompatible class change error" ) ; } catch ( java.lang.reflect.InvocationTargetException ite ) { if ( ! ( ( ite.getCause ( ) ) instanceof java.lang.IncompatibleClassChangeError ) ) { fail ( "expected an incompatible class change error" ) ; } } catch ( java.lang.Throwable t ) { throw new java.lang.RuntimeException ( t ) ; } }

Target:
public void testVFE11 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_direct.d.T_invoke_direct_1" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
private java.util.Set < java.lang.String > getPubkeyBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( path , com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_SERIAL_BLACKLIST_PATH ) ; java.util.Set < byte [ ] > arr = bl.pubkeyBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( byte [ ] value : arr ) { results.add ( new java.lang.String ( value ) ) ; } return results ; }

Target:
private java.util.Set < java.lang.String > getPubkeyBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( path , "" ) ; java.util.Set < byte [ ] > arr = bl.pubkeyBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( byte [ ] value : arr ) { results.add ( new java.lang.String ( value ) ) ; } return results ; }
Source:
private void monitorDaemons ( ) throws java.lang.InterruptedException { if ( ! ( mNetworkInfo.isConnected ( ) ) ) { return ; } while ( true ) { java.lang.Thread.sleep ( 2000 ) ; for ( int i = 0 ; i < ( mDaemons.length ) ; i ++ ) { if ( ( ( mArguments [ i ] ) != null ) && ( android.os.SystemService.isStopped ( mDaemons [ i ] ) ) ) { return ; } } } }

Target:
private void waitForDaemonsToStop ( ) throws java.lang.InterruptedException { if ( ! ( mNetworkInfo.isConnected ( ) ) ) { return ; } while ( true ) { java.lang.Thread.sleep ( 2000 ) ; for ( int i = 0 ; i < ( mDaemons.length ) ; i ++ ) { if ( ( ( mArguments [ i ] ) != null ) && ( android.os.SystemService.isStopped ( mDaemons [ i ] ) ) ) { return ; } } } }
Source:
void basePause ( ) { if ( android.media.PlayerBase.DEBUG ) { android.util.Log.v ( android.media.PlayerBase.TAG , ( "basePause() piid=" + ( mPlayerIId ) ) ) ; } try { synchronized ( mLock ) { mState = AudioPlaybackConfiguration.PLAYER_STATE_PAUSED ; android.media.PlayerBase.getService ( ) . playerEvent ( mPlayerIId , mState ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.PlayerBase.TAG , "Error talking to audio service, PAUSED state will not be tracked" , e ) ; } }

Target:
private void updateState ( int state ) { final int piid ; synchronized ( mLock ) { mState = state ; piid = mPlayerIId ; } try { android.media.PlayerBase.getService ( ) . playerEvent ( piid , state ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.PlayerBase.TAG , ( ( ( "Error talking to audio service, " + ( android.media.AudioPlaybackConfiguration.toLogFriendlyPlayerState ( state ) ) ) + " state will not be tracked for piid=" ) + piid ) , e ) ; } }
Source:
public boolean p2pFind ( int timeout ) { if ( timeout <= 0 ) { return p2pFind ( ) ; } if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.find ( timeout ) ; } else { return doBooleanCommand ( ( "P2P_FIND " + timeout ) ) ; } }

Target:
public boolean setWfdDeviceInfo ( java.lang.String hex ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setWfdDeviceInfo ( hex ) ; } else { return doBooleanCommand ( ( "WFD_SUBELEM_SET 0 " + hex ) ) ; } }
Source:
private void notifyInterfaceDnsServerInfo ( java.lang.String iface , long lifetime , java.lang.String [ ] addresses ) { final int length = mObservers.beginBroadcast ( ) ; try { for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . interfaceDnsServerInfo ( iface , lifetime , addresses ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { } } } finally { mObservers.finishBroadcast ( ) ; } }

Target:
private void notifyInterfaceDnsServerInfo ( java.lang.String iface , long lifetime , java.lang.String [ ] addresses ) { invokeForAllObservers ( ( o ) -> o.interfaceDnsServerInfo ( iface , lifetime , addresses ) ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.database.Cursor c = getContentResolver ( ) . query ( People.CONTENT_URI , null , null , null , null ) ; startManagingCursor ( c ) ; android.widget.ListAdapter adapter = new android.widget.SimpleCursorAdapter ( this , android.R.layout.simple_list_item_1 , c , new java.lang.String [ ] { android.provider.Contacts.People.NAME } , new int [ ] { android.R.id.text1 } ) ; setListAdapter ( adapter ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.database.Cursor c = getContentResolver ( ) . query ( Contacts.CONTENT_URI , com.example.android.apis.view.List2.CONTACT_PROJECTION , null , null , null ) ; startManagingCursor ( c ) ; android.widget.ListAdapter adapter = new android.widget.SimpleCursorAdapter ( this , android.R.layout.simple_list_item_1 , c , new java.lang.String [ ] { android.provider.ContactsContract.Contacts.DISPLAY_NAME } , new int [ ] { android.R.id.text1 } ) ; setListAdapter ( adapter ) ; }
Source:
public final void change ( T item ) { int oldIndex = indexWithTypeAndId ( item ) ; if ( oldIndex != ( - 1 ) ) { T old = ( ( T ) ( com.android.tv.dvr.ui.SortedArrayAdapter.get ( oldIndex ) ) ) ; if ( ( mComparator.compare ( old , item ) ) == 0 ) { com.android.tv.dvr.ui.SortedArrayAdapter.replace ( oldIndex , item ) ; return ; } com.android.tv.dvr.ui.SortedArrayAdapter.removeItems ( oldIndex , 1 ) ; } add ( item ) ; }

Target:
public int addExtraItem ( T item ) { long newItemId = getId ( item ) ; com.android.tv.common.SoftPreconditions.checkState ( ( ! ( mIds.contains ( newItemId ) ) ) ) ; mIds.add ( newItemId ) ; super . add ( item ) ; return ++ ( mExtraItemCount ) ; }
Source:
private void handleEnterEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( isInEcm ( ) ) ) ) ; } if ( ! ( isInEcm ( ) ) ) { setIsInEcm ( true ) ; sendEmergencyCallbackModeChange ( ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }

Target:
private void handleEnterEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) logd ( ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( isInEcm ( ) ) ) ) ; if ( ! ( isInEcm ( ) ) ) { setIsInEcm ( true ) ; sendEmergencyCallbackModeChange ( ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( fqdn ) ; dest.writeString ( friendlyName ) ; dest.writeLongArray ( roamingConsortiumOIs ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( fqdn ) ; dest.writeString ( friendlyName ) ; dest.writeString ( iconUrl ) ; android.net.wifi.hotspot2.pps.HomeSP.writeHomeNetworkIds ( dest , homeNetworkIds ) ; dest.writeLongArray ( matchAllOIs ) ; dest.writeLongArray ( matchAnyOIs ) ; dest.writeStringArray ( otherHomePartners ) ; dest.writeLongArray ( roamingConsortiumOIs ) ; }
Source:
public static void recordSparseSlowlyHistogram ( java.lang.String name , int sample ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordSparseHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordSparseSlowlyHistogram ( java.lang.String name , int sample ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordSparseHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
protected void onIccRefreshInit ( ) { mAdnCache.reset ( ) ; com.android.internal.telephony.uicc.UiccCardApplication parentApp = mParentApp ; if ( ( parentApp != null ) && ( ( parentApp.getState ( ) ) == ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState.APPSTATE_READY ) ) ) { sendMessage ( obtainMessage ( com.android.internal.telephony.uicc.IccRecords.EVENT_APP_READY ) ) ; } }

Target:
protected void handleRefresh ( com.android.internal.telephony.uicc.IccRefreshResponse refreshResponse ) { if ( refreshResponse == null ) { if ( com.android.internal.telephony.uicc.IccRecords.DBG ) log ( "handleRefresh received without input" ) ; return ; } if ( ( ! ( android.text.TextUtils.isEmpty ( refreshResponse.aid ) ) ) && ( ! ( refreshResponse.aid.equals ( mParentApp.getAid ( ) ) ) ) ) { return ; } switch ( refreshResponse.refreshResult ) { case IccRefreshResponse.REFRESH_RESULT_FILE_UPDATE : if ( com.android.internal.telephony.uicc.IccRecords.DBG ) log ( "handleRefresh with SIM_FILE_UPDATED" ) ; handleFileUpdate ( refreshResponse.efId ) ; break ; default : if ( com.android.internal.telephony.uicc.IccRecords.DBG ) log ( "handleRefresh with unknown operation" ) ; break ; } }
Source:
public void onServiceConnected ( android.content.ComponentName componentName , android.os.IBinder service ) { mService = service ; mServiceInterface = IAccessibilityServiceClient.Stub.asInterface ( service ) ; try { mServiceInterface.setConnection ( this , mId ) ; synchronized ( mLock ) { tryAddServiceLocked ( this ) ; } } catch ( android.os.RemoteException re ) { android.util.Slog.w ( com.android.server.accessibility.AccessibilityManagerService.LOG_TAG , ( "Error while setting Controller for service: " + service ) , re ) ; } }

Target:
public void onServiceConnected ( android.content.ComponentName componentName , android.os.IBinder service ) { mService = service ; mServiceInterface = IAccessibilityServiceClient.Stub.asInterface ( service ) ; try { mServiceInterface.setConnection ( this , mId ) ; synchronized ( mLock ) { tryAddServiceLocked ( this , mUserId ) ; } } catch ( android.os.RemoteException re ) { android.util.Slog.w ( com.android.server.accessibility.AccessibilityManagerService.LOG_TAG , ( "Error while setting Controller for service: " + service ) , re ) ; } }