auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }

Target:
public void setPictureListener ( final android.webkit.WebView.PictureListener listener ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setPictureListener ( listener ) ; } } ) ; return ; } mContentsClientAdapter.setPictureListener ( listener ) ; mAwContents.enableOnNewPicture ( ( listener != null ) , ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ) ; }
Source:
public void startScan ( int appIf , boolean isServer , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( appIf , isServer , settings , filters , workSource , storages , callingPackage ) ; }

Target:
public void registerScanner ( android.bluetooth.le.IScannerCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerScanner ( callback ) ; }
Source:
public void testCpuAbi ( ) { if ( isArmCpu ( ) ) { assertArmCpuAbiConstants ( ) ; } }

Target:
private void assertArmCpuAbiConstants ( ) { if ( android.os.cts.CpuFeatures.isArm7Compatible ( ) ) { java.lang.String message = java.lang.String.format ( ( "CPU is ARM v7 compatible, so Build.CPU_ABI must be %s" + " and Build.CPU_ABI2 must be %s." ) , CpuFeatures.ARMEABI_V7 , CpuFeatures.ARMEABI ) ; assertEquals ( message , CpuFeatures.ARMEABI_V7 , Build.CPU_ABI ) ; assertEquals ( message , CpuFeatures.ARMEABI , Build.CPU_ABI2 ) ; } else { java.lang.String message = java.lang.String.format ( ( "CPU is not ARM v7 compatible, so Build.CPU_ABI must " + "be %s and Build.CPU_ABI2 must be 'unknown'." ) , CpuFeatures.ARMEABI ) ; assertEquals ( message , CpuFeatures.ARMEABI , Build.CPU_ABI ) ; assertEquals ( message , "unknown" , Build.CPU_ABI2 ) ; } }
Source:
private boolean isCurrentProfile ( int userId ) { int currentUser = android.app.ActivityManager.getCurrentUser ( ) ; if ( userId == currentUser ) { return true ; } java.util.List < android.content.pm.UserInfo > profiles = mUserManager.getProfiles ( currentUser ) ; for ( android.content.pm.UserInfo user : profiles ) { if ( userId == ( user.id ) ) { return true ; } } return false ; }

Target:
public boolean removePasspointConfiguration ( java.lang.String fqdn ) { return true ; }
Source:
public void testInterfaceCountersUdp4UdpEncap ( ) 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 , true , 1000 , false ) ; }

Target:
public void testInterfaceCountersUdp4UdpEncap ( ) 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 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1000 , false ) ; }
Source:
public void testLintWarningOnGetSignaturesFlagInBitwiseAndExpression ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/GetSignaturesBitwiseAndTest.java:9: Information: Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details. [PackageManagerGetSignatures]\n" + ( ( " Integer.MAX_VALUE & PackageManager.GET_SIGNATURES);\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( ( "src/test/pkg/GetSignaturesBitwiseAndTest.java.txt" + "=>src/test/pkg/GetSignaturesBitwiseAndTest.java" ) ) ) ; }

Target:
public void testLintWarningOnGetSignaturesFlagInBitwiseOrExpression ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/GetSignaturesBitwiseOrTest.java:11: Information: Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details. [PackageManagerGetSignatures]\n" + ( ( " .getPackageInfo(\"some.pkg\", GET_GIDS | GET_SIGNATURES | GET_PROVIDERS);\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( java ( "src/test/pkg/GetSignaturesBitwiseOrTest.java" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( "package test.pkg;\n" + "\n" ) + "import static android.content.pm.PackageManager.*;\n" ) + "\n" ) + "import android.app.Activity;\n" ) + "import android.content.pm.PackageManager;\n" ) + "\n" ) + "public class GetSignaturesBitwiseOrTest extends Activity {\n" ) + " public void failLintCheck() throws Exception {\n" ) + " getPackageManager()\n" ) + " .getPackageInfo(\"some.pkg\", GET_GIDS | GET_SIGNATURES | GET_PROVIDERS);\n" ) + " }\n" ) + "}" ) ) ) ) ) ; }
Source:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { if ( listener == null ) return android.net.nsd.NsdManager.INVALID_LISTENER_KEY ; int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; if ( valueIndex != ( - 1 ) ) { return android.net.nsd.NsdManager.BUSY_LISTENER_KEY ; } do { key = ( mListenerKey ) ++ ; } while ( key == ( android.net.nsd.NsdManager.INVALID_LISTENER_KEY ) ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }

Target:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { android.net.nsd.NsdManager.checkListener ( listener ) ; final int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex == ( - 1 ) ) , "listener already in use" ) ; key = nextListenerKey ( ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }
Source:
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" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( stringCharsetValue ) ; }

Target:
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" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charsetValue = getStaticFieldValue ( debuggeeClassId , "CHARSET" ) ; 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 ) ) ; constructorArguments.add ( charsetValue ) ; }
Source:
public void reloadSdk ( com.android.sdklib.ISdkLog log ) { java.util.ArrayList < com.android.sdklib.IAndroidTarget > list = new java.util.ArrayList < com.android.sdklib.IAndroidTarget > ( ) ; com.android.sdklib.SdkManager.loadPlatforms ( mOsSdkPath , list , log ) ; com.android.sdklib.SdkManager.loadAddOns ( mOsSdkPath , list , log ) ; java.util.Collections.sort ( list ) ; setTargets ( list.toArray ( new com.android.sdklib.IAndroidTarget [ list.size ( ) ] ) ) ; initializeSamplePaths ( log ) ; }

Target:
public void reloadSdk ( com.android.utils.ILogger log ) { mTargetDirs.clear ( ) ; java.util.ArrayList < com.android.sdklib.IAndroidTarget > targets = new java.util.ArrayList < com.android.sdklib.IAndroidTarget > ( ) ; com.android.sdklib.SdkManager.loadPlatforms ( mOsSdkPath , targets , mTargetDirs , log ) ; com.android.sdklib.SdkManager.loadAddOns ( mOsSdkPath , targets , mTargetDirs , log ) ; java.util.Collections.sort ( targets ) ; setTargets ( targets.toArray ( new com.android.sdklib.IAndroidTarget [ targets.size ( ) ] ) ) ; initializeSamplePaths ( log ) ; }
Source:
public void onCreate ( ) { mHandlerThread = new android.os.HandlerThread ( "RecommendationProvider" ) ; mHandlerThread.start ( ) ; mHandler = new android.os.Handler ( mHandlerThread.getLooper ( ) ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationService.DefaultNetworkRecommendationProvider ( mHandler , ( ( android.net.NetworkScoreManager ) ( getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) ) , new com.android.networkrecommendation.DefaultNetworkRecommendationService.ScoreStorage ( ) ) ; }

Target:
public void onCreate ( ) { mHandlerThread = new android.os.HandlerThread ( "RecommendationProvider" ) ; mHandlerThread.start ( ) ; mHandler = new android.os.Handler ( mHandlerThread.getLooper ( ) ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationProvider ( mHandler , ( ( android.net.NetworkScoreManager ) ( getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) ) , new com.android.networkrecommendation.DefaultNetworkRecommendationProvider.ScoreStorage ( ) ) ; mWifiNotificationController = new com.android.networkrecommendation.WifiNotificationController ( this , mHandler.getLooper ( ) , null ) ; mWifiWakeupController = new com.android.networkrecommendation.WifiWakeupController ( this , getContentResolver ( ) , mHandlerThread.getLooper ( ) ) ; }
Source:
protected void onStop ( ) { super . onStop ( ) ; mSidecar.setListener ( null ) ; stopIconAnimation ( ) ; if ( ! ( isChangingConfigurations ( ) ) ) { finish ( ) ; } }

Target:
protected void onStop ( ) { super . onStop ( ) ; if ( ( mSidecar ) != null ) { mSidecar.setListener ( null ) ; } stopIconAnimation ( ) ; if ( ! ( isChangingConfigurations ( ) ) ) { if ( ( mSidecar ) != null ) { mSidecar.cancelEnrollment ( ) ; getFragmentManager ( ) . beginTransaction ( ) . remove ( mSidecar ) . commitAllowingStateLoss ( ) ; } finish ( ) ; } }
Source:
public void testConstructor2 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( 1 , 0 , ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor3 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( ( - 1 ) , 0.75F , 1 ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } try { new java.util.concurrent.ConcurrentHashMap ( 16 , ( - 1 ) , 1 ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } try { new java.util.concurrent.ConcurrentHashMap ( 16 , 0.75F , ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void createNativeFlavors ( org.gradle.nativeplatform.FlavorContainer nativeFlavors , java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > androidFlavorGroups ) { for ( com.android.build.gradle.internal.ProductFlavorCombo group : androidFlavorGroups ) { nativeFlavors.maybeCreate ( group.getName ( ) ) ; } }

Target:
public void createNativeFlavors ( org.gradle.nativeplatform.FlavorContainer nativeFlavors , java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > androidFlavorGroups ) { if ( androidFlavorGroups.isEmpty ( ) ) { nativeFlavors.maybeCreate ( "" ) ; } else { for ( com.android.build.gradle.internal.ProductFlavorCombo group : androidFlavorGroups ) { nativeFlavors.maybeCreate ( group.getName ( ) ) ; } } }
Source:
public void widgetDefaultSelected ( org.eclipse.swt.events.SelectionEvent e ) { java.lang.Object selection = ( ( org.eclipse.swt.widgets.TreeItem ) ( e.item ) ) . getData ( ) ; if ( selection instanceof com.android.ddmlib.IDevice ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . loadPixelPerfectData ( ( ( com.android.ddmlib.IDevice ) ( selection ) ) ) ; } else if ( selection instanceof com.android.hierarchyviewerlib.device.Window ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . loadViewTreeData ( ( ( com.android.hierarchyviewerlib.device.Window ) ( selection ) ) ) ; } }

Target:
public void widgetDefaultSelected ( org.eclipse.swt.events.SelectionEvent e ) { java.lang.Object selection = ( ( org.eclipse.swt.widgets.TreeItem ) ( e.item ) ) . getData ( ) ; if ( ( selection instanceof com.android.ddmlib.IDevice ) && ( doPixelPerfectStuff ) ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . loadPixelPerfectData ( ( ( com.android.ddmlib.IDevice ) ( selection ) ) ) ; } else if ( ( selection instanceof com.android.hierarchyviewerlib.device.Window ) && ( doTreeViewStuff ) ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . loadViewTreeData ( ( ( com.android.hierarchyviewerlib.device.Window ) ( selection ) ) ) ; } }
Source:
public void test_getHostNameCaches ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByAddress ( libcore.java.net.InetAddressTest.LOOPBACK6_BYTES ) ; libcore.java.net.InetAddressTest.assertEquals ( "ip6-localhost" , inetAddress.getHostName ( ) ) ; }

Target:
public void test_getHostNameCaches ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByAddress ( libcore.java.net.InetAddressTest.LOOPBACK6_BYTES ) ; libcore.java.net.InetAddressTest.assertEquals ( "::1" , libcore.java.net.InetAddressTest.getHostStringWithoutReverseDns ( inetAddress ) ) ; libcore.java.net.InetAddressTest.assertEquals ( "ip6-localhost" , inetAddress.getHostName ( ) ) ; libcore.java.net.InetAddressTest.assertEquals ( "ip6-localhost" , libcore.java.net.InetAddressTest.getHostStringWithoutReverseDns ( inetAddress ) ) ; }
Source:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element != null ) { if ( ! ( element.isVDir ( ) ) ) { return ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotFileException ( getVFileLocation ( parent , name ) ) ; } } else { throw new com.android.sched.util.file.NoSuchFileException ( getVFileLocation ( parent , name ) ) ; } }

Target:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile getVFileFromCache ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NotFileException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element == null ) { return null ; } else if ( ! ( element.isVDir ( ) ) ) { return ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotFileException ( getVFileLocation ( parent , name ) ) ; } }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded ) { return dexopt ( apkPath , uid , isPublic , instructionSet , dexoptNeeded , true ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , java.lang.String instructionSet , int dexoptNeeded , int dexFlags ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , instructionSet , dexoptNeeded , dexFlags ) ; }
Source:
protected void finalize ( ) throws java.io.IOException { if ( ( ( fd ) != null ) && ( ( fd ) != ( java.io.FileDescriptor.in ) ) ) { close ( ) ; } }

Target:
protected void finalize ( ) throws java.io.IOException { if ( ( guard ) != null ) { guard.warnIfOpen ( ) ; } if ( ( ( fd ) != null ) && ( ( fd ) != ( java.io.FileDescriptor.in ) ) ) { close ( ) ; } }
Source:
public void doF32_3 ( long seed , int ulp ) { baseTestHelper ( android.renderscript.cts.RSBaseCompute.TEST_F32_3 , android.renderscript.Element.F32_3 ( mRS ) , android.renderscript.Element.F32_3 ( mRS ) , seed , 1 , 0 , 4 , 1 , 3 , 4 , 4 , 1 , ulp ) ; }

Target:
public void doF32_3 ( long seed , int ulp ) { baseTestHelper ( android.renderscript.cts.RSBaseCompute.TEST_F32_3 , android.renderscript.Element.F32_3 ( mRS ) , android.renderscript.Element.F32_3 ( mRS ) , seed , 0.0F , 1.0F , 4 , 1 , 3 , 4 , 4 , 1 , ulp ) ; }
Source:
public static int FloatLtNonmatCond_IntVarVar ( float a , float b , int x , int y ) { return a > b ? x : y ; }

Target:
public static int FloatLtMatCond_IntVarVar ( float a , float b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = classes ; if ( result == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.classesOnly ( ) . collectTypes ( this ) ) ) ; return classes = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toImmutableSet ( ) ; } else { return result ; } }

Target:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > filteredTypes = types ; if ( filteredTypes == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.collectTypes ( this ) ) ) ; return types = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toSet ( ) ; } else { return filteredTypes ; } }
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineDoFinal ( input , 0 , input.length ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return getSpi ( ) . engineDoFinal ( input , 0 , input.length ) ; }
Source:
private boolean isSupported ( int networkType ) { return ( mNetworks.containsKey ( networkType ) ) || ( networkType == ( android.net.ConnectivityManager.TYPE_VPN ) ) ; }

Target:
private boolean isSupported ( int networkType ) { return ( ( mNetworks.containsKey ( networkType ) ) || ( networkType == ( android.net.ConnectivityManager.TYPE_VPN ) ) ) || ( ( networkType == ( android.net.ConnectivityManager.TYPE_ETHERNET ) ) && ( ( mContext.getSystemService ( Context.ETHERNET_SERVICE ) ) != null ) ) ; }
Source:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.server.pm.Installer.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
private java.lang.String localizeDigits ( java.lang.String s ) { int length = s.length ( ) ; int offsetToLocalizedDigits = ( android.text.format.Time.sZeroDigit ) - '0' ; java.lang.StringBuilder result = new java.lang.StringBuilder ( length ) ; for ( int i = 0 ; i < length ; ++ i ) { char ch = s.charAt ( i ) ; if ( ( ch >= '0' ) && ( ch <= '9' ) ) { ch += offsetToLocalizedDigits ; } result.append ( ch ) ; } return result.toString ( ) ; }

Target:
public long toMillis ( boolean ignoreDst ) { calculator.copyFieldsFromTime ( this ) ; return calculator.toMillis ( ignoreDst ) ; }
Source:
public int getPasswordType ( ) { waitForReady ( ) ; final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "getpwtype" ) ; for ( int i = 0 ; i < ( com.android.server.MountService.CRYPTO_TYPES.length ) ; ++ i ) { if ( com.android.server.MountService.CRYPTO_TYPES [ i ] . equals ( event.getMessage ( ) ) ) return i ; } throw new java.lang.IllegalStateException ( "unexpected return from cryptfs" ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }

Target:
public int getPasswordType ( ) { mContext.enforceCallingOrSelfPermission ( Manifest.permission.STORAGE_INTERNAL , "no permission to access the crypt keeper" ) ; waitForReady ( ) ; final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "getpwtype" ) ; for ( int i = 0 ; i < ( com.android.server.MountService.CRYPTO_TYPES.length ) ; ++ i ) { if ( com.android.server.MountService.CRYPTO_TYPES [ i ] . equals ( event.getMessage ( ) ) ) return i ; } throw new java.lang.IllegalStateException ( "unexpected return from cryptfs" ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }
Source:
public static < K , V1 , V2 > com.google.common.collect.ListMultimap < K , V2 > transformValues ( com.google.common.collect.ListMultimap < K , V1 > fromMultimap , final com.google.common.base.Function < ? super V1 , V2 > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > transformer = new com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > ( ) { @ java.lang.Override public V2 transformEntry ( K key , V1 value ) { return function.apply ( value ) ; } } ; return com.google.common.collect.Multimaps.transformEntries ( fromMultimap , transformer ) ; }

Target:
public static < K , V1 , V2 > com.google.common.collect.ListMultimap < K , V2 > transformValues ( com.google.common.collect.ListMultimap < K , V1 > fromMultimap , final com.google.common.base.Function < ? super V1 , V2 > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > transformer = com.google.common.collect.Maps.asEntryTransformer ( function ) ; return com.google.common.collect.Multimaps.transformEntries ( fromMultimap , transformer ) ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { logFail ( ) ; status = FAIL ; } else { if ( ( ( mNm.getEffectsSuppressor ( ) ) == null ) || ( ! ( mNm.getEffectsSuppressor ( ) . equals ( MockListener.COMPONENT_NAME ) ) ) ) { status = PASS ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } } next ( ) ; }

Target:
void test ( ) { java.util.List < java.lang.String > result = new java.util.ArrayList ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . mPosted ) ; if ( ( result.size ( ) ) == 0 ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , long [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 8 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
private void validateLayouts ( ) { if ( ( mRootLayout ) == null ) { createDefaultRootLayout ( ) ; } if ( ( mImageRegion ) == null ) { createDefaultImageRegion ( ) ; } if ( ( mTextRegion ) == null ) { createDefaultTextRegion ( ) ; } }

Target:
private void validateLayouts ( ) { if ( ( mRootLayout ) == null ) { createDefaultRootLayout ( ) ; } if ( ( mImageRegion ) == null ) { createDefaultImageRegion ( ) ; } if ( ( mTextRegion ) == null ) { createDefaultTextRegion ( ) ; } mLayoutType = ( ( mImageRegion.getTop ( ) ) == 0 ) ? com.android.mms.model.LayoutModel.LAYOUT_BOTTOM_TEXT : com.android.mms.model.LayoutModel.LAYOUT_TOP_TEXT ; }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
protected abstract com.android.server.IpSecService.ResourceTracker getResourceTracker ( ) ;

Target:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( ) . append ( "{mResourceId=" ) . append ( mResourceId ) . append ( ", pid=" ) . append ( pid ) . append ( ", uid=" ) . append ( uid ) . append ( ", mReferenceCount=" ) . append ( mReferenceCount.get ( ) ) . append ( "}" ) . toString ( ) ; }
Source:
protected void sendNewSubmitPdu ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int encoding , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean lastPart ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddress , destinationAddress , message , ( deliveryIntent != null ) , com.android.internal.telephony.SmsHeader.toByteArray ( smsHeader ) , encoding , smsHeader.languageTable , smsHeader.languageShiftTable ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destinationAddress ) ; } else { android.util.Log.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendNewSubmitPdu(): getSubmitPdu() returned null" ) ; } }

Target:
protected void sendNewSubmitPdu ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int encoding , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean lastPart ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddress , destinationAddress , message , ( deliveryIntent != null ) , com.android.internal.telephony.SmsHeader.toByteArray ( smsHeader ) , encoding , smsHeader.languageTable , smsHeader.languageShiftTable ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destinationAddress ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendNewSubmitPdu(): getSubmitPdu() returned null" ) ; } }
Source:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }

Target:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }
Source:
synchronized boolean unplug ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "unplug(): device=" + device ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.unplug ( ) ; }

Target:
synchronized boolean unplug ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "unplug(): device=" + device ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.unplug ( ) ) ; }
Source:
public void pack ( java.nio.ByteBuffer byteBuffer ) { final int originalPosition = byteBuffer.position ( ) ; byteBuffer.putShort ( nla_len ) ; byteBuffer.putShort ( nla_type ) ; byteBuffer.put ( nla_value ) ; byteBuffer.position ( ( originalPosition + ( getAlignedLength ( ) ) ) ) ; }

Target:
public void pack ( java.nio.ByteBuffer byteBuffer ) { final java.nio.ByteOrder originalOrder = byteBuffer.order ( ) ; final int originalPosition = byteBuffer.position ( ) ; byteBuffer.order ( java.nio.ByteOrder.nativeOrder ( ) ) ; try { byteBuffer.putShort ( nla_len ) ; byteBuffer.putShort ( nla_type ) ; if ( ( nla_value ) != null ) byteBuffer.put ( nla_value ) ; } finally { byteBuffer.order ( originalOrder ) ; } byteBuffer.position ( ( originalPosition + ( getAlignedLength ( ) ) ) ) ; }
Source:
public boolean isUpdatedBy ( java.lang.Package pkg ) { if ( ( mPkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.Package.UpdateInfo.UPDATE ) ) { if ( ( mUpdatePkgs ) == null ) { mUpdatePkgs = new java.util.ArrayList < java.lang.Package > ( ) ; } mUpdatePkgs.add ( pkg ) ; mState = com.android.sdkuilib.internal.repository.PackagesPage.PkgState.UPDATE_AVAILABLE ; return true ; } return false ; }

Target:
public boolean isUpdatedBy ( java.lang.Package pkg ) { if ( ( mPkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.Package.UpdateInfo.UPDATE ) ) { if ( ( mUpdatePkgs ) == null ) { mUpdatePkgs = new java.util.ArrayList < java.lang.Package > ( ) ; } mUpdatePkgs.add ( pkg ) ; mState = com.android.sdkuilib.internal.repository.PackagesPage.PkgState.HAS_UPDATE ; return true ; } return false ; }
Source:
public boolean removeNetwork ( int netId ) { enforceChangePermission ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncRemoveNetwork ( mWifiStateMachineChannel , netId ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return false ; } }

Target:
public boolean removeNetwork ( int netId ) { enforceChangePermission ( ) ; mLog.trace ( "removeNetwork uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncRemoveNetwork ( mWifiStateMachineChannel , netId ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return false ; } }
Source:
public java.lang.String getLongDescription ( ) { java.lang.String s = getDescription ( ) ; if ( ( s == null ) || ( ( s.length ( ) ) == 0 ) ) { s = getShortDescription ( ) ; } if ( ( s.indexOf ( "revision" ) ) == ( - 1 ) ) { s += java.lang.String.format ( "\nRevision %1$d%2$s" , getRevision ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }

Target:
public java.lang.String getLongDescription ( ) { java.lang.String s = getDescription ( ) ; if ( ( s == null ) || ( ( s.length ( ) ) == 0 ) ) { s = getShortDescription ( ) ; } if ( ( s.indexOf ( "revision" ) ) == ( - 1 ) ) { s += java.lang.String.format ( "\nRevision %1$s%2$s" , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }
Source:
public void test_getSystemClassLoader ( ) { java.lang.ClassLoader cl = java.lang.ClassLoader.getSystemClassLoader ( ) ; java.io.InputStream is = cl.getResourceAsStream ( "hyts_Foo.c" ) ; assertNotNull ( "Failed to find resource from system classpath" , is ) ; try { is.close ( ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_getSystemClassLoader ( ) { java.lang.ClassLoader cl = java.lang.ClassLoader.getSystemClassLoader ( ) ; assertNotNull ( cl ) ; assertNotNull ( cl.getParent ( ) ) ; java.lang.Class < ? > libcoreClass = java.lang.Integer.class ; assertSame ( cl.getParent ( ) , libcoreClass.getClassLoader ( ) ) ; }
Source:
private boolean isSecondaryExternalPath ( java.lang.String path ) { for ( int i = ( com.android.providers.media.MediaProvider.mExternalStoragePaths.length ) - 1 ; i >= 0 ; -- i ) { if ( path.startsWith ( com.android.providers.media.MediaProvider.mExternalStoragePaths [ i ] ) ) { return true ; } } return false ; }

Target:
private boolean isSecondaryExternalPath ( java.lang.String path ) { for ( int i = 1 ; i < ( mExternalStoragePaths.length ) ; i ++ ) { if ( path.startsWith ( mExternalStoragePaths [ i ] ) ) { return true ; } } return false ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/bytecode/MyParcelable1.java:6: Warning: This class implements Parcelable but does not provide a CREATOR field [ParcelCreator]\n" + "public class MyParcelable1 implements Parcelable {\n" ) + " ~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/MyParcelable1.java.txt=>src/test/bytecode/MyParcelable1.java" , "bytecode/MyParcelable2.java.txt=>src/test/bytecode/MyParcelable2.java" , "bytecode/MyParcelable3.java.txt=>src/test/bytecode/MyParcelable3.java" , "bytecode/MyParcelable1.class.data=>bin/classes/test/bytecode/MyParcelable1.class" , "bytecode/MyParcelable2.class.data=>bin/classes/test/bytecode/MyParcelable2.class" , "bytecode/MyParcelable2$1.class.data=>bin/classes/test/bytecode/MyParcelable2$1.class" , "bytecode/MyParcelable3.class.data=>bin/classes/test/bytecode/MyParcelable3.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/bytecode/MyParcelable1.java:6: Warning: This class implements Parcelable but does not provide a CREATOR field [ParcelCreator]\n" + "public class MyParcelable1 implements Parcelable {\n" ) + " ~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/MyParcelable1.java.txt=>src/test/bytecode/MyParcelable1.java" , "bytecode/MyParcelable2.java.txt=>src/test/bytecode/MyParcelable2.java" , "bytecode/MyParcelable3.java.txt=>src/test/bytecode/MyParcelable3.java" , "bytecode/MyParcelable4.java.txt=>src/test/bytecode/MyParcelable4.java" , "bytecode/MyParcelable5.java.txt=>src/test/bytecode/MyParcelable5.java" , "bytecode/MyParcelable1.class.data=>bin/classes/test/bytecode/MyParcelable1.class" , "bytecode/MyParcelable2.class.data=>bin/classes/test/bytecode/MyParcelable2.class" , "bytecode/MyParcelable2$1.class.data=>bin/classes/test/bytecode/MyParcelable2$1.class" , "bytecode/MyParcelable3.class.data=>bin/classes/test/bytecode/MyParcelable3.class" , "bytecode/MyParcelable4.class.data=>bin/classes/test/bytecode/MyParcelable4.class" , "bytecode/MyParcelable5.class.data=>bin/classes/test/bytecode/MyParcelable5.class" ) ) ; }
Source:
public static long SubNeg3 ( long arg1 , long arg2 ) { long res = 0 ; long temp = - arg1 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( temp - arg2 ) - i ; } return res ; }

Target:
public static long $noinline$SubNeg3 ( long arg1 , long arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long res = 0 ; long temp = - arg1 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( temp - arg2 ) - i ; } return res ; }
Source:
protected void setUp ( ) { myThreads = new java.util.ArrayList < > ( ) ; initialThreadGroup = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; java.lang.ThreadGroup rootThreadGroup = initialThreadGroup ; while ( ( rootThreadGroup.getParent ( ) ) != null ) { rootThreadGroup = rootThreadGroup.getParent ( ) ; } }

Target:
public void test_getParent ( ) { assertEquals ( java.lang.Thread.currentThread ( ) . getThreadGroup ( ) , new java.lang.ThreadGroup ( "test" ) . getParent ( ) ) ; assertEquals ( initialThreadGroup , new java.lang.ThreadGroup ( initialThreadGroup , "test" ) . getParent ( ) ) ; }
Source:
private void handleSetPreferredNetworkTypeResponse ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; if ( ( ar.exception ) == null ) { int networkMode = java.lang.Integer.valueOf ( mButtonPreferredNetworkMode.getValue ( ) ) . intValue ( ) ; android.provider.Settings.Secure.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Secure.PREFERRED_NETWORK_MODE , networkMode ) ; } else { mPhone.getPreferredNetworkType ( obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_GET_PREFERRED_NETWORK_TYPE ) ) ; } }

Target:
private void handleSetPreferredNetworkTypeResponse ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; if ( ( ar.exception ) == null ) { int networkMode = java.lang.Integer.valueOf ( mButtonPreferredNetworkMode.getValue ( ) ) . intValue ( ) ; android.provider.Settings.Global.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Global.PREFERRED_NETWORK_MODE , networkMode ) ; } else { mPhone.getPreferredNetworkType ( obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_GET_PREFERRED_NETWORK_TYPE ) ) ; } }
Source:
public com.android.build.gradle.tasks.ZipAlign createZipAlignTask ( @ com.android.annotations.NonNull java.lang.String taskName , @ com.android.annotations.NonNull java.io.File inputFile , @ com.android.annotations.NonNull java.io.File outputFile ) { com.android.build.gradle.internal.variant.ApkVariantData variantData = getApkVariantData ( ) ; if ( ( variantData.zipAlignTask ) != null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "ZipAlign task for variant '%s' already exists." , getName ( ) ) ) ; } com.android.build.gradle.tasks.ZipAlign task = plugin.createZipAlignTask ( taskName , inputFile , outputFile ) ; variantData.setOutputFile ( outputFile ) ; variantData.zipAlignTask = task ; variantData.assembleTask.dependsOn ( task ) ; return task ; }

Target:
public com.android.build.gradle.tasks.ZipAlign createZipAlignTask ( @ com.android.annotations.NonNull java.lang.String taskName , @ com.android.annotations.NonNull java.io.File inputFile , @ com.android.annotations.NonNull java.io.File outputFile ) { com.android.build.gradle.internal.variant.ApkVariantOutputData variantOutputData = getApkVariantData ( ) . getOutputs ( ) . get ( 0 ) ; if ( ( variantOutputData.zipAlignTask ) != null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "ZipAlign task for variant '%s' already exists." , getName ( ) ) ) ; } com.android.build.gradle.tasks.ZipAlign task = plugin.createZipAlignTask ( taskName , inputFile , outputFile ) ; variantOutputData.setOutputFile ( outputFile ) ; variantOutputData.zipAlignTask = task ; variantOutputData.assembleTask.dependsOn ( task ) ; return task ; }
Source:
private boolean removeOutFile ( com.android.ide.common.res2.ResourceFile resourceFile ) { if ( ( resourceFile.getType ( ) ) == ( ResourceFile.FileType.MULTI ) ) { throw new java.lang.IllegalArgumentException ( "SourceFile cannot be a FileType.MULTI" ) ; } java.io.File file = resourceFile.getFile ( ) ; java.lang.String fileName = file.getName ( ) ; java.lang.String folderName = file.getParentFile ( ) . getName ( ) ; return removeOutFile ( folderName , fileName ) ; }

Target:
private boolean removeOutFile ( com.android.ide.common.res2.ResourceItem resourceItem ) { com.android.ide.common.res2.ResourceFile resourceFile = resourceItem.getSource ( ) ; if ( ( resourceFile.getType ( ) ) == ( ResourceFile.FileType.MULTI ) ) { throw new java.lang.IllegalArgumentException ( "SourceFile cannot be a FileType.MULTI" ) ; } java.io.File file = resourceFile.getFile ( ) ; java.lang.String fileName = file.getName ( ) ; java.lang.String folderName = com.android.ide.common.res2.MergedResourceWriter.getFolderName ( resourceItem ) ; return removeOutFile ( folderName , fileName ) ; }
Source:
public java.io.File getDexOutputFolder ( ) { return new java.io.File ( ( ( ( ( ( getGlobalScope ( ) . getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/dex/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }

Target:
public java.io.File getProguardOutputFile ( ) { return ( variantData ) instanceof com.android.build.gradle.internal.variant.LibraryVariantData ? new java.io.File ( globalScope.getIntermediatesDir ( ) , ( ( ( ( com.android.build.gradle.internal.TaskManager.DIR_BUNDLES ) + "/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/classes.jar" ) ) : new java.io.File ( globalScope.getIntermediatesDir ( ) , ( ( "/classes-proguard/" + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/classes.jar" ) ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { removeDialog ( com.android.settings.AccessibilitySettings.DIALOG_ID_NO_ACCESSIBILITY_SERVICES ) ; java.lang.String screenreaderMarketLink = android.os.SystemProperties.get ( com.android.settings.AccessibilitySettings.SYSTEM_PROPERTY_MARKET_URL , com.android.settings.AccessibilitySettings.DEFAULT_SCREENREADER_MARKET_LINK ) ; android.net.Uri marketUri = android.net.Uri.parse ( screenreaderMarketLink ) ; android.content.Intent marketIntent = new android.content.Intent ( android.content.Intent.ACTION_VIEW , marketUri ) ; startActivity ( marketIntent ) ; }

Target:
protected void onBindView ( android.view.View view ) { super . onBindView ( view ) ; android.widget.LinearLayout containerView = ( ( android.widget.LinearLayout ) ( view.findViewById ( R.id.message_container ) ) ) ; containerView.setGravity ( Gravity.CENTER ) ; android.widget.TextView summaryView = ( ( android.widget.TextView ) ( view.findViewById ( R.id.summary ) ) ) ; java.lang.String title = getString ( R.string.accessibility_no_services_installed ) ; summaryView.setText ( title ) ; }
Source:
private boolean isPolicyValid ( java.lang.String test ) { final android.content.pm.PackageManager pm = getPackageManager ( ) ; switch ( test ) { case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_INPUT_METHOD : return pm.hasSystemFeature ( PackageManager.FEATURE_INPUT_METHODS ) ; case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_ACCESSIBILITY_SERVICE : return pm.hasSystemFeature ( PackageManager.FEATURE_AUDIO_OUTPUT ) ; default : return true ; } }

Target:
private boolean isPolicyValid ( java.lang.String test ) { final android.content.pm.PackageManager pm = getPackageManager ( ) ; switch ( test ) { case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_INPUT_METHOD : return pm.hasSystemFeature ( PackageManager.FEATURE_INPUT_METHODS ) ; case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_ACCESSIBILITY_SERVICE : return pm.hasSystemFeature ( PackageManager.FEATURE_AUDIO_OUTPUT ) ; case PolicyTransparencyTestActivity.TEST_CHECK_LOCK_SCREEN_INFO : return ! ( pm.hasSystemFeature ( PackageManager.FEATURE_WATCH ) ) ; default : return true ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , 0L , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , 0L , a , b ) ; }
Source:
public static org.w3c.dom.Document parseDocumentSilently ( @ com.android.annotations.NonNull java.lang.String xml , boolean namespaceAware ) { javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance ( ) ; org.xml.sax.InputSource is = new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) ; factory.setNamespaceAware ( namespaceAware ) ; factory.setValidating ( false ) ; try { javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; return builder.parse ( is ) ; } catch ( java.lang.Exception e ) { } return null ; }

Target:
public static org.w3c.dom.Document parseUtfXmlFile ( @ com.android.annotations.NonNull java.io.File file , boolean namespaceAware ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance ( ) ; java.io.Reader reader = com.android.utils.XmlUtils.getUtfReader ( file ) ; try { org.xml.sax.InputSource is = new org.xml.sax.InputSource ( reader ) ; factory.setNamespaceAware ( namespaceAware ) ; factory.setValidating ( false ) ; javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; return builder.parse ( is ) ; } finally { reader.close ( ) ; } }