auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setResult ( com.android.cts.verifier.sensors.RESULT_CANCELED ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.MagnetometerTestRenderer ( this ) ; mListener = renderer ; setContentView ( R.layout.pass_fail_gl ) ; mGLSurfaceView = ( ( android.opengl.GLSurfaceView ) ( findViewById ( R.id.gl_surface_view ) ) ) ; mGLSurfaceView.setRenderer ( renderer ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setResult ( com.android.cts.verifier.sensors.RESULT_CANCELED ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.MagnetometerTestRenderer ( this ) ; mListener = renderer ; setContentView ( R.layout.pass_fail_gl ) ; setInfoTextResources ( R.string.snsr_mag_test , R.string.snsr_mag_test_info ) ; mGLSurfaceView = ( ( android.opengl.GLSurfaceView ) ( findViewById ( R.id.gl_surface_view ) ) ) ; mGLSurfaceView.setRenderer ( renderer ) ; }
Source:
public void testAbiOnlyWithUniversalMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( match , result ) ; }

Target:
public void testAbiOnlyWithMultiMatch2 ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 2 ) ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 3 ) ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" , "bar" ) ; assertEquals ( match , result ) ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mTextControl = new org.eclipse.swt.widgets.Text ( parent , ( ( ( ( org.eclipse.swt.SWT.BORDER ) | ( org.eclipse.swt.SWT.READ_ONLY ) ) | ( org.eclipse.swt.SWT.MULTI ) ) | ( org.eclipse.swt.SWT.WRAP ) ) ) ; mTextControl.setEditable ( false ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mTextControl = new org.eclipse.swt.widgets.Text ( parent , ( ( ( ( ( ( org.eclipse.swt.SWT.BORDER ) | ( org.eclipse.swt.SWT.READ_ONLY ) ) | ( org.eclipse.swt.SWT.MULTI ) ) | ( org.eclipse.swt.SWT.WRAP ) ) | ( org.eclipse.swt.SWT.V_SCROLL ) ) | ( org.eclipse.swt.SWT.H_SCROLL ) ) ) ; mTextControl.setEditable ( false ) ; }
Source:
private void fillVDirFromRealDirectory ( @ javax.annotation.Nonnull java.io.File dir , @ javax.annotation.Nonnull com.android.sched.vfs.VDir vDir ) { for ( java.io.File element : dir.listFiles ( ) ) { try { if ( element.isDirectory ( ) ) { com.android.sched.vfs.VDir newVDir = vDir.createVDir ( element.getName ( ) ) ; fillVDirFromRealDirectory ( element , newVDir ) ; } else { vDir.createVFile ( element.getName ( ) ) ; } } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } } }

Target:
private void fillVDirFromRealDirectory ( @ javax.annotation.Nonnull java.io.File dir , @ javax.annotation.Nonnull com.android.sched.vfs.VDir vDir ) { java.io.File [ ] fileList = dir.listFiles ( ) ; assert fileList != null ; for ( java.io.File element : fileList ) { try { if ( element.isDirectory ( ) ) { com.android.sched.vfs.VDir newVDir = vDir.createVDir ( element.getName ( ) ) ; fillVDirFromRealDirectory ( element , newVDir ) ; } else { vDir.createVFile ( element.getName ( ) ) ; } } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } } }
Source:
public void testTranslation ( ) throws java.lang.Exception { TranslationDetector.COMPLETE_REGIONS = false ; assertEquals ( ( "values-cs/arrays.xml:3: Warning: \"security_questions\" is translated here but not found in default locale\n" + ( ( ( ( "=> values-es/strings.xml:12: Also translated here\n" + "values-de-rDE/strings.xml:11: Warning: \"continue_skip_label\" is translated here but not found in default locale\n" ) + "values/strings.xml:20: Error: \"show_all_apps\" is not translated in nl-rNL\n" ) + "values/strings.xml:23: Error: \"menu_wallpaper\" is not translated in nl-rNL\n" ) + "values/strings.xml:25: Error: \"menu_settings\" is not translated in cs, de-rDE, es, es-rUS, nl-rNL" ) ) , lintProject ( "res/values/strings.xml" , "res/values-cs/strings.xml" , "res/values-de-rDE/strings.xml" , "res/values-es/strings.xml" , "res/values-es-rUS/strings.xml" , "res/values-land/strings.xml" , "res/values-cs/arrays.xml" , "res/values-es/donottranslate.xml" , "res/values-nl-rNL/strings.xml" ) ) ; }

Target:
public void testTranslation ( ) throws java.lang.Exception { TranslationDetector.COMPLETE_REGIONS = false ; assertEquals ( ( "values-cs/arrays.xml:3: Error: \"security_questions\" is translated here but not found in default locale\n" + ( ( ( ( "=> values-es/strings.xml:12: Also translated here\n" + "values-de-rDE/strings.xml:11: Error: \"continue_skip_label\" is translated here but not found in default locale\n" ) + "values/strings.xml:20: Error: \"show_all_apps\" is not translated in nl-rNL\n" ) + "values/strings.xml:23: Error: \"menu_wallpaper\" is not translated in nl-rNL\n" ) + "values/strings.xml:25: Error: \"menu_settings\" is not translated in cs, de-rDE, es, es-rUS, nl-rNL" ) ) , lintProject ( "res/values/strings.xml" , "res/values-cs/strings.xml" , "res/values-de-rDE/strings.xml" , "res/values-es/strings.xml" , "res/values-es-rUS/strings.xml" , "res/values-land/strings.xml" , "res/values-cs/arrays.xml" , "res/values-es/donottranslate.xml" , "res/values-nl-rNL/strings.xml" ) ) ; }
Source:
public com.android.sched.vfs.OutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { final com.android.sched.vfs.OutputZipVFS vfs = new com.android.sched.vfs.OutputZipVFS ( new com.android.sched.util.file.OutputZipFile ( string , hooks , existence , change ) ) ; return vfs ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.OutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { com.android.sched.vfs.WriteZipFS vfs = new com.android.sched.vfs.WriteZipFS ( new com.android.sched.util.file.OutputZipFile ( string , hooks , existence , change ) ) ; return new com.android.sched.vfs.GenericOutputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String tag , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.PKG_REVISION , "0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_TAG_ID , tag , PkgProps.SYS_IMG_ABI , abiType ) ; }

Target:
private void makeFakeLegacySysImg ( @ com.android.annotations.NonNull java.io.File platformDir , @ com.android.annotations.NonNull java.lang.String abiType ) throws java.io.IOException { java.io.File imagesDir = new java.io.File ( platformDir , "images" ) ; imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; }
Source:
private void interruptMeLater ( ) throws java.lang.Exception { final java.lang.Thread toInterrupt = java.lang.Thread.currentThread ( ) ; new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { java.lang.Thread.sleep ( 1000 ) ; } catch ( java.lang.InterruptedException ex ) { } toInterrupt.interrupt ( ) ; } } ) . start ( ) ; }

Target:
private java.lang.Thread interruptMeLater ( ) throws java.lang.Exception { final java.lang.Thread toInterrupt = java.lang.Thread.currentThread ( ) ; java.lang.Thread thread = new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { java.lang.Thread.sleep ( 1000 ) ; } catch ( java.lang.InterruptedException ex ) { } toInterrupt.interrupt ( ) ; } } ) ; thread.start ( ) ; return thread ; }
Source:
public final java.lang.invoke.MethodHandle toMethodHandle ( java.lang.invoke.VarHandle.AccessMode accessMode ) { unsupported ( ) ; return null ; }

Target:
public final java.lang.invoke.MethodType accessModeType ( java.lang.invoke.VarHandle.AccessMode accessMode ) { switch ( coordinateTypes.size ( ) ) { case 0 : return accessMode.at.accessModeType ( null , varType ) ; case 1 : return accessMode.at.accessModeType ( coordinateTypes.get ( 0 ) , varType ) ; case 2 : return accessMode.at.accessModeType ( coordinateTypes.get ( 0 ) , varType , coordinateTypes.get ( 1 ) ) ; default : throw new java.lang.InternalError ( ( "bad coordinateTypes: " + ( coordinateTypes ) ) ) ; } }
Source:
public void unreachableReferent ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatInstance ref = dump.getDumpedAhatInstance ( "aSoftReference" ) ; org.junit.Assert.assertNotNull ( ref.getReferent ( ) ) ; }

Target:
public void unreachableReferent ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatInstance ref = dump.getDumpedAhatInstance ( "aSoftReference" ) ; com.android.ahat.heapdump.AhatInstance referent = ref.getReferent ( ) ; org.junit.Assert.assertNotNull ( referent ) ; org.junit.Assert.assertTrue ( referent.isWeaklyReachable ( ) ) ; }
Source:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { checkCipherState ( ) ; if ( ( output == null ) || ( outputOffset < 0 ) ) { throw new java.lang.IllegalArgumentException ( "Bad arguments" ) ; } chooseFirstProvider ( ) ; return spi.engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }

Target:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { checkCipherState ( ) ; if ( ( output == null ) || ( outputOffset < 0 ) ) { throw new java.lang.IllegalArgumentException ( "Bad arguments" ) ; } updateProviderIfNeeded ( ) ; return spi.engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }
Source:
private int getDelay ( java.lang.String property , int defaultValue ) { int delay = getProperty ( property , java.lang.Integer.valueOf ( defaultValue ) , new com.android.sched.util.codec.IntCodec ( ) ) . intValue ( ) ; if ( ( delay < 0 ) && ( delay != ( com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ) ) ) { com.android.jack.server.ConfigFile.logger.log ( java.util.logging.Level.WARNING , ( ( ( "Invalid config value for " + property ) + ": " ) + delay ) ) ; delay = com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ; } return delay ; }

Target:
private int getDelay ( @ javax.annotation.Nonnull java.lang.String property , int defaultValue ) { int delay = getProperty ( property , java.lang.Integer.valueOf ( defaultValue ) , new com.android.sched.util.codec.IntCodec ( ) ) . intValue ( ) ; if ( delay == ( com.android.jack.server.ConfigFile.CONFIG_TIME_DISABLED_VALUE ) ) { delay = com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ; } else if ( delay < 0 ) { com.android.jack.server.ConfigFile.logger.log ( java.util.logging.Level.WARNING , ( ( ( "Invalid config value for " + property ) + ": " ) + delay ) ) ; delay = com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ; } return delay ; }
Source:
private static void queryProperties ( @ com.android.annotations.NonNull com.android.ddmlib.Device device ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException { java.util.concurrent.Future < java.lang.String > prop = device.getSystemProperty ( "ro.build.id" ) ; prop.get ( ) ; }

Target:
private static void queryAvdName ( @ com.android.annotations.NonNull com.android.ddmlib.Device device ) { if ( ! ( device.isEmulator ( ) ) ) { return ; } com.android.ddmlib.EmulatorConsole console = com.android.ddmlib.EmulatorConsole.getConsole ( device ) ; if ( console != null ) { device.setAvdName ( console.getAvdName ( ) ) ; console.close ( ) ; } }
Source:
public void loggerFetchesTxFatesEvenIfFetchingRxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }

Target:
public void loggerFetchesTxFatesEvenIfFetchingRxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
public void testSetWifiEnabledNoToggle ( ) throws java.lang.Exception { when ( mSettingsStore.handleWifiToggled ( org.mockito.Matchers.eq ( true ) ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , true ) ) ; verify ( mWifiController , never ( ) ) . obtainMessageAndSend ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }

Target:
public void testSetWifiEnabledFromAppFailsWhenApEnabled ( ) throws java.lang.Exception { when ( mWifiStateMachine.syncGetWifiApState ( ) ) . thenReturn ( WifiManager.WIFI_AP_STATE_ENABLED ) ; org.junit.Assert.assertFalse ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , true ) ) ; verify ( mSettingsStore , never ( ) ) . handleWifiToggled ( anyBoolean ( ) ) ; verify ( mWifiController , never ( ) ) . sendMessage ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }
Source:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element != null ) { if ( element.isVDir ( ) ) { return ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotDirectoryException ( getVDirLocation ( parent , name ) ) ; } } else { throw new com.android.sched.util.file.NoSuchFileException ( getVDirLocation ( parent , name ) ) ; } }

Target:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir getVDirFromCache ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NotDirectoryException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element == null ) { return null ; } else if ( element.isVDir ( ) ) { return ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotDirectoryException ( getVDirLocation ( parent , name ) ) ; } }
Source:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.String variant ) { java.lang.Integer idxObj = com.ibm.icu.text.QuantityFormatter.INDEX_MAP.get ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idxObj == null ? 0 : idxObj.intValue ( ) ) ] ; return template == null ? templates [ 0 ] : template ; }

Target:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.String variant ) { int idx = com.ibm.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }
Source:
private void handleCarrierNameOverride ( ) { android.telephony.CarrierConfigManager configLoader = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( ( configLoader != null ) && ( configLoader.getConfig ( ) . getBoolean ( CarrierConfigManager.KEY_CARRIER_NAME_OVERRIDE_BOOL ) ) ) { java.lang.String carrierName = configLoader.getConfig ( ) . getString ( CarrierConfigManager.KEY_CARRIER_NAME_STRING ) ; setServiceProviderName ( carrierName ) ; mTelephonyManager.setSimOperatorNameForPhone ( mParentApp.getPhoneId ( ) , carrierName ) ; } else { setSpnFromConfig ( getOperatorNumeric ( ) ) ; } }

Target:
private void handleCarrierNameOverride ( ) { android.telephony.CarrierConfigManager configLoader = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( ( configLoader != null ) && ( configLoader.getConfig ( ) . getBoolean ( CarrierConfigManager.KEY_CARRIER_NAME_OVERRIDE_BOOL ) ) ) { java.lang.String carrierName = configLoader.getConfig ( ) . getString ( CarrierConfigManager.KEY_CARRIER_NAME_STRING ) ; setServiceProviderName ( carrierName ) ; mTelephonyManager.setSimOperatorNameForPhone ( mParentApp.getPhoneId ( ) , carrierName ) ; } else { setSpnFromConfig ( getOperatorNumeric ( ) ) ; } setDisplayName ( ) ; }
Source:
public void testCheckReadPhoneNumber_noPermissions ( ) { try { com.android.internal.telephony.TelephonyPermissions.checkReadPhoneNumber ( mMockContext , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.junit.Assert.fail ( "Should have thrown SecurityException" ) ; } catch ( java.lang.SecurityException e ) { } }

Target:
public void testCheckReadPhoneState_hasPermissionWithoutAppOp ( ) { org.mockito.Mockito.doNothing ( ) . when ( mMockContext ) . enforcePermission ( android.Manifest.permission.READ_PHONE_STATE , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.junit.Assert.assertFalse ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState ( mMockContext , ( ) -> mMockTelephony , com.android.internal.telephony.TelephonyPermissionsTest.SUB_ID , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }
Source:
private static int attrForQuantityCode ( int quantityCode ) { switch ( quantityCode ) { case libcore.icu.NativePluralRules.ZERO : return 16777221 ; case libcore.icu.NativePluralRules.ONE : return 16777222 ; case libcore.icu.NativePluralRules.TWO : return 16777223 ; case libcore.icu.NativePluralRules.FEW : return 16777224 ; case libcore.icu.NativePluralRules.MANY : return 16777225 ; default : return android.content.res.Resources.ID_OTHER ; } }

Target:
private static int attrForQuantityCode ( java.lang.String quantityCode ) { switch ( quantityCode ) { case android.icu.text.PluralRules.KEYWORD_ZERO : return 16777221 ; case android.icu.text.PluralRules.KEYWORD_ONE : return 16777222 ; case android.icu.text.PluralRules.KEYWORD_TWO : return 16777223 ; case android.icu.text.PluralRules.KEYWORD_FEW : return 16777224 ; case android.icu.text.PluralRules.KEYWORD_MANY : return 16777225 ; default : return android.content.res.Resources.ID_OTHER ; } }
Source:
public java.io.File getApk ( java.lang.String ... dimensions ) { java.util.List < java.lang.String > dimensionList = com.google.common.collect.Lists.newArrayListWithExpectedSize ( ( 1 + ( dimensions.length ) ) ) ; dimensionList.add ( getName ( ) ) ; dimensionList.addAll ( java.util.Arrays.asList ( dimensions ) ) ; return getOutputFile ( ( ( "apk/" + ( com.google.common.base.Joiner.on ( "-" ) . join ( dimensionList ) ) ) + ".apk" ) ) ; }

Target:
public java.io.File getApk ( java.lang.String ... dimensions ) { java.util.List < java.lang.String > dimensionList = com.google.common.collect.Lists.newArrayListWithExpectedSize ( ( 1 + ( dimensions.length ) ) ) ; dimensionList.add ( getName ( ) ) ; dimensionList.addAll ( java.util.Arrays.asList ( dimensions ) ) ; return getOutputFile ( ( ( "apk/" + ( com.google.common.base.Joiner.on ( "-" ) . join ( dimensionList ) ) ) + ( com.android.SdkConstants.DOT_ANDROID_PACKAGE ) ) ) ; }
Source:
public java.util.List < java.lang.String > getMatchingImsis ( com.android.server.wifi.IMSIParameter mccMnc ) { if ( mccMnc == null ) { return null ; } java.util.List < java.lang.String > imsis = new java.util.ArrayList < > ( ) ; for ( int subId : mSubscriptionManager.getActiveSubscriptionIdList ( ) ) { java.lang.String imsi = mTelephonyManager.getSubscriberId ( subId ) ; if ( ( imsi != null ) && ( mccMnc.matches ( imsi ) ) ) { imsis.add ( imsi ) ; } } return imsis.isEmpty ( ) ? null : imsis ; }

Target:
public java.util.List < java.lang.String > getMatchingImsis ( com.android.server.wifi.IMSIParameter mccMnc ) { if ( mccMnc == null ) { return null ; } java.util.List < java.lang.String > imsis = new java.util.ArrayList < > ( ) ; for ( int subId : mSubscriptionManager.getActiveSubscriptionIdList ( ) ) { java.lang.String imsi = mTelephonyManager.getSubscriberId ( subId ) ; if ( ( imsi != null ) && ( mccMnc.matchesImsi ( imsi ) ) ) { imsis.add ( imsi ) ; } } return imsis.isEmpty ( ) ? null : imsis ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_object.d.T_aget_object_1 t = new dot.junit.opcodes.aget_object.d.T_aget_object_1 ( ) ; java.lang.String [ ] arr = new java.lang.String [ ] { "a" , "b" } ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aioobe ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_object.d.T_aget_object_1" , java.lang.ArrayIndexOutOfBoundsException.class , new java.lang.String [ 2 ] , 2 ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "dexopt" ) ; builder.append ( ' ' ) ; builder.append ( apkPath ) ; builder.append ( ' ' ) ; builder.append ( uid ) ; builder.append ( ( isPublic ? " 1" : " 0" ) ) ; return execute ( builder.toString ( ) ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "dexopt" ) ; builder.append ( ' ' ) ; builder.append ( apkPath ) ; builder.append ( ' ' ) ; builder.append ( uid ) ; builder.append ( ( isPublic ? " 1" : " 0" ) ) ; builder.append ( " *" ) ; return execute ( builder.toString ( ) ) ; }
Source:
com.android.bluetooth.gatt.AdvtFilterOnFoundOnLostInfo CreateonTrackAdvFoundLostObject ( int client_if , int adv_pkt_len , byte [ ] adv_pkt , int scan_rsp_len , byte [ ] scan_rsp , int filt_index , int adv_state , int adv_info_present , java.lang.String address , int addr_type , int tx_power , int rssi_value , int time_stamp ) { return new com.android.bluetooth.gatt.AdvtFilterOnFoundOnLostInfo ( client_if , adv_pkt_len , adv_pkt , scan_rsp_len , scan_rsp , filt_index , adv_state , adv_info_present , address , addr_type , tx_power , rssi_value , time_stamp ) ; }

Target:
com.android.bluetooth.gatt.AdvtFilterOnFoundOnLostInfo CreateonTrackAdvFoundLostObject ( int clientIf , int advPktLen , byte [ ] advPkt , int scanRspLen , byte [ ] scanRsp , int filtIndex , int advState , int advInfoPresent , java.lang.String address , int addrType , int txPower , int rssiValue , int timeStamp ) { return new com.android.bluetooth.gatt.AdvtFilterOnFoundOnLostInfo ( clientIf , advPktLen , advPkt , scanRspLen , scanRsp , filtIndex , advState , advInfoPresent , address , addrType , txPower , rssiValue , timeStamp ) ; }
Source:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { byte [ ] distroBytes = com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { byte [ ] distroBytes = com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( com.android.timezone.distro.installer.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION ) + 1 ) , DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
private static void encodeRegisterList ( com.android.jack.dx.io.instructions.DecodedInstruction insn , com.android.jack.dx.io.instructions.CodeOutput out ) { out.write ( com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getOpcode ( ) , com.android.jack.dx.io.instructions.InstructionCodec.makeByte ( insn.getE ( ) , insn.getRegisterCount ( ) ) ) , insn.getIndexUnit ( ) , com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getA ( ) , insn.getB ( ) , insn.getC ( ) , insn.getD ( ) ) ) ; }

Target:
private static void encodeRegisterList ( com.android.jack.dx.io.instructions.DecodedInstruction insn , com.android.jack.dx.io.instructions.CodeOutput out ) { out.write ( com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getOpcode ( ) , com.android.jack.dx.io.instructions.InstructionCodec.makeByte ( insn.getE ( ) , insn.getRegisterCount ( ) ) ) , insn.getFirstIndexUnit ( ) , com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getA ( ) , insn.getB ( ) , insn.getC ( ) , insn.getD ( ) ) ) ; }
Source:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength sigStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( sigStrength ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength sigStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( sigStrength ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public boolean disable ( boolean persist ) { try { return mManagerService.disable ( persist ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enable ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT already enabled!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
private void writeObject ( java.io.ObjectOutputStream stream ) throws java.io.IOException { if ( key.isEngineBased ( ) ) { throw new java.io.NotSerializableException ( "engine-based keys can not be serialized" ) ; } stream.defaultWriteObject ( ) ; stream.writeObject ( getParams ( ) ) ; stream.writeObject ( getPrivateKey ( ) ) ; }

Target:
private void writeObject ( java.io.ObjectOutputStream stream ) throws java.io.IOException { if ( key.isEngineBased ( ) ) { throw new java.io.NotSerializableException ( "engine-based keys can not be serialized" ) ; } stream.defaultWriteObject ( ) ; stream.writeObject ( getEncoded ( ) ) ; }
Source:
public void onUiShowing ( boolean showing ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , ( "showing: " + showing ) ) ; if ( showing ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , "going to hide" ) ; hide ( ) ; } else { if ( ( getCall ( ) ) != null ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , "going to show" ) ; show ( ) ; } } }

Target:
public void onUiShowing ( boolean showing ) { if ( ! ( com.android.incallui.ReturnToCallController.isEnabled ( context ) ) ) { hide ( ) ; return ; } com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , ( "showing: " + showing ) ) ; if ( showing ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , "going to hide" ) ; hide ( ) ; } else { if ( ( getCall ( ) ) != null ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onUiShowing" , "going to show" ) ; show ( ) ; } } }
Source:
private boolean equalsNetCapabilitiesRequestable ( android.net.NetworkCapabilities that ) { return ( ( this . mNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) == ( ( that.mNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) ; }

Target:
private boolean equalsNetCapabilitiesRequestable ( android.net.NetworkCapabilities that ) { return ( ( ( this . mNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) == ( ( that.mNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) ) && ( ( ( this . mUnwantedNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) == ( ( that.mUnwantedNetworkCapabilities ) & ( ~ ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) ) ) ; }
Source:
public synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } clearServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } startSocketListeners ( ) ; }

Target:
public synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } mSessionStatusHandler.sendMessage ( mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.START_LISTENER ) ) ; }
Source:
public com.android.hierarchyviewerlib.device.ViewNode findViewById ( java.lang.String id , com.android.hierarchyviewerlib.device.ViewNode rootNode ) { if ( rootNode.id.equals ( id ) ) { return rootNode ; } for ( com.android.hierarchyviewerlib.device.ViewNode child : rootNode.children ) { com.android.hierarchyviewerlib.device.ViewNode found = findViewById ( id , child ) ; if ( found != null ) { return found ; } } return null ; }

Target:
public com.android.hierarchyviewerlib.models.ViewNode findViewById ( java.lang.String id , com.android.hierarchyviewerlib.models.ViewNode rootNode ) { if ( rootNode.id.equals ( id ) ) { return rootNode ; } for ( com.android.hierarchyviewerlib.models.ViewNode child : rootNode.children ) { com.android.hierarchyviewerlib.models.ViewNode found = findViewById ( id , child ) ; if ( found != null ) { return found ; } } return null ; }
Source:
public static android.system.UnixSocketAddress createFileSystem ( java.lang.String path ) { return new android.system.UnixSocketAddress ( path.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ; }

Target:
public static android.system.UnixSocketAddress createFileSystem ( java.lang.String pathName ) { byte [ ] pathNameBytes = pathName.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; byte [ ] path = new byte [ ( pathNameBytes.length ) + 1 ] ; java.lang.System.arraycopy ( pathNameBytes , 0 , path , 0 , pathNameBytes.length ) ; return new android.system.UnixSocketAddress ( path ) ; }
Source:
public java.lang.String getFolderName ( com.android.resources.ResourceFolderType folder ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( ) ; if ( ( segment != null ) && ( ( segment.length ( ) ) > 0 ) ) { result.append ( AndroidConstants.RES_QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }

Target:
public java.lang.String getFolderName ( com.android.resources.ResourceFolderType folder ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( ) ; if ( ( segment != null ) && ( ( segment.length ( ) ) > 0 ) ) { result.append ( AndroidConstants.RES_QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }
Source:
private java.util.ArrayList < java.lang.String > split ( java.lang.String str ) { if ( str == null ) return null ; java.util.StringTokenizer tokenizer = new java.util.StringTokenizer ( str , "," ) ; java.util.ArrayList < java.lang.String > substrings = new java.util.ArrayList < java.lang.String > ( ) ; while ( tokenizer.hasMoreElements ( ) ) { substrings.add ( tokenizer.nextToken ( ) ) ; } return substrings ; }

Target:
private void splitFloat ( java.lang.String str , float [ ] output ) { if ( str == null ) return ; android.text.TextUtils.StringSplitter splitter = new android.text.TextUtils.SimpleStringSplitter ( ',' ) ; splitter.setString ( str ) ; int index = 0 ; for ( java.lang.String s : splitter ) { output [ ( index ++ ) ] = java.lang.Float.parseFloat ( s ) ; } }
Source:
protected final void checkXML ( org.eclipse.core.resources.IResource resource , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.BaseDeltaVisitor visitor ) { if ( resource instanceof org.eclipse.core.resources.IFile ) { org.eclipse.core.resources.IFile file = ( ( org.eclipse.core.resources.IFile ) ( resource ) ) ; removeMarkersFromResource ( file , AndroidConstants.MARKER_XML ) ; com.android.ide.eclipse.adt.internal.project.XmlErrorHandler reporter = new com.android.ide.eclipse.adt.internal.project.XmlErrorHandler ( file , visitor ) ; try { getParser ( ) . parse ( file.getContents ( ) , reporter ) ; } catch ( java.lang.Exception e1 ) { } } }

Target:
protected final void checkXML ( org.eclipse.core.resources.IResource resource , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder.BaseDeltaVisitor visitor ) { if ( resource instanceof org.eclipse.core.resources.IFile ) { org.eclipse.core.resources.IFile file = ( ( org.eclipse.core.resources.IFile ) ( resource ) ) ; removeMarkersFromResource ( file , AdtConstants.MARKER_XML ) ; com.android.ide.eclipse.adt.internal.project.XmlErrorHandler reporter = new com.android.ide.eclipse.adt.internal.project.XmlErrorHandler ( file , visitor ) ; try { getParser ( ) . parse ( file.getContents ( ) , reporter ) ; } catch ( java.lang.Exception e1 ) { } } }
Source:
void performCollectViewAttributes ( int visibility ) { if ( ( ( visibility | ( mViewFlags ) ) & ( ( android.view.View.VISIBILITY_MASK ) | ( android.view.View.KEEP_SCREEN_ON ) ) ) == ( ( android.view.View.VISIBLE ) | ( android.view.View.KEEP_SCREEN_ON ) ) ) { mAttachInfo.mKeepScreenOn = true ; } }

Target:
void performCollectViewAttributes ( int visibility ) { if ( ( ( visibility & ( android.view.View.VISIBILITY_MASK ) ) == ( android.view.View.VISIBLE ) ) && ( ( mAttachInfo ) != null ) ) { if ( ( ( mViewFlags ) & ( android.view.View.KEEP_SCREEN_ON ) ) == ( android.view.View.KEEP_SCREEN_ON ) ) { mAttachInfo.mKeepScreenOn = true ; } mAttachInfo.mSystemUiVisibility |= mSystemUiVisibility ; android.view.View.ListenerInfo li = mListenerInfo ; if ( ( li != null ) && ( ( li.mOnSystemUiVisibilityChangeListener ) != null ) ) { mAttachInfo.mHasSystemUiListeners = true ; } } }
Source:
private void forgetNetworkAndVerifyFailure ( ) throws java.lang.Exception { mLooper.startAutoDispatch ( ) ; final android.os.Message result = mWsmAsyncChannel.sendMessageSynchronously ( WifiManager.FORGET_NETWORK , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertEquals ( WifiManager.FORGET_NETWORK_FAILED , result.what ) ; result.recycle ( ) ; mLooper.startAutoDispatch ( ) ; org.junit.Assert.assertEquals ( 1 , mWsm.syncGetConfiguredNetworks ( ( - 1 ) , mWsmAsyncChannel ) . size ( ) ) ; mLooper.stopAutoDispatch ( ) ; verify ( mWifiNative , never ( ) ) . removeNetwork ( anyInt ( ) ) ; }

Target:
public void connectionFailureDoesNotSetHasEverConnectedTrue ( ) throws java.lang.Exception { testDhcpFailure ( ) ; verify ( mWifiConfigManager , never ( ) ) . updateNetworkAfterConnect ( 0 ) ; }
Source:
public void initialize ( int gsmSignalStrength , int gsmBitErrorRate , int cdmaDbm , int cdmaEcio , int evdoDbm , int evdoEcio , int evdoSnr , boolean gsm ) { initialize ( gsmSignalStrength , gsmBitErrorRate , cdmaDbm , cdmaEcio , evdoDbm , evdoEcio , evdoSnr , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , 0 , gsm ) ; }

Target:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mTdScdmaRscp = s.mTdScdmaRscp ; mLteRsrpBoost = s.mLteRsrpBoost ; mIsGsm = s.mIsGsm ; mUseOnlyRsrpForLteLevel = s.mUseOnlyRsrpForLteLevel ; setLteRsrpThresholds ( s.mLteRsrpThresholds ) ; }
Source:
public final int startActivity ( 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 ) { return startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , null , null ) ; }

Target:
public final int startActivity ( 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 , java.lang.String profileFile , android.os.ParcelFileDescriptor profileFd , boolean autoStopProfiler ) { return mMainStack.startActivityMayWait ( caller , ( - 1 ) , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , profileFile , profileFd , autoStopProfiler , null , null ) ; }
Source:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength sigStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( sigStrength ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( signalStrength ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public int getState ( ) { if ( android.bluetooth.BluetoothMap.VDBG ) android.bluetooth.BluetoothMap.log ( "getState()" ) ; if ( ( mService ) != null ) { try { return mService.getState ( ) ; } catch ( android.bluetooth.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothMap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothMap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothMap.DBG ) android.bluetooth.BluetoothMap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return android.bluetooth.BluetoothMap.STATE_ERROR ; }

Target:
public int getState ( ) { if ( android.bluetooth.BluetoothMap.VDBG ) android.bluetooth.BluetoothMap.log ( "getState()" ) ; final android.bluetooth.IBluetoothMap service = mService ; if ( service != null ) { try { return service.getState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothMap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothMap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothMap.DBG ) android.bluetooth.BluetoothMap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return android.bluetooth.BluetoothMap.STATE_ERROR ; }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.PKG_REVISION , "0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_ABI , abiType ) ; }

Target:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String tag , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.PKG_REVISION , "0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_TAG_ID , tag , PkgProps.SYS_IMG_ABI , abiType ) ; }
Source:
private static void setParametersSniHostname ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.OpenSSLSocketImpl socket ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( impl.getUseSni ( ) ) && ( org.conscrypt.AddressUtils.isValidSniHostname ( socket.getHostname ( ) ) ) ) { java.lang.reflect.Method m_setServerNames = params.getClass ( ) . getMethod ( "setServerNames" , java.util.List.class ) ; m_setServerNames.invoke ( params , java.util.Collections.< javax.net.ssl.SNIServerName > singletonList ( new javax.net.ssl.SNIHostName ( socket.getHostname ( ) ) ) ) ; } }

Target:
private static void setParametersSniHostname ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.AbstractConscryptSocket socket ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( impl.getUseSni ( ) ) && ( org.conscrypt.AddressUtils.isValidSniHostname ( socket.getHostname ( ) ) ) ) { java.lang.reflect.Method m_setServerNames = params.getClass ( ) . getMethod ( "setServerNames" , java.util.List.class ) ; m_setServerNames.invoke ( params , java.util.Collections.< javax.net.ssl.SNIServerName > singletonList ( new javax.net.ssl.SNIHostName ( socket.getHostname ( ) ) ) ) ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; }