auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testConferenceOnExtraschanged ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } final android.telecom.Call conf = mInCallService.getLastConferenceCall ( ) ; assertCallState ( conf , Call.STATE_ACTIVE ) ; android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putString ( android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_1 , android.telecom.cts.ConferenceTest.TEST_EXTRA_VALUE_1 ) ; extras.putInt ( android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_2 , android.telecom.cts.ConferenceTest.TEST_EXTRA_VALUE_2 ) ; conf.putExtras ( extras ) ; mConferenceVerficationObject.mOnExtrasChanged.waitForCount ( 1 ) ; assertTrue ( areBundlesEqual ( extras , mConferenceObject.getExtras ( ) ) ) ; }

Target:
public void testConferenceRemoveExtras2 ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } final android.telecom.Call conf = mInCallService.getLastConferenceCall ( ) ; assertCallState ( conf , Call.STATE_ACTIVE ) ; setupExtras ( ) ; int startInvokeCount = mOnExtrasChangedCounter.getInvokeCount ( ) ; mConferenceObject.removeExtras ( android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_1 , android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_2 ) ; mOnExtrasChangedCounter.waitForCount ( ( startInvokeCount + 1 ) , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS ) ; android.os.Bundle extras = mConferenceObject.getExtras ( ) ; assertFalse ( extras.containsKey ( android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_1 ) ) ; assertFalse ( extras.containsKey ( android.telecom.cts.ConferenceTest.TEST_EXTRA_KEY_2 ) ) ; }
Source:
private static java.lang.String whereStatement ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( android.provider.ContactsContract.CommonDataKinds.Phone.NUMBER ) + " IS NOT NULL" ) + " AND " ) + ( ( android.provider.ContactsContract.Data.DISPLAY_NAME_PRIMARY ) + " IS NOT NULL" ) ) + " AND " ) + ( android.provider.ContactsContract.Data.MIMETYPE ) ) + " IN (\'" ) + ( android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE ) ) + "\', \'" ) + ( android.provider.ContactsContract.CommonDataKinds.Nickname.CONTENT_ITEM_TYPE ) ) + "\', \'" ) + ( android.provider.ContactsContract.CommonDataKinds.Organization.CONTENT_ITEM_TYPE ) ) + "\')" ; }

Target:
public long getDirectoryId ( ) { return android.provider.ContactsContract.Directory.DEFAULT ; }
Source:
public void TestStringSymbols ( ) { com.ibm.icu.text.DecimalFormatSymbols symbols = new com.ibm.icu.text.DecimalFormatSymbols ( com.ibm.icu.util.ULocale.US ) ; java.lang.String [ ] customDigits = new java.lang.String [ ] { "(0)" , "(1)" , "(2)" , "(3)" , "(4)" , "(5)" , "(6)" , "(7)" , "(8)" , "(9)" } ; symbols.setDigitStrings ( customDigits ) ; symbols.setDecimalSeparatorString ( "~~" ) ; symbols.setGroupingSeparatorString ( "^^" ) ; com.ibm.icu.text.DecimalFormat fmt = new com.ibm.icu.text.DecimalFormat ( "#,##0.0#" , symbols ) ; expect2 ( fmt , 1234567.89 , "(1)^^(2)(3)(4)^^(5)(6)(7)~~(8)(9)" ) ; }

Target:
public void Test12753 ( ) { com.ibm.icu.util.ULocale locale = new com.ibm.icu.util.ULocale ( "en-US" ) ; com.ibm.icu.text.DecimalFormatSymbols symbols = com.ibm.icu.text.DecimalFormatSymbols.getInstance ( locale ) ; symbols.setDecimalSeparator ( '*' ) ; com.ibm.icu.text.DecimalFormat df = new com.ibm.icu.text.DecimalFormat ( "0.00" , symbols ) ; df.setDecimalPatternMatchRequired ( true ) ; try { df.parse ( "123" ) ; fail ( "Parsing integer succeeded even though setDecimalPatternMatchRequired was set" ) ; } catch ( java.text.ParseException e ) { } }
Source:
public static void addDelayedShutdownHook ( final java.util.concurrent.ExecutorService service , final long terminationTimeout , final java.util.concurrent.TimeUnit timeUnit ) { java.lang.Runtime.getRuntime ( ) . addShutdownHook ( new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { service.shutdown ( ) ; service.awaitTermination ( terminationTimeout , timeUnit ) ; } catch ( java.lang.InterruptedException ignored ) { } } } , ( "DelayedShutdownHook-for-" + service ) ) ) ; }

Target:
void addShutdownHook ( java.lang.Thread hook ) { java.lang.Runtime.getRuntime ( ) . addShutdownHook ( hook ) ; }
Source:
public void testUngrant_Generated_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_Generated_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
public void iterate ( ) { if ( ( n ) < ( factories.length ) ) { android.icu.impl.ICUService.Factory f = factories [ ( ( n ) ++ ) ] ; boolean success = service.unregisterFactory ( f ) ; log.logln ( ( ( "factory: " + f ) + ( success ? " succeeded." : " *** failed." ) ) ) ; } }

Target:
public void iterate ( ) { if ( ( n ) < ( factories.length ) ) { android.icu.impl.ICUService.Factory f = factories [ ( ( n ) ++ ) ] ; boolean success = service.unregisterFactory ( f ) ; android.icu.dev.test.TestFmwk.logln ( ( ( "factory: " + f ) + ( success ? " succeeded." : " *** failed." ) ) ) ; } }
Source:
public boolean sendReport ( int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "sendReport(): id=" + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( id , data ) ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.reportError ( device , error ) ; }
Source:
private boolean visitNonThrowingOperation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class ) ; confirmNotAssignmentTarget ( expr ) ; return true ; }

Target:
private boolean visitNonThrowingOperation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; if ( expr instanceof com.android.jack.ir.ast.JReinterpretCastOperation ) { confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JMethodCall.class ) ; } else { confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class ) ; } confirmNotAssignmentTarget ( expr ) ; return true ; }
Source:
private java.util.List < java.io.File > getFilesByNameEntryFilter ( java.io.File sourceFolder , java.lang.String extension ) { java.util.ArrayList < java.io.File > result = new java.util.ArrayList < java.io.File > ( ) ; if ( sourceFolder.isDirectory ( ) ) { gatherFiles ( sourceFolder , extension , result ) ; } return result ; }

Target:
private java.util.List < java.io.File > getFilesByNameEntryFilter ( java.io.File sourceFolder , java.lang.String extension ) { java.util.ArrayList < java.io.File > result = com.google.common.collect.Lists.newArrayList ( ) ; if ( sourceFolder.isDirectory ( ) ) { gatherFiles ( sourceFolder , extension , result ) ; } return result ; }
Source:
public android.net.http.SslCertificate getCertificate ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.net.http.SslCertificate ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.net.http.SslCertificate > ( ) { @ java.lang.Override public android.net.http.SslCertificate call ( ) { return getCertificate ( ) ; } } ) ; return ret ; } return mAwContents.getCertificate ( ) ; }

Target:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }
Source:
public void notifyPendingSystemUpdate ( long updateReceivedTime ) { throwIfParentInstance ( "notifyPendingSystemUpdate" ) ; if ( ( mService ) != null ) { try { mService.notifyPendingSystemUpdate ( updateReceivedTime ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }

Target:
public void notifyPendingSystemUpdate ( long updateReceivedTime , boolean isSecurityPatch ) { throwIfParentInstance ( "notifyPendingSystemUpdate" ) ; if ( ( mService ) != null ) { try { mService.notifyPendingSystemUpdate ( android.app.admin.SystemUpdateInfo.of ( updateReceivedTime , isSecurityPatch ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.Class < ? > c = null ; try { c = java.lang.Class.forName ( "ConcreteClass" ) ; java.lang.reflect.Method m = c.getMethod ( "callMethod" ) ; java.lang.System.out.println ( m.invoke ( c.newInstance ( ) , new java.lang.Object [ 0 ] ) ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; java.lang.System.out.println ( "FAILED: Could not call method" ) ; return ; } }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.Class < ? > c = null ; try { c = java.lang.Class.forName ( "ConcreteClass" ) ; java.lang.reflect.Method m = c.getMethod ( "callMethod" ) ; java.lang.System.out.println ( m.invoke ( c.newInstance ( ) , new java.lang.Object [ 0 ] ) ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( java.lang.System.out ) ; java.lang.System.out.println ( "FAILED: Could not call method" ) ; return ; } }
Source:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Arrays.asList ( "lib/annotations.jar" ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }

Target:
public void testRevertingWithAbsentFileToDelete ( ) throws java.lang.Exception { com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; new java.io.File ( myOlderDir , "bin/idea.bat" ) . delete ( ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; preparationResult.patch.getActions ( ) . add ( new com.intellij.updater.PatchFileCreatorTest.MyFailOnApplyPatchAction ( patch ) ) ; assertNothingHasChanged ( patch , preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) ) ; }
Source:
public void close ( ) throws java.io.IOException { synchronized ( this ) { if ( ( mHandler ) != null ) { mHandler.obtainMessage ( mMessage ) . sendToTarget ( ) ; } } mSocket.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { if ( android.bluetooth.BluetoothServerSocket.DBG ) android.util.Log.d ( android.bluetooth.BluetoothServerSocket.TAG , ( "BluetoothServerSocket:close() called. mChannel=" + ( mChannel ) ) ) ; synchronized ( this ) { if ( ( mHandler ) != null ) { mHandler.obtainMessage ( mMessage ) . sendToTarget ( ) ; } } mSocket.close ( ) ; }
Source:
private java.lang.Iterable < java.lang.String > getTargetFlags ( ) { ndkHandler.getDefaultGccToolchainPath ( com.android.build.gradle.internal.core.Abi.getByName ( platform.name ) , "-target" , com.android.build.gradle.ndk.internal.ClangNativeToolSpecification.TARGET_TRIPLE [ platform.name ] ) ; }

Target:
public java.lang.Iterable < java.lang.String > getCFlags ( ) { return com.google.common.collect.Iterables.concat ( getTargetFlags ( ) , com.android.build.gradle.ndk.internal.ClangNativeToolSpecification.RELEASE_CFLAGS.get ( platform.getName ( ) ) , ( isDebugBuild ? com.android.build.gradle.ndk.internal.ClangNativeToolSpecification.DEBUG_CFLAGS.get ( platform.getName ( ) ) : com.google.common.collect.ImmutableList.< java.lang.String > of ( ) ) ) ; }
Source:
public boolean testAll ( ) { if ( ! ( testLevel ( ) ) ) { return false ; } for ( int b = 0 ; b < ( mBands ) ; b ++ ) { if ( ! ( testInBand ( b ) ) ) { return false ; } } return true ; }

Target:
public boolean testAll ( ) { for ( int b = 0 ; b < ( mBandCount ) ; b ++ ) { if ( ! ( testInBand ( b ) ) ) { return false ; } } return true ; }
Source:
private void downloadMediaToHost ( java.io.File mediaFolder ) throws com.android.tradefed.targetprep.TargetSetupError { HEAD ( 7.5E7 ) ; android.mediastress.cts.preconditions.a Merge ; }

Target:
protected boolean mediaFilesExistOnDevice ( com.android.tradefed.device.ITestDevice device ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( android.mediastress.cts.preconditions.MediaPreparer.Resolution resolution : android.mediastress.cts.preconditions.MediaPreparer.RESOLUTIONS ) { if ( ( resolution.width ) > ( mMaxRes.width ) ) { break ; } java.lang.String deviceShortFilePath = ( mBaseDeviceShortDir ) + ( resolution.toString ( ) ) ; java.lang.String deviceFullFilePath = ( mBaseDeviceFullDir ) + ( resolution.toString ( ) ) ; if ( ( ! ( device.doesFileExist ( deviceShortFilePath ) ) ) || ( ! ( device.doesFileExist ( deviceFullFilePath ) ) ) ) { return false ; } } return true ; }
Source:
public void releaseNetwork ( ) { com.android.voicemail.impl.VvmLog.d ( com.android.voicemail.impl.sync.VvmNetworkRequestCallback.TAG , "releaseNetwork" ) ; getConnectivityManager ( ) . unregisterNetworkCallback ( this ) ; }

Target:
public void releaseNetwork ( ) { com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.sync.VvmNetworkRequestCallback.TAG , "releaseNetwork" ) ; if ( ! ( released ) ) { getConnectivityManager ( ) . unregisterNetworkCallback ( this ) ; released = true ; } else { com.android.voicemail.impl.VvmLog.w ( com.android.voicemail.impl.sync.VvmNetworkRequestCallback.TAG , "already released" ) ; } }
Source:
public void test_getResourceLjava_lang_String ( ) { java.net.URL u = java.lang.ClassLoader.getSystemClassLoader ( ) . getResource ( "hyts_Foo.c" ) ; assertNotNull ( "Unable to find resource" , u ) ; java.io.InputStream is = null ; try { is = u.openStream ( ) ; assertNotNull ( "Resource returned is invalid" , is ) ; is.close ( ) ; } catch ( java.io.IOException e ) { fail ( ( "IOException getting stream for resource : " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private static void assertGetResourceIsValid ( java.lang.ClassLoader classLoader , java.lang.String resourceName ) { java.net.URL u = classLoader.getResource ( resourceName ) ; assertNotNull ( u ) ; java.io.InputStream is = null ; try { is = u.openStream ( ) ; assertNotNull ( is ) ; is.close ( ) ; } catch ( java.io.IOException e ) { fail ( ( "IOException getting stream for resource : " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void disconnect ( java.lang.String callId ) { mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_DISCONNECT , callId ) . sendToTarget ( ) ; }

Target:
public void playDtmfTone ( java.lang.String callId , char digit , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_PLAY_DTMF ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = digit ; args.arg2 = callId ; args.arg3 = android.telecom.Log.createSubsession ( ) ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_PLAY_DTMF_TONE , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private int configuredNetworkId ( java.lang.String deviceAddress ) { return - 1 ; }

Target:
private int getNetworkIdFromClientList ( java.lang.String deviceAddress ) { if ( deviceAddress == null ) return - 1 ; java.util.Collection < android.net.wifi.p2p.WifiP2pGroup > groups = mGroups.getGroupList ( ) ; for ( android.net.wifi.p2p.WifiP2pGroup group : groups ) { int netId = group.getNetworkId ( ) ; java.lang.String [ ] p2pClientList = getClientList ( netId ) ; if ( p2pClientList == null ) continue ; for ( java.lang.String client : p2pClientList ) { if ( deviceAddress.equalsIgnoreCase ( client ) ) { return netId ; } } } return - 1 ; }
Source:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.resources.ResourceType ) { return mResources.hasResources ( ( ( com.android.resources.ResourceType ) ( element ) ) ) ; } else if ( ( mFullLevels ) && ( element instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( element ) ) . hasAlternates ( ) ; } return false ; }

Target:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.resources.ResourceType ) { return mResources.hasResourcesOfType ( ( ( com.android.resources.ResourceType ) ( element ) ) ) ; } else if ( ( mFullLevels ) && ( element instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( element ) ) . hasAlternates ( ) ; } return false ; }
Source:
public static java.lang.String getGMSVersionCode ( android.content.Context context ) { java.lang.String msg = "gms versionCode not available." ; try { android.content.pm.PackageManager packageManager = context.getPackageManager ( ) ; android.content.pm.PackageInfo packageInfo = packageManager.getPackageInfo ( "com.google.android.gms" , 0 ) ; msg = java.lang.Integer.toString ( packageInfo.versionCode ) ; } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { org.chromium.base.Log.d ( org.chromium.base.BuildInfo.TAG , "GMS package is not found." , e ) ; } return msg ; }

Target:
public static java.lang.String getGMSVersionCode ( ) { java.lang.String msg = "gms versionCode not available." ; try { android.content.pm.PackageManager packageManager = org.chromium.base.ContextUtils.getApplicationContext ( ) . getPackageManager ( ) ; android.content.pm.PackageInfo packageInfo = packageManager.getPackageInfo ( "com.google.android.gms" , 0 ) ; msg = java.lang.Integer.toString ( packageInfo.versionCode ) ; } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { org.chromium.base.Log.d ( org.chromium.base.BuildInfo.TAG , "GMS package is not found." , e ) ; } return msg ; }
Source:
public com.android.ahat.DocString render ( com.android.ahat.InstanceUtils.PathElement element ) { if ( element == null ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { com.android.ahat.DocString label = com.android.ahat.DocString.text ( " → " ) ; label.append ( com.android.ahat.Value.render ( mSnapshot , element.instance ) ) ; label.append ( element.field ) ; return label ; } }

Target:
public com.android.ahat.DocString render ( com.android.ahat.heapdump.PathElement element ) { if ( element == null ) { return com.android.ahat.DocString.link ( com.android.ahat.DocString.uri ( "rooted" ) , com.android.ahat.DocString.text ( "ROOT" ) ) ; } else { com.android.ahat.DocString label = com.android.ahat.DocString.text ( "→ " ) ; label.append ( com.android.ahat.Summarizer.summarize ( element.instance ) ) ; label.append ( element.field ) ; return label ; } }
Source:
public android.telephony.SignalStrength getSignalStrength ( int subId ) { com.android.internal.telephony.Phone p = getPhone ( subId ) ; if ( p == null ) { return null ; } return p.getSignalStrength ( ) ; }

Target:
public void setVoicemailRingtoneUri ( java.lang.String callingPackage , android.telecom.PhoneAccountHandle phoneAccountHandle , android.net.Uri uri ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ) ) ) { enforceModifyPermissionOrCarrierPrivilege ( com.android.phone.PhoneUtils.getSubIdForPhoneAccountHandle ( phoneAccountHandle ) ) ; } com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( phoneAccountHandle ) ; if ( phone == null ) { phone = mPhone ; } com.android.phone.settings.VoicemailNotificationSettingsUtil.setRingtoneUri ( phone , uri ) ; }
Source:
final void putUnchecked ( int pos , double [ ] src , int srcOffset , int length ) { libcore.io.Memory.pokeDoubleArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }

Target:
final void putUnchecked ( int pos , double [ ] src , int srcOffset , int length ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } libcore.io.Memory.pokeDoubleArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
public void object ( @ org.jetbrains.annotations.Nullable com.android.tools.rpclib.binary.BinaryObject obj ) throws java.io.IOException { if ( obj == null ) { uint16 ( BinaryObject.NULL_ID ) ; return ; } if ( mEncodedMap.containsKey ( obj ) ) { int key = mEncodedMap.get ( obj ) ; uint16 ( key ) ; return ; } int key = mEncodedMap.size ( ) ; mEncodedMap.put ( obj , key ) ; uint16 ( key ) ; obj.type ( ) . encode ( this ) ; obj.encode ( this ) ; }

Target:
public void object ( @ org.jetbrains.annotations.Nullable com.android.tools.rpclib.binary.BinaryObject obj ) throws java.io.IOException { if ( obj == null ) { uint32 ( BinaryObject.NULL_ID ) ; return ; } if ( mEncodedMap.containsKey ( obj ) ) { int key = mEncodedMap.get ( obj ) ; uint16 ( key ) ; return ; } int key = ( mEncodedMap.size ( ) ) + 1 ; mEncodedMap.put ( obj , key ) ; uint32 ( key ) ; obj.type ( ) . encode ( this ) ; obj.encode ( this ) ; }
Source:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { java.util.Collection < T > copiedCollection = new java.util.ArrayList < T > ( collection ) ; for ( T element : copiedCollection ) { element.traverse ( this ) ; } }

Target:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { java.util.ArrayList < T > copiedCollection = new java.util.ArrayList < T > ( collection ) ; for ( int i = 0 , len = copiedCollection.size ( ) ; i < len ; ++ i ) { copiedCollection.get ( i ) . traverse ( this ) ; } }
Source:
public void testHasExtraWithKeyDoesNotMatch ( ) { android.content.Intent intent = new android.content.Intent ( ) . putExtra ( "key1" , "value1" ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key2" ) . matches ( intent ) ) ; }

Target:
public void hasExtraWithKeyTesting ( ) { android.content.Intent intent = new android.content.Intent ( ) . putExtra ( "key1" , "value1" ) . putExtra ( "key2" , 100.0 ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key1" ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key2" ) . matches ( intent ) ) ; }
Source:
private void setStackDepthRecursive ( @ com.android.annotations.NonNull com.android.tools.perflib.vmtrace.Call call , int i ) { call.setDepth ( i ) ; for ( com.android.tools.perflib.vmtrace.Call c : call.getCallees ( ) ) { setStackDepthRecursive ( c , ( i + 1 ) ) ; } }

Target:
private void fixupCallStacks ( ) { if ( ( mTopLevelCallees ) != null ) { return ; } java.util.List < com.android.tools.perflib.vmtrace.Call > topLevelCallees = new java.util.ArrayList < com.android.tools.perflib.vmtrace.Call > ( mTopLevelCalls.size ( ) ) ; for ( com.android.tools.perflib.vmtrace.Call.Builder b : mTopLevelCalls ) { b.setStackDepth ( 0 ) ; topLevelCallees.add ( b.build ( ) ) ; } mTopLevelCallees = new com.google.common.collect.ImmutableList.Builder < com.android.tools.perflib.vmtrace.Call > ( ) . addAll ( topLevelCallees ) . build ( ) ; }
Source:
private void verifyInternal ( java.security.PublicKey key , java.lang.String sigProvider ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { java.security.Signature sig = getSignatureInstance ( getSigAlgName ( ) , sigProvider ) ; if ( sig == null ) { sig = getSignatureInstance ( getSigAlgOID ( ) , sigProvider ) ; } sig.initVerify ( key ) ; sig.update ( getTBSCertificate ( ) ) ; if ( ! ( sig.verify ( getSignature ( ) ) ) ) { throw new java.security.SignatureException ( "signature did not verify" ) ; } }

Target:
private void verifyInternal ( java.security.PublicKey key , java.lang.String sigProvider ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { final java.security.Signature sig ; if ( sigProvider == null ) { sig = java.security.Signature.getInstance ( getSigAlgName ( ) ) ; } else { sig = java.security.Signature.getInstance ( getSigAlgName ( ) , sigProvider ) ; } sig.initVerify ( key ) ; sig.update ( getTBSCertificate ( ) ) ; if ( ! ( sig.verify ( getSignature ( ) ) ) ) { throw new java.security.SignatureException ( "signature did not verify" ) ; } }
Source:
public static byte [ ] toByteArray ( com.google.common.io.InputSupplier < ? extends java.io.InputStream > supplier ) throws java.io.IOException { boolean threw = true ; java.io.InputStream in = supplier.getInput ( ) ; try { byte [ ] result = com.google.common.io.ByteStreams.toByteArray ( in ) ; threw = false ; return result ; } finally { com.google.common.io.Closeables.close ( in , threw ) ; } }

Target:
public int read ( byte [ ] b , int off , int len ) throws java.io.IOException { if ( ( left ) == 0 ) { return - 1 ; } len = ( ( int ) ( java.lang.Math.min ( len , left ) ) ) ; int result = in.read ( b , off , len ) ; if ( result != ( - 1 ) ) { left -= result ; } return result ; }
Source:
public void getRulesAuthTable ( java.lang.String cardId , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccRulesAuthTable > callback ) { try { getIEuiccCardController ( ) . getRulesAuthTable ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetRulesAuthTableCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccRulesAuthTable rat ) { callback.onComplete ( resultCode , rat ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getRulesAuthTable" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void requestRulesAuthTable ( java.lang.String cardId , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccRulesAuthTable > callback ) { try { getIEuiccCardController ( ) . getRulesAuthTable ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetRulesAuthTableCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccRulesAuthTable rat ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , rat ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getRulesAuthTable" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
void onConnectionEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras ) { android.telecom.Log.v ( this , "onConnectionEvent: %s" , event ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.onConnectionEvent ( callId , event , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void removeExtras ( java.lang.String callId , java.util.List < java.lang.String > keys ) { android.telecom.Log.v ( this , "removeExtras: %s %s" , callId , keys ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.removeExtras ( callId , keys , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public int getMTU ( ) throws java.net.SocketException { return java.net.NetworkInterface.getMTU0 ( name , index ) ; }

Target:
public int getMTU ( ) throws java.net.SocketException { java.io.FileDescriptor fd = null ; try { fd = Libcore.os.socket ( java.net.AF_INET , java.net.SOCK_DGRAM , 0 ) ; return Libcore.os.ioctlMTU ( fd , name ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsSocketException ( ) ; } catch ( java.lang.Exception ex ) { throw new java.net.SocketException ( ex ) ; } finally { libcore.io.IoUtils.closeQuietly ( fd ) ; } }
Source:
public static java.lang.annotation.Annotation createAnnotation ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType , org.apache.harmony.lang.annotation.AnnotationMember [ ] elements ) { org.apache.harmony.lang.annotation.AnnotationFactory factory = new org.apache.harmony.lang.annotation.AnnotationFactory ( annotationType , elements ) ; return ( ( java.lang.annotation.Annotation ) ( java.lang.reflect.Proxy.newProxyInstance ( annotationType.getClassLoader ( ) , new java.lang.Class [ ] { annotationType } , factory ) ) ) ; }

Target:
public static java.lang.annotation.Annotation createAnnotation ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType , libcore.reflect.AnnotationMember [ ] elements ) { libcore.reflect.AnnotationFactory factory = new libcore.reflect.AnnotationFactory ( annotationType , elements ) ; return ( ( java.lang.annotation.Annotation ) ( java.lang.reflect.Proxy.newProxyInstance ( annotationType.getClassLoader ( ) , new java.lang.Class [ ] { annotationType } , factory ) ) ) ; }
Source:
public void testOnKeyShortcut ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; android.view.KeyEvent event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_MENU ) ; getInstrumentation ( ) . sendKeySync ( event ) ; event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_0 ) ; getInstrumentation ( ) . sendKeySync ( event ) ; assertTrue ( view.hasCalledOnKeyShortcut ( ) ) ; }

Target:
public void testOnKeyMultiple ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; assertFalse ( view.hasCalledOnKeyMultiple ( ) ) ; android.view.KeyEvent keyEvent = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_MULTIPLE , android.view.KeyEvent.KEYCODE_ENTER ) ; getInstrumentation ( ) . sendKeySync ( keyEvent ) ; assertTrue ( view.hasCalledOnKeyMultiple ( ) ) ; }
Source:
public void rilConnected ( int indicationType ) { }

Target:
public void hardwareConfigChanged ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > configs ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < com.android.internal.telephony.HardwareConfig > response = com.android.internal.telephony.RIL.convertHalHwConfigList ( configs , mRil ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_HARDWARE_CONFIG_CHANGED , response ) ; mRil.mHardwareConfigChangeRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
public boolean remove ( java.lang.Object o ) { java.util.Iterator < java.util.Map.Entry < K , V > > iterator = unfiltered.entrySet ( ) . iterator ( ) ; while ( iterator.hasNext ( ) ) { java.util.Map.Entry < K , V > entry = iterator.next ( ) ; if ( ( com.google.common.base.Objects.equal ( o , entry.getValue ( ) ) ) && ( predicate.apply ( entry ) ) ) { iterator.remove ( ) ; return true ; } } return false ; }

Target:
public V2 apply ( java.util.Map.Entry < K , V1 > entry ) { return transformer.transformEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; }
Source:
public org.eclipse.swt.graphics.Image getPageImage ( ) { org.eclipse.core.resources.IFile file = mEditor.getInputFile ( ) ; if ( file != null ) { org.eclipse.core.resources.IContainer parent = file.getParent ( ) ; if ( parent != null ) { org.eclipse.swt.graphics.Image flag = com.android.ide.eclipse.adt.internal.editors.layout.configuration.LocaleManager.get ( ) . getFlagForFolderName ( parent.getName ( ) ) ; if ( flag != null ) { return flag ; } } } return com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( "editor_page_design" ) ; }

Target:
public org.eclipse.swt.graphics.Image getPageImage ( ) { org.eclipse.core.resources.IFile file = mEditor.getInputFile ( ) ; if ( file != null ) { org.eclipse.core.resources.IContainer parent = file.getParent ( ) ; if ( parent != null ) { org.eclipse.swt.graphics.Image flag = com.android.ide.eclipse.adt.internal.editors.layout.configuration.FlagManager.get ( ) . getFlagForFolderName ( parent.getName ( ) ) ; if ( flag != null ) { return flag ; } } } return com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( "editor_page_design" ) ; }
Source:
public void apply ( ) throws com.intellij.openapi.options.ConfigurationException { com.google.gct.testing.config.GoogleCloudTestingConfigurable.GoogleCloudTestingState state = new com.google.gct.testing.config.GoogleCloudTestingConfigurable.GoogleCloudTestingState ( ) ; state.fakeBucketName = fakeBucketNameField.getText ( ) ; state.shouldUseFakeBucket = useFakeBucketCheckbox.isSelected ( ) ; state.urlChoice = getUrlChoice ( ) ; state.backendUrl = getBackendUrl ( ) ; state.customUrl = customUrlField.getText ( ) ; getSavedSettings ( ) . loadState ( state ) ; com.google.gct.testing.launcher.CloudAuthenticator.recreateTest ( getBackendUrl ( ) ) ; }

Target:
public void apply ( ) throws com.intellij.openapi.options.ConfigurationException { com.google.gct.testing.config.GoogleCloudTestingConfigurable.GoogleCloudTestingState state = new com.google.gct.testing.config.GoogleCloudTestingConfigurable.GoogleCloudTestingState ( ) ; state.fakeBucketName = fakeBucketNameField.getText ( ) ; state.shouldUseFakeBucket = useFakeBucketCheckbox.isSelected ( ) ; state.backendOption = getBackendOption ( ) . ordinal ( ) ; state.backendUrl = getTestBackendUrl ( ) ; state.customUrl = customUrlField.getText ( ) ; getSavedSettings ( ) . loadState ( state ) ; com.google.gct.testing.launcher.CloudAuthenticator.recreateTestAndToolResults ( getTestBackendUrl ( ) , getToolResultsBackendUrl ( ) ) ; }
Source:
protected final java.util.List < com.android.tv.dvr.SeriesRecording > doInDvrBackground ( java.lang.Void ... params ) { if ( com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncDvrQuerySeriesRecordingTask.isCancelled ( ) ) { return null ; } java.util.List < com.android.tv.dvr.SeriesRecording > scheduledRecordings = new java.util.ArrayList < > ( ) ; try ( android.database.Cursor c = com.android.tv.dvr.provider.AsyncDvrDbTask.sDbHelper.query ( SeriesRecordings.TABLE_NAME , SeriesRecording.PROJECTION ) ) { while ( ( c.moveToNext ( ) ) && ( ! ( com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncDvrQuerySeriesRecordingTask.isCancelled ( ) ) ) ) { scheduledRecordings.add ( com.android.tv.dvr.SeriesRecording.fromCursor ( c ) ) ; } } return scheduledRecordings ; }

Target:
protected final java.util.List < com.android.tv.dvr.data.SeriesRecording > doInDvrBackground ( java.lang.Void ... params ) { if ( com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncDvrQuerySeriesRecordingTask.isCancelled ( ) ) { return null ; } java.util.List < com.android.tv.dvr.data.SeriesRecording > scheduledRecordings = new java.util.ArrayList < > ( ) ; try ( android.database.Cursor c = com.android.tv.dvr.provider.AsyncDvrDbTask.sDbHelper.query ( SeriesRecordings.TABLE_NAME , SeriesRecording.PROJECTION ) ) { while ( ( c.moveToNext ( ) ) && ( ! ( com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncDvrQuerySeriesRecordingTask.isCancelled ( ) ) ) ) { scheduledRecordings.add ( com.android.tv.dvr.data.SeriesRecording.fromCursor ( c ) ) ; } } return scheduledRecordings ; }
Source:
public void test_parkUntil_2 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }

Target:
public void test_parkUntil_2 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }
Source:
public void testRemove2_IndexOutOfBounds ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "adasdasd" ) ; c.remove ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSubList1_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.subList ( ( - 1 ) , list.size ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void testNotifyPackageUpdatedCodeLocations ( ) { java.lang.String newSplit = mBarUser0.replaceLastSplit ( ) ; java.util.List < java.lang.String > newSplits = new java.util.ArrayList < > ( ) ; newSplits.add ( newSplit ) ; notifyDexLoad ( mFooUser0 , newSplits , mUser0 ) ; assertNoUseInfo ( mBarUser0 ) ; mDexManager.notifyPackageUpdated ( mBarUser0.getPackageName ( ) , mBarUser0.mPackageInfo.applicationInfo.sourceDir , mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs ) ; notifyDexLoad ( mFooUser0 , newSplits , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; org.junit.Assert.assertNotNull ( pui ) ; org.junit.Assert.assertTrue ( pui.isUsedByOtherApps ( ) ) ; }

Target:
public void testNotifyPackageUpdatedCodeLocations ( ) { java.lang.String newSplit = mBarUser0.replaceLastSplit ( ) ; java.util.List < java.lang.String > newSplits = new java.util.ArrayList < > ( ) ; newSplits.add ( newSplit ) ; notifyDexLoad ( mFooUser0 , newSplits , mUser0 ) ; assertNoUseInfo ( mBarUser0 ) ; mDexManager.notifyPackageUpdated ( mBarUser0.getPackageName ( ) , mBarUser0.mPackageInfo.applicationInfo.sourceDir , mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs ) ; notifyDexLoad ( mFooUser0 , newSplits , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; org.junit.Assert.assertNotNull ( pui ) ; assertIsUsedByOtherApps ( newSplits , pui , true ) ; }
Source:
public void testOnKeyMultiple ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; assertFalse ( view.hasCalledOnKeyMultiple ( ) ) ; android.view.KeyEvent keyEvent = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_MULTIPLE , android.view.KeyEvent.KEYCODE_ENTER ) ; getInstrumentation ( ) . sendKeySync ( keyEvent ) ; assertTrue ( view.hasCalledOnKeyMultiple ( ) ) ; }

Target:
public void testOnKeyShortcut ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; android.view.KeyEvent event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_MENU ) ; getInstrumentation ( ) . sendKeySync ( event ) ; event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_0 ) ; getInstrumentation ( ) . sendKeySync ( event ) ; assertTrue ( view.hasCalledOnKeyShortcut ( ) ) ; }
Source:
private void fetchRuimRecords ( ) { recordsRequested = true ; android.util.Log.v ( com.android.internal.telephony.cdma.RuimRecords.LOG_TAG , ( "RuimRecords:fetchRuimRecords " + ( recordsToLoad ) ) ) ; mCi.getIMSI ( obtainMessage ( com.android.internal.telephony.cdma.RuimRecords.EVENT_GET_IMSI_DONE ) ) ; ( recordsToLoad ) ++ ; mFh.loadEFTransparent ( com.android.internal.telephony.cdma.EF_ICCID , obtainMessage ( com.android.internal.telephony.cdma.RuimRecords.EVENT_GET_ICCID_DONE ) ) ; ( recordsToLoad ) ++ ; log ( ( ( ( "RuimRecords:fetchRuimRecords " + ( recordsToLoad ) ) + " requested: " ) + ( recordsRequested ) ) ) ; }

Target:
private void fetchRuimRecords ( ) { recordsRequested = true ; if ( com.android.internal.telephony.cdma.RuimRecords.DBG ) log ( ( "fetchRuimRecords " + ( recordsToLoad ) ) ) ; mCi.getIMSI ( obtainMessage ( com.android.internal.telephony.cdma.RuimRecords.EVENT_GET_IMSI_DONE ) ) ; ( recordsToLoad ) ++ ; mFh.loadEFTransparent ( com.android.internal.telephony.cdma.EF_ICCID , obtainMessage ( com.android.internal.telephony.cdma.RuimRecords.EVENT_GET_ICCID_DONE ) ) ; ( recordsToLoad ) ++ ; if ( com.android.internal.telephony.cdma.RuimRecords.DBG ) log ( ( ( ( "fetchRuimRecords " + ( recordsToLoad ) ) + " requested: " ) + ( recordsRequested ) ) ) ; }
Source:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }

Target:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" , "plurals/plurals" ) ; }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int duration , int maxExtendedAdvertisingEvents , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , duration , maxExtendedAdvertisingEvents , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int timeoutMillis , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , timeoutMillis , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }