auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.util.Properties readInfo ( java.io.File info ) { if ( info.exists ( ) ) { java.util.Properties props = new java.util.Properties ( ) ; java.io.InputStream is = null ; try { is = new java.io.FileInputStream ( info ) ; props.load ( is ) ; return props ; } catch ( java.io.IOException ignore ) { } finally { if ( is != null ) { try { is.close ( ) ; } catch ( java.io.IOException ignore ) { } } } } return null ; }

Target:
protected com.android.utils.Pair < java.io.InputStream , org.apache.http.HttpResponse > openUrl ( @ com.android.annotations.NonNull java.lang.String url , boolean needsMarkResetSupport , @ com.android.annotations.NonNull com.android.sdklib.internal.repository.ITaskMonitor monitor , @ com.android.annotations.Nullable org.apache.http.Header [ ] headers ) throws com.android.sdklib.internal.repository.CanceledByUserException , java.io.IOException { return com.android.sdklib.internal.repository.UrlOpener.openUrl ( url , needsMarkResetSupport , monitor , headers ) ; }
Source:
public boolean syncUid ( int sourceUid , int targetUid ) { try { mError = mBinder.sync_uid ( sourceUid , targetUid ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public java.lang.String [ ] saw ( java.lang.String prefix , int uid ) { return list ( prefix , uid ) ; }
Source:
void makeWindowFreezingScreenIfNeededLocked ( com.android.server.wm.WindowState w ) { if ( ! ( okToDisplay ( ) ) ) { if ( com.android.server.wm.WindowManagerService.DEBUG_ORIENTATION ) android.util.Slog.v ( com.android.server.wm.WindowManagerService.TAG , ( "Changing surface while display frozen: " + w ) ) ; w.mOrientationChanging = true ; mInnerFields.mOrientationChangeComplete = false ; if ( ! ( mWindowsFreezingScreen ) ) { mWindowsFreezingScreen = true ; mH.removeMessages ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT ) ; mH.sendMessageDelayed ( mH.obtainMessage ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT ) , com.android.server.wm.WindowManagerService.WINDOW_FREEZE_TIMEOUT_DURATION ) ; } } }

Target:
void makeWindowFreezingScreenIfNeededLocked ( com.android.server.wm.WindowState w ) { if ( ! ( okToDisplay ( ) ) ) { if ( com.android.server.wm.WindowManagerService.DEBUG_ORIENTATION ) android.util.Slog.v ( com.android.server.wm.WindowManagerService.TAG , ( "Changing surface while display frozen: " + w ) ) ; w.mOrientationChanging = true ; mInnerFields.mOrientationChangeComplete = false ; if ( ! ( mWindowsFreezingScreen ) ) { mWindowsFreezingScreen = true ; mH.removeMessages ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT ) ; mH.sendEmptyMessageDelayed ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT , com.android.server.wm.WindowManagerService.WINDOW_FREEZE_TIMEOUT_DURATION ) ; } } }
Source:
public int getVoiceMessageCount ( ) { int voicemailCount = mIccRecords.getVoiceMessageCount ( ) ; if ( voicemailCount == 0 ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; voicemailCount = sp.getInt ( com.android.internal.telephony.cdma.CDMAPhone.VM_COUNT_CDMA , 0 ) ; } return voicemailCount ; }

Target:
public int getVoiceMessageCount ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; int voicemailCount = ( r != null ) ? r.getVoiceMessageCount ( ) : 0 ; if ( voicemailCount == 0 ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; voicemailCount = sp.getInt ( com.android.internal.telephony.cdma.CDMAPhone.VM_COUNT_CDMA , 0 ) ; } return voicemailCount ; }
Source:
synchronized void nAllocationResize1D ( int id , int dimX ) { validate ( ) ; rsnAllocationResize1D ( mContext , id , dimX ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { if ( versionName == null ) { if ( ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { versionName = getVersionNameFromManifest ( ) ; } else { versionName = "" ; } } versionName = versionName + versionSuffix ; } return versionName ; }

Target:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { if ( versionName == null ) { if ( ! ( mType.isForTesting ( ) ) ) { versionName = getVersionNameFromManifest ( ) ; } else { versionName = "" ; } } versionName = versionName + versionSuffix ; } return versionName ; }
Source:
public int getSupportedFeatureSet ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "Failing getSupportedFeatureset because HAL isn't started" ) ; return 0 ; } } }

Target:
public int getSupportedFeatureSet ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getSupportedFeatureSet ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "Failing getSupportedFeatureset because HAL isn't started" ) ; return 0 ; } } } }
Source:
private static void test_String_charAtExc ( ) { java.lang.String testStr = "Now is the time" ; try { testStr.charAt ( ( - 1 ) ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.StringIndexOutOfBoundsException expected ) { } try { testStr.charAt ( 80 ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.StringIndexOutOfBoundsException expected ) { } java.lang.String strNull = null ; try { strNull.charAt ( 0 ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public static void test_String_charAt ( ) { java.lang.String testStr = "Now is the time to test some stuff" ; junit.framework.Assert.assertEquals ( ( ( testStr.length ( ) ) - 1 ) , 33 ) ; junit.framework.Assert.assertEquals ( 'f' , testStr.charAt ( 33 ) ) ; Main.test_String_charAt ( testStr , 'N' , 'o' , ' ' , 'f' ) ; Main.test_String_charAt ( testStr.substring ( 3 , 15 ) , ' ' , 'i' , 'm' , 'e' ) ; }
Source:
static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getAlternateFormatsForCountry ( int countryCallingCode ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.countryCodeSet.contains ( countryCallingCode ) ) ) { return null ; } synchronized ( com.google.i18n.phonenumbers.MetadataManager.callingCodeToAlternateFormatsMap ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.callingCodeToAlternateFormatsMap.containsKey ( countryCallingCode ) ) ) { com.google.i18n.phonenumbers.MetadataManager.loadAlternateFormatsMetadataFromFile ( countryCallingCode ) ; } } return com.google.i18n.phonenumbers.MetadataManager.callingCodeToAlternateFormatsMap.get ( countryCallingCode ) ; }

Target:
com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata get ( int countryCallingCode ) { return countryCallingCodeToMetadata.get ( countryCallingCode ) ; }
Source:
public com.android.dx.ssa.RegisterSpecList getSources ( ) { if ( ( sources ) != null ) { return sources ; } if ( ( operands.size ( ) ) == 0 ) { return RegisterSpecList.EMPTY ; } int szSources = operands.size ( ) ; sources = new com.android.dx.ssa.RegisterSpecList ( szSources ) ; for ( int i = 0 ; i < szSources ; i ++ ) { com.android.dx.ssa.PhiInsn.Operand o = operands.get ( i ) ; sources.set ( i , o.regSpec ) ; } sources.setImmutable ( ) ; return sources ; }

Target:
public com.android.dx.rop.code.RegisterSpecList getSources ( ) { if ( ( sources ) != null ) { return sources ; } if ( ( operands.size ( ) ) == 0 ) { return com.android.dx.rop.code.RegisterSpecList.EMPTY ; } int szSources = operands.size ( ) ; sources = new com.android.dx.rop.code.RegisterSpecList ( szSources ) ; for ( int i = 0 ; i < szSources ; i ++ ) { com.android.dx.ssa.PhiInsn.Operand o = operands.get ( i ) ; sources.set ( i , o.regSpec ) ; } sources.setImmutable ( ) ; return sources ; }
Source:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) return true ; if ( ! ( other instanceof sun.security.x509.KeyIdentifier ) ) return false ; return java.util.Arrays.equals ( octetString , ( ( sun.security.x509.KeyIdentifier ) ( other ) ) . getIdentifier ( ) ) ; }

Target:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) return true ; if ( ! ( other instanceof sun.security.x509.KeyIdentifier ) ) return false ; byte [ ] otherString = ( ( sun.security.x509.KeyIdentifier ) ( other ) ) . octetString ; return java.util.Arrays.equals ( octetString , otherString ) ; }
Source:
public com.android.sdklib.BuildToolInfo getBuildTools ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { com.android.sdklib.repositoryv2.AndroidSdkHandler sdk = getSdk ( ) ; return sdk != null ? sdk.getLatestBuildTool ( getRepositoryLogger ( ) ) : null ; }

Target:
public com.android.sdklib.BuildToolInfo getBuildTools ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { com.android.sdklib.repositoryv2.AndroidSdkHandler sdk = getSdk ( ) ; if ( sdk != null ) { com.android.sdklib.IAndroidTarget compileTarget = getCompileTarget ( project ) ; if ( compileTarget != null ) { return compileTarget.getBuildToolInfo ( ) ; } return sdk.getLatestBuildTool ( getRepositoryLogger ( ) ) ; } return null ; }
Source:
public void testListIterator1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.listIterator ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAddAll2_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.addAll ( ( ( list.size ( ) ) + 1 ) , new java.util.LinkedList ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
private void setImageDescriptor ( ) { org.eclipse.jface.resource.ImageDescriptor desc = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getImageDescriptor ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.PROJECT_LOGO_LARGE ) ; setDefaultPageImageDescriptor ( desc ) ; }

Target:
private void addProjectInfo ( java.util.Map < java.lang.String , java.lang.Object > parameters ) { parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_PACKAGE_NAME , mValues.packageName ) ; parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_APP_TITLE , mValues.applicationName ) ; parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_MIN_API , mValues.minSdk ) ; parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_MIN_API_LEVEL , mValues.minSdkLevel ) ; parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_TARGET_API , 15 ) ; parameters.put ( com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.ATTR_COPY_ICONS , ( ! ( mValues.createIcon ) ) ) ; }
Source:
private void onInitiateDataPathResponseSuccessLocal ( android.os.Message command , int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( ( ( "onInitiateDataPathResponseSuccessLocal: command=" + command ) + ", ndpId=" ) + ndpId ) ) ; } mDataPathMgr.onDataPathInitiateSuccess ( ( ( java.lang.String ) ( command.obj ) ) , ndpId ) ; }

Target:
private void onInitiateDataPathResponseSuccessLocal ( android.os.Message command , int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( ( ( "onInitiateDataPathResponseSuccessLocal: command=" + command ) + ", ndpId=" ) + ndpId ) ) ; } mDataPathMgr.onDataPathInitiateSuccess ( ( ( android.net.wifi.aware.WifiAwareNetworkSpecifier ) ( command.obj ) ) , ndpId ) ; }
Source:
public java.lang.String getName ( ) { java.lang.String name = super . getName ( ) ; if ( name.equals ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT ) ) { mFragmentLayout = findFragmentLayout ( ) ; if ( ( mFragmentLayout ) != null ) { return com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_INCLUDE ; } } else { mFragmentLayout = null ; } return name ; }

Target:
public java.lang.String getName ( ) { java.lang.String name = super . getName ( ) ; if ( name.equals ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT ) ) { mFragmentLayout = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.getProperty ( this , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_FRAGMENT_LAYOUT ) ; if ( ( mFragmentLayout ) != null ) { return com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_INCLUDE ; } } else { mFragmentLayout = null ; } return name ; }
Source:
public E poll ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long nanos = unit.toNanos ( timeout ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; E result ; try { while ( ( ( result = extract ( ) ) == null ) && ( nanos > 0 ) ) nanos = notEmpty.awaitNanos ( nanos ) ; } finally { lock.unlock ( ) ; } return result ; }

Target:
public E poll ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long nanos = unit.toNanos ( timeout ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; E result ; try { while ( ( ( result = dequeue ( ) ) == null ) && ( nanos > 0 ) ) nanos = notEmpty.awaitNanos ( nanos ) ; } finally { lock.unlock ( ) ; } return result ; }
Source:
public void connectionForPatchRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.Patch request = new com.android.volley.mock.TestRequest.Patch ( ) ; assertEquals ( request.getMethod ( ) , Method.PATCH ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; assertEquals ( "PATCH" , mMockConnection.getRequestMethod ( ) ) ; assertFalse ( mMockConnection.getDoOutput ( ) ) ; }

Target:
public void executeRequestClosesConnection_noResponseBody ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockConnection.getResponseCode ( ) ) . thenReturn ( java.net.HttpURLConnection.HTTP_NO_CONTENT ) ; mHurlStack.executeRequest ( new com.android.volley.mock.TestRequest.Get ( ) , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) ) ; org.mockito.Mockito.verify ( mMockConnection ) . disconnect ( ) ; }
Source:
public void test_checkedSetSerializationCompatability ( ) throws java.lang.Exception { java.util.Set < java.lang.String > c = new java.util.HashSet < java.lang.String > ( ) ; assertFalse ( ( c instanceof java.util.SortedSet ) ) ; c = java.util.Collections.checkedSet ( c , java.lang.String.class ) ; tests.util.SerializationTester.assertCompabilityEquals ( c , "serialization/java/util/Collections_CheckedSet.golden.ser" ) ; }

Target:
public void test_checkedSetSerializationCompatability ( ) throws java.lang.Exception { java.util.Set < java.lang.String > c = new java.util.HashSet < java.lang.String > ( ) ; assertFalse ( ( c instanceof java.util.SortedSet ) ) ; c = java.util.Collections.checkedSet ( c , java.lang.String.class ) ; tests.util.SerializationTester.assertCompabilityEquals ( c , "serialization/tests/api/java/util/Collections_CheckedSet.golden.ser" ) ; }
Source:
public boolean equals ( java.lang.Object anObject ) { if ( anObject == ( this ) ) { return true ; } if ( ! ( anObject instanceof org.bouncycastle.math.ec.ECCurve.Fp ) ) { return false ; } org.bouncycastle.math.ec.ECCurve.Fp other = ( ( org.bouncycastle.math.ec.ECCurve.Fp ) ( anObject ) ) ; return ( ( this . q.equals ( other.q ) ) && ( a.equals ( other.a ) ) ) && ( b.equals ( other.b ) ) ; }

Target:
protected org.bouncycastle.math.ec.ECPoint createRawPoint ( org.bouncycastle.math.ec.ECFieldElement x , org.bouncycastle.math.ec.ECFieldElement y , org.bouncycastle.math.ec.ECFieldElement [ ] zs , boolean withCompression ) { return new org.bouncycastle.math.ec.ECPoint.Fp ( this , x , y , zs , withCompression ) ; }
Source:
private java.lang.String getRealCompilerFilter ( android.content.pm.ApplicationInfo info , java.lang.String targetCompilerFilter , boolean isUsedByOtherApps ) { int flags = info.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && isUsedByOtherApps ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } return targetCompilerFilter ; }

Target:
private java.lang.String getRealCompilerFilter ( android.content.pm.ApplicationInfo info , java.lang.String targetCompilerFilter , boolean isUsedByOtherApps ) { int flags = info.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return dalvik.system.DexFile.getSafeModeCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && isUsedByOtherApps ) { return dalvik.system.DexFile.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } return targetCompilerFilter ; }
Source:
public ActivityManager.TaskThumbnail getTaskThumbnail ( int id ) { synchronized ( this ) { enforceCallingPermission ( android.Manifest.permission.READ_FRAME_BUFFER , "getTaskThumbnail()" ) ; com.android.server.am.TaskRecord tr = mStackSupervisor.anyTaskForIdLocked ( id , false ) ; if ( tr != null ) { return tr.getTaskThumbnailLocked ( ) ; } } return null ; }

Target:
public ActivityManager.TaskThumbnail getTaskThumbnail ( int id ) { synchronized ( this ) { enforceCallingPermission ( android.Manifest.permission.READ_FRAME_BUFFER , "getTaskThumbnail()" ) ; final com.android.server.am.TaskRecord tr = mStackSupervisor.anyTaskForIdLocked ( id , ( ! ( com.android.server.am.ActivityStackSupervisor.RESTORE_FROM_RECENTS ) ) , StackId.INVALID_STACK_ID ) ; if ( tr != null ) { return tr.getTaskThumbnailLocked ( ) ; } } return null ; }
Source:
public void testGetRestrictBackgroundStatus_whitelisted ( ) throws java.lang.Exception { if ( ! ( isSupported ( ) ) ) return ; setRestrictBackground ( true ) ; assertRestrictBackgroundChangedReceived ( 1 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; addRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 2 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_WHITELISTED ) ; removeRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 3 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; assertsForegroundAlwaysHasNetworkAccess ( ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; }

Target:
public void testGetRestrictBackgroundStatus_disabled ( ) throws java.lang.Exception { if ( ! ( isSupported ( ) ) ) return ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; addRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 0 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; assertsForegroundAlwaysHasNetworkAccess ( ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; }
Source:
public void registerBuildTypeSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.GradleBuildType buildType , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( "Artifact with name $name is not yet registered. Use registerArtifactType()" ) ; } extraBuildTypeSourceProviders.put ( buildType.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }

Target:
public void registerProductFlavorSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.CoreProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraProductFlavorSourceProviders.put ( productFlavor.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }
Source:
public java.lang.Boolean bluetoothHspConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "device" , description = "Name or MAC address of a bluetooth device." ) java.lang.String device ) throws java.lang.Exception { if ( ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHspFacade.sHspProfile ) == null ) return false ; android.bluetooth.BluetoothDevice mDevice = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( BluetoothFacade.DiscoveredDevices , device ) ; com.googlecode.android_scripting.Log.d ( ( "Connecting to device " + ( mDevice.getAliasName ( ) ) ) ) ; return hspConnect ( mDevice ) ; }

Target:
public java.lang.Boolean bluetoothHspConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "device" , description = "Name or MAC address of a bluetooth device." ) java.lang.String device ) throws java.lang.Exception { if ( ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHspFacade.sHspProfile ) == null ) return false ; android.bluetooth.BluetoothDevice mDevice = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( mBluetoothAdapter.getBondedDevices ( ) , device ) ; com.googlecode.android_scripting.Log.d ( ( "Connecting to device " + ( mDevice.getAliasName ( ) ) ) ) ; return hspConnect ( mDevice ) ; }
Source:
public void testDoNothing ( ) { com.android.manifmerger.Actions actions = mActionRecorderBuilder.build ( ) ; actions.log ( mLoggerMock ) ; org.mockito.Mockito.verify ( mLoggerMock ) . info ( Actions.HEADER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mLoggerMock ) ; assertTrue ( actions.getNodeKeys ( ) . isEmpty ( ) ) ; }

Target:
public void testDoNothing ( ) { com.android.manifmerger.Actions actions = mActionRecorderBuilder.build ( ) ; actions.log ( mLoggerMock ) ; org.mockito.Mockito.verify ( mLoggerMock ) . verbose ( Actions.HEADER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mLoggerMock ) ; assertTrue ( actions.getNodeKeys ( ) . isEmpty ( ) ) ; }
Source:
private static java.lang.String getCurrentCountryIso ( android.content.Context context , java.util.Locale locale ) { java.lang.String countryIso ; android.location.CountryDetector detector = ( ( android.location.CountryDetector ) ( context.getSystemService ( Context.COUNTRY_DETECTOR ) ) ) ; if ( detector != null ) { countryIso = detector.detectCountry ( ) . getCountryIso ( ) ; } else { countryIso = locale.getCountry ( ) ; android.util.Log.w ( com.android.internal.telephony.CallerInfo.TAG , ( "No CountryDetector; falling back to countryIso based on locale: " + countryIso ) ) ; } return countryIso ; }

Target:
private static java.lang.String getCurrentCountryIso ( android.content.Context context , java.util.Locale locale ) { java.lang.String countryIso ; android.location.CountryDetector detector = ( ( android.location.CountryDetector ) ( context.getSystemService ( Context.COUNTRY_DETECTOR ) ) ) ; if ( detector != null ) { countryIso = detector.detectCountry ( ) . getCountryIso ( ) ; } else { countryIso = locale.getCountry ( ) ; android.telephony.Rlog.w ( com.android.internal.telephony.CallerInfo.TAG , ( "No CountryDetector; falling back to countryIso based on locale: " + countryIso ) ) ; } return countryIso ; }
Source:
public void testGetTimeZoneRegionAll ( ) { for ( java.lang.String id : java.util.TimeZone.getAvailableIDs ( ) ) { java.util.TimeZone zone = java.util.TimeZone.getTimeZone ( id ) ; assertNotNull ( id , zone ) ; java.lang.String region = com.android.ide.common.resources.LocaleManager.getTimeZoneRegion ( zone ) ; assertNotNull ( region , zone.getID ( ) ) ; } }

Target:
public void testGetTimeZoneRegionAll ( ) { for ( java.lang.String id : java.util.TimeZone.getAvailableIDs ( ) ) { java.util.TimeZone zone = java.util.TimeZone.getTimeZone ( id ) ; assertNotNull ( id , zone ) ; java.lang.String region = com.android.ide.common.resources.LocaleManager.getTimeZoneRegionAlpha2 ( zone ) ; assertNotNull ( region , zone.getID ( ) ) ; region = com.android.ide.common.resources.LocaleManager.getTimeZoneRegionAlpha3 ( zone ) ; assertNotNull ( region , zone.getID ( ) ) ; } }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass ) != null ) && ( ( requestClass ) != null ) ) && ( ( requestMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass , requestMethodId , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( int lockIndex , com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass [ lockIndex ] ) != null ) && ( ( requestClass [ lockIndex ] ) != null ) ) && ( ( requestMethodId [ lockIndex ] ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass [ lockIndex ] , resetMethodId [ lockIndex ] , false ) ) ; }
Source:
public java.math.BigInteger getSerialNumber ( ) { return new java.math.BigInteger ( org.conscrypt.NativeCrypto.X509_get_serialNumber ( mContext ) ) ; }

Target:
public java.math.BigInteger getSerialNumber ( ) { byte [ ] signAndMagnitude = org.conscrypt.NativeCrypto.X509_get_serialNumber ( mContext ) ; if ( ( ( signAndMagnitude [ 0 ] ) & 255 ) == 255 ) { byte [ ] magnitude = new byte [ ( signAndMagnitude.length ) - 1 ] ; java.lang.System.arraycopy ( signAndMagnitude , 1 , magnitude , 0 , ( ( signAndMagnitude.length ) - 1 ) ) ; return new java.math.BigInteger ( ( - 1 ) , magnitude ) ; } else { return new java.math.BigInteger ( signAndMagnitude ) ; } }
Source:
public static java.util.List < java.lang.String > readLines ( java.nio.file.Path path ) throws java.io.IOException { java.util.List < java.lang.String > result = new java.util.ArrayList < > ( ) ; try ( java.io.BufferedReader reader = new java.io.BufferedReader ( new java.io.FileReader ( path.toFile ( ) ) ) ) { java.lang.String line ; while ( ( line = reader.readLine ( ) ) != null ) { result.add ( line ) ; } } return result ; }

Target:
public static libcore.Lines readLines ( java.nio.file.Path path ) throws java.io.IOException { try ( java.io.Reader reader = new java.io.FileReader ( path.toFile ( ) ) ) { return libcore.Util.readLines ( reader ) ; } }
Source:
public static com.android.jack.dx.rop.cst.CstType getCstType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { com.android.jack.dx.rop.type.Type ropType = com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( type ) ; com.android.jack.dx.rop.cst.CstType cstType = com.android.jack.dx.rop.cst.CstType.intern ( ropType ) ; return cstType ; }

Target:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType type , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( type ) , new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) , com.android.jack.backend.dex.rop.RopHelper.getPrototype ( method.getMethodId ( ) ) ) ; return methodRef ; }
Source:
public void tearDown ( ) throws java.lang.Exception { mTelecomSystem = null ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mTelecomSystem.getCallsManager ( ) . getCallAudioManager ( ) . getCallAudioRouteStateMachine ( ) . quitNow ( ) ; mTelecomSystem.getCallsManager ( ) . getCallAudioManager ( ) . getCallAudioModeStateMachine ( ) . quitNow ( ) ; mTelecomSystem = null ; super . tearDown ( ) ; }
Source:
public static java.text.DateFormat getTimeFormat ( android.content.Context context ) { boolean b24 = android.text.format.DateFormat.is24HourFormat ( context ) ; int res ; if ( b24 ) { res = R.string.twenty_four_hour_time_format ; } else { res = R.string.twelve_hour_time_format ; } return new java.text.SimpleDateFormat ( context.getString ( res ) ) ; }

Target:
public static java.text.DateFormat getTimeFormat ( android.content.Context context ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( context.getResources ( ) . getConfiguration ( ) . locale ) ; boolean is24 = android.text.format.DateFormat.is24HourFormat ( context ) ; return new java.text.SimpleDateFormat ( ( is24 ? d.timeFormat24 : d.timeFormat12 ) ) ; }
Source:
public com.sun.tools.doclets.internal.toolkit.taglets.TagletOutput getTagletOutput ( com.sun.javadoc.Tag tag , com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter writer ) throws java.lang.IllegalArgumentException { com.sun.tools.doclets.internal.toolkit.taglets.TagletOutput out = writer.getTagletOutputInstance ( ) ; out.setOutput ( toString ( tag ) ) ; return out ; }

Target:
public com.sun.tools.doclets.internal.toolkit.Content getTagletOutput ( com.sun.javadoc.Tag tag , com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter writer ) throws java.lang.IllegalArgumentException { java.lang.String encodedText = toString ( tag ) ; if ( encodedText == null ) return null ; com.sun.tools.doclets.internal.toolkit.Content out = writer.getOutputInstance ( ) ; out.addContent ( new com.sun.tools.doclets.formats.html.markup.RawHtml ( encodedText ) ) ; return out ; }
Source:
public void sealApk ( ) throws com.android.sdklib.build.ApkBuilder.ApkCreationException , com.android.sdklib.build.ApkBuilder.SealedApkException { if ( mIsSealed ) { throw new com.android.sdklib.build.ApkBuilder.SealedApkException ( "APK is already sealed" ) ; } try { mBuilder.close ( ) ; mIsSealed = true ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( e , "Failed to seal APK" ) ; } }

Target:
public static java.lang.String getDebugKeystore ( ) throws com.android.sdklib.build.ApkCreationException { try { return com.android.sdklib.internal.build.DebugKeyProvider.getDefaultKeyStoreOsPath ( ) ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkCreationException ( e , e.getMessage ( ) ) ; } }
Source:
public java.lang.String replace ( char oldChar , char newChar ) { java.lang.String replaced = this ; if ( oldChar != newChar ) { for ( int i = 0 ; i < ( count ) ; ++ i ) { if ( ( charAt ( i ) ) == oldChar ) { if ( replaced == ( this ) ) { replaced = java.lang.StringFactory.newStringFromString ( this ) ; } replaced.setCharAt ( i , newChar ) ; } } } return replaced ; }

Target:
public java.lang.String replace ( char oldChar , char newChar ) { java.lang.String replaced = this ; if ( oldChar != newChar ) { final int len = length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { if ( ( charAt ( i ) ) == oldChar ) { if ( replaced == ( this ) ) { replaced = java.lang.StringFactory.newStringFromString ( this ) ; } replaced.setCharAt ( i , newChar ) ; } } } return replaced ; }
Source:
public void addTcpStatsResult ( int sent , int lost , int rttUs , int sentAckDiffMs ) { pendingSummary.tcpLossRate.count ( lost , sent ) ; pendingSummary.roundTripTimeUs.count ( rttUs ) ; pendingSummary.sentAckTimeDiffenceMs.count ( sentAckDiffMs ) ; }

Target:
public void addTcpStatsResult ( int sent , int lost , int rttUs , int sentAckDiffMs ) { if ( ( pendingSummary ) == null ) { pendingSummary = new android.net.metrics.NetworkMetrics.Summary ( netId , transports ) ; } pendingSummary.tcpLossRate.count ( lost , sent ) ; pendingSummary.roundTripTimeUs.count ( rttUs ) ; pendingSummary.sentAckTimeDiffenceMs.count ( sentAckDiffMs ) ; }
Source:
public static android.content.Intent getIntent ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.setComponent ( new android.content.ComponentName ( context , "com.android.dialer.main.impl.MainActivity" ) ) ; intent.setAction ( Intent.ACTION_VIEW ) ; intent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; return intent ; }

Target:
public static android.content.Intent getIntent ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.setComponent ( new android.content.ComponentName ( context , com.android.dialer.app.MainComponent.getComponentName ( ) ) ) ; intent.setAction ( Intent.ACTION_VIEW ) ; intent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; return intent ; }
Source:
public void defaultWriteObject ( ) throws java.io.IOException { if ( ( curContext ) == null ) { throw new java.io.NotActiveException ( "not in call to writeObject" ) ; } java.lang.Object curObj = curContext.getObj ( ) ; java.io.ObjectStreamClass curDesc = curContext.getDesc ( ) ; bout.setBlockDataMode ( false ) ; defaultWriteFields ( curObj , curDesc ) ; bout.setBlockDataMode ( true ) ; }

Target:
public void defaultWriteObject ( ) throws java.io.IOException { java.io.SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new java.io.NotActiveException ( "not in call to writeObject" ) ; } java.lang.Object curObj = ctx.getObj ( ) ; java.io.ObjectStreamClass curDesc = ctx.getDesc ( ) ; bout.setBlockDataMode ( false ) ; defaultWriteFields ( curObj , curDesc ) ; bout.setBlockDataMode ( true ) ; }
Source:
protected java.util.Properties createExpectedProps ( ) { java.util.Properties props = super . createExpectedProps ( ) ; props.setProperty ( PkgProps.VERSION_API_LEVEL , "5" ) ; props.setProperty ( PkgProps.SYS_IMG_ABI , "armeabi-v7a" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_ID , "default" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_DISPLAY , "Default" ) ; return props ; }

Target:
protected java.util.Properties createExpectedProps ( ) { java.util.Properties props = super . createExpectedProps ( ) ; props.setProperty ( PkgProps.VERSION_API_LEVEL , "5" ) ; props.setProperty ( PkgProps.SYS_IMG_ABI , "armeabi-v7a" ) ; props.setProperty ( PkgProps.ADDON_VENDOR_ID , "vendor_id" ) ; props.setProperty ( PkgProps.ADDON_VENDOR_DISPLAY , "Vendor Name" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_ID , "addon_name" ) ; props.setProperty ( PkgProps.SYS_IMG_TAG_DISPLAY , "Add-on Name" ) ; return props ; }
Source:
private static void checkIndex ( int length , int offset , int count ) { if ( offset < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "offset < 0" ) ; } else if ( count < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "count < 0" ) ; } else if ( offset > length ) { throw new java.lang.IndexOutOfBoundsException ( "offset > length" ) ; } else if ( offset > ( length - count ) ) { throw new java.lang.IndexOutOfBoundsException ( "offset + count > length" ) ; } }

Target:
private int pendingInboundCleartextBytes ( javax.net.ssl.SSLEngineResult.HandshakeStatus handshakeStatus ) { return handshakeStatus == ( javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED ) ? pendingInboundCleartextBytes ( ) : 0 ; }
Source:
public boolean isSimPinEnabled ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isSimPinEnabled ( getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isSimPinEnabled" , e ) ; } return false ; }

Target:
public java.util.List < android.telephony.ClientRequestStats > getClientRequestStats ( int subId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getClientRequestStats ( getOpPackageName ( ) , subId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getClientRequestStats" , e ) ; } return null ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { com.android.ide.eclipse.adt.internal.project.ExportHelper.export ( project , new java.io.File ( saveLocation ) , null , null , monitor ) ; com.android.ide.eclipse.adt.AdtPlugin.displayWarning ( "Android IDE Plug-in" , java.lang.String.format ( ( "An unsigned package of the application was saved at\n%1$s\n\n" + ( ( ( ( "Before publishing the application you will need to:\n" + "- Sign the application with your release key,\n" ) + "- run zipalign on the signed package. ZipAlign is located in <SDK>/tools/\n\n" ) + "Aligning applications allows Android to use application resources\n" ) + "more efficiently." ) ) , saveLocation ) ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; } catch ( org.eclipse.core.runtime.CoreException e ) { return e.getStatus ( ) ; } }

Target:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk ( project , new java.io.File ( saveLocation ) , null , null , monitor ) ; com.android.ide.eclipse.adt.AdtPlugin.displayWarning ( "Android IDE Plug-in" , java.lang.String.format ( ( "An unsigned package of the application was saved at\n%1$s\n\n" + ( ( ( ( "Before publishing the application you will need to:\n" + "- Sign the application with your release key,\n" ) + "- run zipalign on the signed package. ZipAlign is located in <SDK>/tools/\n\n" ) + "Aligning applications allows Android to use application resources\n" ) + "more efficiently." ) ) , saveLocation ) ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; } catch ( org.eclipse.core.runtime.CoreException e ) { return e.getStatus ( ) ; } }
Source:
public static com.android.manifmerger.XmlDocument load ( java.lang.String displayName , java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( displayName , xmlFile ) , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , java.lang.String displayName , java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( displayName , xmlFile ) , selectors , domDocument.getDocumentElement ( ) ) : null ; }
Source:
public void enter ( ) { if ( ! ( configureIfaceIp ( true ) ) ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_IFACE_CFG_ERROR ; transitionTo ( mInitialState ) ; return ; } try { mNMService.tetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Error Tethering: " + ( e.toString ( ) ) ) ) ; mLastError = android.net.ConnectivityManager.TETHER_ERROR_TETHER_IFACE_ERROR ; transitionTo ( mInitialState ) ; return ; } if ( ! ( mIPv6TetherSvc.start ( ) ) ) { android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , "Failed to start IPv6TetheringInterfaceServices" ) ; } }

Target:
public void enter ( ) { super . enter ( ) ; if ( ( mLastError ) != ( android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ) { transitionTo ( mInitialState ) ; } if ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.DBG ) android.util.Log.d ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Tethered " + ( mIfaceName ) ) ) ; sendInterfaceState ( IControlsTethering.STATE_TETHERED ) ; }
Source:
private com.android.tools.lint.checks.PermissionFinder.Result getPermissionRequirement ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation ) { com.android.tools.lint.checks.PermissionRequirement requirement = com.android.tools.lint.checks.PermissionRequirement.create ( mContext , annotation ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass containingClass = field.getContainingClass ( ) ; java.lang.String name = ( containingClass != null ) ? ( ( containingClass.getSimpleName ( ) ) + "." ) + ( field.getName ( ) ) : field.getName ( ) ; return new com.android.tools.lint.checks.PermissionFinder.Result ( mOperation , requirement , name ) ; }

Target:
private com.android.tools.lint.checks.PermissionFinder.Result getPermissionRequirement ( @ com.android.annotations.NonNull com.intellij.psi.PsiField field , @ com.android.annotations.NonNull com.intellij.psi.PsiAnnotation annotation ) { com.android.tools.lint.checks.PermissionRequirement requirement = com.android.tools.lint.checks.PermissionRequirement.create ( mContext , annotation ) ; com.intellij.psi.PsiClass containingClass = field.getContainingClass ( ) ; java.lang.String name = ( containingClass != null ) ? ( ( containingClass.getName ( ) ) + "." ) + ( field.getName ( ) ) : field.getName ( ) ; assert name != null ; return new com.android.tools.lint.checks.PermissionFinder.Result ( mOperation , requirement , name ) ; }
Source:
final java.lang.String readFile ( java.lang.String filename ) { try { java.io.FileInputStream fs = new java.io.FileInputStream ( filename ) ; byte [ ] inp = new byte [ 8192 ] ; int size = fs.read ( inp ) ; fs.close ( ) ; return new java.lang.String ( inp , 0 , 0 , size ) ; } catch ( java.io.IOException e ) { } return "" ; }

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 ( ) ; startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , res , null ) ; return res ; }
Source:
public void test_getComment_unset ( ) throws java.lang.Exception { java.io.File file = createTemporaryZipFile ( ) ; java.util.zip.ZipOutputStream out = createZipOutputStream ( file ) ; java.util.zip.ZipEntry ze = new java.util.zip.ZipEntry ( "test entry" ) ; ze.setComment ( "per-entry comment" ) ; out.putNextEntry ( ze ) ; out.close ( ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( file ) ; assertEquals ( null , zipFile.getComment ( ) ) ; }

Target:
public void test_getComment_unset ( ) throws java.lang.Exception { java.io.File file = libcore.java.util.zip.ZipFileTest.createTemporaryZipFile ( ) ; java.util.zip.ZipOutputStream out = libcore.java.util.zip.ZipFileTest.createZipOutputStream ( file ) ; java.util.zip.ZipEntry ze = new java.util.zip.ZipEntry ( "test entry" ) ; ze.setComment ( "per-entry comment" ) ; out.putNextEntry ( ze ) ; out.close ( ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( file ) ; assertEquals ( null , zipFile.getComment ( ) ) ; }
Source:
public void test3_findFirst2 ( ) { for ( int i = 0 ; i < 32 ; i ++ ) { assertEquals ( com.android.dx.util._tests.BitsTest.label ( i ) , ( - 1 ) , com.android.dx.util.Bits.findFirst ( ( ( 1 << i ) > > > 1 ) , i ) ) ; } }

Target:
public void test3_findFirst2 ( ) { for ( int i = 0 ; i < 32 ; i ++ ) { assertEquals ( com.android.dx.util.BitsTest.label ( i ) , ( - 1 ) , com.android.dx.util.Bits.findFirst ( ( ( 1 << i ) > > > 1 ) , i ) ) ; } }
Source:
public void copyFromUnchecked ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( java.lang.Object array ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( outputOffset < 0 ) { throw new java.lang.IllegalArgumentException ( ( "outputOffset < 0. outputOffset=" + outputOffset ) ) ; } return spiImpl.engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return getSpi ( ) . engineDoFinal ( input , 0 , input.length ) ; }