auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void schedulePackageCleaning ( java.lang.String packageName ) { mHandler.sendMessage ( mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.START_CLEANING_PACKAGE , packageName ) ) ; }

Target:
private void broadcastPackageVerified ( int verificationId , android.net.Uri packageUri , int verificationCode , android.os.UserHandle user ) { final android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_PACKAGE_VERIFIED ) ; intent.setDataAndType ( packageUri , com.android.server.pm.PackageManagerService.PACKAGE_MIME_TYPE ) ; intent.addFlags ( Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; intent.putExtra ( PackageManager.EXTRA_VERIFICATION_ID , verificationId ) ; intent.putExtra ( PackageManager.EXTRA_VERIFICATION_RESULT , verificationCode ) ; mContext.sendBroadcastAsUser ( intent , user , android.Manifest.permission.PACKAGE_VERIFICATION_AGENT ) ; }
Source:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.jack.optimizations.ExpressionSimplifierTest.hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( com.android.jack.optimizations.ExpressionSimplifierTest.hooks ) ; options.getConfigBuilder ( com.android.jack.optimizations.ExpressionSimplifierTest.hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
public com.android.dialer.historyitemactions.HistoryItemActionModulesBuilder addModuleForSendingTextMessage ( ) { if ( ( moduleInfo.getIsBlocked ( ) ) || ( android.text.TextUtils.isEmpty ( moduleInfo.getNormalizedNumber ( ) ) ) ) { return this ; } modules.add ( com.android.dialer.historyitemactions.IntentModule.newModuleForSendingTextMessage ( context , moduleInfo.getNormalizedNumber ( ) ) ) ; return this ; }

Target:
public com.android.dialer.historyitemactions.HistoryItemActionModulesBuilder addModuleForSendingTextMessage ( ) { if ( ( ( moduleInfo.getIsVoicemailCall ( ) ) || ( moduleInfo.getIsBlocked ( ) ) ) || ( android.text.TextUtils.isEmpty ( moduleInfo.getNormalizedNumber ( ) ) ) ) { return this ; } modules.add ( com.android.dialer.historyitemactions.IntentModule.newModuleForSendingTextMessage ( context , moduleInfo.getNormalizedNumber ( ) ) ) ; return this ; }
Source:
public java.lang.String iccTransmitApduLogicalChannel ( int channel , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduLogicalChannel ( channel , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public boolean iccCloseLogicalChannel ( int channel ) { return iccCloseLogicalChannel ( getSubId ( ) , channel ) ; }
Source:
void setArg ( int index , java.lang.Object obj ) { mArgs [ index ] = obj ; android.renderscript.ScriptGroup.Closure.ValueAndSize vs = new android.renderscript.ScriptGroup.Closure.ValueAndSize ( mRS , obj ) ; mRS.nClosureSetArg ( getID ( mRS ) , index , vs.value , vs.size ) ; }

Target:
void setArg ( int index , java.lang.Object obj ) { if ( obj instanceof android.renderscript.ScriptGroup.Future ) { obj = ( ( android.renderscript.ScriptGroup.Future ) ( obj ) ) . getValue ( ) ; } mArgs [ index ] = obj ; android.renderscript.ScriptGroup.Closure.ValueAndSize vs = new android.renderscript.ScriptGroup.Closure.ValueAndSize ( mRS , obj ) ; mRS.nClosureSetArg ( getID ( mRS ) , index , vs.value , vs.size ) ; }
Source:
public boolean isDataVersionAcceptable ( byte [ ] version ) { return ( version [ 0 ] ) == 1 ; }

Target:
public boolean isDataVersionAcceptable ( byte [ ] version ) { return ( ( ( ( version [ 0 ] ) == ( android.icu.text.SpoofChecker.ConfusableDataUtils.FORMAT_VERSION ) ) || ( ( version [ 1 ] ) != 0 ) ) || ( ( version [ 2 ] ) != 0 ) ) || ( ( version [ 3 ] ) != 0 ) ; }
Source:
public byte [ ] getEncoded ( ) { try { org.bouncycastle.asn1.pkcs.PrivateKeyInfo info = new org.bouncycastle.asn1.pkcs.PrivateKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.elGamalAlgorithm , new org.bouncycastle.asn1.oiw.ElGamalParameter ( elSpec.getP ( ) , elSpec.getG ( ) ) ) , new org.bouncycastle.asn1.DERInteger ( getX ( ) ) ) ; return info.getEncoded ( ASN1Encoding.DER ) ; } catch ( java.io.IOException e ) { return null ; } }

Target:
public byte [ ] getEncoded ( ) { try { org.bouncycastle.asn1.pkcs.PrivateKeyInfo info = new org.bouncycastle.asn1.pkcs.PrivateKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.elGamalAlgorithm , new org.bouncycastle.asn1.oiw.ElGamalParameter ( elSpec.getP ( ) , elSpec.getG ( ) ) ) , new org.bouncycastle.asn1.ASN1Integer ( getX ( ) ) ) ; return info.getEncoded ( ASN1Encoding.DER ) ; } catch ( java.io.IOException e ) { return null ; } }
Source:
public java.nio.ByteBuffer putInt ( int index , int value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.INT ) ; this . block.pokeInt ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putInt ( int index , int value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.INT ) ; this . block.pokeInt ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public static android.content.Intent checkIntentComponent ( final android.content.ComponentName component ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return com.google.common.base.Objects.equal ( ( ( android.content.Intent ) ( item ) ) . getComponent ( ) , component ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( ( "Intent: component=\"" + component ) + "\"" ) ) ; } } ; return org.mockito.Mockito.argThat ( m ) ; }

Target:
public static android.content.Intent checkIntentComponent ( final android.content.ComponentName component ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return com.google.common.base.Objects.equal ( ( ( android.content.Intent ) ( item ) ) . getComponent ( ) , component ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( ( "Intent: component=\"" + component ) + "\"" ) ) ; } } ; return org.mockito.hamcrest.MockitoHamcrest.argThat ( m ) ; }
Source:
public static java.lang.String externalFullMethodDescription ( java.lang.String internalClassName , int accessFlags , java.lang.String internalMethodName , java.lang.String internalMethodDescriptor ) { return ( ( ( ( proguard.classfile.util.ClassUtil.externalMethodAccessFlags ( accessFlags ) ) + ( proguard.classfile.util.ClassUtil.externalMethodReturnTypeAndName ( internalClassName , internalMethodName , internalMethodDescriptor ) ) ) + ( proguard.classfile.ClassConstants.EXTERNAL_METHOD_ARGUMENTS_OPEN ) ) + ( proguard.classfile.util.ClassUtil.externalMethodArguments ( internalMethodDescriptor ) ) ) + ( proguard.classfile.ClassConstants.EXTERNAL_METHOD_ARGUMENTS_CLOSE ) ; }

Target:
public static java.lang.String externalFullMethodDescription ( java.lang.String internalClassName , int accessFlags , java.lang.String internalMethodName , java.lang.String internalMethodDescriptor ) { return ( ( ( ( proguard.classfile.util.ClassUtil.externalMethodAccessFlags ( accessFlags ) ) + ( proguard.classfile.util.ClassUtil.externalMethodReturnTypeAndName ( internalClassName , internalMethodName , internalMethodDescriptor ) ) ) + ( JavaConstants.METHOD_ARGUMENTS_OPEN ) ) + ( proguard.classfile.util.ClassUtil.externalMethodArguments ( internalMethodDescriptor ) ) ) + ( JavaConstants.METHOD_ARGUMENTS_CLOSE ) ; }
Source:
public void callSessionSuppServiceReceived ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsSuppServiceNotification suppServiceInfo ) { if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionSuppServiceReceived :: not supported for transient conference" + " session=" ) + session ) ) ; return ; } logi ( ( ( ( "callSessionSuppServiceReceived :: session=" + session ) + ", suppServiceInfo" ) + suppServiceInfo ) ) ; com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onCallSuppServiceReceived ( this , suppServiceInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionSuppServiceReceived :: " , t ) ; } } }

Target:
public void callSessionSuppServiceReceived ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsSuppServiceNotification suppServiceInfo ) { if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionSuppServiceReceived :: not supported for transient conference" + " session=" ) + session ) ) ; return ; } logi ( ( ( ( "callSessionSuppServiceReceived :: session=" + session ) + ", suppServiceInfo" ) + suppServiceInfo ) ) ; com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onCallSuppServiceReceived ( this , suppServiceInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionSuppServiceReceived :: " , t ) ; } } }
Source:
private static TestFmwk.Target test_for_TestFmwk_GetTargets ( android.icu.dev.test.TestFmwk testFmwk ) { try { return ( ( android.icu.dev.test.TestFmwk.Target ) ( android.icu.junit.TestFmwkUtils.getTargetsMethod.invoke ( testFmwk , new java.lang.Object [ ] { null } ) ) ) ; } catch ( java.lang.reflect.InvocationTargetException | java.lang.IllegalAccessException e ) { throw new java.lang.IllegalStateException ( ( "Problem calling getTargets(null) on " + testFmwk ) , e ) ; } }

Target:
private static TestFmwk.Target test_for_TestFmwk_GetTargets ( android.icu.dev.test.TestFmwk testFmwk ) { try { java.util.Locale.setDefault ( android.icu.junit.TestFmwkUtils.defaultLocale ) ; android.icu.util.TimeZone.setDefault ( android.icu.junit.TestFmwkUtils.defaultTimeZone ) ; return ( ( android.icu.dev.test.TestFmwk.Target ) ( android.icu.junit.TestFmwkUtils.getTargetsMethod.invoke ( testFmwk , new java.lang.Object [ ] { null } ) ) ) ; } catch ( java.lang.reflect.InvocationTargetException | java.lang.IllegalAccessException e ) { throw new java.lang.IllegalStateException ( ( "Problem calling getTargets(null) on " + testFmwk ) , e ) ; } }
Source:
public boolean p2pGroupRemove ( java.lang.String iface ) { if ( android.text.TextUtils.isEmpty ( iface ) ) return false ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " P2P_GROUP_REMOVE " ) + iface ) ) ; } }

Target:
public boolean p2pGroupRemove ( java.lang.String iface ) { if ( android.text.TextUtils.isEmpty ( iface ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupRemove ( iface ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " P2P_GROUP_REMOVE " ) + iface ) ) ; } } }
Source:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onCharacteristicChanged" ) ; if ( ( ( characteristic.getUuid ( ) ) != null ) && ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ) ) { notifyCharacteristicChanged ( characteristic.getStringValue ( 0 ) ) ; setNotification ( false ) ; sleep ( 1000 ) ; mBluetoothGatt.readRemoteRssi ( ) ; } }

Target:
private void setNotification ( android.bluetooth.BluetoothGattCharacteristic characteristic , boolean enable ) { if ( characteristic != null ) { mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_DESCRIPTOR_UUID ) ; if ( enable ) { if ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_INDICATION_VALUE ) ; } else { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE ) ; } } else { descriptor.setValue ( BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE ) ; } mBluetoothGatt.writeDescriptor ( descriptor ) ; } }
Source:
public com.android.builder.core.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.GroupableProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider , @ com.android.annotations.NonNull java.lang.String dimensionName ) { com.google.common.base.Preconditions.checkNotNull ( productFlavor ) ; com.google.common.base.Preconditions.checkNotNull ( sourceProvider ) ; com.google.common.base.Preconditions.checkNotNull ( dimensionName ) ; super . addProductFlavor ( productFlavor , sourceProvider , dimensionName ) ; computeNdkConfig ( ) ; return this ; }

Target:
public com.android.builder.core.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.CoreProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider , @ com.android.annotations.NonNull java.lang.String dimensionName ) { com.google.common.base.Preconditions.checkNotNull ( productFlavor ) ; com.google.common.base.Preconditions.checkNotNull ( sourceProvider ) ; com.google.common.base.Preconditions.checkNotNull ( dimensionName ) ; super . addProductFlavor ( productFlavor , sourceProvider , dimensionName ) ; computeNdkConfig ( ) ; return this ; }
Source:
public int dexOptSecondaryDexPath ( android.content.pm.ApplicationInfo info , java.lang.String path , java.util.Set < java.lang.String > isas , java.lang.String compilerFilter , boolean isUsedByOtherApps , boolean downgrade ) { synchronized ( mInstallLock ) { final long acquireTime = acquireWakeLockLI ( info.uid ) ; try { return dexOptSecondaryDexPathLI ( info , path , isas , compilerFilter , isUsedByOtherApps , downgrade ) ; } finally { releaseWakeLockLI ( acquireTime ) ; } } }

Target:
public int dexOptSecondaryDexPath ( android.content.pm.ApplicationInfo info , java.lang.String path , com.android.server.pm.dex.PackageDexUsage.DexUseInfo dexUseInfo , com.android.server.pm.dex.DexoptOptions options ) { synchronized ( mInstallLock ) { final long acquireTime = acquireWakeLockLI ( info.uid ) ; try { return dexOptSecondaryDexPathLI ( info , path , dexUseInfo , options ) ; } finally { releaseWakeLockLI ( acquireTime ) ; } } }
Source:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( qualifier ) ) ; if ( ( ( referenceQualifier.mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.SOFT ) ) && ( ( mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.EXPOSED ) ) ) { return true ; } return ( referenceQualifier.mValue ) == ( mValue ) ; } return false ; }

Target:
public java.lang.String getStringValue ( ) { if ( ( mValue ) != null ) { return mValue.getDisplayValue ( ) ; } return "" ; }
Source:
private android.support.test.uiautomator.UiObject findEjectIcon ( java.lang.String rootLabel ) throws android.support.test.uiautomator.UiObjectNotFoundException { final android.support.test.uiautomator.UiSelector rootsList = findRootListSelector ( ) ; revealRoot ( rootsList , rootLabel ) ; final android.support.test.uiautomator.UiScrollable rootsListObject = new android.support.test.uiautomator.UiScrollable ( rootsList ) ; final android.support.test.uiautomator.UiObject rootItem = rootsListObject.getChildByText ( new android.support.test.uiautomator.UiSelector ( ) , rootLabel , false ) ; final android.support.test.uiautomator.UiSelector ejectIcon = new android.support.test.uiautomator.UiSelector ( ) . resourceId ( "com.android.documentsui:id/eject_icon" ) ; return new android.support.test.uiautomator.UiObject ( rootItem.getSelector ( ) . childSelector ( ejectIcon ) ) ; }

Target:
private android.support.test.uiautomator.UiObject findEjectIcon ( java.lang.String rootLabel ) throws android.support.test.uiautomator.UiObjectNotFoundException { final android.support.test.uiautomator.UiSelector rootsList = findRootListSelector ( ) ; revealRoot ( rootsList , rootLabel ) ; final android.support.test.uiautomator.UiScrollable rootsListObject = new android.support.test.uiautomator.UiScrollable ( rootsList ) ; final android.support.test.uiautomator.UiObject rootItem = rootsListObject.getChildByText ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.LinearLayout" ) , rootLabel , false ) ; final android.support.test.uiautomator.UiSelector ejectIcon = new android.support.test.uiautomator.UiSelector ( ) . resourceId ( "com.android.documentsui:id/eject_icon" ) ; return new android.support.test.uiautomator.UiObject ( rootItem.getSelector ( ) . childSelector ( ejectIcon ) ) ; }
Source:
static int log10Floor ( long x ) { int y = com.google.common.math.LongMath.MAX_LOG10_FOR_LEADING_ZEROS [ java.lang.Long.numberOfLeadingZeros ( x ) ] ; long sgn = ( x - ( com.google.common.math.LongMath.POWERS_OF_10 [ y ] ) ) > > > ( ( java.lang.Long.SIZE ) - 1 ) ; return y - ( ( int ) ( sgn ) ) ; }

Target:
static int log10Floor ( long x ) { int y = com.google.common.math.LongMath.maxLog10ForLeadingZeros [ java.lang.Long.numberOfLeadingZeros ( x ) ] ; return y - ( com.google.common.math.LongMath.lessThanBranchFree ( x , com.google.common.math.LongMath.powersOf10 [ y ] ) ) ; }
Source:
public void throwing ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Throwable thrown ) { if ( ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( java.util.logging.Level.FINER , "THROW" ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }

Target:
public void throwing ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( java.util.logging.Level.FINER ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( java.util.logging.Level.FINER , "THROW" ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
boolean updateOrientationFromAppTokensLocked ( boolean inTransaction ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { int req = getOrientationFromWindowsLocked ( ) ; if ( req == ( android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED ) ) { req = getOrientationFromAppTokensLocked ( ) ; } if ( req != ( mForcedAppOrientation ) ) { mForcedAppOrientation = req ; mPolicy.setCurrentOrientationLw ( req ) ; if ( updateRotationUncheckedLocked ( inTransaction ) ) { return true ; } } return false ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }

Target:
boolean updateOrientationFromAppTokensLocked ( boolean inTransaction ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { int req = getOrientationLocked ( ) ; if ( req != ( mForcedAppOrientation ) ) { mForcedAppOrientation = req ; mPolicy.setCurrentOrientationLw ( req ) ; if ( updateRotationUncheckedLocked ( inTransaction ) ) { return true ; } } return false ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
private void complete ( ) { com.ibm.icu.text.DateTimePatternGenerator.PatternInfo patternInfo = new com.ibm.icu.text.DateTimePatternGenerator.PatternInfo ( ) ; for ( int i = 0 ; i < ( com.ibm.icu.text.DateTimePatternGenerator.CANONICAL_ITEMS.length ) ; ++ i ) { addPattern ( java.lang.String.valueOf ( com.ibm.icu.text.DateTimePatternGenerator.CANONICAL_ITEMS [ i ] ) , false , patternInfo ) ; } }

Target:
private void addCanonicalItems ( ) { com.ibm.icu.text.DateTimePatternGenerator.PatternInfo patternInfo = new com.ibm.icu.text.DateTimePatternGenerator.PatternInfo ( ) ; for ( int i = 0 ; i < ( com.ibm.icu.text.DateTimePatternGenerator.CANONICAL_ITEMS.length ) ; ++ i ) { addPattern ( java.lang.String.valueOf ( com.ibm.icu.text.DateTimePatternGenerator.CANONICAL_ITEMS [ i ] ) , false , patternInfo ) ; } }
Source:
public void testAdbInstallFile ( ) throws java.lang.Exception { final android.appsecurity.cts.List < java.lang.String > output = android.appsecurity.cts.AdbOutputReader.getOutput ( 5000L , new java.lang.String [ ] { "adb" , "-s" , getDevice ( ) . getSerialNumber ( ) , "shell" , "cmd" , "package" , "install" , "-S" , "1024" , "/data/local/tmp/foo.apk" } ) ; assertEquals ( "Line count" , 1 , output.size ( ) ) ; assertEquals ( "Error text" , "Error: APK content must be streamed" , output.get ( 0 ) ) ; }

Target:
public void testAdbInstallFile ( ) throws java.lang.Exception { final java.util.List < java.lang.String > output = android.appsecurity.cts.AppSecurityTests.AdbOutputReader.getOutput ( 5000L , new java.lang.String [ ] { "adb" , "-s" , getDevice ( ) . getSerialNumber ( ) , "shell" , "cmd" , "package" , "install" , "-S" , "1024" , "/data/local/tmp/foo.apk" } ) ; assertEquals ( "Line count" , 1 , output.size ( ) ) ; assertEquals ( "Error text" , "Error: APK content must be streamed" , output.get ( 0 ) ) ; }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.ddmlib.IDevice ) { com.android.hierarchyviewerlib.device.Window [ ] list = model.getWindows ( ( ( com.android.ddmlib.IDevice ) ( parentElement ) ) ) ; if ( list != null ) { return list ; } } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( ( parentElement instanceof com.android.ddmlib.IDevice ) && ( doTreeViewStuff ) ) { com.android.hierarchyviewerlib.device.Window [ ] list = model.getWindows ( ( ( com.android.ddmlib.IDevice ) ( parentElement ) ) ) ; if ( list != null ) { return list ; } } return new java.lang.Object [ 0 ] ; }
Source:
protected void doOKAction ( ) { final org.jetbrains.plugins.github.GithubSettings settings = org.jetbrains.plugins.github.GithubSettings.getInstance ( ) ; settings.setAnonymousGist ( myGithubCreateGistPanel.isAnonymous ( ) ) ; settings.setOpenInBrowserGist ( myGithubCreateGistPanel.isOpenInBrowser ( ) ) ; settings.setPrivateGist ( myGithubCreateGistPanel.isPrivate ( ) ) ; super . doOKAction ( ) ; }

Target:
protected void doOKAction ( ) { final org.jetbrains.plugins.github.util.GithubSettings settings = org.jetbrains.plugins.github.util.GithubSettings.getInstance ( ) ; settings.setAnonymousGist ( myGithubCreateGistPanel.isAnonymous ( ) ) ; settings.setOpenInBrowserGist ( myGithubCreateGistPanel.isOpenInBrowser ( ) ) ; settings.setPrivateGist ( myGithubCreateGistPanel.isPrivate ( ) ) ; super . doOKAction ( ) ; }
Source:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { android.util.Log.i ( android.security.cts.StagefrightTest.TAG , ( "error: " + newWhat ) ) ; if ( ( what ) != ( android.media.MediaPlayer.MEDIA_ERROR_SERVER_DIED ) ) { what = newWhat ; } lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return true ; BRANCH ( 19 ) ; android.security.cts.b532 DO ; security : { exceptions ( android.security.cts.StagefrightTest ) ; } }

Target:
public boolean onError ( android.media.MediaPlayer mp , int newWhat , int extra ) { android.util.Log.i ( android.security.cts.StagefrightTest.TAG , ( ( ( "error: " + newWhat ) + "/" ) + extra ) ) ; if ( ( what ) != ( android.media.MediaPlayer.MEDIA_ERROR_SERVER_DIED ) ) { what = newWhat ; } lock.lock ( ) ; condition.signal ( ) ; lock.unlock ( ) ; return true ; }
Source:
public java.util.Set < K > keySet ( ) { java.util.Set < K > result = keySet ; if ( result == null ) { return keySet = new com.google.common.collect.Maps.KeySet < K , V > ( ) { @ java.lang.Override java.util.Map < K , V > map ( ) { return com.google.common.collect.Maps.ImprovedAbstractMap.this ; } } ; } return result ; }

Target:
public java.util.Set < K > keySet ( ) { java.util.Set < K > result = keySet ; return result == null ? keySet = createKeySet ( ) : result ; }
Source:
public void sendDialerSpecialCode ( java.lang.String callingPackage , java.lang.String inputCode ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; java.lang.String defaultDialer = android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , defaultDialer ) ) ) { enforceCarrierPrivilege ( getDefaultSubscription ( ) ) ; } mPhone.sendDialerSpecialCode ( inputCode ) ; }

Target:
public void sendDialerSpecialCode ( java.lang.String callingPackage , java.lang.String inputCode ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; java.lang.String defaultDialer = android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , defaultDialer ) ) ) { com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfCarrierPrivilege ( getDefaultSubscription ( ) , "sendDialerSpecialCode" ) ; } mPhone.sendDialerSpecialCode ( inputCode ) ; }
Source:
public synchronized void close ( int cause ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "Closing call " + ( mCurrentCall ) ) + "state: " ) + ( mClosed ) ) ) ; } if ( mClosed ) { return ; } android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( "Setting " + ( mCurrentCall ) ) + " to disconnected" ) ) ; setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; mClosed = true ; mCurrentCall = null ; destroy ( ) ; }

Target:
public synchronized void close ( int cause ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "Closing call " + ( mCurrentCall ) ) + "state: " ) + ( mClosed ) ) ) ; } if ( mClosed ) { return ; } android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "Setting " + ( mCurrentCall ) ) + " to disconnected " ) + ( getTelecomCallId ( ) ) ) ) ; setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; mClosed = true ; mCurrentCall = null ; destroy ( ) ; }
Source:
private void stopRtt ( java.lang.String callId ) { android.telecom.Log.d ( this , "stopRtt(%s)" , callId ) ; if ( mConnectionById.containsKey ( callId ) ) { findConnectionForAction ( callId , "stopRtt" ) . onStopRtt ( ) ; } else if ( mConferenceById.containsKey ( callId ) ) { android.telecom.Log.w ( this , "stopRtt called on a conference." ) ; } }

Target:
private void stopRtt ( java.lang.String callId ) { android.telecom.Log.d ( this , "stopRtt(%s)" , callId ) ; if ( mConnectionById.containsKey ( callId ) ) { findConnectionForAction ( callId , "stopRtt" ) . onStopRtt ( ) ; findConnectionForAction ( callId , "stopRtt" ) . unsetRttProperty ( ) ; } else if ( mConferenceById.containsKey ( callId ) ) { android.telecom.Log.w ( this , "stopRtt called on a conference." ) ; } }
Source:
public boolean removeTask ( int taskId ) { synchronized ( this ) { enforceCallingPermission ( android.Manifest.permission.REMOVE_TASKS , "removeTask()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return removeTaskByIdLocked ( taskId , true ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public boolean removeTask ( int taskId ) { enforceCallingPermission ( android.Manifest.permission.REMOVE_TASKS , "removeTask()" ) ; synchronized ( this ) { final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return removeTaskByIdLocked ( taskId , true , com.android.server.am.ActivityManagerService.REMOVE_FROM_RECENTS ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public static java.io.BufferedOutputStream open ( java.lang.String path ) throws java.io.FileNotFoundException { java.io.File file = com.google.android.droiddriver.util.FileUtils.getAbsoluteFile ( path ) ; com.google.android.droiddriver.util.Logs.log ( Log.INFO , ( "opening file " + ( file.getAbsolutePath ( ) ) ) ) ; java.io.BufferedOutputStream stream = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( file ) ) ; file.setReadable ( true , false ) ; file.setWritable ( true , false ) ; return stream ; }

Target:
public static java.io.BufferedOutputStream open ( java.lang.String path ) throws java.io.FileNotFoundException { java.io.File file = com.google.android.droiddriver.util.FileUtils.getAbsoluteFile ( path ) ; com.google.android.droiddriver.util.Logs.log ( Log.INFO , ( "opening file " + ( file.getAbsolutePath ( ) ) ) ) ; java.io.BufferedOutputStream stream = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( file ) ) ; if ( ( Build.VERSION.SDK_INT ) >= ( Build.VERSION_CODES.GINGERBREAD ) ) { file.setReadable ( true , false ) ; file.setWritable ( true , false ) ; } return stream ; }
Source:
public static void start ( ) { if ( ! ( com.android.internal.os.SamplingProfilerIntegration.enabled ) ) { return ; } if ( ( com.android.internal.os.SamplingProfilerIntegration.samplingProfiler ) != null ) { android.util.Log.e ( com.android.internal.os.SamplingProfilerIntegration.TAG , ( "SamplingProfilerIntegration already started at " + ( new java.util.Date ( com.android.internal.os.SamplingProfilerIntegration.startMillis ) ) ) ) ; return ; } java.lang.ThreadGroup group = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; dalvik.system.profiler.SamplingProfiler.ThreadSet threadSet = dalvik.system.profiler.SamplingProfiler.newThreadGroupTheadSet ( group ) ; com.android.internal.os.SamplingProfilerIntegration.samplingProfiler = new dalvik.system.profiler.SamplingProfiler ( com.android.internal.os.SamplingProfilerIntegration.samplingProfilerDepth , threadSet ) ; com.android.internal.os.SamplingProfilerIntegration.samplingProfiler.start ( com.android.internal.os.SamplingProfilerIntegration.samplingProfilerMilliseconds ) ; com.android.internal.os.SamplingProfilerIntegration.startMillis = java.lang.System.currentTimeMillis ( ) ; }

Target:
public static void start ( ) { if ( ! ( com.android.internal.os.SamplingProfilerIntegration.enabled ) ) { return ; } if ( ( com.android.internal.os.SamplingProfilerIntegration.samplingProfiler ) != null ) { android.util.Log.e ( com.android.internal.os.SamplingProfilerIntegration.TAG , ( "SamplingProfilerIntegration already started at " + ( new java.util.Date ( com.android.internal.os.SamplingProfilerIntegration.startMillis ) ) ) ) ; return ; } java.lang.ThreadGroup group = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; dalvik.system.profiler.SamplingProfiler.ThreadSet threadSet = dalvik.system.profiler.SamplingProfiler.newThreadGroupThreadSet ( group ) ; com.android.internal.os.SamplingProfilerIntegration.samplingProfiler = new dalvik.system.profiler.SamplingProfiler ( com.android.internal.os.SamplingProfilerIntegration.samplingProfilerDepth , threadSet ) ; com.android.internal.os.SamplingProfilerIntegration.samplingProfiler.start ( com.android.internal.os.SamplingProfilerIntegration.samplingProfilerMilliseconds ) ; com.android.internal.os.SamplingProfilerIntegration.startMillis = java.lang.System.currentTimeMillis ( ) ; }
Source:
protected void finalize ( ) { if ( ( ( mSelfObserver ) != null ) && ( ( mSelfObserverRegistered ) == true ) ) { mContentResolver.unregisterContentObserver ( mSelfObserver ) ; } }

Target:
protected void finalize ( ) { if ( ( ( mSelfObserver ) != null ) && ( ( mSelfObserverRegistered ) == true ) ) { mContentResolver.unregisterContentObserver ( mSelfObserver ) ; } try { if ( ! ( mClosed ) ) close ( ) ; } catch ( java.lang.Exception e ) { } }
Source:
public void waitToFinishRendering ( ) throws java.lang.InterruptedException { if ( ! ( android.graphics.cts.CameraGpuCtsActivity.nIsCameraReady ( mNativeRenderer ) ) ) { return ; } if ( ! ( mFinishedRendering.await ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ) ) { throw new java.lang.IllegalStateException ( "Coudn't finish drawing frames!" ) ; } }

Target:
public void waitToFinishRendering ( ) throws java.lang.InterruptedException { mNativeRendererInitialized.acquire ( ) ; if ( ! ( android.graphics.cts.CameraGpuCtsActivity.nIsCameraReady ( mNativeRenderer ) ) ) { return ; } if ( ! ( mFinishedRendering.await ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ) ) { throw new java.lang.IllegalStateException ( "Coudn't finish drawing frames!" ) ; } }
Source:
public java.lang.String getProvisionedStringValue ( int item ) throws com.android.ims.ImsException { java.lang.String ret = "Unknown" ; try { ret = miConfig.getProvisionedStringValue ( item ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getProvisionedStringValue()" , e , ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( ( ( "getProvisionedStringValue(): item = " + item ) + ", ret =" ) + ret ) ) ; return ret ; }

Target:
public java.lang.String getConfigString ( int item ) throws com.android.ims.ImsException { java.lang.String ret = "Unknown" ; try { ret = miConfig.getConfigString ( item ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getConfigString()" , e , ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( ( ( "getConfigString(): item = " + item ) + ", ret =" ) + ret ) ) ; return ret ; }
Source:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "org.conscrypt.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "org.conscrypt.JSSEProvider" ) ; }

Target:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "com.android.org.conscrypt.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "com.android.org.conscrypt.JSSEProvider" ) ; }
Source:
public boolean matchesSafely ( java.util.EventObject item ) { return ( eventClass.isInstance ( item ) ) && ( eventHasSameSource ( item ) ) ; }

Target:
public boolean matchesSafely ( java.util.EventObject item , org.hamcrest.Description mismatchDescription ) { if ( ! ( eventClass.isInstance ( item ) ) ) { mismatchDescription.appendText ( ( "item type was " + ( item.getClass ( ) . getName ( ) ) ) ) ; return false ; } if ( ! ( eventHasSameSource ( item ) ) ) { mismatchDescription.appendText ( "source was " ) . appendValue ( item.getSource ( ) ) ; return false ; } return true ; }
Source:
protected void sendSms ( java.lang.String text , android.app.PendingIntent sentIntent ) { com.android.voicemail.impl.VvmLog.v ( com.android.voicemail.impl.sms.OmtpMessageSender.TAG , java.lang.String.format ( "Sending sms '%s' to %s:%d" , text , destinationNumber , applicationPort ) ) ; com.android.voicemail.impl.TelephonyMangerCompat.sendVisualVoicemailSms ( context , phoneAccountHandle , destinationNumber , applicationPort , text , sentIntent ) ; }

Target:
protected void sendSms ( java.lang.String text , android.app.PendingIntent sentIntent ) { com.android.voicemail.impl.VvmLog.v ( com.android.voicemail.impl.sms.OmtpMessageSender.TAG , java.lang.String.format ( "Sending sms '%s' to %s:%d" , text , destinationNumber , applicationPort ) ) ; context.getSystemService ( android.telephony.TelephonyManager.class ) . createForPhoneAccountHandle ( phoneAccountHandle ) . sendVisualVoicemailSms ( destinationNumber , applicationPort , text , sentIntent ) ; }
Source:
private static android.net.Uri createDraftMmsMessage ( com.google.android.mms.pdu.PduPersister persister , com.google.android.mms.pdu.SendReq sendReq , com.android.mms.model.SlideshowModel slideshow ) { try { com.google.android.mms.pdu.PduBody pb = slideshow.toPduBody ( ) ; sendReq.setBody ( pb ) ; android.net.Uri res = persister.persist ( sendReq , Mms.Draft.CONTENT_URI ) ; slideshow.sync ( pb ) ; return res ; } catch ( com.google.android.mms.MmsException e ) { return null ; } }

Target:
private static android.net.Uri createDraftMmsMessage ( com.google.android.mms.pdu.PduPersister persister , com.google.android.mms.pdu.SendReq sendReq , com.android.mms.model.SlideshowModel slideshow , android.net.Uri preUri ) { if ( slideshow == null ) { return null ; } try { com.google.android.mms.pdu.PduBody pb = slideshow.toPduBody ( ) ; sendReq.setBody ( pb ) ; android.net.Uri res = persister.persist ( sendReq , ( preUri == null ? Mms.Draft.CONTENT_URI : preUri ) ) ; slideshow.sync ( pb ) ; return res ; } catch ( com.google.android.mms.MmsException e ) { return null ; } }
Source:
private static org.objectweb.asm.tree.MethodNode getFirstRealMethod ( @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( classNode.methods ) != null ) { @ java.lang.SuppressWarnings ( value = "rawtypes" ) java.util.List methods = classNode.methods ; for ( java.lang.Object m : methods ) { org.objectweb.asm.tree.MethodNode method = ( ( org.objectweb.asm.tree.MethodNode ) ( m ) ) ; if ( ( method.name.charAt ( 0 ) ) != '<' ) { return method ; } } if ( ( classNode.methods.size ( ) ) > 0 ) { return ( ( org.objectweb.asm.tree.MethodNode ) ( classNode.methods.get ( 0 ) ) ) ; } } return null ; }

Target:
private static org.objectweb.asm.tree.MethodNode getFirstRealMethod ( @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( classNode.methods ) != null ) { @ java.lang.SuppressWarnings ( value = "rawtypes" ) java.util.List methods = classNode.methods ; for ( java.lang.Object m : methods ) { org.objectweb.asm.tree.MethodNode method = ( ( org.objectweb.asm.tree.MethodNode ) ( m ) ) ; if ( ( method.name.charAt ( 0 ) ) != '<' ) { return method ; } } if ( ! ( classNode.methods.isEmpty ( ) ) ) { return ( ( org.objectweb.asm.tree.MethodNode ) ( classNode.methods.get ( 0 ) ) ) ; } } return null ; }
Source:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; com.android.server.wifi.nan.WifiNanHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onNanDownNotification ( WifiNanNative.NAN_STATUS_DE_FAILURE ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_DE_FAILURE ) ; com.android.server.wifi.aware.WifiAwareHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onAwareDownNotification ( WifiAwareNative.AWARE_STATUS_DE_FAILURE ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
private static void test_String_charAtExc2 ( ) { try { Main.test_String_charAtExc3 ( ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.StringIndexOutOfBoundsException expected ) { } }

Target:
private static void test_String_charAtExc2 ( java.lang.String testStr ) { try { Main.test_String_charAtExc3 ( testStr ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.StringIndexOutOfBoundsException expected ) { } try { Main.test_String_charAtExc4 ( testStr ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.StringIndexOutOfBoundsException expected ) { } }
Source:
void assertDisconnectReason ( final android.telecom.Connection connection , final java.lang.String disconnectReason ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return disconnectReason ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getDisconnectCause ( ) . getReason ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection should have been disconnected with reason: " + disconnectReason ) ) ; }

Target:
void assertDisconnectReason ( final android.telecom.Connection connection , final java.lang.String disconnectReason ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return disconnectReason ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getDisconnectCause ( ) . getReason ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection should have been disconnected with reason: " + disconnectReason ) ) ; }
Source:
public void clearSslPreferences ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearSslPreferences ( ) ; } } ) ; return ; } mAwContents.clearSslPreferences ( ) ; }

Target:
public android.webkit.WebBackForwardList copyBackForwardList ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return copyBackForwardList ( ) ; } } ) ; return ret ; } return new com.android.webview.chromium.WebBackForwardListChromium ( mAwContents.getNavigationHistory ( ) ) ; }
Source:
public void createConnectionFailed ( java.lang.String callId , android.telecom.ConnectionRequest request , boolean isIncoming , android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.i ( this , ( "createConnectionFailed --> " + callId ) ) ; if ( mConnectionById.containsKey ( callId ) ) { throw new java.lang.RuntimeException ( ( "Connection already exists: " + callId ) ) ; } }

Target:
public void createConnectionFailed ( android.telecom.PhoneAccountHandle connectionManagerPhoneAccount , java.lang.String callId , android.telecom.ConnectionRequest request , boolean isIncoming , android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.i ( this , ( "createConnectionFailed --> " + callId ) ) ; if ( mConnectionById.containsKey ( callId ) ) { throw new java.lang.RuntimeException ( ( "Connection already exists: " + callId ) ) ; } }
Source:
public void testOnTearDown ( ) throws java.lang.Exception { org.easymock.EasyMock.expect ( mMockDevice.executeShellCommand ( org.easymock.EasyMock.eq ( "getenforce" ) ) ) . andReturn ( SELINUX_PERMISSIVE ) ; org.easymock.EasyMock.expect ( mMockDevice.executeShellCommand ( org.easymock.EasyMock.eq ( ( "setenforce " + ( SELINUX_PERMISSIVE ) ) ) ) ) . andReturn ( "" ) . times ( 1 ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; mPreparer.setUp ( mMockDevice , mMockBuildInfo ) ; mPreparer.tearDown ( mMockDevice , mMockBuildInfo , null ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; }

Target:
public java.io.File getTestsDir ( ) throws java.io.FileNotFoundException { return testDir ; }
Source:
public void onReceivedLoginRequest ( java.lang.String realm , java.lang.String account , java.lang.String args ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedLoginRequest=" + realm ) ) ; mWebViewClient.onReceivedLoginRequest ( mWebView , realm , account , args ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onReceivedLoginRequest ( java.lang.String realm , java.lang.String account , java.lang.String args ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onReceivedLoginRequest" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedLoginRequest=" + realm ) ) ; mWebViewClient.onReceivedLoginRequest ( mWebView , realm , account , args ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onReceivedLoginRequest" ) ; } }
Source:
public void test_setInput$B ( ) { byte [ ] byteArray = new byte [ ] { 2 , 3 , 4 , 't' , 'y' , 'u' , 'e' , 'w' , 7 , 6 , 5 , 9 } ; java.util.zip.Inflater inflate = new java.util.zip.Inflater ( ) ; inflate.setInput ( byteArray ) ; assertTrue ( "setInputB did not deliver any byte to the input buffer" , ( ( inflate.getRemaining ( ) ) != 0 ) ) ; }

Target:
public void test_setInput$B ( ) { byte [ ] byteArray = new byte [ ] { 2 , 3 , 4 , 't' , 'y' , 'u' , 'e' , 'w' , 7 , 6 , 5 , 9 } ; java.util.zip.Inflater inflate = new java.util.zip.Inflater ( ) ; inflate.setInput ( byteArray ) ; assertTrue ( "setInputB did not deliver any byte to the input buffer" , ( ( inflate.getRemaining ( ) ) != 0 ) ) ; inflate.end ( ) ; }
Source:
public void onTargetChange ( ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = mConfigComposite.onXmlModelLoaded ( ) ; if ( targetData != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = targetData.getLayoutLibrary ( ) ; setClippingSupport ( layoutLib.supports ( Capability.UNBOUND_RENDERING ) ) ; } mConfigListener.onConfigurationChange ( ) ; }

Target:
private void updateCapabilities ( com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData ) { if ( targetData != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = targetData.getLayoutLibrary ( ) ; setClippingSupport ( layoutLib.supports ( Capability.UNBOUND_RENDERING ) ) ; if ( ( ( mIncludedWithin ) != null ) && ( ! ( layoutLib.supports ( Capability.EMBEDDED_LAYOUT ) ) ) ) { showIn ( null ) ; } } }