auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = mProgressBar.getShell ( ) ; com.android.sdkuilib.ui.AuthenticationDialog authenticationDialog = new com.android.sdkuilib.ui.AuthenticationDialog ( shell , title , message ) ; int dlgResult = authenticationDialog.open ( ) ; if ( dlgResult == ( com.android.sdkuilib.ui.GridDialog.OK ) ) { resultArray [ 0 ] = authenticationDialog.getLogin ( ) ; resultArray [ 1 ] = authenticationDialog.getPassword ( ) ; resultArray [ 2 ] = authenticationDialog.getWorkstation ( ) ; resultArray [ 3 ] = authenticationDialog.getDomain ( ) ; } }

Target:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = mProgressBar.getShell ( ) ; com.android.sdkuilib.ui.AuthenticationDialog authenticationDialog = new com.android.sdkuilib.ui.AuthenticationDialog ( shell , title , message ) ; int dlgResult = authenticationDialog.open ( ) ; if ( dlgResult == ( com.android.sdkuilib.ui.GridDialog.OK ) ) { result.set ( new com.android.sdklib.internal.repository.UserCredentials ( authenticationDialog.getLogin ( ) , authenticationDialog.getPassword ( ) , authenticationDialog.getWorkstation ( ) , authenticationDialog.getDomain ( ) ) ) ; } }
Source:
protected android.graphics.Bitmap extractResultImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_PackOutputImage ( buffers.outAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.test.d1new.RefocusFilterd1new.myTAG , ( ( "PackOutputImage: " + ( endnow - startnow ) ) + " ns" ) ) ; buffers.outAllocation.copyTo ( buffers.outputImage ) ; return buffers.outputImage ; }

Target:
protected android.graphics.Bitmap extractResultImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_PackOutputImage ( buffers.outAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.d1new.RefocusFilterd1new.myTAG , ( ( "PackOutputImage: " + ( endnow - startnow ) ) + " ns" ) ) ; buffers.outAllocation.copyTo ( buffers.outputImage ) ; return buffers.outputImage ; }
Source:
public boolean isIn ( java.lang.StackTraceElement candidate ) { return ( ( ( defaultCleaner.isIn ( candidate ) ) && ( ! ( candidate.getClassName ( ) . endsWith ( "_Proxy" ) ) ) ) && ( ! ( candidate.getClassName ( ) . startsWith ( "$Proxy" ) ) ) ) && ( ! ( candidate.getClassName ( ) . startsWith ( "com.google.dexmaker.mockito." ) ) ) ; }

Target:
public boolean isIn ( java.lang.StackTraceElement candidate ) { return ( ( ( ( defaultCleaner.isIn ( candidate ) ) && ( ! ( candidate.getClassName ( ) . endsWith ( "_Proxy" ) ) ) ) && ( ! ( candidate.getClassName ( ) . startsWith ( "$Proxy" ) ) ) ) && ( ! ( candidate.getClassName ( ) . startsWith ( "com.google.dexmaker.mockito." ) ) ) ) && ( ! ( candidate.getClassName ( ) . startsWith ( "com.android.dx.mockito." ) ) ) ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_foreach_bounds s = new com.android.rs.test.ScriptC_foreach_bounds ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_foreach_bounds s = new com.android.rs.test.ScriptC_foreach_bounds ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
protected org.gradle.reporting.DomReportRenderer < T > getContentRenderer ( ) { return new org.gradle.reporting.DomReportRenderer < T > ( ) { @ java.lang.Override public void render ( T model , org.w3c.dom.Element content ) { com.android.build.gradle.internal.test.report.PageRenderer.this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( content ) ; } } ; }

Target:
protected org.gradle.reporting.ReportRenderer < T , org.gradle.api.internal.html.SimpleHtmlWriter > getContentRenderer ( ) { return new org.gradle.reporting.ReportRenderer < T , org.gradle.api.internal.html.SimpleHtmlWriter > ( ) { @ java.lang.Override public void render ( T model , org.gradle.api.internal.html.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { com.android.build.gradle.internal.test.report.PageRenderer.this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( htmlWriter ) ; } } ; }
Source:
private void transformAnnotationSet ( com.android.dx.merge.IndexMap indexMap , com.android.dx.io.DexBuffer.Section setIn ) { ( contentsOut.annotationSets.size ) ++ ; annotationSetOut.assertFourByteAligned ( ) ; indexMap.putAnnotationSetOffset ( setIn.getPosition ( ) , annotationSetOut.getPosition ( ) ) ; int size = setIn.readInt ( ) ; annotationSetOut.writeInt ( size ) ; for ( int j = 0 ; j < size ; j ++ ) { annotationSetOut.writeInt ( indexMap.adjustAnnotation ( setIn.readInt ( ) ) ) ; } }

Target:
private void transformAnnotationSet ( com.android.dx.merge.IndexMap indexMap , com.android.dex.Dex.Section setIn ) { ( contentsOut.annotationSets.size ) ++ ; annotationSetOut.assertFourByteAligned ( ) ; indexMap.putAnnotationSetOffset ( setIn.getPosition ( ) , annotationSetOut.getPosition ( ) ) ; int size = setIn.readInt ( ) ; annotationSetOut.writeInt ( size ) ; for ( int j = 0 ; j < size ; j ++ ) { annotationSetOut.writeInt ( indexMap.adjustAnnotation ( setIn.readInt ( ) ) ) ; } }
Source:
protected void syncWithBuildFileViaFacet ( ) { com.intellij.openapi.module.Module module = getConfigurationModule ( ) . getModule ( ) ; if ( module != null ) { com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet facet = com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getInstance ( module ) ; if ( facet != null ) { com.google.gct.idea.appengine.gradle.facet.AppEngineConfigurationProperties model = facet.getConfiguration ( ) . getState ( ) ; if ( model != null ) { myServerPort = model.HTTP_PORT.toString ( ) ; myServerAddress = model.HTTP_ADDRESS ; mySdkPath = model.APPENGINE_SDKROOT ; myWarPath = model.WAR_DIR ; } } } }

Target:
protected void syncWithBuildFileViaFacet ( ) { com.intellij.openapi.module.Module module = getConfigurationModule ( ) . getModule ( ) ; if ( module != null ) { com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet facet = com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getInstance ( module ) ; if ( facet != null ) { com.google.gct.idea.appengine.gradle.facet.AppEngineConfigurationProperties model = facet.getConfiguration ( ) . getState ( ) ; if ( model != null ) { myServerPort = model.HTTP_PORT.toString ( ) ; myServerAddress = model.HTTP_ADDRESS ; mySdkPath = model.APPENGINE_SDKROOT ; myWarPath = model.WAR_DIR ; myVmArgs = model.getJvmFlags ( ) ; } } } }
Source:
public void run ( ) { while ( isRunning ( ) ) { try { doFinalize ( ( ( java.lang.ref.FinalizerReference < ? > ) ( queue.remove ( ) ) ) ) ; } catch ( java.lang.InterruptedException ignored ) { } } }

Target:
public void run ( ) { while ( isRunning ( ) ) { try { doFinalize ( ( ( java.lang.ref.FinalizerReference < ? > ) ( queue.remove ( ) ) ) ) ; } catch ( java.lang.InterruptedException ignored ) { } catch ( java.lang.OutOfMemoryError ignored ) { } } }
Source:
private java.io.File checkProjectFolder ( java.lang.String folderPath ) { java.io.File projectFolder = new java.io.File ( folderPath ) ; if ( ! ( projectFolder.isDirectory ( ) ) ) { mLog.error ( null , "Project folder '%1$s' is not a valid directory." , projectFolder ) ; return null ; } java.io.File androidManifest = new java.io.File ( projectFolder , com.android.sdklib.SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( ! ( androidManifest.isFile ( ) ) ) { mLog.error ( null , "%1$s is not a valid project (%2$s not found)." , folderPath , SdkConstants.FN_ANDROID_MANIFEST_XML ) ; return null ; } return androidManifest ; }

Target:
private java.io.File checkProjectFolder ( java.lang.String folderPath , java.lang.String requiredFilename ) { java.io.File projectFolder = new java.io.File ( folderPath ) ; if ( ! ( projectFolder.isDirectory ( ) ) ) { mLog.error ( null , "Project folder '%1$s' is not a valid directory." , projectFolder ) ; return null ; } java.io.File requireFile = new java.io.File ( projectFolder , requiredFilename ) ; if ( ! ( requireFile.isFile ( ) ) ) { mLog.error ( null , "%1$s is not a valid project (%2$s not found)." , folderPath , requiredFilename ) ; return null ; } return requireFile ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ( intent.getAction ( ) ) == ( android.content.Intent.ACTION_BOOT_COMPLETED ) ) { synchronized ( mLock ) { if ( ( mUiAutomationService ) == null ) { populateAccessibilityServiceListLocked ( ) ; populateEnabledAccessibilityServicesLocked ( ) ; populateTouchExplorationGrantedAccessibilityServicesLocked ( ) ; handleAccessibilityEnabledSettingChangedLocked ( ) ; handleTouchExplorationEnabledSettingChangedLocked ( ) ; updateInputFilterLocked ( ) ; sendStateToClientsLocked ( ) ; } } return ; } super . onReceive ( context , intent ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( Intent.ACTION_USER_SWITCHED.equals ( action ) ) { switchUser ( intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ) ; } else if ( Intent.ACTION_USER_REMOVED.equals ( action ) ) { removeUser ( intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ) ; } else if ( Intent.ACTION_USER_PRESENT.equals ( action ) ) { restoreStateFromMementoIfNeeded ( ) ; } }
Source:
private static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.InputFileProvider > toInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { com.google.common.base.Preconditions.checkState ( ( ! ( java.nio.file.Files.isDirectory ( path ) ) ) , "Directory is not supported: %s" , path ) ; builder.add ( closer.register ( new com.google.devtools.build.android.desugar.ZipInputFileProvider ( path ) ) ) ; } return builder.build ( ) ; }

Target:
private static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.InputFileProvider > toRegisteredInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { com.google.common.base.Preconditions.checkState ( ( ! ( java.nio.file.Files.isDirectory ( path ) ) ) , "Directory is not supported: %s" , path ) ; builder.add ( closer.register ( new com.google.devtools.build.android.desugar.ZipInputFileProvider ( path ) ) ) ; } return builder.build ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.byteToLong ( ) ; Main.shortToLong ( ) ; Main.intToLong ( ) ; Main.charToLong ( ) ; Main.longToInt ( ) ; Main.shortToByte ( ) ; Main.intToByte ( ) ; Main.charToByte ( ) ; Main.byteToChar ( ) ; Main.shortToChar ( ) ; Main.intToChar ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.byteToLong ( ) ; Main.shortToLong ( ) ; Main.intToLong ( ) ; Main.charToLong ( ) ; Main.longToInt ( ) ; Main.shortToByte ( ) ; Main.intToByte ( ) ; Main.charToByte ( ) ; Main.byteToShort ( ) ; Main.intToShort ( ) ; Main.charToShort ( ) ; Main.byteToChar ( ) ; Main.shortToChar ( ) ; Main.intToChar ( ) ; }
Source:
private void onDataConnectionAttached ( ) { if ( DBG ) log ( "onDataConnectionAttached" ) ; if ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) { if ( DBG ) log ( "onDataConnectionAttached: start polling notify attached" ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_DATA_ATTACHED ) ; } else { notifyOffApnsOfAvailability ( Phone.REASON_DATA_ATTACHED ) ; } setupDataOnReadyApns ( Phone.REASON_DATA_ATTACHED ) ; }

Target:
protected void onDataConnectionDetached ( ) { if ( DBG ) log ( "onDataConnectionDetached: stop polling and notify detached" ) ; stopNetStatPoll ( ) ; stopDataStallAlarm ( ) ; notifyDataConnection ( Phone.REASON_DATA_DETACHED ) ; }
Source:
public < T > T [ ] toArray ( T [ ] array ) { return delegate.toArray ( array ) ; }

Target:
static < E extends java.lang.Enum < E > > com.google.common.collect.ImmutableSet < E > asImmutable ( java.util.EnumSet < E > set ) { switch ( set.size ( ) ) { case 0 : return com.google.common.collect.ImmutableSet.of ( ) ; case 1 : return com.google.common.collect.ImmutableSet.of ( com.google.common.collect.Iterables.getOnlyElement ( set ) ) ; default : return new com.google.common.collect.ImmutableEnumSet < E > ( set ) ; } }
Source:
public void run ( ) { editor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { c.call ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy.this ) ; } } ) ; }

Target:
public void editXml ( java.lang.String undoName , final groovy.lang.Closure c ) { final com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = mNode.getEditor ( ) ; if ( editor instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) { ( ( com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) ( editor ) ) . wrapUndoEditXmlModel ( undoName , new java.lang.Runnable ( ) { public void run ( ) { c.call ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy.this ) ; } } ) ; } }
Source:
void found ( ) { mLastSeenTime = java.lang.System.currentTimeMillis ( ) ; mFound = true ; android.net.Uri printerUri = mDiscoveredPrinter.getUri ( ) ; com.android.bips.jni.LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache ( ) . get ( printerUri ) ; if ( com.android.bips.LocalPrinter.DEBUG ) android.util.Log.d ( com.android.bips.LocalPrinter.TAG , ( ( ( "Printer " + ( mDiscoveredPrinter ) ) + " has caps=" ) + capabilities ) ) ; if ( capabilities != null ) { onCapabilities ( mDiscoveredPrinter , capabilities ) ; } else { mSession.handlePrinter ( this ) ; requestCapabilities ( ) ; } }

Target:
public void onConnectionComplete ( com.android.bips.discovery.DiscoveredPrinter printer ) { if ( com.android.bips.LocalPrinter.DEBUG ) android.util.Log.d ( com.android.bips.LocalPrinter.TAG , ( "connection complete " + printer ) ) ; if ( printer == null ) { mTrackingConnection = null ; } }
Source:
protected java.util.Properties createProps ( ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.PKG_REVISION , "42" ) ; props.setProperty ( PkgProps.PKG_LICENSE , "The License" ) ; props.setProperty ( PkgProps.PKG_DESC , "Some description." ) ; props.setProperty ( PkgProps.PKG_DESC_URL , "http://description/url" ) ; props.setProperty ( PkgProps.PKG_RELEASE_NOTE , "Release Note" ) ; props.setProperty ( PkgProps.PKG_RELEASE_URL , "http://release/note" ) ; props.setProperty ( PkgProps.PKG_SOURCE_URL , "http://source/url" ) ; props.setProperty ( PkgProps.PKG_OBSOLETE , "true" ) ; return props ; }

Target:
protected java.util.Properties createExpectedProps ( ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.PKG_REVISION , "42" ) ; props.setProperty ( PkgProps.PKG_LICENSE , "The License" ) ; props.setProperty ( PkgProps.PKG_DESC , "Some description." ) ; props.setProperty ( PkgProps.PKG_DESC_URL , "http://description/url" ) ; props.setProperty ( PkgProps.PKG_RELEASE_NOTE , "Release Note" ) ; props.setProperty ( PkgProps.PKG_RELEASE_URL , "http://release/note" ) ; props.setProperty ( PkgProps.PKG_SOURCE_URL , "http://source/url" ) ; props.setProperty ( PkgProps.PKG_OBSOLETE , "true" ) ; return props ; }
Source:
public synchronized void flushNow ( boolean sync ) { needsFlush = true ; if ( ! sync ) return ; while ( needsFlush ) { try { wait ( ) ; } catch ( java.lang.InterruptedException e ) { } } if ( ( error ) != null ) { throw error ; } }

Target:
public synchronized void flushNow ( ) { needsFlush = true ; notify ( ) ; while ( needsFlush ) { try { wait ( ) ; } catch ( java.lang.InterruptedException e ) { } } if ( ( error ) != null ) { throw error ; } }
Source:
private void broadcastConnectionState ( android.bluetooth.BluetoothDevice device , int newState , int prevState ) { int delay = mAudioManager.setBluetoothA2dpDeviceConnectionState ( device , newState , BluetoothProfile.A2DP_SINK ) ; mWakeLock.acquire ( ) ; mIntentBroadcastHandler.sendMessageDelayed ( mIntentBroadcastHandler.obtainMessage ( com.android.bluetooth.a2dp.A2dpSinkStateMachine.MSG_CONNECTION_STATE_CHANGED , prevState , newState , device ) , delay ) ; }

Target:
private void broadcastConnectionState ( android.bluetooth.BluetoothDevice device , int newState , int prevState ) { int delay = 0 ; if ( ! ( com.android.bluetooth.a2dp.A2dpSinkStateMachine.USE_AUDIOTRACK ) ) delay = mAudioManager.setBluetoothA2dpDeviceConnectionState ( device , newState , BluetoothProfile.A2DP_SINK ) ; mWakeLock.acquire ( ) ; mIntentBroadcastHandler.sendMessageDelayed ( mIntentBroadcastHandler.obtainMessage ( com.android.bluetooth.a2dp.A2dpSinkStateMachine.MSG_CONNECTION_STATE_CHANGED , prevState , newState , device ) , delay ) ; }
Source:
public void testIsEmergencyNumberLongNumber_US ( ) { assertFalse ( shortInfo.isEmergencyNumber ( "9116666666" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "1126666666" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "9996666666" , RegionCode.US ) ) ; }

Target:
public void testIsEmergencyNumberWithFormatting_US ( ) { assertTrue ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "9-1-1" , RegionCode.US ) ) ; assertTrue ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "*911" , RegionCode.US ) ) ; assertTrue ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "1-1-2" , RegionCode.US ) ) ; assertTrue ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "*112" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "9-9-9" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "*999" , RegionCode.US ) ) ; }
Source:
public final void finishSubActivity ( android.os.IBinder token , java.lang.String resultWho , int requestCode ) { synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; com.android.server.am.ActivityRecord r = com.android.server.am.ActivityRecord.isInStackLocked ( token ) ; if ( r != null ) { r.task.stack.finishSubActivityLocked ( r , resultWho , requestCode ) ; } android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
public boolean releaseActivityInstance ( android.os.IBinder token ) { synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; try { com.android.server.am.ActivityRecord r = com.android.server.am.ActivityRecord.isInStackLocked ( token ) ; if ( r == null ) { return false ; } return r.task.stack.safelyDestroyActivityLocked ( r , "app-req" ) ; } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } } }
Source:
public boolean onMenuItemClick ( android.view.MenuItem item ) { final com.android.contacts.editor.KindSectionView view = fields.get ( item.getItemId ( ) ) ; if ( DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals ( view.getKind ( ) . mimeType ) ) { mPhoneticNameAdded = true ; updatePhoneticNameVisibility ( ) ; } else { view.addItem ( ) ; } if ( ( fields.size ( ) ) == 1 ) { mAddFieldButton.setVisibility ( View.GONE ) ; } return true ; }

Target:
public boolean onMenuItemClick ( android.view.MenuItem item ) { final com.android.contacts.editor.KindSectionView view = fields.get ( item.getItemId ( ) ) ; if ( DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals ( view.getKind ( ) . mimeType ) ) { mPhoneticNameAdded = true ; updatePhoneticNameVisibility ( ) ; mPhoneticName.requestFocus ( ) ; } else { view.addItem ( ) ; } if ( ( fields.size ( ) ) == 1 ) { mAddFieldButton.setVisibility ( View.GONE ) ; } return true ; }
Source:
public void sendSingleScanRequestWithBadRawResults ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = createRequest ( WifiScanner.WIFI_BAND_24_GHZ , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; com.android.server.wifi.ScanResults results = com.android.server.wifi.ScanResults.createOverflowing ( 0 , 0 , com.android.server.wifi.ScanResults.generateNativeResults ( 0 , 5150 , 5171 ) ) ; doSuccessfulSingleScan ( requestSettings , computeSingleScanNativeSettings ( requestSettings ) , results ) ; }

Target:
public void sendSingleScanRequestWithBadRawResults ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = com.android.server.wifi.ScanTestUtil.createRequest ( WifiScanner.WIFI_BAND_24_GHZ , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; com.android.server.wifi.ScanResults results = com.android.server.wifi.ScanResults.createOverflowing ( 0 , 0 , com.android.server.wifi.ScanResults.generateNativeResults ( 0 , 5150 , 5171 ) ) ; doSuccessfulSingleScan ( requestSettings , com.android.server.wifi.ScanTestUtil.computeSingleScanNativeSettings ( requestSettings ) , results ) ; }
Source:
public void testBindSocketOfInvalidFdThrows ( ) throws java.lang.Exception { final java.io.FileDescriptor fd = new java.io.FileDescriptor ( ) ; assertFalse ( fd.valid ( ) ) ; try { mNetwork.bindSocket ( fd ) ; fail ( "SocketException not thrown" ) ; } catch ( java.net.SocketException expected ) { } }

Target:
public void testBindSocketOfInvalidFdThrows ( ) throws java.lang.Exception { final java.io.FileDescriptor fd = new java.io.FileDescriptor ( ) ; org.junit.Assert.assertFalse ( fd.valid ( ) ) ; try { mNetwork.bindSocket ( fd ) ; org.junit.Assert.fail ( "SocketException not thrown" ) ; } catch ( java.net.SocketException expected ) { } }
Source:
private java.io.File makeFakeTargetInternal ( java.io.File platformsDir ) throws java.io.IOException { java.io.File targetDir = new java.io.File ( platformsDir , "v0_0" ) ; targetDir.mkdirs ( ) ; new java.io.File ( targetDir , com.android.SdkConstants.FN_FRAMEWORK_LIBRARY ) . createNewFile ( ) ; new java.io.File ( targetDir , com.android.SdkConstants.FN_FRAMEWORK_AIDL ) . createNewFile ( ) ; createSourceProps ( targetDir , PkgProps.PKG_REVISION , "1" , PkgProps.PLATFORM_VERSION , "0.0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.LAYOUTLIB_API , "5" , PkgProps.LAYOUTLIB_REV , "2" ) ; createFileProps ( SdkConstants.FN_BUILD_PROP , targetDir , LocalPlatformPkgInfo.PROP_VERSION_RELEASE , "0.0" , LocalPlatformPkgInfo.PROP_VERSION_SDK , "0" , LocalPlatformPkgInfo.PROP_VERSION_CODENAME , "REL" ) ; return targetDir ; }

Target:
private java.io.File makeFakeTargetInternal ( java.io.File platformsDir ) throws java.io.IOException { java.io.File targetDir = new java.io.File ( platformsDir , com.android.sdklib.SdkManagerTestCase.TARGET_DIR_NAME_0 ) ; targetDir.mkdirs ( ) ; new java.io.File ( targetDir , com.android.SdkConstants.FN_FRAMEWORK_LIBRARY ) . createNewFile ( ) ; new java.io.File ( targetDir , com.android.SdkConstants.FN_FRAMEWORK_AIDL ) . createNewFile ( ) ; createSourceProps ( targetDir , PkgProps.PKG_REVISION , "1" , PkgProps.PLATFORM_VERSION , "0.0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.LAYOUTLIB_API , "5" , PkgProps.LAYOUTLIB_REV , "2" ) ; createFileProps ( SdkConstants.FN_BUILD_PROP , targetDir , LocalPlatformPkgInfo.PROP_VERSION_RELEASE , "0.0" , LocalPlatformPkgInfo.PROP_VERSION_SDK , "0" , LocalPlatformPkgInfo.PROP_VERSION_CODENAME , "REL" ) ; return targetDir ; }
Source:
public void validatePolicyWithoutPolicyUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.policyUpdate = null ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithRoamingPartnerWithoutFQDN ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; android.net.wifi.hotspot2.pps.Policy.RoamingPartner partner = new android.net.wifi.hotspot2.pps.Policy.RoamingPartner ( ) ; partner.setFqdnExactMatch ( true ) ; partner.setPriority ( 12 ) ; partner.setCountries ( "us,jp" ) ; policy.getPreferredRoamingPartnerList ( ) . add ( partner ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
public java.util.List < ? extends com.android.jack.library.InputLibrary > getImportedLibrary ( ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; if ( needFullBuild ( ) ) { session.setFileDependencies ( new com.android.jack.analysis.dependency.file.FileDependencies ( ) ) ; session.setTypeDependencies ( new com.android.jack.analysis.dependency.type.TypeDependencies ( ) ) ; return importedLibrariesFromCommandLine ; } try { updateIncrementalState ( ) ; } catch ( com.android.jack.incremental.IncrementalException e ) { session.getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } return java.util.Collections.singletonList ( incrementalInputLibrary ) ; }

Target:
public java.util.List < ? extends com.android.jack.library.InputLibrary > getImportedLibraries ( ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; if ( needFullBuild ( ) ) { session.setFileDependencies ( new com.android.jack.analysis.dependency.file.FileDependencies ( ) ) ; session.setTypeDependencies ( new com.android.jack.analysis.dependency.type.TypeDependencies ( ) ) ; return importedLibrariesFromCommandLine ; } try { updateIncrementalState ( ) ; } catch ( com.android.jack.incremental.IncrementalException e ) { session.getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } assert ( importedLibraries ) != null ; return importedLibraries ; }
Source:
public java.lang.Boolean bluetoothHidSetReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" ) java.lang.String type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.getConnectedDevices ( ) , deviceID ) ; com.googlecode.android_scripting.Log.d ( ( "type " + ( type.getBytes ( ) [ 0 ] ) ) ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.setReport ( device , type.getBytes ( ) [ 0 ] , report ) ; }

Target:
public java.lang.Boolean bluetoothHidGetReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" ) java.lang.Integer type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "reportId" ) java.lang.Integer reportId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "buffSize" ) java.lang.Integer buffSize ) throws java.lang.Exception { android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.getConnectedDevices ( ) , deviceID ) ; com.googlecode.android_scripting.Log.d ( ( ( ( "type=" + type ) + " reportId=" ) + reportId ) ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidFacade.sHidProfile.getReport ( device , ( ( byte ) ( ( int ) ( type ) ) ) , ( ( byte ) ( ( int ) ( reportId ) ) ) , buffSize ) ; }
Source:
public static void recordCustomCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { 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.nativeRecordCustomCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordCustomCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordCustomCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
public static void testSendEtwsMessageOther ( android.app.Activity activity , int serialNumber ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdu ( activity , com.android.cellbroadcastreceiver.tests.SendTestMessages.etwsMessageNormal , serialNumber , SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE ) ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_EMERGENCY_BROADCAST , AppOpsManager.OP_RECEIVE_EMERGECY_SMS , null , null , Activity.RESULT_OK , null , null ) ; }

Target:
public static void testSendEtwsMessageOther ( android.app.Activity activity , int serialNumber ) { com.android.cellbroadcastreceiver.tests.SendTestMessages.sendBroadcast ( activity , serialNumber , SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE , com.android.cellbroadcastreceiver.tests.SendTestMessages.etwsMessageNormal ) ; }
Source:
public final com.android.server.am.WaitResult startActivityAndWait ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.net.Uri [ ] grantedUriPermissions , int grantedMode , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , boolean onlyIfNeeded , boolean debug ) { com.android.server.am.WaitResult res = new com.android.server.am.WaitResult ( ) ; startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , res , null ) ; return res ; }

Target:
public final com.android.server.am.WaitResult startActivityAndWait ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.net.Uri [ ] grantedUriPermissions , int grantedMode , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , boolean onlyIfNeeded , boolean debug ) { com.android.server.am.WaitResult res = new com.android.server.am.WaitResult ( ) ; mMainStack.startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , res , null ) ; return res ; }
Source:
public java.lang.String getImei ( int slotId ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return null ; try { return telephony.getImeiForSlot ( slotId , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public java.lang.String getImei ( int slotIndex ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return null ; try { return telephony.getImeiForSlot ( slotIndex , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }
Source:
public int getRadioAccessFamily ( int phoneId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getRadioAccessFamily" ) ) ) { return android.telephony.RadioAccessFamily.RAF_UNKNOWN ; } return com.android.internal.telephony.ProxyController.getInstance ( ) . getRadioAccessFamily ( phoneId ) ; }

Target:
public java.lang.String getDeviceId ( java.lang.String callingPackage ) { final com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( 0 ) ; if ( phone == null ) { return null ; } int subId = phone.getSubId ( ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getDeviceId" ) ) ) { return null ; } return phone.getDeviceId ( ) ; }
Source:
private void stopAllIP ( ) { try { mNwService.disableIpv6 ( mInterfaceName ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( mTag , ( "Failed to disable IPv6" + e ) ) ; } try { mNwService.clearInterfaceAddresses ( mInterfaceName ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( mTag , ( "Failed to clear addresses " + e ) ) ; } }

Target:
private void stopAllIP ( ) { try { mNwService.disableIpv6 ( mInterfaceName ) ; } catch ( java.lang.Exception e ) { logError ( "Failed to disable IPv6: %s" , e ) ; } try { mNwService.clearInterfaceAddresses ( mInterfaceName ) ; } catch ( java.lang.Exception e ) { logError ( "Failed to clear addresses: %s" , e ) ; } }
Source:
synchronized void recordScanResume ( int scannerId ) { com.android.bluetooth.gatt.AppScanStats.LastScan scan = getScanFromScannerId ( scannerId ) ; if ( ( scan == null ) || ( ! ( scan.isSuspended ) ) ) { return ; } scan.isSuspended = false ; stopTime = android.os.SystemClock.elapsedRealtime ( ) ; scan.suspendDuration += ( stopTime ) - ( scan.suspendStartTime ) ; mTotalSuspendTime += scan.suspendDuration ; }

Target:
synchronized void recordScanResume ( int scannerId ) { com.android.bluetooth.gatt.AppScanStats.LastScan scan = getScanFromScannerId ( scannerId ) ; long suspendDuration = 0 ; if ( ( scan == null ) || ( ! ( scan.isSuspended ) ) ) { return ; } scan.isSuspended = false ; stopTime = android.os.SystemClock.elapsedRealtime ( ) ; suspendDuration = ( stopTime ) - ( scan.suspendStartTime ) ; scan.suspendDuration += suspendDuration ; mTotalSuspendTime += suspendDuration ; }
Source:
public void testApplyWhenCommonFileChangesStrict ( ) throws java.lang.Exception { myPatchSpec.setStrict ( true ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.openapi.util.io.FileUtil.copy ( new java.io.File ( myOlderDir , "/lib/bootstrap.jar" ) , new java.io.File ( myOlderDir , "/lib/boot.jar" ) ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertEquals ( 1 , preparationResult.validationResults.size ( ) ) ; assertEquals ( new com.intellij.updater.ValidationResult ( ValidationResult.Kind.ERROR , "lib/boot.jar" , ValidationResult.Action.VALIDATE , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.IGNORE ) , preparationResult.validationResults.get ( 0 ) ) ; }

Target:
public void testApplyWhenCommonFileChangesStrict ( ) throws java.lang.Exception { myPatchSpec.setStrict ( true ) ; com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.openapi.util.io.FileUtil.copy ( new java.io.File ( myOlderDir , "/lib/bootstrap.jar" ) , new java.io.File ( myOlderDir , "/lib/boot.jar" ) ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertEquals ( 1 , preparationResult.validationResults.size ( ) ) ; assertEquals ( new com.intellij.updater.ValidationResult ( ValidationResult.Kind.ERROR , "lib/boot.jar" , ValidationResult.Action.VALIDATE , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.NONE ) , preparationResult.validationResults.get ( 0 ) ) ; }
Source:
public boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "unregisterApp()" ) ; boolean result = false ; if ( ( mService ) != null ) { try { result = mService.unregisterApp ( config ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.unregisterApp ( config ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.TestUtils.assertEqualByteArrays ( OCSP_TEST_DATA , org.conscrypt.NativeCrypto.SSL_get_ocsp_response ( ssl ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCryptoTest.assertEqualByteArrays ( OCSP_TEST_DATA , org.conscrypt.NativeCrypto.SSL_get_ocsp_response ( ssl ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
private void expectNetworkStatsUidDetail ( android.net.NetworkStats detail , java.lang.String [ ] tetherIfacePairs , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.mockito.Mockito.when ( mNetManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ) . thenReturn ( detail ) ; org.mockito.Mockito.when ( mNetManager.getNetworkStatsTethering ( ) ) . thenReturn ( tetherStats ) ; }

Target:
private void expectNetworkStatsTethering ( int how , android.net.NetworkStats stats ) throws java.lang.Exception { org.mockito.Mockito.when ( mNetManager.getNetworkStatsTethering ( how ) ) . thenReturn ( stats ) ; }
Source:
public static void d ( java.lang.Object caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.cat.CatLog.DEBUG ) ) { return ; } java.lang.String className = caller.getClass ( ) . getName ( ) ; android.util.Log.d ( "CAT" , ( ( ( className.substring ( ( ( className.lastIndexOf ( '.' ) ) + 1 ) ) ) + ": " ) + msg ) ) ; }

Target:
public static void d ( java.lang.Object caller , java.lang.String msg ) { if ( ! ( com.android.internal.telephony.cat.CatLog.DEBUG ) ) { return ; } java.lang.String className = caller.getClass ( ) . getName ( ) ; android.telephony.Rlog.d ( "CAT" , ( ( ( className.substring ( ( ( className.lastIndexOf ( '.' ) ) + 1 ) ) ) + ": " ) + msg ) ) ; }
Source:
public boolean updateSourcePackages ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.Package [ ] newPackages ) { if ( source != null ) { java.util.List < com.android.sdkuilib.internal.repository.sdkman2.PkgCategory > cats = getCategories ( ) ; java.lang.Object catKey = source ; com.android.sdkuilib.internal.repository.sdkman2.PkgCategory cat = findCurrentCategory ( cats , catKey ) ; if ( cat == null ) { cat = createCategory ( catKey ) ; synchronized ( cats ) { cats.add ( cat ) ; } sortCategoryList ( ) ; } keep ( cat ) ; } return super . updateSourcePackages ( source , newPackages ) ; }

Target:
public boolean updateSourcePackages ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.Package [ ] newPackages ) { if ( source != null ) { java.util.List < com.android.sdkuilib.internal.repository.core.PkgCategory > cats = getCategories ( ) ; java.lang.Object catKey = source ; com.android.sdkuilib.internal.repository.core.PkgCategory cat = findCurrentCategory ( cats , catKey ) ; if ( cat == null ) { cat = createCategory ( catKey ) ; synchronized ( cats ) { cats.add ( cat ) ; } sortCategoryList ( ) ; } keep ( cat ) ; } return super . updateSourcePackages ( source , newPackages ) ; }
Source:
public void takeEmergencyCallAction ( ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.policy.impl.LockPatternKeyguardView.ACTION_EMERGENCY_DIAL ) ; intent.setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS ) ) ) ; getContext ( ) . startActivity ( intent ) ; }

Target:
public void takeEmergencyCallAction ( java.lang.String number ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.policy.impl.LockPatternKeyguardView.ACTION_EMERGENCY_DIAL ) ; intent.setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS ) ) ) ; if ( number != null ) { intent.setData ( android.net.Uri.parse ( ( "tel:" + number ) ) ) ; } getContext ( ) . startActivity ( intent ) ; }
Source:
public void testCarrierNetworkChange_roamingAfterNetworkChange ( ) { int strength = android.telephony.SignalStrength.SIGNAL_STRENGTH_GREAT ; setupDefaultSignal ( ) ; setLevel ( strength ) ; verifyLastMobileDataIndicators ( true , strength , com.android.systemui.statusbar.policy.DEFAULT_ICON , false ) ; setCarrierNetworkChange ( true ) ; verifyLastMobileDataIndicators ( true , com.android.systemui.statusbar.phone.SignalDrawable.getCarrierChangeState ( SignalStrength.NUM_SIGNAL_STRENGTH_BINS ) , 0 , false ) ; setGsmRoaming ( true ) ; verifyLastMobileDataIndicators ( true , com.android.systemui.statusbar.phone.SignalDrawable.getCarrierChangeState ( SignalStrength.NUM_SIGNAL_STRENGTH_BINS ) , 0 , false ) ; setCarrierNetworkChange ( false ) ; verifyLastMobileDataIndicators ( true , strength , com.android.systemui.statusbar.policy.DEFAULT_ICON , true ) ; }

Target:
public void testCarrierNetworkChange_roamingAfterNetworkChange ( ) { int strength = android.telephony.SignalStrength.SIGNAL_STRENGTH_GREAT ; setupDefaultSignal ( ) ; setLevel ( strength ) ; verifyLastMobileDataIndicators ( true , strength , com.android.systemui.statusbar.policy.DEFAULT_ICON , false ) ; setCarrierNetworkChange ( true ) ; verifyLastMobileDataIndicators ( true , com.android.settingslib.graph.SignalDrawable.getCarrierChangeState ( SignalStrength.NUM_SIGNAL_STRENGTH_BINS ) , 0 , false ) ; setGsmRoaming ( true ) ; verifyLastMobileDataIndicators ( true , com.android.settingslib.graph.SignalDrawable.getCarrierChangeState ( SignalStrength.NUM_SIGNAL_STRENGTH_BINS ) , 0 , false ) ; setCarrierNetworkChange ( false ) ; verifyLastMobileDataIndicators ( true , strength , com.android.systemui.statusbar.policy.DEFAULT_ICON , true ) ; }
Source:
private void removeReceiver ( ) { if ( com.android.bluetooth.map.BluetoothMapAppObserver.D ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapAppObserver.TAG , "removeReceiver()\n" ) ; mContext.unregisterReceiver ( mReceiver ) ; }

Target:
private void removeReceiver ( ) { if ( com.android.bluetooth.map.BluetoothMapAppObserver.D ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapAppObserver.TAG , "removeReceiver()\n" ) ; if ( mRegisteredReceiver ) { try { mRegisteredReceiver = false ; mContext.unregisterReceiver ( mReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.bluetooth.map.BluetoothMapAppObserver.TAG , "Unable to unregister mapAppObserver receiver" , e ) ; } } }
Source:
private void shutdownAndFreeSslNative ( ) throws java.io.IOException { try { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; org.conscrypt.NativeCrypto.SSL_shutdown ( sslNativePointer , org.conscrypt.Platform.getFileDescriptor ( socket ) , this ) ; } catch ( java.io.IOException ignored ) { } finally { free ( ) ; closeUnderlyingSocket ( ) ; } }

Target:
private void shutdownAndFreeSslNative ( ) throws java.io.IOException { try { org.conscrypt.Platform.blockGuardOnNetwork ( ) ; org.conscrypt.NativeCrypto.SSL_shutdown ( sslNativePointer , org.conscrypt.Platform.getFileDescriptor ( socket ) , this ) ; } catch ( java.io.IOException ignored ) { } finally { free ( ) ; closeUnderlyingSocket ( ) ; } }
Source:
private void addRemoteExtra ( com.android.sdklib.repository.NoPreviewRevision revision , java.lang.String vendor , java.lang.String path ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newExtra ( vendor , path , null , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }

Target:
private void addRemoteExtra ( com.android.sdklib.repository.NoPreviewRevision revision , com.android.sdklib.repository.descriptors.IdDisplay vendor , java.lang.String path , java.lang.String name ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newExtra ( vendor , path , name , null , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }
Source:
public static void main ( java.lang.String [ ] argArray ) throws java.io.IOException { com.android.dx.command.dexer.Main.Arguments arguments = new com.android.dx.command.dexer.Main.Arguments ( ) ; arguments.parse ( argArray ) ; int result = com.android.dx.command.dexer.Main.run ( arguments ) ; if ( result != 0 ) { java.lang.System.exit ( result ) ; } }

Target:
public static void main ( java.lang.String [ ] argArray ) throws java.io.IOException { com.android.dx.command.dexer.DxContext context = new com.android.dx.command.dexer.DxContext ( ) ; com.android.dx.command.dexer.Main.Arguments arguments = new com.android.dx.command.dexer.Main.Arguments ( ) ; arguments.parse ( argArray , context ) ; int result = new com.android.dx.command.dexer.Main ( context ) . runDx ( arguments ) ; if ( result != 0 ) { java.lang.System.exit ( result ) ; } }
Source:
private void asyncDelete ( final android.net.Uri uri , final java.lang.String selection , final java.lang.String [ ] selectionArgs ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.LogTag.debug ( "asyncDelete %s where %s" , uri , selection ) ; } new java.lang.Thread ( new java.lang.Runnable ( ) { public void run ( ) { android.database.sqlite.SqliteWrapper.delete ( mActivity , mContentResolver , uri , selection , selectionArgs ) ; } } ) . start ( ) ; }

Target:
private void asyncDelete ( final android.net.Uri uri , final java.lang.String selection , final java.lang.String [ ] selectionArgs ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.LogTag.debug ( "asyncDelete %s where %s" , uri , selection ) ; } new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { android.database.sqlite.SqliteWrapper.delete ( mActivity , mContentResolver , uri , selection , selectionArgs ) ; } } , "WorkingMessage.asyncDelete" ) . start ( ) ; }