auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getInternalNameOrThrow ( ) { java.lang.String descriptor = descriptor ( ) ; int length = descriptor.length ( ) ; com.google.common.base.Preconditions.checkState ( ( ( ( descriptor.charAt ( 0 ) ) == 'L' ) && ( ( descriptor.charAt ( ( length - 1 ) ) ) == ';' ) ) , "The type is expected to be either a class or an interface: %s" , descriptor ) ; return descriptor.substring ( 1 , ( length - 1 ) ) ; }

Target:
public java.util.Optional < java.lang.String > getInternalName ( ) { java.lang.String descriptor = descriptor ( ) ; int length = descriptor.length ( ) ; if ( ( ( length > 0 ) && ( ( descriptor.charAt ( 0 ) ) == 'L' ) ) && ( ( descriptor.charAt ( ( length - 1 ) ) ) == ';' ) ) { return java.util.Optional.of ( descriptor.substring ( 1 , ( length - 1 ) ) ) ; } else { return java.util.Optional.empty ( ) ; } }
Source:
private static void onFollowupEvent ( int pubSubId , int requestorInstanceId , byte [ ] mac , byte [ ] message ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( ( ( "onFollowupEvent: pubSubId=" + pubSubId ) + ", requestorInstanceId=" ) + requestorInstanceId ) + ", mac=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( mac ) ) ) ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onMessageReceivedNotification ( pubSubId , requestorInstanceId , mac , message ) ; }

Target:
private static void onFollowupEvent ( int pubSubId , int requestorInstanceId , byte [ ] mac , byte [ ] message ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( ( ( "onFollowupEvent: pubSubId=" + pubSubId ) + ", requestorInstanceId=" ) + requestorInstanceId ) + ", mac=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( mac ) ) ) ) ) ; } com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager.onMessageReceivedNotification ( pubSubId , requestorInstanceId , mac , message ) ; }
Source:
private com.android.dx.io.ClassData readClassData ( ) { int staticFieldsSize = readUleb128 ( ) ; int instanceFieldsSize = readUleb128 ( ) ; int directMethodsSize = readUleb128 ( ) ; int virtualMethodsSize = readUleb128 ( ) ; com.android.dx.io.ClassData [ ] staticFields = readFields ( staticFieldsSize ) ; com.android.dx.io.ClassData [ ] instanceFields = readFields ( instanceFieldsSize ) ; com.android.dx.io.ClassData [ ] directMethods = readMethods ( directMethodsSize ) ; com.android.dx.io.ClassData [ ] virtualMethods = readMethods ( virtualMethodsSize ) ; return new com.android.dx.io.ClassData ( staticFields , instanceFields , directMethods , virtualMethods ) ; }

Target:
private com.android.dex.ClassData readClassData ( ) { int staticFieldsSize = readUleb128 ( ) ; int instanceFieldsSize = readUleb128 ( ) ; int directMethodsSize = readUleb128 ( ) ; int virtualMethodsSize = readUleb128 ( ) ; com.android.dex.ClassData [ ] staticFields = readFields ( staticFieldsSize ) ; com.android.dex.ClassData [ ] instanceFields = readFields ( instanceFieldsSize ) ; com.android.dex.ClassData [ ] directMethods = readMethods ( directMethodsSize ) ; com.android.dex.ClassData [ ] virtualMethods = readMethods ( virtualMethodsSize ) ; return new com.android.dex.ClassData ( staticFields , instanceFields , directMethods , virtualMethods ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copyFromUnchecked ( byte [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public com.android.jack.test.helper.RuntimeTestHelper addTestExeFileChecker ( @ javax.annotation.Nonnull com.android.jack.test.helper.FileChecker checker ) { this . testExeCheckers.add ( checker ) ; return this ; }

Target:
public com.android.jack.test.helper.RuntimeTestHelper addProperty ( @ javax.annotation.Nonnull java.lang.String key , @ javax.annotation.Nonnull java.lang.String value ) { java.lang.String oldValue = runtimeProperties.get ( key ) ; if ( ( oldValue != null ) && ( ! ( oldValue.equals ( value ) ) ) ) { throw new java.lang.AssertionError ( ( ( ( ( "property: " + key ) + " with value: " ) + oldValue ) + " is already defined" ) ) ; } runtimeProperties.put ( key , value ) ; return this ; }
Source:
private java.util.List parseClassSpecificationArguments ( java.util.List classSpecifications ) throws java.io.IOException , proguard.ParseException { if ( classSpecifications == null ) { classSpecifications = new java.util.ArrayList ( ) ; } readNextWord ( ( ( ( ( ( ( "keyword '" + ( ConfigurationConstants.CLASS_KEYWORD ) ) + "', '" ) + ( proguard.classfile.ClassConstants.EXTERNAL_ACC_INTERFACE ) ) + "', or '" ) + ( proguard.classfile.ClassConstants.EXTERNAL_ACC_ENUM ) ) + "'" ) , false , true ) ; classSpecifications.add ( parseClassSpecificationArguments ( ) ) ; return classSpecifications ; }

Target:
private java.util.List parseClassSpecificationArguments ( java.util.List classSpecifications ) throws java.io.IOException , proguard.ParseException { if ( classSpecifications == null ) { classSpecifications = new java.util.ArrayList ( ) ; } readNextWord ( ( ( ( ( ( ( "keyword '" + ( ConfigurationConstants.CLASS_KEYWORD ) ) + "', '" ) + ( JavaConstants.ACC_INTERFACE ) ) + "', or '" ) + ( JavaConstants.ACC_ENUM ) ) + "'" ) , false , true ) ; classSpecifications.add ( parseClassSpecificationArguments ( ) ) ; return classSpecifications ; }
Source:
public java.lang.String shell ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String cmd = ap.getString ( 0 ) ; return impl.shell ( cmd ) ; }

Target:
public java.lang.String shell ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String cmd = ap.getString ( 0 ) ; if ( ( args.length ) == 2 ) { return impl.shell ( cmd , ap.getInt ( 1 ) ) ; } else { return impl.shell ( cmd ) ; } }
Source:
public com.android.ims.ImsCallProfile createCallProfile ( int serviceType , int callType ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { return mMmTelFeatureConnection.createCallProfile ( serviceType , callType ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "createCallProfile()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public com.android.ims.ImsUtInterface getSupplementaryServiceConfiguration ( ) throws com.android.ims.ImsException { if ( ( ( mUt ) != null ) && ( mUt.isBinderAlive ( ) ) ) { return mUt ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsUt iUt = mMmTelFeatureConnection.getUtInterface ( ) ; if ( iUt == null ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , android.telephony.ims.ImsReasonInfo.CODE_UT_NOT_SUPPORTED ) ; } mUt = new com.android.ims.ImsUt ( iUt ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mUt ; }
Source:
public void testStageUninstall_existingStagedDataDistro ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro installedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistro ) ; java.io.File stagedDataDir = installer.getStagedTzDataDir ( ) ; assertTrue ( stagedDataDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertInstalledDistro ( installedDistro ) ; }

Target:
public void testStageUninstall_existingStagedDataDistro ( ) throws java.lang.Exception { byte [ ] installedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistroBytes ) ; java.io.File stagedDataDir = installer.getStagedTzDataDir ( ) ; assertTrue ( stagedDataDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertInstalledDistro ( installedDistroBytes ) ; }
Source:
public boolean removeProvider ( java.lang.String fqdn ) { if ( ! ( mProviders.containsKey ( fqdn ) ) ) { android.util.Log.e ( com.android.server.wifi.hotspot2.PasspointManager.TAG , "Config doesn't exist" ) ; return false ; } mProviders.remove ( fqdn ) ; return true ; }

Target:
public boolean removeProvider ( java.lang.String fqdn ) { if ( ! ( mProviders.containsKey ( fqdn ) ) ) { android.util.Log.e ( com.android.server.wifi.hotspot2.PasspointManager.TAG , "Config doesn't exist" ) ; return false ; } mProviders.get ( fqdn ) . uninstallCertsAndKeys ( ) ; mProviders.remove ( fqdn ) ; return true ; }
Source:
private void enableUi ( org.eclipse.swt.widgets.Composite root , boolean enabled ) { root.setEnabled ( enabled ) ; for ( org.eclipse.swt.widgets.Control child : root.getChildren ( ) ) { if ( child instanceof org.eclipse.swt.widgets.Composite ) { enableUi ( ( ( org.eclipse.swt.widgets.Composite ) ( child ) ) , enabled ) ; } else { child.setEnabled ( enabled ) ; } } }

Target:
private void beginOperationPending ( ) { mOperationPending = true ; mButtonInstall.setEnabled ( false ) ; mButtonDelete.setEnabled ( false ) ; }
Source:
public void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout ) throws com.android.builder.testing.api.DeviceException { try { iDevice.uninstallPackage ( packageName ) ; } catch ( java.lang.Exception e ) { throw new com.android.builder.testing.api.DeviceException ( e ) ; } }

Target:
public void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException { try { iDevice.uninstallPackage ( packageName ) ; } catch ( java.lang.Exception e ) { logger.error ( e , ( "Unable to uninstall " + packageName ) ) ; throw new com.android.builder.testing.api.DeviceException ( e ) ; } }
Source:
public void testNumberOfCameras ( ) throws java.lang.Exception { int numCameras = mUtils.getCameraService ( ) . getNumberOfCameras ( ) ; assertTrue ( ( "At least this many cameras: " + ( mUtils.getGuessedNumCameras ( ) ) ) , ( numCameras >= ( mUtils.getGuessedNumCameras ( ) ) ) ) ; android.util.Log.v ( com.android.mediaframeworktest.integration.CameraBinderTest.TAG , ( "Number of cameras " + numCameras ) ) ; }

Target:
public void testNumberOfCameras ( ) throws java.lang.Exception { int numCameras = mUtils.getCameraService ( ) . getNumberOfCameras ( com.android.mediaframeworktest.integration.CameraBinderTest.CAMERA_TYPE_ALL ) ; assertTrue ( ( "At least this many cameras: " + ( mUtils.getGuessedNumCameras ( ) ) ) , ( numCameras >= ( mUtils.getGuessedNumCameras ( ) ) ) ) ; android.util.Log.v ( com.android.mediaframeworktest.integration.CameraBinderTest.TAG , ( "Number of cameras " + numCameras ) ) ; }
Source:
public java.util.Date getNextUpdate ( ) { java.util.Calendar calendar = java.util.Calendar.getInstance ( ) ; calendar.setTimeZone ( java.util.TimeZone.getTimeZone ( "UTC" ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.ASN1_TIME_to_Calendar ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.X509_CRL_get_nextUpdate ( mContext ) , calendar ) ; return calendar.getTime ( ) ; }

Target:
public java.util.Date getNextUpdate ( ) { java.util.Calendar calendar = java.util.Calendar.getInstance ( java.util.TimeZone.getTimeZone ( "UTC" ) ) ; calendar.set ( java.util.Calendar.MILLISECOND , 0 ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.ASN1_TIME_to_Calendar ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.X509_CRL_get_nextUpdate ( mContext ) , calendar ) ; return calendar.getTime ( ) ; }
Source:
private void writeDescriptor ( java.lang.String writeValue ) { android.bluetooth.BluetoothGattDescriptor descriptor = getDescriptor ( ) ; if ( descriptor == null ) return ; descriptor.setValue ( writeValue.getBytes ( ) ) ; }

Target:
private void notifyMtuRequest ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "notifyMtuRequest" ) ; } android.content.Intent intent ; if ( ( mCountMtuChange ) == 1 ) { intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_MTU_REQUEST_23BYTES ) ; } else if ( ( mCountMtuChange ) == 2 ) { intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_MTU_REQUEST_512BYTES ) ; } else { return ; } sendBroadcast ( intent ) ; }
Source:
public void testNewInstanceString_ByteArrayArgConstructor ( ) { runTestNewInstanceString ( "([B)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NewInstanceStringTest.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; constructorArguments.add ( byteArrayValue ) ; } } ) ; }

Target:
public void testNewInstanceString_ByteArrayIntIntConstructor ( ) { runTestNewInstanceString ( "([BII)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; } } ) ; }
Source:
private void postCallback ( int advertiserId , int status ) { try { com.android.bluetooth.gatt.AdvertiseClient client = getAdvertiseClient ( advertiserId ) ; android.bluetooth.le.AdvertiseSettings settings = ( client == null ) ? null : client.settings ; boolean isStart = true ; mService.onMultipleAdvertiseCallback ( advertiserId , status , isStart , settings ) ; } catch ( android.os.RemoteException e ) { loge ( "failed onMultipleAdvertiseCallback" , e ) ; } }

Target:
java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > findAdvertiser ( int advertiser_id ) { java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = null ; for ( java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > e : mAdvertisers.entrySet ( ) ) { if ( ( e.getValue ( ) . id ) == advertiser_id ) { entry = e ; break ; } } return entry ; }
Source:
private boolean matchesPossibleNumberAndNationalNumber ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { if ( ( ( numberDesc.getPossibleLengthCount ( ) ) > 0 ) && ( ! ( numberDesc.getPossibleLengthList ( ) . contains ( number.length ( ) ) ) ) ) { return false ; } return matcherApi.matchesNationalNumber ( number , numberDesc , false ) ; }

Target:
private boolean matchesPossibleNumberAndNationalNumber ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { if ( ( ( numberDesc.getPossibleLengthCount ( ) ) > 0 ) && ( ! ( numberDesc.getPossibleLengthList ( ) . contains ( number.length ( ) ) ) ) ) { return false ; } return matcherApi.matchNationalNumber ( number , numberDesc , false ) ; }
Source:
public void linkFile ( java.lang.String relativePath , java.lang.String fromBase , java.lang.String toBase ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.linkFile ( relativePath , fromBase , toBase ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
static int hfToAmVol ( int hfVol ) { int amRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int amOffset = ( amRange * ( hfVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ) ) / hfRange ; int amVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.mMinAmVcVol ) + amOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "HF -> AM " + hfVol ) + " " ) + amVol ) ) ; return amVol ; }

Target:
static int hfToAmVol ( int hfVol ) { int amRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMaxAmVcVol ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMinAmVcVol ) ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int amOffset = ( amRange * ( hfVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ) ) / hfRange ; int amVol = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sMinAmVcVol ) + amOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "HF -> AM " + hfVol ) + " " ) + amVol ) ) ; return amVol ; }
Source:
public final int startActivities ( android.app.IApplicationThread caller , java.lang.String callingPackage , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options , int userId ) { enforceNotIsolatedCaller ( "startActivities" ) ; userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "startActivity" , null ) ; int ret = mStackSupervisor.startActivities ( caller , ( - 1 ) , callingPackage , intents , resolvedTypes , resultTo , options , userId ) ; return ret ; }

Target:
public final int startActivities ( android.app.IApplicationThread caller , java.lang.String callingPackage , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle bOptions , int userId ) { enforceNotIsolatedCaller ( "startActivities" ) ; userId = mUserController.handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "startActivity" , null ) ; int ret = mActivityStarter.startActivities ( caller , ( - 1 ) , callingPackage , intents , resolvedTypes , resultTo , bOptions , userId ) ; return ret ; }
Source:
private void cancelMissedCallNotification ( android.os.UserHandle userHandle ) { mMissedCallCounts.putIfAbsent ( userHandle , new java.util.concurrent.atomic.AtomicInteger ( 0 ) ) ; mMissedCallCounts.get ( userHandle ) . set ( 0 ) ; if ( sendNotificationCustomComponent ( null , userHandle ) ) { return ; } if ( shouldManageNotificationThroughDefaultDialer ( userHandle ) ) { sendNotificationThroughDefaultDialer ( null , userHandle ) ; return ; } long token = android.os.Binder.clearCallingIdentity ( ) ; try { mNotificationManager.cancelAsUser ( null , com.android.server.telecom.ui.MissedCallNotifierImpl.MISSED_CALL_NOTIFICATION_ID , userHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
private void cancelMissedCallNotification ( android.os.UserHandle userHandle ) { mMissedCallCounts.putIfAbsent ( userHandle , new java.util.concurrent.atomic.AtomicInteger ( 0 ) ) ; mMissedCallCounts.get ( userHandle ) . set ( 0 ) ; if ( sendNotificationCustomComponent ( null , userHandle ) ) { return ; } if ( shouldManageNotificationThroughDefaultDialer ( userHandle ) ) { sendNotificationThroughDefaultDialer ( null , userHandle ) ; return ; } long token = android.os.Binder.clearCallingIdentity ( ) ; try { mNotificationManager.cancelAsUser ( com.android.server.telecom.ui.MissedCallNotifierImpl.NOTIFICATION_TAG , com.android.server.telecom.ui.MissedCallNotifierImpl.MISSED_CALL_NOTIFICATION_ID , userHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public java.util.Map < java.lang.String , java.io.File > getDynamicConfigFiles ( ) { java.util.Map < java.lang.String , java.io.File > configMap = new java.util.HashMap < > ( ) ; for ( java.lang.String key : mBuildInfo.getBuildAttributes ( ) . keySet ( ) ) { if ( key.startsWith ( DynamicConfigHostSide.CONFIG_PATH_PREFIX ) ) { configMap.put ( key.substring ( DynamicConfigHostSide.CONFIG_PATH_PREFIX.length ( ) ) , new java.io.File ( mBuildInfo.getBuildAttributes ( ) . get ( key ) ) ) ; } } return configMap ; }

Target:
public java.util.Map < java.lang.String , java.io.File > getDynamicConfigFiles ( ) { java.util.Map < java.lang.String , java.io.File > configMap = new java.util.HashMap < > ( ) ; for ( com.android.tradefed.build.VersionedFile vFile : mBuildInfo.getFiles ( ) ) { if ( vFile.getVersion ( ) . startsWith ( com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper.CONFIG_PATH_PREFIX ) ) { configMap.put ( vFile.getVersion ( ) . substring ( com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper.CONFIG_PATH_PREFIX.length ( ) ) , vFile.getFile ( ) ) ; } } return configMap ; }
Source:
public void onNewFrame ( final java.awt.image.BufferedImage image ) { getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { mImageOverlay.setImage ( image ) ; redraw ( ) ; } } ) ; }

Target:
public synchronized void onNewFrame ( final java.awt.image.BufferedImage image ) { ( mCount ) ++ ; mImage = image ; if ( ( mPendingDrawing ) == false ) { getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { drawImage ( ) ; } } ) ; mPendingDrawing = true ; } }
Source:
public static boolean getBoolean ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { if ( keyCharacteristics.hwEnforced.containsTag ( tag ) ) { return keyCharacteristics.hwEnforced.getBoolean ( tag , false ) ; } else { return keyCharacteristics.swEnforced.getBoolean ( tag , false ) ; } }

Target:
public static java.lang.String getJcaEncryptionPaddingFromKeymasterPadding ( int keymasterPadding ) { switch ( keymasterPadding ) { case android.security.keymaster.KeymasterDefs.KM_PAD_NONE : return "NoPadding" ; case android.security.keymaster.KeymasterDefs.KM_PAD_PKCS7 : return "PKCS7Padding" ; case android.security.keymaster.KeymasterDefs.KM_PAD_RSA_PKCS1_1_5_ENCRYPT : return "PKCS1Padding" ; case android.security.keymaster.KeymasterDefs.KM_PAD_RSA_OAEP : return "OEAPPadding" ; default : throw new java.lang.IllegalArgumentException ( ( "Unsupported encryption padding: " + keymasterPadding ) ) ; } }
Source:
public void testBasicWorkingSntpClientQuery ( ) throws java.lang.Exception { mServer.setServerReply ( libcore.util.HexEncoding.decode ( android.net.SntpClientTest.WORKING_VERSION4.toCharArray ( ) , false ) ) ; assertTrue ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 , mNetwork ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 1 , mServer.numRepliesSent ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mNetwork = new android.net.Network ( ConnectivityManager.NETID_UNSET ) ; mServer = new android.net.SntpClientTest.SntpTestServer ( ) ; mClient = new android.net.SntpClient ( ) ; }
Source:
android.icu.text.MeasureFormat withNumberFormat ( android.icu.text.NumberFormat format ) { return new android.icu.text.MeasureFormat ( getLocale ( ) , this . formatWidth , new android.icu.text.MeasureFormat.ImmutableNumberFormat ( format ) , this . rules , this . unitToStyleToCountToFormat , this . numericFormatters , this . currencyFormat , this . integerFormat , this . unitToStyleToPerUnitPattern , this . styleToPerPattern ) ; }

Target:
android.icu.text.MeasureFormat withNumberFormat ( android.icu.text.NumberFormat format ) { return new android.icu.text.MeasureFormat ( getLocale ( ) , this . cache , this . formatWidth , new android.icu.text.MeasureFormat.ImmutableNumberFormat ( format ) , this . rules , this . numericFormatters , this . currencyFormat , this . integerFormat ) ; }
Source:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public void TestGreek ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.Test ( "Latin-Greek" , 50 ) . test ( "[a-zA-Z]" , getGreekSet ( ) , "[µͺϐ-ϵϹ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalGreek ( true ) ) ; showElapsed ( start , "TestGreek" ) ; }

Target:
public void TestGreek ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-Greek" , 50 ) . test ( "[a-zA-Z]" , getGreekSet ( ) , "[µͺϐ-ϵϹ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalGreek ( true ) ) ; showElapsed ( start , "TestGreek" ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ( args.length ) != 3 ) { com.android.dx.merge.DexMerger.printUsage ( ) ; return ; } com.android.dx.io.DexBuffer dexA = new com.android.dx.io.DexBuffer ( new java.io.File ( args [ 1 ] ) ) ; com.android.dx.io.DexBuffer dexB = new com.android.dx.io.DexBuffer ( new java.io.File ( args [ 2 ] ) ) ; com.android.dx.io.DexBuffer merged = new com.android.dx.merge.DexMerger ( dexA , dexB , CollisionPolicy.KEEP_FIRST ) . merge ( ) ; merged.writeTo ( new java.io.File ( args [ 0 ] ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ( args.length ) != 3 ) { com.android.dx.merge.DexMerger.printUsage ( ) ; return ; } com.android.dex.Dex dexA = new com.android.dex.Dex ( new java.io.File ( args [ 1 ] ) ) ; com.android.dex.Dex dexB = new com.android.dex.Dex ( new java.io.File ( args [ 2 ] ) ) ; com.android.dex.Dex merged = new com.android.dx.merge.DexMerger ( dexA , dexB , CollisionPolicy.KEEP_FIRST ) . merge ( ) ; merged.writeTo ( new java.io.File ( args [ 0 ] ) ) ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function ) { return com.google.common.util.concurrent.Futures.transform ( input , function , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( executor ) ; com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( com.google.common.util.concurrent.Futures.rejectionPropagatingRunnable ( output , output , executor ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
public void onProgressChanged ( android.widget.SeekBar seekBar , int progress , boolean fromUser ) { if ( fromUser ) { mAudioTrack.setAppVolume ( progress ) ; com.android.videoeditor.service.ApiService.setAudioTrackVolume ( getContext ( ) , mProject.getPath ( ) , mAudioTrack.getId ( ) , progress ) ; } }

Target:
public void onStopTrackingTouch ( android.widget.SeekBar seekBar ) { com.android.videoeditor.service.ApiService.setAudioTrackVolume ( getContext ( ) , mProject.getPath ( ) , mAudioTrack.getId ( ) , mProgress ) ; }
Source:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_element s ) { simpleElem = com.android.rs.test.Element.F32_3 ( RS ) ; complexElem = com.android.rs.test.ScriptField_ComplexStruct.createElement ( RS ) ; s.set_simpleElem ( simpleElem ) ; s.set_complexElem ( complexElem ) ; com.android.rs.test.ScriptField_ComplexStruct data = new com.android.rs.test.ScriptField_ComplexStruct ( RS , 1 ) ; s.bind_complexStruct ( data ) ; }

Target:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_element s ) { simpleElem = android.renderscript.Element.F32_3 ( RS ) ; complexElem = com.android.rs.test.ScriptField_ComplexStruct.createElement ( RS ) ; s.set_simpleElem ( simpleElem ) ; s.set_complexElem ( complexElem ) ; com.android.rs.test.ScriptField_ComplexStruct data = new com.android.rs.test.ScriptField_ComplexStruct ( RS , 1 ) ; s.bind_complexStruct ( data ) ; }
Source:
public static com.android.ide.eclipse.adt.internal.resources.configurations.RegionQualifier getQualifier ( java.lang.String segment ) { java.util.regex.Matcher m = com.android.ide.eclipse.adt.internal.resources.configurations.RegionQualifier.sRegionPattern.matcher ( segment ) ; if ( m.matches ( ) ) { com.android.ide.eclipse.adt.internal.resources.configurations.RegionQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.RegionQualifier ( ) ; qualifier.mValue = m.group ( 1 ) ; return qualifier ; } return null ; }

Target:
public static com.android.ide.common.resources.configuration.RegionQualifier getQualifier ( java.lang.String segment ) { java.util.regex.Matcher m = com.android.ide.common.resources.configuration.RegionQualifier.sRegionPattern.matcher ( segment ) ; if ( m.matches ( ) ) { com.android.ide.common.resources.configuration.RegionQualifier qualifier = new com.android.ide.common.resources.configuration.RegionQualifier ( ) ; qualifier.mValue = m.group ( 1 ) ; return qualifier ; } return null ; }
Source:
public static java.lang.String internalMethodDescriptor ( java.lang.String externalReturnType , java.util.List externalArguments ) { java.lang.StringBuffer internalMethodDescriptor = new java.lang.StringBuffer ( ) ; internalMethodDescriptor.append ( ClassConstants.INTERNAL_METHOD_ARGUMENTS_OPEN ) ; for ( int index = 0 ; index < ( externalArguments.size ( ) ) ; index ++ ) { internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( ( ( java.lang.String ) ( externalArguments.get ( index ) ) ) ) ) ; } internalMethodDescriptor.append ( ClassConstants.INTERNAL_METHOD_ARGUMENTS_CLOSE ) ; internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalReturnType ) ) ; return internalMethodDescriptor.toString ( ) ; }

Target:
public static java.lang.String internalMethodDescriptor ( java.lang.String externalReturnType , java.util.List externalArguments ) { java.lang.StringBuffer internalMethodDescriptor = new java.lang.StringBuffer ( ) ; internalMethodDescriptor.append ( ClassConstants.METHOD_ARGUMENTS_OPEN ) ; for ( int index = 0 ; index < ( externalArguments.size ( ) ) ; index ++ ) { internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( ( ( java.lang.String ) ( externalArguments.get ( index ) ) ) ) ) ; } internalMethodDescriptor.append ( ClassConstants.METHOD_ARGUMENTS_CLOSE ) ; internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalReturnType ) ) ; return internalMethodDescriptor.toString ( ) ; }
Source:
boolean makeAppCrashingLocked ( com.android.server.am.ProcessRecord app , java.lang.String tag , java.lang.String shortMsg , java.lang.String longMsg , byte [ ] crashData ) { app.crashing = true ; app.crashingReport = generateProcessError ( app , ActivityManager.ProcessErrorStateInfo.CRASHED , tag , shortMsg , longMsg , crashData ) ; startAppProblemLocked ( app ) ; app.stopFreezingAllLocked ( ) ; return handleAppCrashLocked ( app ) ; }

Target:
private boolean makeAppCrashingLocked ( com.android.server.am.ProcessRecord app , java.lang.String shortMsg , java.lang.String longMsg , java.lang.String stackTrace ) { app.crashing = true ; app.crashingReport = generateProcessError ( app , ActivityManager.ProcessErrorStateInfo.CRASHED , null , shortMsg , longMsg , stackTrace ) ; startAppProblemLocked ( app ) ; app.stopFreezingAllLocked ( ) ; return handleAppCrashLocked ( app ) ; }
Source:
public void uninstallCaCert ( @ android.annotation.Nullable android.content.ComponentName admin , byte [ ] certBuffer ) { throwIfParentInstance ( "uninstallCaCert" ) ; if ( ( mService ) != null ) { try { final java.lang.String alias = android.app.admin.DevicePolicyManager.getCaCertAlias ( certBuffer ) ; mService.uninstallCaCerts ( admin , new java.lang.String [ ] { alias } ) ; } catch ( java.security.cert.CertificateException e ) { android.util.Log.w ( android.app.admin.DevicePolicyManager.TAG , "Unable to parse certificate" , e ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public void uninstallCaCert ( @ android.annotation.Nullable android.content.ComponentName admin , byte [ ] certBuffer ) { throwIfParentInstance ( "uninstallCaCert" ) ; if ( ( mService ) != null ) { try { final java.lang.String alias = android.app.admin.DevicePolicyManager.getCaCertAlias ( certBuffer ) ; mService.uninstallCaCerts ( admin , mContext.getPackageName ( ) , new java.lang.String [ ] { alias } ) ; } catch ( java.security.cert.CertificateException e ) { android.util.Log.w ( android.app.admin.DevicePolicyManager.TAG , "Unable to parse certificate" , e ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public boolean accept ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull com.intellij.openapi.vfs.VirtualFile file ) { if ( ( file.isDirectory ( ) ) || ( ! ( file.isValid ( ) ) ) ) { return false ; } if ( com.intellij.psi.SingleRootFileViewProvider.isTooLargeForContentLoading ( file ) ) { return false ; } final com.intellij.openapi.fileTypes.FileType ft = file.getFileType ( ) ; return ( ! ( ft.isBinary ( ) ) ) || ( ( BinaryFileTypeDecompilers.INSTANCE.forFileType ( ft ) ) != null ) ; }

Target:
public boolean accept ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull com.intellij.openapi.vfs.VirtualFile file ) { return ( com.intellij.openapi.fileEditor.impl.text.TextEditorProvider.isTextFile ( file ) ) && ( ! ( com.intellij.psi.SingleRootFileViewProvider.isTooLargeForContentLoading ( file ) ) ) ; }
Source:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }

Target:
public int getVersionCode ( ) { int versionCode = ( ( mMergedFlavor.getVersionCode ( ) ) != null ) ? mMergedFlavor.getVersionCode ( ) : - 1 ; if ( ( versionCode == ( - 1 ) ) && ( ! ( mType.isForTesting ( ) ) ) ) { versionCode = getVersionCodeFromManifest ( ) ; } return versionCode ; }
Source:
public void testRunWithAddInstrumentationArg ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { final java.lang.String extraArgName = "blah" ; final java.lang.String extraArgValue = "blahValue" ; mRunner.addInstrumentationArg ( extraArgName , extraArgValue ) ; mRunner.run ( new com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.EmptyListener ( ) ) ; assertStringsEquals ( java.lang.String.format ( "am instrument -w -r -e %s %s %s/%s" , extraArgName , extraArgValue , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER ) , mMockDevice.getLastShellCommand ( ) ) ; }

Target:
public void testRun_withAddInstrumentationArg ( ) throws java.lang.Exception { final java.lang.String extraArgName = "blah" ; final java.lang.String extraArgValue = "blahValue" ; mRunner.addInstrumentationArg ( extraArgName , extraArgValue ) ; java.lang.String expectedCmd = org.easymock.EasyMock.contains ( java.lang.String.format ( "-e %s %s" , extraArgName , extraArgValue ) ) ; runAndVerify ( expectedCmd ) ; }
Source:
public final void activityResumed ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { com.android.server.am.ActivityRecord.activityResumedLocked ( token ) ; } } android.os.Binder.restoreCallingIdentity ( origId ) ; }

Target:
public void performReceive ( android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered , boolean sticky , int sendingUser ) { synchronized ( this ) { requestPssAllProcsLocked ( android.os.SystemClock.uptimeMillis ( ) , true , false ) ; } }
Source:
public com.android.ims.internal.IImsConfig getConfigInterface ( int slotId , int featureType , int sessionId ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getConfigInterface ( sessionId ) ; } } return null ; }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getUtInterface ( ) ; } } return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.when ( mContext.getResources ( ) ) . thenReturn ( mResources ) ; org.mockito.Mockito.when ( mResources.getInteger ( R.integer.config_networkAvoidBadWifi ) ) . thenReturn ( 0 ) ; mContentResolver = new android.test.mock.MockContentResolver ( ) ; mContentResolver.addProvider ( Settings.AUTHORITY , new com.android.internal.util.test.FakeSettingsProvider ( ) ) ; org.mockito.Mockito.when ( mContext.getContentResolver ( ) ) . thenReturn ( mContentResolver ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.when ( mContext.getResources ( ) ) . thenReturn ( mResources ) ; org.mockito.Mockito.when ( mResources.getInteger ( R.integer.config_networkAvoidBadWifi ) ) . thenReturn ( android.net.ip.IpManagerTest.DEFAULT_AVOIDBADWIFI_CONFIG_VALUE ) ; mContentResolver = new android.test.mock.MockContentResolver ( ) ; mContentResolver.addProvider ( Settings.AUTHORITY , new com.android.internal.util.test.FakeSettingsProvider ( ) ) ; org.mockito.Mockito.when ( mContext.getContentResolver ( ) ) . thenReturn ( mContentResolver ) ; }
Source:
private void initForReal ( ) { mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , mWebView.getContext ( ) , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewChromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }

Target:
private void initForReal ( ) { android.content.Context ctx = com.android.webview.chromium.WebViewChromium.resourcesContextWrapper ( mWebView.getContext ( ) ) ; mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , ctx , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewChromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }
Source:
public void testSetupDriverForSoftApModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForSoftApMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IApInterface returnedApInterface = mWifiNative.setupDriverForSoftApMode ( ) ; org.junit.Assert.assertEquals ( null , returnedApInterface ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForSoftApMode ( ) ; }

Target:
public void testSetupDriverForSoftApModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForSoftApMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IApInterface returnedApInterface = mWifiNative.setupForSoftApMode ( ) ; org.junit.Assert.assertEquals ( null , returnedApInterface ) ; org.mockito.Mockito.verify ( mWifiNative ) . startHal ( org.mockito.Mockito.eq ( false ) ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForSoftApMode ( ) ; }
Source:
protected boolean generateSourceProperties ( com.android.sdklib.internal.repository.archives.Archive archive , java.io.File unzipDestFolder ) { java.util.Properties props = new java.util.Properties ( ) ; archive.saveProperties ( props ) ; java.lang.Package pkg = archive.getParentPackage ( ) ; if ( pkg != null ) { pkg.saveProperties ( props ) ; } try { mFileOp.saveProperties ( new java.io.File ( unzipDestFolder , com.android.SdkConstants.FN_SOURCE_PROP ) , props , "## Android Tool: Source of this archive." ) ; return true ; } catch ( java.io.IOException ignore ) { return false ; } }

Target:
public boolean hasMoreElements ( ) { return it.hasNext ( ) ; }
Source:
public java.lang.String getDescriptionForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.util.Locale languageCode ) { com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType numberType = phoneUtil.getNumberType ( number ) ; if ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) { return "" ; } else if ( ! ( canBeGeocoded ( numberType ) ) ) { return getCountryNameForNumber ( number , languageCode ) ; } return getDescriptionForValidNumber ( number , languageCode ) ; }

Target:
public java.lang.String getDescriptionForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.util.Locale languageCode ) { com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType numberType = phoneUtil.getNumberType ( number ) ; if ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) { return "" ; } else if ( ! ( phoneUtil.isNumberGeographical ( numberType , number.getCountryCode ( ) ) ) ) { return getCountryNameForNumber ( number , languageCode ) ; } return getDescriptionForValidNumber ( number , languageCode ) ; }
Source:
private static void checkPatternOnFixedDate ( java.lang.String pattern , java.lang.String expectedOutput ) throws java.text.ParseException { org.apache.harmony.tests.java.text.SimpleDateFormatTest.checkPatternOnFixedDate ( pattern , expectedOutput , expectedOutput ) ; }

Target:
private static void assertFormat ( java.util.Date date , java.lang.String pattern , java.lang.String expectedOutput ) { java.text.SimpleDateFormat df = new java.text.SimpleDateFormat ( pattern , new java.util.Locale ( "en" , "US" ) ) ; df.setTimeZone ( java.util.TimeZone.getTimeZone ( "EST" ) ) ; java.lang.String output = df.format ( date ) ; assertEquals ( ( ( "Invalid output '" + pattern ) + "'" ) , expectedOutput , output ) ; }
Source:
private void close ( int cause ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "Closing " + ( mClosed ) ) ) ; if ( mClosed ) { return ; } setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; mClosed = true ; mCurrentCall = null ; destroy ( ) ; }

Target:
private void close ( int cause ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "Closing " + ( mClosed ) ) ) ; } if ( mClosed ) { return ; } setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; mClosed = true ; mCurrentCall = null ; destroy ( ) ; }