auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_currencyFromLocale ( ) { java.text.NumberFormat nf = java.text.NumberFormat.getCurrencyInstance ( java.util.Locale.FRANCE ) ; assertEquals ( "50,00 €" , nf.format ( 50 ) ) ; nf = java.text.NumberFormat.getCurrencyInstance ( java.util.Locale.UK ) ; assertEquals ( "£50.00" , nf.format ( 50 ) ) ; nf = java.text.NumberFormat.getCurrencyInstance ( java.util.Locale.CHINA ) ; assertEquals ( "￥ 50.00" , nf.format ( 50 ) ) ; }

Target:
public void test_currencyFromLocale ( ) { java.text.NumberFormat nf = java.text.NumberFormat.getCurrencyInstance ( java.util.Locale.FRANCE ) ; assertEquals ( "50,00 €" , nf.format ( 50 ) ) ; nf = java.text.NumberFormat.getCurrencyInstance ( java.util.Locale.UK ) ; assertEquals ( "£50.00" , nf.format ( 50 ) ) ; }
Source:
private java.util.Map < java.lang.String , java.lang.String > getAttributeInjectionMap ( int versionCode , @ com.android.annotations.Nullable java.lang.String versionName , int minSdkVersion , int targetSdkVersion ) { java.util.Map < java.lang.String , java.lang.String > attributeInjection = com.google.common.collect.Maps.newHashMap ( ) ; if ( versionCode != ( - 1 ) ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionCode" , java.lang.Integer.toString ( versionCode ) ) ; } if ( versionName != null ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionName" , versionName ) ; } if ( minSdkVersion != ( - 1 ) ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android minSdkVersion" , java.lang.Integer.toString ( minSdkVersion ) ) ; } if ( targetSdkVersion != ( - 1 ) ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android targetSdkVersion" , java.lang.Integer.toString ( targetSdkVersion ) ) ; } return attributeInjection ; }

Target:
private static java.util.Map < java.lang.String , java.lang.String > getAttributeInjectionMap ( int versionCode , @ com.android.annotations.Nullable java.lang.String versionName , @ com.android.annotations.Nullable java.lang.String minSdkVersion , int targetSdkVersion ) { java.util.Map < java.lang.String , java.lang.String > attributeInjection = com.google.common.collect.Maps.newHashMap ( ) ; if ( versionCode != ( - 1 ) ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionCode" , java.lang.Integer.toString ( versionCode ) ) ; } if ( versionName != null ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionName" , versionName ) ; } if ( minSdkVersion != null ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android minSdkVersion" , minSdkVersion ) ; } if ( targetSdkVersion != ( - 1 ) ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android targetSdkVersion" , java.lang.Integer.toString ( targetSdkVersion ) ) ; } return attributeInjection ; }
Source:
public java.lang.String getFolderSegment ( com.android.sdklib.IAndroidTarget target ) { if ( target == null ) { return com.android.ide.eclipse.adt.internal.resources.configurations.VersionQualifier.getFolderSegment ( mVersion ) ; } com.android.sdklib.AndroidVersion version = target.getVersion ( ) ; if ( ( version.getApiLevel ( ) ) >= 3 ) { return com.android.ide.eclipse.adt.internal.resources.configurations.VersionQualifier.getFolderSegment ( mVersion ) ; } return "" ; }

Target:
public java.lang.String getFolderSegment ( ) { return com.android.ide.eclipse.adt.internal.resources.configurations.VersionQualifier.getFolderSegment ( mVersion ) ; }
Source:
public void addSignalCallback ( com.android.systemui.statusbar.policy.SignalCallback cb ) { mCallbackHandler.setListening ( cb , true ) ; mCallbackHandler.setSubs ( mCurrentSubscriptions ) ; mCallbackHandler.setIsAirplaneMode ( new com.android.systemui.statusbar.policy.IconState ( mAirplaneMode , TelephonyIcons.FLIGHT_MODE_ICON , R.string.accessibility_airplane_mode , mContext ) ) ; mCallbackHandler.setNoSims ( mHasNoSims ) ; mWifiSignalController.notifyListeners ( ) ; mEthernetSignalController.notifyListeners ( ) ; for ( com.android.systemui.statusbar.policy.MobileSignalController mobileSignalController : mMobileSignalControllers.values ( ) ) { mobileSignalController.notifyListeners ( ) ; } }

Target:
public void addSignalCallback ( com.android.systemui.statusbar.policy.SignalCallback cb ) { cb.setSubs ( mCurrentSubscriptions ) ; cb.setIsAirplaneMode ( new com.android.systemui.statusbar.policy.IconState ( mAirplaneMode , TelephonyIcons.FLIGHT_MODE_ICON , R.string.accessibility_airplane_mode , mContext ) ) ; cb.setNoSims ( mHasNoSims ) ; mWifiSignalController.notifyListeners ( cb ) ; mEthernetSignalController.notifyListeners ( cb ) ; for ( com.android.systemui.statusbar.policy.MobileSignalController mobileSignalController : mMobileSignalControllers.values ( ) ) { mobileSignalController.notifyListeners ( cb ) ; } mCallbackHandler.setListening ( cb , true ) ; }
Source:
private void performHideDialpadFragment ( ) { android.support.v4.app.FragmentManager fragmentManager = inCallActivity.getDialpadFragmentManager ( ) ; if ( fragmentManager == null ) { com.android.dialer.common.LogUtil.e ( "InCallActivityCommon.performHideDialpadFragment" , "child fragment manager is null" ) ; return ; } android.support.v4.app.Fragment fragment = fragmentManager.findFragmentByTag ( com.android.incallui.InCallActivityCommon.TAG_DIALPAD_FRAGMENT ) ; if ( fragment != null ) { android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction ( ) ; transaction.hide ( fragment ) ; transaction.commitAllowingStateLoss ( ) ; fragmentManager.executePendingTransactions ( ) ; } updateNavigationBar ( false ) ; }

Target:
private void performHideDialpadFragment ( ) { android.support.v4.app.FragmentManager fragmentManager = inCallActivity.getDialpadFragmentManager ( ) ; if ( fragmentManager == null ) { com.android.dialer.common.LogUtil.e ( "InCallActivityCommon.performHideDialpadFragment" , "child fragment manager is null" ) ; return ; } android.support.v4.app.Fragment fragment = fragmentManager.findFragmentByTag ( com.android.incallui.InCallActivityCommon.TAG_DIALPAD_FRAGMENT ) ; if ( fragment != null ) { android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction ( ) ; transaction.hide ( fragment ) ; transaction.commitAllowingStateLoss ( ) ; fragmentManager.executePendingTransactions ( ) ; } inCallActivity.updateNavigationBar ( false ) ; }
Source:
private java.lang.ref.FinalizerReference < ? > waitForFinalization ( ) { long startCount = java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ; sleepFor ( java.lang.Daemons.MAX_FINALIZE_NANOS ) ; if ( ( getNeedToWork ( ) ) && ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ) == startCount ) ) { java.lang.ref.FinalizerReference < ? > finalizing = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; sleepFor ( java.lang.Daemons.NANOS_PER_SECOND ) ; if ( ( getNeedToWork ( ) ) && ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ) == startCount ) ) { return finalizing ; } } return null ; }

Target:
private java.lang.Object waitForFinalization ( ) { long startCount = java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ; if ( ! ( sleepFor ( java.lang.Daemons.MAX_FINALIZE_NANOS ) ) ) { return null ; } if ( ( getNeedToWork ( ) ) && ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ) == startCount ) ) { java.lang.Object finalizing = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; sleepFor ( ( ( java.lang.Daemons.NANOS_PER_SECOND ) / 2 ) ) ; if ( ( getNeedToWork ( ) ) && ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.progressCounter.get ( ) ) == startCount ) ) { return finalizing ; } } return null ; }
Source:
public byte [ ] getFwMemoryDump ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getFwMemoryDump ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( com.android.server.wifi.WifiNative.getFwMemoryDumpNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) { byte [ ] fwMemoryDump = com.android.server.wifi.WifiNative.mFwMemoryDump ; com.android.server.wifi.WifiNative.mFwMemoryDump = null ; return fwMemoryDump ; } else { return null ; } } return null ; } } }

Target:
public byte [ ] getFwMemoryDump ( ) { return mWifiVendorHal.getFwMemoryDump ( ) ; }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { android.widget.Toast.makeText ( this , "Not yet implemented" , Toast.LENGTH_SHORT ) . show ( ) ; if ( ( item.getItemId ( ) ) == ( R.id.search ) ) { return true ; } else if ( ( item.getItemId ( ) ) == ( R.id.contacts ) ) { return true ; } else { return super . onOptionsItemSelected ( item ) ; } }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { android.widget.Toast.makeText ( this , "Not yet implemented" , Toast.LENGTH_SHORT ) . show ( ) ; if ( ( item.getItemId ( ) ) == ( R.id.search ) ) { return true ; } else { return super . onOptionsItemSelected ( item ) ; } }
Source:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action , boolean emulateStudio_1_0 ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return buildModel ( connection , action , emulateStudio_1_0 ) ; } finally { connection.close ( ) ; } }

Target:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action ) { return getAllModels ( action , false , null , null ) ; }
Source:
public com.android.jack.dx.rop.code.Rop getCmpOperatorForFloatDouble ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperator op , @ javax.annotation.Nonnull com.android.jack.dx.rop.type.Type type ) { assert ( type == ( com.android.jack.dx.rop.type.Type.FLOAT ) ) || ( type == ( com.android.jack.dx.rop.type.Type.DOUBLE ) ) ; switch ( op ) { case LTE : case LT : return com.android.jack.dx.rop.code.Rops.opCmpg ( type ) ; case GT : case GTE : case EQ : case NEQ : return com.android.jack.dx.rop.code.Rops.opCmpl ( type ) ; default : throw new java.lang.AssertionError ( ( ( "Operator " + op ) + " not yet supported into IfStmt." ) ) ; } }

Target:
public com.android.jack.dx.rop.code.Rop getCmpOperatorForFloatDouble ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JBinaryOperator op , @ javax.annotation.Nonnull com.android.jack.dx.rop.type.Type type ) { assert ( type == ( com.android.jack.dx.rop.type.Type.FLOAT ) ) || ( type == ( com.android.jack.dx.rop.type.Type.DOUBLE ) ) ; switch ( op ) { case LTE : case LT : return com.android.jack.dx.rop.code.Rops.opCmpg ( type ) ; case GT : case GTE : case EQ : case NEQ : return com.android.jack.dx.rop.code.Rops.opCmpl ( type ) ; default : throw new java.lang.AssertionError ( ( ( "Operator " + ( op.toString ( ) ) ) + " not yet supported into IfStmt." ) ) ; } }
Source:
public com.android.ims.ImsUtInterface getSupplementaryServiceConfiguration ( ) throws com.android.ims.ImsException { if ( ( ( mUt ) == null ) || ( ! ( mImsServiceProxy.isBinderAlive ( ) ) ) ) { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsUt iUt = mImsServiceProxy.getUtInterface ( ) ; if ( iUt == null ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , ImsReasonInfo.CODE_UT_NOT_SUPPORTED ) ; } mUt = new com.android.ims.ImsUt ( iUt ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } } return mUt ; }

Target:
public com.android.ims.ImsUtInterface getSupplementaryServiceConfiguration ( ) throws com.android.ims.ImsException { if ( ( ( mUt ) != null ) && ( mUt.isBinderAlive ( ) ) ) { return mUt ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsUt iUt = mImsServiceProxy.getUtInterface ( ) ; if ( iUt == null ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , ImsReasonInfo.CODE_UT_NOT_SUPPORTED ) ; } mUt = new com.android.ims.ImsUt ( iUt ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mUt ; }
Source:
public static java.io.DataInputStream readContent ( int fileId ) { try { int page ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.checkFileIsValid ( fileId ) ; page = com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentRecordId ( fileId ) ; if ( page == 0 ) return null ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.unlock ( ) ; } return com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentStorage ( ) . readStream ( page ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } }

Target:
public static java.io.DataInputStream readContent ( int fileId ) { try { int page ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.checkFileIsValid ( fileId ) ; page = com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentRecordId ( fileId ) ; if ( page == 0 ) return null ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.r.unlock ( ) ; } return com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentStorage ( ) . readStream ( page ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } }
Source:
private static boolean checkResult ( byte [ ] result , byte [ ] code ) { if ( ( ( ( ( result [ 0 ] ) != ( code [ 0 ] ) ) || ( ( result [ 1 ] ) != ( code [ 1 ] ) ) ) || ( ( result [ 2 ] ) != ( code [ 2 ] ) ) ) || ( ( result [ 3 ] ) != ( code [ 3 ] ) ) ) { return false ; } return true ; }

Target:
private static boolean checkResult ( byte [ ] result , byte [ ] code ) { return ! ( ( ( ( ( result [ 0 ] ) != ( code [ 0 ] ) ) || ( ( result [ 1 ] ) != ( code [ 1 ] ) ) ) || ( ( result [ 2 ] ) != ( code [ 2 ] ) ) ) || ( ( result [ 3 ] ) != ( code [ 3 ] ) ) ) ; }
Source:
protected void disconnect0 ( int family ) { if ( isClosed ( ) ) { return ; } java.net.InetAddress inetAddressUnspec = new java.net.InetAddress ( ) ; inetAddressUnspec.holder ( ) . family = android.system.OsConstants.AF_UNSPEC ; try { libcore.io.IoBridge.connect ( fd , inetAddressUnspec , 0 ) ; } catch ( java.net.SocketException ignored ) { } }

Target:
protected native void disconnect0 ( int family ) ;
Source:
private void syncTTYState ( int [ ] ttyArray ) { if ( com.android.phone.CallFeaturesSetting.DBG ) com.android.phone.CallFeaturesSetting.log ( ( "syncTTYState: Setting UI state consistent with TTY enable state of " + ( ( ttyArray [ 0 ] ) != 0 ? "ENABLED" : "DISABLED" ) ) ) ; this . mButtonTTY.setChecked ( ( ( ttyArray [ 0 ] ) != 0 ) ) ; android.content.Context context = this ; if ( ( ttyArray [ 0 ] ) == 1 ) { com.android.phone.CallFeaturesSetting.setStatusBarIcon ( context , true ) ; } else { com.android.phone.CallFeaturesSetting.setStatusBarIcon ( context , false ) ; } }

Target:
private void syncTTYState ( int [ ] ttyArray ) { if ( com.android.phone.CallFeaturesSetting.DBG ) com.android.phone.CallFeaturesSetting.log ( ( "syncTTYState: Setting UI state consistent with TTY enable state of " + ( ( ttyArray [ 0 ] ) != 0 ? "ENABLED" : "DISABLED" ) ) ) ; mButtonTTY.setChecked ( ( ( ttyArray [ 0 ] ) != 0 ) ) ; android.content.Context context = this ; if ( ( ttyArray [ 0 ] ) == 1 ) { com.android.phone.CallFeaturesSetting.setStatusBarIcon ( context , true ) ; } else { com.android.phone.CallFeaturesSetting.setStatusBarIcon ( context , false ) ; } }
Source:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "gregorian" , "gregorian" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }

Target:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "buddhist" , "buddhist" , "buddhist" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "buddhist" , "buddhist" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }
Source:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { assert currentCatchList.contains ( id ) ; currentCatchList.remove ( id ) ; } } }

Target:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { currentCatchList.remove ( id ) ; } } }
Source:
public void startHwDisconnectedPnoScan ( ) { createScannerWithHwPnoScanSupport ( ) ; com.android.server.wifi.WifiNative.PnoEventHandler pnoEventHandler = mock ( WifiNative.PnoEventHandler.class ) ; com.android.server.wifi.WifiNative.PnoSettings pnoSettings = createDummyPnoSettings ( false ) ; com.android.server.wifi.ScanResults scanResults = createDummyScanResults ( ) ; org.mockito.InOrder order = inOrder ( pnoEventHandler , mWifiNative ) ; startSuccessfulPnoScan ( null , pnoSettings , null , pnoEventHandler ) ; expectSuccessfulHwDisconnectedPnoScan ( order , pnoSettings , pnoEventHandler , scanResults ) ; verifyNoMoreInteractions ( pnoEventHandler ) ; }

Target:
public void startHwDisconnectedPnoScan ( ) { createScannerWithHwPnoScanSupport ( ) ; com.android.server.wifi.WifiNative.PnoEventHandler pnoEventHandler = mock ( WifiNative.PnoEventHandler.class ) ; com.android.server.wifi.WifiNative.PnoSettings pnoSettings = createDummyPnoSettings ( false ) ; com.android.server.wifi.ScanResults scanResults = createDummyScanResults ( false ) ; org.mockito.InOrder order = inOrder ( pnoEventHandler , mWifiNative ) ; startSuccessfulPnoScan ( null , pnoSettings , null , pnoEventHandler ) ; expectSuccessfulHwDisconnectedPnoScan ( order , pnoSettings , pnoEventHandler , scanResults ) ; verifyNoMoreInteractions ( pnoEventHandler ) ; }
Source:
static void setByte ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , byte value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void setByte ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , byte value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setIndeterminate ( true ) ; if ( ! ( indicator instanceof com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ) { return ; } ( ( com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ( indicator ) ) . addStateDelegate ( new com.intellij.openapi.progress.util.ProgressIndicatorBase ( ) { @ java.lang.Override public void cancel ( ) { assert ( uiFacade ) != null ; uiFacade.stop ( ) ; super . cancel ( ) ; } } ) ; loggedIn = state.logInWithLocalServer ( message ) ; }

Target:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setIndeterminate ( true ) ; if ( ! ( indicator instanceof com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ) { return ; } ( ( com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ( indicator ) ) . addStateDelegate ( new com.intellij.openapi.progress.util.ProgressIndicatorBase ( ) { @ java.lang.Override public void cancel ( ) { assert ( uiFacade ) != null ; uiFacade.stop ( ) ; super . cancel ( ) ; } } ) ; loggedIn = ( state != null ) && ( state.logInWithLocalServer ( message ) ) ; }
Source:
protected void doAdbReboot ( final java.lang.String into ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( getIDevice ( ) . isEmulator ( ) ) { com.android.tradefed.log.LogUtil.CLog.i ( "since emulator, performing shell stop & start instead of reboot" ) ; executeShellCommand ( "stop" ) ; executeShellCommand ( java.lang.String.format ( "setprop %s 0" , DeviceStateMonitor.BOOTCOMPLETE_PROP ) ) ; executeShellCommand ( "start" ) ; return ; } com.android.tradefed.device.NativeDevice.DeviceAction rebootAction = new com.android.tradefed.device.NativeDevice.DeviceAction ( ) { @ java.lang.Override public boolean run ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { getIDevice ( ) . reboot ( into ) ; return true ; } } ; performDeviceAction ( "reboot" , rebootAction , com.android.tradefed.device.NativeDevice.MAX_RETRY_ATTEMPTS ) ; }

Target:
protected void doAdbReboot ( final java.lang.String into ) throws com.android.tradefed.device.DeviceNotAvailableException { com.android.tradefed.device.NativeDevice.DeviceAction rebootAction = new com.android.tradefed.device.NativeDevice.DeviceAction ( ) { @ java.lang.Override public boolean run ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { getIDevice ( ) . reboot ( into ) ; return true ; } } ; performDeviceAction ( "reboot" , rebootAction , com.android.tradefed.device.NativeDevice.MAX_RETRY_ATTEMPTS ) ; }
Source:
private void parseDependencyFileFor ( org.eclipse.core.resources.IFile sourceFile ) { org.eclipse.core.resources.IFile depFile = getDependencyFileFor ( sourceFile ) ; java.io.File f = depFile.getLocation ( ) . toFile ( ) ; if ( f.exists ( ) ) { com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle bundle = getBundle ( sourceFile ) ; if ( bundle == null ) { bundle = new com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle ( sourceFile ) ; addBundle ( bundle ) ; } parseDependencyFile ( bundle , f ) ; } }

Target:
private boolean parseDependencyFileFor ( org.eclipse.core.resources.IFile sourceFile ) { org.eclipse.core.resources.IFile depFile = getDependencyFileFor ( sourceFile ) ; java.io.File f = depFile.getLocation ( ) . toFile ( ) ; if ( f.exists ( ) ) { com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle bundle = getBundle ( sourceFile ) ; if ( bundle == null ) { bundle = new com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle ( sourceFile ) ; addBundle ( bundle ) ; } parseDependencyFile ( bundle , f ) ; return true ; } return false ; }
Source:
public void onOpen ( android.database.sqlite.SQLiteDatabase db ) { try { db.execSQL ( ( ( ( ( "delete from " + ( com.android.emailcommon.provider.Account.TABLE_NAME ) ) + " WHERE " ) + ( com.android.emailcommon.provider.EmailContent.AccountColumns.DISPLAY_NAME ) ) + " ISNULL;" ) ) ; db.execSQL ( ( ( ( ( "delete from " + ( com.android.emailcommon.provider.HostAuth.TABLE_NAME ) ) + " WHERE " ) + ( com.android.emailcommon.provider.EmailContent.HostAuthColumns.PROTOCOL ) ) + " ISNULL;" ) ) ; } catch ( android.database.SQLException e ) { android.util.Log.w ( com.android.email.provider.DBHelper.TAG , ( "Exception cleaning EmailProvider.db" + e ) ) ; } }

Target:
public void onOpen ( android.database.sqlite.SQLiteDatabase db ) { }
Source:
public static void setChannelDataVersion ( android.content.Context context , int version ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , version ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , version ) . apply ( ) ; } }

Target:
public static synchronized void setChannelDataVersion ( android.content.Context context , int version ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , version ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , version ) . apply ( ) ; } }
Source:
android.bluetooth.BluetoothGattService getService ( android.bluetooth.BluetoothDevice device , java.util.UUID uuid , int instanceId , int type ) { for ( android.bluetooth.BluetoothGattService svc : mServices ) { if ( ( ( ( svc.getDevice ( ) . equals ( device ) ) && ( ( svc.getType ( ) ) == type ) ) && ( ( svc.getInstanceId ( ) ) == instanceId ) ) && ( svc.getUuid ( ) . equals ( uuid ) ) ) { return svc ; } } return null ; }

Target:
android.bluetooth.BluetoothGattService getService ( android.bluetooth.BluetoothDevice device , java.util.UUID uuid , int instanceId ) { for ( android.bluetooth.BluetoothGattService svc : mServices ) { if ( ( ( svc.getDevice ( ) . equals ( device ) ) && ( ( svc.getInstanceId ( ) ) == instanceId ) ) && ( svc.getUuid ( ) . equals ( uuid ) ) ) { return svc ; } } return null ; }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , 0 , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }
Source:
public void paintFeedback ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GCWrapper gCWrapper ) { if ( ( ( ( mTargetNode ) != null ) && ( ( mFeedback ) != null ) ) && ( mFeedback.requestPaint ) ) { mFeedback.requestPaint = false ; mCanvas.getRulesEngine ( ) . callDropFeedbackPaint ( gCWrapper , mTargetNode , mFeedback ) ; } }

Target:
public void paintFeedback ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GCWrapper gCWrapper ) { if ( ( ( ( mTargetNode ) != null ) && ( ( mFeedback ) != null ) ) && ( mFeedback.requestPaint ) ) { mCanvas.getRulesEngine ( ) . callDropFeedbackPaint ( gCWrapper , mTargetNode , mFeedback ) ; mFeedback.requestPaint = false ; } }
Source:
private boolean checkConfigOverridePermission ( int uid ) { try { int permission = mFacade.checkUidPermission ( android.Manifest.permission.OVERRIDE_WIFI_CONFIG , uid ) ; return permission == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Error checking for permission " + e ) ) ; return false ; } }

Target:
public boolean checkConfigOverridePermission ( int uid ) { try { int permission = mFacade.checkUidPermission ( android.Manifest.permission.OVERRIDE_WIFI_CONFIG , uid ) ; return permission == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Error checking for permission " + e ) ) ; return false ; } }
Source:
public java.lang.Boolean bluetoothHidDeviceSendReport ( @ 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 = "descriptor" , description = "Descriptor of the report" ) java.lang.Integer id , @ 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.BluetoothHidDeviceFacade.sHidDeviceProfile.getConnectedDevices ( ) , deviceID ) ; byte [ ] reportByteArray = report.getBytes ( ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.sendReport ( device , id , reportByteArray ) ; }

Target:
public java.lang.Boolean bluetoothHidDeviceSendReport ( @ 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 = "descriptor" , description = "Descriptor of the report" ) java.lang.Integer id , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { if ( ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile ) == null ) { return false ; } android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.getConnectedDevices ( ) , deviceID ) ; byte [ ] reportByteArray = report.getBytes ( ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.sendReport ( device , id , reportByteArray ) ; }
Source:
static com.android.dialer.calllog.datasources.DataSources provideCallLogDataSources ( com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource systemCallLogDataSource , com.android.dialer.calllog.datasources.contacts.ContactsDataSource contactsDataSource , com.android.dialer.calllog.datasources.phonelookup.PhoneLookupDataSource phoneLookupDataSource ) { com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > allDataSources = com.google.common.collect.ImmutableList.of ( systemCallLogDataSource , contactsDataSource , phoneLookupDataSource ) ; return new com.android.dialer.calllog.datasources.DataSources ( ) { @ java.lang.Override public com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource getSystemCallLogDataSource ( ) { return systemCallLogDataSource ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesIncludingSystemCallLog ( ) { return allDataSources ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesExcludingSystemCallLog ( ) { return allDataSources.subList ( 1 , allDataSources.size ( ) ) ; } } ; }

Target:
static com.android.dialer.calllog.datasources.DataSources provideCallLogDataSources ( com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource systemCallLogDataSource , com.android.dialer.calllog.datasources.phonelookup.PhoneLookupDataSource phoneLookupDataSource ) { com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > allDataSources = com.google.common.collect.ImmutableList.of ( systemCallLogDataSource , phoneLookupDataSource ) ; return new com.android.dialer.calllog.datasources.DataSources ( ) { @ java.lang.Override public com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource getSystemCallLogDataSource ( ) { return systemCallLogDataSource ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesIncludingSystemCallLog ( ) { return allDataSources ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesExcludingSystemCallLog ( ) { return allDataSources.subList ( 1 , allDataSources.size ( ) ) ; } } ; }
Source:
public java.util.List < com.android.internal.telephony.SmsRawData > getAllMessagesFromIccEf ( ) { if ( com.android.internal.telephony.gsm.SimSmsInterfaceManager.DBG ) log ( "getAllMessagesFromEF" ) ; android.content.Context context = mPhone.getContext ( ) ; context.enforceCallingPermission ( "android.permission.RECEIVE_SMS" , "Reading messages from SIM" ) ; synchronized ( mLock ) { android.os.Message response = mHandler.obtainMessage ( com.android.internal.telephony.gsm.SimSmsInterfaceManager.EVENT_LOAD_DONE ) ; ( ( com.android.internal.telephony.gsm.SIMFileHandler ) ( mPhone.getIccFileHandler ( ) ) ) . loadEFLinearFixedAll ( IccConstants.EF_SMS , response ) ; try { mLock.wait ( ) ; } catch ( java.lang.InterruptedException e ) { log ( "interrupted while trying to load from the SIM" ) ; } } return mSms ; }

Target:
public java.util.List < com.android.internal.telephony.SmsRawData > getAllMessagesFromIccEf ( ) { if ( com.android.internal.telephony.gsm.SimSmsInterfaceManager.DBG ) log ( "getAllMessagesFromEF" ) ; android.content.Context context = mPhone.getContext ( ) ; context.enforceCallingPermission ( "android.permission.RECEIVE_SMS" , "Reading messages from SIM" ) ; synchronized ( mLock ) { android.os.Message response = mHandler.obtainMessage ( com.android.internal.telephony.gsm.SimSmsInterfaceManager.EVENT_LOAD_DONE ) ; mPhone.getIccFileHandler ( ) . loadEFLinearFixedAll ( IccConstants.EF_SMS , response ) ; try { mLock.wait ( ) ; } catch ( java.lang.InterruptedException e ) { log ( "interrupted while trying to load from the SIM" ) ; } } return mSms ; }
Source:
private final int indexOfTokenLocked ( android.os.IBinder token ) { int count = mHistory.size ( ) ; com.android.server.am.HistoryRecord r = null ; int index = - 1 ; for ( int i = count - 1 ; i >= 0 ; i -- ) { java.lang.Object o = mHistory.get ( i ) ; if ( o == token ) { r = ( ( com.android.server.am.HistoryRecord ) ( o ) ) ; index = i ; break ; } } return index ; }

Target:
private final int indexOfTokenLocked ( android.os.IBinder token ) { int count = mHistory.size ( ) ; int index = - 1 ; for ( int i = count - 1 ; i >= 0 ; i -- ) { java.lang.Object o = mHistory.get ( i ) ; if ( o == token ) { index = i ; break ; } } return index ; }
Source:
public void testGetCoreInterfaceRewritingTarget_abstractMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Collection" ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEINTERFACE , "java/util/Collection" , "size" , "()I" , true ) ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEVIRTUAL , "java/util/ArrayList" , "size" , "()I" , false ) ) . isNull ( ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_abstractMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Collection" ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEINTERFACE , "java/util/Collection" , "size" , "()I" , true ) ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEVIRTUAL , "java/util/ArrayList" , "size" , "()I" , false ) ) . isNull ( ) ; }
Source:
public void sendInputEvent ( android.view.InputEvent e , java.lang.Object token , boolean predispatch , android.view.InputQueue.FinishedInputEventCallback callback ) { android.view.InputQueue.ActiveInputEvent event = obtainActiveInputEvent ( token , callback ) ; int id ; if ( e instanceof android.view.KeyEvent ) { id = android.view.InputQueue.nativeSendKeyEvent ( mPtr , ( ( android.view.KeyEvent ) ( e ) ) , predispatch ) ; } else { id = android.view.InputQueue.nativeSendMotionEvent ( mPtr , ( ( android.view.MotionEvent ) ( e ) ) ) ; } mActiveEventArray.put ( id , event ) ; }

Target:
public void sendInputEvent ( android.view.InputEvent e , java.lang.Object token , boolean predispatch , android.view.InputQueue.FinishedInputEventCallback callback ) { android.view.InputQueue.ActiveInputEvent event = obtainActiveInputEvent ( token , callback ) ; long id ; if ( e instanceof android.view.KeyEvent ) { id = android.view.InputQueue.nativeSendKeyEvent ( mPtr , ( ( android.view.KeyEvent ) ( e ) ) , predispatch ) ; } else { id = android.view.InputQueue.nativeSendMotionEvent ( mPtr , ( ( android.view.MotionEvent ) ( e ) ) ) ; } mActiveEventArray.put ( id , event ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_16 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public org.w3c.dom.Document getProjectDocument ( ) throws java.io.IOException { if ( ( mProjectDoc ) == null ) { java.io.File file = new java.io.File ( mDir , com.android.tools.gradle.eclipse.GradleImport.ECLIPSE_DOT_PROJECT ) ; if ( file.exists ( ) ) { mProjectDoc = mImporter.getXmlDocument ( file , false ) ; } else { mImporter.reportError ( this , mDir , ( "No Eclipse .project file found in " + ( mDir.getPath ( ) ) ) ) ; return null ; } } return mProjectDoc ; }

Target:
private org.w3c.dom.Document getProjectDocument ( ) throws java.io.IOException { if ( ( mProjectDoc ) == null ) { java.io.File file = new java.io.File ( mDir , com.android.tools.gradle.eclipse.GradleImport.ECLIPSE_DOT_PROJECT ) ; if ( file.exists ( ) ) { mProjectDoc = mImporter.getXmlDocument ( file , false ) ; } else { mImporter.reportError ( this , mDir , ( "No Eclipse .project file found in " + ( mDir.getPath ( ) ) ) ) ; return null ; } } return mProjectDoc ; }
Source:
public void reveal ( java.lang.String applicationName , java.lang.String className , int line ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : mSourceRevealers ) { if ( revealer.reveal ( applicationName , className , line ) ) { break ; } } }

Target:
public void reveal ( java.lang.String applicationName , java.lang.String className , int line ) { if ( ( mSourceRevealers ) != null ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : mSourceRevealers ) { if ( revealer.reveal ( applicationName , className , line ) ) { break ; } } } }
Source:
private static java.lang.String generateModuleResultSignature ( com.android.compatibility.common.util.IModuleResult module , java.lang.String buildFingerprint ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( buildFingerprint ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.getId ( ) ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.isDone ( ) ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.getNotExecuted ( ) ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.countResults ( TestStatus.FAIL ) ) ; return sb.toString ( ) ; }

Target:
private static java.lang.String generateModuleResultSignature ( com.android.compatibility.common.util.IModuleResult module , java.lang.String buildFingerprint ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( buildFingerprint ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.getId ( ) ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.isDone ( ) ) . append ( com.android.compatibility.common.util.ChecksumReporter.SEPARATOR ) . append ( module.countResults ( TestStatus.FAIL ) ) ; return sb.toString ( ) ; }
Source:
public static android.telecom.PhoneAccountHandle getOtherAccount ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle currentAccount ) { if ( currentAccount == null ) { return null ; } android.telecom.TelecomManager telecomManager = context.getSystemService ( android.telecom.TelecomManager.class ) ; for ( android.telecom.PhoneAccountHandle phoneAccountHandle : telecomManager.getCallCapablePhoneAccounts ( ) ) { android.telecom.PhoneAccount phoneAccount = telecomManager.getPhoneAccount ( phoneAccountHandle ) ; if ( ( phoneAccount.hasCapabilities ( PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION ) ) && ( ! ( phoneAccountHandle.equals ( currentAccount ) ) ) ) { return phoneAccountHandle ; } } return null ; }

Target:
public static android.telecom.PhoneAccountHandle getOtherAccount ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle currentAccount ) { if ( currentAccount == null ) { return null ; } android.telecom.TelecomManager telecomManager = context.getSystemService ( android.telecom.TelecomManager.class ) ; for ( android.telecom.PhoneAccountHandle phoneAccountHandle : telecomManager.getCallCapablePhoneAccounts ( ) ) { android.telecom.PhoneAccount phoneAccount = telecomManager.getPhoneAccount ( phoneAccountHandle ) ; if ( phoneAccount == null ) { continue ; } if ( ( phoneAccount.hasCapabilities ( PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION ) ) && ( ! ( phoneAccountHandle.equals ( currentAccount ) ) ) ) { return phoneAccountHandle ; } } return null ; }
Source:
public boolean installPacketFilter ( byte [ ] filter ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.installPacketFilter ( filter ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.installPacketFilterNative ( com.android.server.wifi.WifiNative.sWlan0Index , filter ) ; } else { return false ; } } }

Target:
public boolean installPacketFilter ( byte [ ] filter ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.installPacketFilterNative ( com.android.server.wifi.WifiNative.sWlan0Index , filter ) ; } else { return false ; } } }
Source:
public < T > T [ ] toArray ( T [ ] a ) { if ( ( a.length ) < ( size ) ) return ( ( T [ ] ) ( java.util.Arrays.copyOf ( queue , size , a.getClass ( ) ) ) ) ; java.lang.System.arraycopy ( queue , 0 , a , 0 , size ) ; if ( ( a.length ) > ( size ) ) a [ size ] = null ; return a ; }

Target:
public < T > T [ ] toArray ( T [ ] a ) { final int size = this . size ; if ( ( a.length ) < size ) return ( ( T [ ] ) ( java.util.Arrays.copyOf ( queue , size , a.getClass ( ) ) ) ) ; java.lang.System.arraycopy ( queue , 0 , a , 0 , size ) ; if ( ( a.length ) > size ) a [ size ] = null ; return a ; }
Source:
private boolean isDayFirst ( ) { java.lang.String value = Settings.System.getString ( mContext.getContentResolver ( ) , Settings.System.DATE_FORMAT ) ; if ( value == null ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( mContext.getResources ( ) . getConfiguration ( ) . locale ) ; value = d.shortDateFormat4 ; } return ( value.indexOf ( 'M' ) ) > ( value.indexOf ( 'd' ) ) ; }

Target:
private boolean isDayFirst ( ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( mContext.getResources ( ) . getConfiguration ( ) . locale ) ; java.lang.String value = d.shortDateFormat4 ; return ( value.indexOf ( 'M' ) ) > ( value.indexOf ( 'd' ) ) ; }
Source:
public void test_isJavaLetterOrDigitC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaLetterOrDigit ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaLetterOrDigit ( '$' ) ) ; assertTrue ( "digit returned false" , java.lang.Character.isJavaLetterOrDigit ( '9' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaLetterOrDigit ( '_' ) ) ; assertTrue ( "semi returned true" , ( ! ( java.lang.Character.isJavaLetterOrDigit ( ';' ) ) ) ) ; }

Target:
public void test_isJavaLetterOrDigitC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaLetterOrDigit ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaLetterOrDigit ( '$' ) ) ; assertTrue ( "digit returned false" , java.lang.Character.isJavaLetterOrDigit ( '9' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaLetterOrDigit ( '_' ) ) ; assertFalse ( "semi returned true" , java.lang.Character.isJavaLetterOrDigit ( ';' ) ) ; }