auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( path.isRoot ( ) ) ; if ( ! ( this . isRoot ( ) ) ) { pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; } pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }

Target:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( path.isRoot ( ) ) ; if ( ! ( this . isRoot ( ) ) ) { pathFragments.add ( 0 , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR_FRAGMENT ) ; } pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }
Source:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } mDiagsConnectionStartMillis = - 1 ; }
Source:
private byte [ ] desugar ( org.objectweb.asm.ClassReader reader ) { org.objectweb.asm.ClassWriter writer = new org.objectweb.asm.ClassWriter ( org.objectweb.asm.ClassWriter.COMPUTE_MAXS ) ; com.google.devtools.build.android.desugar.DefaultMethodClassFixer fixer = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer ( writer , classpathReader , bootclassPath , classLoader ) ; reader.accept ( fixer , 0 ) ; return writer.toByteArray ( ) ; }

Target:
private byte [ ] desugar ( org.objectweb.asm.ClassReader reader ) { org.objectweb.asm.ClassWriter writer = new org.objectweb.asm.ClassWriter ( org.objectweb.asm.ClassWriter.COMPUTE_MAXS ) ; com.google.devtools.build.android.desugar.DefaultMethodClassFixer fixer = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer ( writer , classpathReader , DependencyCollector.NoWriteCollectors.FAIL_ON_MISSING , bootclassPath , classLoader ) ; reader.accept ( fixer , 0 ) ; return writer.toByteArray ( ) ; }
Source:
public void paintIcon ( java.awt.Component c , java.awt.Graphics g , int x , int y ) { mVdTree.draw ( g , c.getWidth ( ) , c.getHeight ( ) ) ; }

Target:
public void paintIcon ( java.awt.Component c , java.awt.Graphics g , int x , int y ) { int minSize = java.lang.Math.min ( c.getWidth ( ) , c.getHeight ( ) ) ; final java.awt.image.BufferedImage image = com.android.assetstudiolib.Util.newArgbBufferedImage ( minSize , minSize ) ; mVdTree.drawIntoImage ( image ) ; java.awt.Rectangle rect = new java.awt.Rectangle ( 0 , 0 , c.getWidth ( ) , c.getHeight ( ) ) ; com.android.assetstudiolib.Util.drawCenterInside ( ( ( java.awt.Graphics2D ) ( g ) ) , image , rect ) ; }
Source:
private static android.telephony.SmsCbMessage createFromPdu ( byte [ ] pdu ) { try { com.android.internal.telephony.gsm.SmsCbHeader header = new com.android.internal.telephony.gsm.SmsCbHeader ( pdu ) ; byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.internal.telephony.gsm.GsmSmsCbMessage.createSmsCbMessage ( header , com.android.internal.telephony.gsm.GsmSmsCbTest.sTestLocation , pdus ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
private android.telephony.SmsCbMessage createFromPdu ( byte [ ] pdu ) { try { com.android.internal.telephony.gsm.SmsCbHeader header = new com.android.internal.telephony.gsm.SmsCbHeader ( pdu ) ; byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.internal.telephony.gsm.GsmSmsCbMessage.createSmsCbMessage ( getContext ( ) , header , com.android.internal.telephony.gsm.GsmSmsCbTest.sTestLocation , pdus ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
public boolean isProtectedBroadcast ( java.lang.String actionName ) { synchronized ( mPackages ) { return mProtectedBroadcasts.contains ( actionName ) ; } }

Target:
public boolean isProtectedBroadcast ( java.lang.String actionName ) { synchronized ( mPackages ) { if ( mProtectedBroadcasts.contains ( actionName ) ) { return true ; } else if ( actionName != null ) { if ( ( ( ( actionName.startsWith ( "android.net.netmon.lingerExpired" ) ) || ( actionName.startsWith ( "com.android.server.sip.SipWakeupTimer" ) ) ) || ( actionName.startsWith ( "com.android.internal.telephony.data-reconnect" ) ) ) || ( actionName.startsWith ( "android.net.netmon.launchCaptivePortalApp" ) ) ) { return true ; } } } return false ; }
Source:
public void test_get_put ( ) throws java.lang.Exception { libcore.java.net.OldCookieHandlerTest.MockCookieHandler mch = new libcore.java.net.OldCookieHandlerTest.MockCookieHandler ( ) ; java.net.CookieHandler defaultHandler = java.net.CookieHandler.getDefault ( ) ; try { java.net.CookieHandler.setDefault ( mch ) ; com.google.mockwebserver.MockWebServer server = new com.google.mockwebserver.MockWebServer ( ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . addHeader ( ( ( ( ( ( ( ( ( ( ( "Set-Cookie2: a=\"android\"; " + ( ( ( "Comment=\"this cookie is delicious\"; " + "CommentURL=\"http://google.com/\"; " ) + "Discard; " ) + "Domain=\"" ) ) + ( server.getCookieDomain ( ) ) ) + "\"; " ) + "Max-Age=\"60\"; " ) + "Path=\"/path\"; " ) + "Port=\"80,443," ) + ( server.getPort ( ) ) ) + "\"; " ) + "Secure; " ) + "Version=\"1\"" ) ) ) ; server.play ( ) ; java.net.URLConnection connection = server.getUrl ( "/path/foo" ) . openConnection ( ) ; connection.getContent ( ) ; assertTrue ( mch.wasGetCalled ( ) ) ; assertTrue ( mch.wasPutCalled ( ) ) ; } finally { java.net.CookieHandler.setDefault ( defaultHandler ) ; } }

Target:
public void test_get_put ( ) throws java.lang.Exception { libcore.java.net.OldCookieHandlerTest.MockCookieHandler mch = new libcore.java.net.OldCookieHandlerTest.MockCookieHandler ( ) ; java.net.CookieHandler defaultHandler = java.net.CookieHandler.getDefault ( ) ; try { java.net.CookieHandler.setDefault ( mch ) ; com.google.mockwebserver.MockWebServer server = new com.google.mockwebserver.MockWebServer ( ) ; server.play ( ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . addHeader ( ( ( ( ( ( ( ( ( ( ( "Set-Cookie2: a=\"android\"; " + ( ( ( "Comment=\"this cookie is delicious\"; " + "CommentURL=\"http://google.com/\"; " ) + "Discard; " ) + "Domain=\"" ) ) + ( server.getCookieDomain ( ) ) ) + "\"; " ) + "Max-Age=\"60\"; " ) + "Path=\"/path\"; " ) + "Port=\"80,443," ) + ( server.getPort ( ) ) ) + "\"; " ) + "Secure; " ) + "Version=\"1\"" ) ) ) ; java.net.URLConnection connection = server.getUrl ( "/path/foo" ) . openConnection ( ) ; connection.getContent ( ) ; assertTrue ( mch.wasGetCalled ( ) ) ; assertTrue ( mch.wasPutCalled ( ) ) ; } finally { java.net.CookieHandler.setDefault ( defaultHandler ) ; } }
Source:
static final < K , V > java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > entryAt ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] tab , int i ) { return tab == null ? null : ( ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > ) ( java.util.concurrent.ConcurrentHashMap.UNSAFE.getObjectVolatile ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.TSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.TBASE ) ) ) ) ) ; }

Target:
static final < K , V > java.util.concurrent.ConcurrentHashMap.Node < K , V > tabAt ( java.util.concurrent.ConcurrentHashMap.Node < K , V > [ ] tab , int i ) { return ( ( java.util.concurrent.ConcurrentHashMap.Node < K , V > ) ( java.util.concurrent.ConcurrentHashMap.U.getObjectVolatile ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.ASHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.ABASE ) ) ) ) ) ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec spec , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( ( spec != null ) && ( ! ( spec instanceof javax.crypto.spec.OAEPParameterSpec ) ) ) { throw new java.security.InvalidAlgorithmParameterException ( "Only OAEPParameterSpec accepted in OAEP mode" ) ; } engineInitInternal ( opmode , key , spec ) ; }
Source:
boolean accept ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.ExtraPackage ) { com.android.sdklib.internal.repository.ExtraPackage ep = ( ( com.android.sdklib.internal.repository.ExtraPackage ) ( pkg ) ) ; if ( ep.getVendorId ( ) . equals ( mVendor ) ) { if ( ep.getPath ( ) . equals ( mPath ) ) { return true ; } for ( java.lang.String oldPath : ep.getOldPaths ( ) ) { if ( oldPath.equals ( mPath ) ) { return true ; } } } } return false ; }

Target:
boolean accept ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.ExtraPackage ) { com.android.sdklib.internal.repository.packages.ExtraPackage ep = ( ( com.android.sdklib.internal.repository.packages.ExtraPackage ) ( pkg ) ) ; if ( ep.getVendorId ( ) . equals ( mVendor ) ) { if ( ep.getPath ( ) . equals ( mPath ) ) { return true ; } for ( java.lang.String oldPath : ep.getOldPaths ( ) ) { if ( oldPath.equals ( mPath ) ) { return true ; } } } } return false ; }
Source:
public void nvWriteItem ( int itemID , java.lang.String itemValue , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_WRITE_ITEM , response ) ; rr.mParcel.writeInt ( itemID ) ; rr.mParcel.writeString ( itemValue ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ' ' ) + itemID ) + ": " ) + itemValue ) ) ; send ( rr ) ; }

Target:
public void nvWriteItem ( int itemID , java.lang.String itemValue , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_WRITE_ITEM , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( itemID ) ; rr.mParcel.writeString ( itemValue ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ' ' ) + itemID ) + ": " ) + itemValue ) ) ; send ( rr ) ; }
Source:
public void disconnectResponse ( int token ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "disconnectResponse: token " + token ) ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_DISCONNECT_RESP ) ; sapMessage.setResultCode ( SapMessage.INVALID_VALUE ) ; removeOngoingReqAndSendMessage ( token , sapMessage ) ; }

Target:
public void disconnectResponse ( int token ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( "disconnectResponse: token " + token ) ) ; com.android.bluetooth.sap.SapService.notifyUpdateWakeLock ( mSapServiceHandler ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_DISCONNECT_RESP ) ; sapMessage.setResultCode ( SapMessage.INVALID_VALUE ) ; removeOngoingReqAndSendMessage ( token , sapMessage ) ; }
Source:
public void test_enumerateLThreadArray ( ) { int numThreads = initialThreadGroup.activeCount ( ) ; java.lang.Thread [ ] listOfThreads = new java.lang.Thread [ numThreads ] ; int countThread = initialThreadGroup.enumerate ( listOfThreads ) ; assertEquals ( numThreads , countThread ) ; assertTrue ( "Current thread must be in enumeration of threads" , inListOfThreads ( listOfThreads ) ) ; }

Target:
public void test_enumerateLThreadArray ( ) { int numThreads = initialThreadGroup.activeCount ( ) ; java.lang.Thread [ ] listOfThreads = new java.lang.Thread [ numThreads ] ; int countThread = initialThreadGroup.enumerate ( listOfThreads ) ; assertEquals ( numThreads , countThread ) ; assertTrue ( "Initial thread must be in enumeration of threads" , java.util.Arrays.asList ( listOfThreads ) . contains ( initialThread ) ) ; }
Source:
public android.net.VpnService.Builder addAddress ( java.net.InetAddress address , int prefixLength ) { check ( address , prefixLength ) ; if ( address.isAnyLocalAddress ( ) ) { throw new java.lang.IllegalArgumentException ( "Bad address" ) ; } mAddresses.append ( java.lang.String.format ( " %s/%d" , address.getHostAddress ( ) , prefixLength ) ) ; return this ; }

Target:
public android.net.VpnService.Builder addAddress ( java.net.InetAddress address , int prefixLength ) { check ( address , prefixLength ) ; if ( address.isAnyLocalAddress ( ) ) { throw new java.lang.IllegalArgumentException ( "Bad address" ) ; } mAddresses.append ( ( ( ( ' ' + ( address.getHostAddress ( ) ) ) + '/' ) + prefixLength ) ) ; return this ; }
Source:
private java.lang.CharSequence getAppLabel ( java.lang.String appPackage ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { android.content.pm.ApplicationInfo appInfo = pm.getApplicationInfo ( appPackage , 0 ) ; return appInfo.loadSafeLabel ( pm ) ; } catch ( android.content.pm.PackageManager e ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( "PackageManager Name Not Found for package " + appPackage ) ) ; return appPackage ; } }

Target:
private java.lang.CharSequence getAppLabel ( java.lang.String appPackage , @ android.annotation.UserIdInt int userId ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { android.content.pm.ApplicationInfo appInfo = pm.getApplicationInfoAsUser ( appPackage , 0 , userId ) ; return appInfo.loadSafeLabel ( pm ) ; } catch ( android.content.pm.PackageManager e ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( "PackageManager Name Not Found for package " + appPackage ) ) ; return appPackage ; } }
Source:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getNegativeCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 0 , 1 , java.text.NumberFormat.Field.SIGN ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 1 , 4 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 5 , 7 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }

Target:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getNegativeCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 1 , 4 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 4 , 5 , java.text.NumberFormat.Field.DECIMAL_SEPARATOR ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 5 , 7 , java.text.NumberFormat.Field.FRACTION ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 8 , 10 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }
Source:
public void testNotifyPackageDataDestroyComplete ( ) { java.util.List < java.lang.String > fooSecondaries = mFooUser0.getSecondaryDexPaths ( ) ; notifyDexLoad ( mFooUser0 , fooSecondaries , mUser0 ) ; mDexManager.notifyPackageDataDestroyed ( mFooUser0.getPackageName ( ) , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mFooUser0 ) ; org.junit.Assert.assertNull ( pui ) ; }

Target:
public void testNotifyPackageDataDestroyComplete ( ) { java.util.List < java.lang.String > fooSecondaries = mFooUser0.getSecondaryDexPaths ( ) ; notifyDexLoad ( mFooUser0 , fooSecondaries , mUser0 ) ; mDexManager.notifyPackageDataDestroyed ( mFooUser0.getPackageName ( ) , mUser0 ) ; assertNoUseInfo ( mFooUser0 ) ; }
Source:
public void testPublishBadServiceName ( ) { android.net.wifi.nan.PublishConfig publishConfig = new android.net.wifi.nan.PublishConfig.Builder ( ) . setServiceName ( "Including invalid characters - spaces" ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.nan.IWifiNanSessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.nan.IWifiNanSessionCallback.class ) ; mDut.publish ( clientId , publishConfig , mockCallback ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . publish ( clientId , publishConfig , mockCallback ) ; }

Target:
public void testPublishBadServiceName ( ) { android.net.wifi.nan.PublishConfig publishConfig = new android.net.wifi.nan.PublishConfig.Builder ( ) . setServiceName ( "Including invalid characters - spaces" ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.nan.IWifiNanDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.nan.IWifiNanDiscoverySessionCallback.class ) ; mDut.publish ( clientId , publishConfig , mockCallback ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . publish ( clientId , publishConfig , mockCallback ) ; }
Source:
private boolean newlineAfterElementClose ( org.w3c.dom.Element element , int depth ) { if ( hasBlankLineAbove ( ) ) { return false ; } return ( ( element.getParentNode ( ) . getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ) && ( ! ( keepElementAsSingleLine ( ( depth - 1 ) , ( ( org.w3c.dom.Element ) ( element.getParentNode ( ) ) ) ) ) ) ; }

Target:
private boolean newlineAfterElementClose ( org.w3c.dom.Element element , int depth ) { if ( hasBlankLineAbove ( ) ) { return false ; } if ( isMarkupElement ( element ) ) { return false ; } return ( ( element.getParentNode ( ) . getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ) && ( ! ( keepElementAsSingleLine ( ( depth - 1 ) , ( ( org.w3c.dom.Element ) ( element.getParentNode ( ) ) ) ) ) ) ; }
Source:
public static java.io.File getDevicePolicyFile ( com.android.tradefed.device.ITestDevice device ) throws java.lang.Exception { java.io.File file ; synchronized ( android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles ) { file = android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles.get ( device ) ; } if ( file != null ) { return file ; } file = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; file.deleteOnExit ( ) ; device.pullFile ( "/sys/fs/selinux/policy" , file ) ; synchronized ( android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles ) { android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles.put ( device , file ) ; } return file ; }

Target:
public static java.io.File getDevicePolicyFile ( com.android.tradefed.device.ITestDevice device ) throws java.lang.Exception { return android.security.cts.SELinuxHostTest.getDeviceFile ( device , android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles , "/sys/fs/selinux/policy" , "sepolicy" ) ; }
Source:
protected void invoke ( int slot , android.support.v8.renderscript.FieldPacker v ) { if ( v != null ) { mRS.nScriptInvokeV ( getID ( mRS ) , slot , v.getData ( ) ) ; } else { mRS.nScriptInvoke ( getID ( mRS ) , slot ) ; } }

Target:
protected void invoke ( int slot , android.support.v8.renderscript.FieldPacker v ) { if ( v != null ) { mRS.nScriptInvokeV ( getID ( mRS ) , slot , v.getData ( ) , mUseIncSupp ) ; } else { mRS.nScriptInvoke ( getID ( mRS ) , slot , mUseIncSupp ) ; } }
Source:
final void get ( double [ ] dst , int dstOffset , int doubleCount ) { int byteCount = checkGetBounds ( SizeOf.DOUBLE , dst.length , dstOffset , doubleCount ) ; this . block.peekDoubleArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( double [ ] dst , int dstOffset , int doubleCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.DOUBLE , dst.length , dstOffset , doubleCount ) ; this . block.peekDoubleArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }
Source:
public static boolean removeAll ( java.util.Iterator < ? > removeFrom , java.util.Collection < ? > elementsToRemove ) { com.google.common.base.Preconditions.checkNotNull ( elementsToRemove ) ; boolean modified = false ; while ( removeFrom.hasNext ( ) ) { if ( elementsToRemove.contains ( removeFrom.next ( ) ) ) { removeFrom.remove ( ) ; modified = true ; } } return modified ; }

Target:
public static boolean removeAll ( java.util.Iterator < ? > removeFrom , java.util.Collection < ? > elementsToRemove ) { return com.google.common.collect.Iterators.removeIf ( removeFrom , com.google.common.base.Predicates.in ( elementsToRemove ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( java.lang.System.out ) ; } } } java.lang.System.out.println ( "Goodbye!" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { java.lang.System.out.println ( e.getMessage ( ) ) ; } } } Main.attachWithClassLoader ( args ) ; java.lang.System.out.println ( "Goodbye!" ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public static java.lang.String getCurrentCountryIso ( android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle ) { java.lang.String countryIso = com.android.dialer.compat.telephony.TelephonyManagerCompat.getNetworkCountryIsoForPhoneAccountHandle ( context , phoneAccountHandle ) ; if ( android.text.TextUtils.isEmpty ( countryIso ) ) { countryIso = com.android.dialer.compat.CompatUtils.getLocale ( context ) . getCountry ( ) ; com.android.dialer.common.LogUtil.i ( "PhoneNumberHelper.getCurrentCountryIso" , ( "No CountryDetector; falling back to countryIso based on locale: " + countryIso ) ) ; } countryIso = countryIso.toUpperCase ( ) ; return countryIso ; }

Target:
public static java.lang.String getCurrentCountryIso ( android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle ) { android.os.Trace.beginSection ( "PhoneNumberHelper.getCurrentCountryIso" ) ; java.lang.String countryIso = com.android.dialer.compat.telephony.TelephonyManagerCompat.getNetworkCountryIsoForPhoneAccountHandle ( context , phoneAccountHandle ) ; if ( android.text.TextUtils.isEmpty ( countryIso ) ) { countryIso = com.android.dialer.compat.CompatUtils.getLocale ( context ) . getCountry ( ) ; com.android.dialer.common.LogUtil.i ( "PhoneNumberHelper.getCurrentCountryIso" , ( "No CountryDetector; falling back to countryIso based on locale: " + countryIso ) ) ; } countryIso = countryIso.toUpperCase ( ) ; android.os.Trace.endSection ( ) ; return countryIso ; }
Source:
public void flingScroll ( int vx , int vy ) { int maxX = java.lang.Math.max ( ( ( computeHorizontalScrollRange ( ) ) - ( getViewWidth ( ) ) ) , 0 ) ; int maxY = java.lang.Math.max ( ( ( computeVerticalScrollRange ( ) ) - ( getViewHeight ( ) ) ) , 0 ) ; mScroller.fling ( mScrollX , mScrollY , vx , vy , 0 , maxX , 0 , maxY ) ; invalidate ( ) ; }

Target:
public void flingScroll ( int vx , int vy ) { int maxX = java.lang.Math.max ( ( ( computeHorizontalScrollRange ( ) ) - ( getViewWidth ( ) ) ) , 0 ) ; int maxY = computeMaxScrollY ( ) ; mScroller.fling ( mScrollX , mScrollY , vx , vy , 0 , maxX , 0 , maxY ) ; invalidate ( ) ; }
Source:
public void requestUninstall_asyncUninstallFail ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; com.android.server.timezone.CheckToken token = createArbitraryToken ( ) ; byte [ ] tokenBytes = token.toByteArray ( ) ; com.android.server.timezone.RulesManagerServiceTest.TestCallback callback = new com.android.server.timezone.RulesManagerServiceTest.TestCallback ( ) ; org.junit.Assert.assertEquals ( RulesManager.SUCCESS , mRulesManagerService.requestUninstall ( tokenBytes , callback ) ) ; verifyNoInstallerCallsMade ( ) ; callback.assertNoResultReceived ( ) ; configureStageUninstallExpectation ( false ) ; mFakeExecutor.simulateAsyncExecutionOfLastCommand ( ) ; verifyStageUninstallCalled ( ) ; verifyPackageTrackerCalled ( token , false ) ; callback.assertResultReceived ( Callback.ERROR_UNKNOWN_FAILURE ) ; }

Target:
public void requestUninstall_asyncUninstallFail ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; com.android.server.timezone.CheckToken token = createArbitraryToken ( ) ; byte [ ] tokenBytes = token.toByteArray ( ) ; com.android.server.timezone.RulesManagerServiceTest.TestCallback callback = new com.android.server.timezone.RulesManagerServiceTest.TestCallback ( ) ; org.junit.Assert.assertEquals ( RulesManager.SUCCESS , mRulesManagerService.requestUninstall ( tokenBytes , callback ) ) ; verifyNoInstallerCallsMade ( ) ; callback.assertNoResultReceived ( ) ; configureStageUninstallExpectation ( TimeZoneDistroInstaller.UNINSTALL_FAIL ) ; mFakeExecutor.simulateAsyncExecutionOfLastCommand ( ) ; verifyStageUninstallCalled ( ) ; verifyPackageTrackerCalled ( token , false ) ; callback.assertResultReceived ( Callback.ERROR_UNKNOWN_FAILURE ) ; }
Source:
private static boolean isAttributeOperationPresent ( com.android.manifmerger.XmlElement xmlElement , java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation , com.android.manifmerger.ActionRecorder recorder , com.android.manifmerger.ActionRecorder.ActionType action ) { com.android.manifmerger.ActionRecorder.DecisionTreeRecord record = recorder.getAllRecords ( ) . get ( xmlElement.getId ( ) ) ; for ( com.android.manifmerger.ActionRecorder.AttributeRecord attributeRecord : record.getAttributeRecords ( attributeOperation.getKey ( ) ) ) { if ( ( attributeRecord.getActionType ( ) ) == action ) { return true ; } } return false ; }

Target:
private static boolean isAttributeOperationPresent ( com.android.manifmerger.XmlElement xmlElement , java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation , com.android.manifmerger.Actions actions , com.android.manifmerger.Actions.ActionType action ) { for ( com.android.manifmerger.Actions.AttributeRecord attributeRecord : actions.getAttributeRecords ( xmlElement.getId ( ) , attributeOperation.getKey ( ) ) ) { if ( ( attributeRecord.getActionType ( ) ) == action ) { return true ; } } return false ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( o instanceof android.app.ActivityThread.ProviderKey ) { final android.app.ActivityThread.ProviderKey other = ( ( android.app.ActivityThread.ProviderKey ) ( o ) ) ; return ( com.android.internal.util.Objects.equal ( authority , other.authority ) ) && ( ( userId ) == ( other.userId ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( o instanceof android.app.ActivityThread.ProviderKey ) { final android.app.ActivityThread.ProviderKey other = ( ( android.app.ActivityThread.ProviderKey ) ( o ) ) ; return ( java.util.Objects.equals ( authority , other.authority ) ) && ( ( userId ) == ( other.userId ) ) ; } return false ; }
Source:
private void updateProvisionedValues ( ) { if ( com.android.ims.ImsManager.getBooleanCarrierConfig ( mContext , CarrierConfigManager.KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL ) ) { new com.android.ims.ImsManager.AsyncUpdateProvisionedValues ( ) . execute ( ) ; } }

Target:
public int getWfcModeForSlot ( boolean roaming ) { int setting = 0 ; if ( ! roaming ) { setting = android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.WFC_IMS_MODE , getIntCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT ) ) ; if ( com.android.ims.ImsManager.DBG ) com.android.ims.ImsManager.log ( ( "getWfcModeForSlot - setting=" + setting ) ) ; } else { setting = android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.WFC_IMS_ROAMING_MODE , getIntCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT ) ) ; if ( com.android.ims.ImsManager.DBG ) com.android.ims.ImsManager.log ( ( "getWfcModeForSlot (roaming) - setting=" + setting ) ) ; } return setting ; }
Source:
public void setUp ( ) throws java.lang.Exception { mCacheQueue = new com.android.volley.mock.WaitableQueue ( ) ; mNetworkQueue = new com.android.volley.mock.WaitableQueue ( ) ; mCache = new com.android.volley.mock.MockCache ( ) ; mDelivery = new com.android.volley.mock.MockResponseDelivery ( ) ; mRequest = new com.android.volley.mock.MockRequest ( ) ; mDispatcher = new com.android.volley.CacheDispatcher ( mCacheQueue , mNetworkQueue , mCache , mDelivery ) ; mDispatcher.start ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mRequest = new com.android.volley.toolbox.StringRequest ( Request.Method.GET , "http://foo" , null , null ) ; mDispatcher = new com.android.volley.CacheDispatcher ( mCacheQueue , mNetworkQueue , mCache , mDelivery ) ; }
Source:
public void testNoPackageSubstitution ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( "com.foo.foo2.ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr ) ) ; org.mockito.Mockito.verify ( mAttr ) . getNamespaceURI ( ) ; org.mockito.Mockito.verify ( mAttr ) . getLocalName ( ) ; org.mockito.Mockito.verify ( mAttr ) . getValue ( ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAttr ) ; }

Target:
public void testNoPackageSubstitution ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( "com.foo.foo2.ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr , new com.android.manifmerger.AttributeModel ( "ActivityOne" , true , null , null ) ) ) ; org.mockito.Mockito.verify ( mAttr ) . getValue ( ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAttr ) ; }
Source:
public void test_valueUnbound ( ) throws java.io.IOException , java.net.UnknownHostException { javax.net.ssl.SSLSocket sock = ( ( javax.net.ssl.SSLSocket ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) . createSocket ( ) ) ) ; javax.net.ssl.SSLSession ss = sock.getSession ( ) ; tests.api.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener sbl = new tests.api.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener ( ) ; ss.putValue ( "test" , sbl ) ; ss.removeValue ( "test" ) ; assertTrue ( "valueUnbound was not called." , sbl.unboundDone ) ; }

Target:
public void test_valueUnbound ( ) throws java.io.IOException , java.net.UnknownHostException { javax.net.ssl.SSLSocket sock = ( ( javax.net.ssl.SSLSocket ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) . createSocket ( ) ) ) ; javax.net.ssl.SSLSession ss = sock.getSession ( ) ; org.apache.harmony.tests.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener sbl = new org.apache.harmony.tests.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener ( ) ; ss.putValue ( "test" , sbl ) ; ss.removeValue ( "test" ) ; assertTrue ( "valueUnbound was not called." , sbl.unboundDone ) ; }
Source:
public final int startActivity ( android.app.IApplicationThread caller , java.lang.String callingPackage , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , android.app.ProfilerInfo profilerInfo , android.os.Bundle options ) { return startActivityAsUser ( caller , callingPackage , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , profilerInfo , options , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
public final int startActivity ( android.app.IApplicationThread caller , java.lang.String callingPackage , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , android.app.ProfilerInfo profilerInfo , android.os.Bundle bOptions ) { return startActivityAsUser ( caller , callingPackage , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , profilerInfo , bOptions , android.os.UserHandle.getCallingUserId ( ) ) ; }
Source:
public static void encode ( com.android.tools.rpclib.rpc.Encoder e , com.android.tools.rpclib.rpc.Device o ) throws java.io.IOException { e.string ( o.Name ) ; e.string ( o.Model ) ; e.string ( o.OS ) ; e.uint64 ( o.MaxMemorySize ) ; e.bool ( o.RequiresShaderPatching ) ; }

Target:
public static void encode ( com.android.tools.rpclib.rpc.Encoder e , com.android.tools.rpclib.rpc.Device o ) throws java.io.IOException { e.string ( o.Name ) ; e.string ( o.Model ) ; e.string ( o.OS ) ; e.uint8 ( o.PointerSize ) ; e.uint8 ( o.PointerAlignment ) ; e.uint64 ( o.MaxMemorySize ) ; e.bool ( o.RequiresShaderPatching ) ; }
Source:
public void getRulesState_stagedRulesError ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; java.lang.String systemRulesVersion = "2016a" ; configureDeviceSystemRulesVersion ( systemRulesVersion ) ; configureDeviceCannotReadStagedDistroOperation ( ) ; libcore.tzdata.shared2.DistroVersion installedDistroVersion = new libcore.tzdata.shared2.DistroVersion ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , "2016b" , 4 ) ; configureInstalledDistroVersion ( installedDistroVersion ) ; android.app.timezone.DistroRulesVersion installedDistroRulesVersion = new android.app.timezone.DistroRulesVersion ( installedDistroVersion.rulesVersion , installedDistroVersion.revision ) ; android.app.timezone.RulesState expectedRuleState = new android.app.timezone.RulesState ( "2016a" , RulesManagerService.DISTRO_FORMAT_VERSION_SUPPORTED , false , android.app.timezone.RulesState.STAGED_OPERATION_UNKNOWN , null , android.app.timezone.RulesState.DISTRO_STATUS_INSTALLED , installedDistroRulesVersion ) ; org.junit.Assert.assertEquals ( expectedRuleState , mRulesManagerService.getRulesState ( ) ) ; }

Target:
public void getRulesState_stagedRulesError ( ) throws java.lang.Exception { configureCallerHasPermission ( ) ; java.lang.String systemRulesVersion = "2016a" ; configureDeviceSystemRulesVersion ( systemRulesVersion ) ; configureDeviceCannotReadStagedDistroOperation ( ) ; com.android.timezone.distro.DistroVersion installedDistroVersion = new com.android.timezone.distro.DistroVersion ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , "2016b" , 4 ) ; configureInstalledDistroVersion ( installedDistroVersion ) ; android.app.timezone.DistroRulesVersion installedDistroRulesVersion = new android.app.timezone.DistroRulesVersion ( installedDistroVersion.rulesVersion , installedDistroVersion.revision ) ; android.app.timezone.RulesState expectedRuleState = new android.app.timezone.RulesState ( "2016a" , RulesManagerService.DISTRO_FORMAT_VERSION_SUPPORTED , false , android.app.timezone.RulesState.STAGED_OPERATION_UNKNOWN , null , android.app.timezone.RulesState.DISTRO_STATUS_INSTALLED , installedDistroRulesVersion ) ; org.junit.Assert.assertEquals ( expectedRuleState , mRulesManagerService.getRulesState ( ) ) ; }
Source:
public void onNewFrame ( final java.awt.image.BufferedImage image ) { ( mCount ) ++ ; mImageOverlay.setImage ( image ) ; synchronized ( this ) { if ( ( mPendingDrawing ) == false ) { getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { drawImage ( ) ; } } ) ; mPendingDrawing = true ; } } }

Target:
public void onNewFrame ( com.android.layoutlib.api.LayoutScene scene ) { ( mCount ) ++ ; mImageOverlay.setImage ( scene.getImage ( ) ) ; synchronized ( this ) { if ( ( mPendingDrawing ) == false ) { getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { drawImage ( ) ; } } ) ; mPendingDrawing = true ; } } }
Source:
public void clearAppData ( java.lang.String uuid , java.lang.String pkgname , int userid , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "clear_app_data" , uuid , pkgname , userid , flags , ceDataInode ) ; }

Target:
public void migrateAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.migrateAppData ( uuid , packageName , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
protected static java.util.Map < java.lang.String , java.lang.String > convertHeaders ( org.apache.http.Header [ ] headers ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.TreeMap < java.lang.String , java.lang.String > ( java.lang.String.CASE_INSENSITIVE_ORDER ) ; for ( int i = 0 ; i < ( headers.length ) ; i ++ ) { result.put ( headers [ i ] . getName ( ) , headers [ i ] . getValue ( ) ) ; } return result ; }

Target:
protected static java.util.Map < java.lang.String , java.lang.String > convertHeaders ( com.android.volley.Header [ ] headers ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.TreeMap < > ( java.lang.String.CASE_INSENSITIVE_ORDER ) ; for ( int i = 0 ; i < ( headers.length ) ; i ++ ) { result.put ( headers [ i ] . getName ( ) , headers [ i ] . getValue ( ) ) ; } return result ; }
Source:
public void testSendMessageTooLong ( ) { int sessionId = 2394 ; int peerId = 2032 ; byte [ ] message = new byte [ ( com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ) + 1 ] ; int messageId = 2043 ; int clientId = doConnect ( ) ; mDut.sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; }

Target:
public void testSendMessageTooLong ( ) { int sessionId = 2394 ; int peerId = 2032 ; byte [ ] message = new byte [ ( com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ) + 1 ] ; int messageId = 2043 ; int clientId = doConnect ( ) ; mDut.sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; }
Source:
private boolean scanWithParams ( java.lang.String freqList , java.lang.String hiddenNetworkSSIDList ) { java.lang.StringBuilder scanCommand = new java.lang.StringBuilder ( ) ; scanCommand.append ( "SCAN TYPE=ONLY" ) ; if ( freqList != null ) { scanCommand.append ( ( " freq=" + freqList ) ) ; } if ( hiddenNetworkSSIDList != null ) { scanCommand.append ( ( " ssid " + hiddenNetworkSSIDList ) ) ; } return doBooleanCommand ( scanCommand.toString ( ) ) ; }

Target:
public boolean roamToNetwork ( android.net.wifi.WifiConfiguration configuration ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.roamToNetwork ( configuration ) ; } else { return mWifiSupplicantControl.roamToNetwork ( configuration ) ; } }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.dialer.common.LogUtil.enterBlock ( "MainActivity.onCreate" ) ; if ( com.android.dialer.configprovider.ConfigProviderComponent.get ( this ) . getConfigProvider ( ) . getBoolean ( "nui_peer_enabled" , false ) ) { activePeer = new com.android.dialer.main.impl.NewMainActivityPeer ( this ) ; } else { activePeer = new com.android.dialer.main.impl.OldMainActivityPeer ( this ) ; } activePeer.onActivityCreate ( savedInstanceState ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.dialer.common.LogUtil.enterBlock ( "MainActivity.onCreate" ) ; activePeer = getNewPeer ( ) ; activePeer.onActivityCreate ( savedInstanceState ) ; }
Source:
static java.lang.String getLineOfOffset ( java.lang.String contents , int offset ) { int end = contents.indexOf ( '\n' , offset ) ; return contents.substring ( offset , ( end != ( - 1 ) ? end : contents.length ( ) ) ) ; }

Target:
static java.lang.String getLineOfOffset ( java.lang.String contents , int offset ) { int end = contents.indexOf ( '\n' , offset ) ; if ( end == ( - 1 ) ) { end = contents.indexOf ( '\r' , offset ) ; } return contents.substring ( offset , ( end != ( - 1 ) ? end : contents.length ( ) ) ) ; }
Source:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = new com.android.sdklib.internal.avd.AvdManager ( mSdkManager , mSdkLog ) ; com.android.sdklib.internal.avd.AvdManager.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = new com.android.sdklib.internal.avd.AvdManager ( mSdkManager , mSdkLog ) ; com.android.sdklib.internal.avd.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public static void computeIlogb ( android.renderscript.cts.TestIlogb.ArgumentsFloatInt args ) { args.ulf = 4 ; args.ulfRelaxed = 12 ; args.out = ( ( int ) ( ( ( ( java.lang.Float.floatToIntBits ( args.in ) ) > > 23 ) & 255 ) - 127.0F ) ) ; }

Target:
private static void normalize ( float [ ] in , float [ ] out ) { float l = android.renderscript.cts.CoreMathVerifier.length ( in ) ; for ( int i = 0 ; i < ( in.length ) ; i ++ ) { out [ i ] = ( in [ i ] ) / l ; } }
Source:
private boolean needFullRebuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } long timestamp = new java.io.File ( options.getOutputDir ( ) , com.android.jack.backend.dex.DexFileWriter.DEX_FILENAME ) . lastModified ( ) ; for ( java.io.File lib : options.getClasspath ( ) ) { if ( isModifiedLibrary ( lib , timestamp ) ) { return true ; } } for ( java.io.File importedJackFiles : options.getJayceImport ( ) ) { if ( isModifiedLibrary ( importedJackFiles , timestamp ) ) { return true ; } } return false ; }

Target:
private boolean needFullRebuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; assert ( libraryDependencies ) != null ; return ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.dialer.common.LogUtil.enterBlock ( "MainActivity.onCreate" ) ; if ( com.android.dialer.configprovider.ConfigProviderComponent.get ( this ) . getConfigProvider ( ) . getBoolean ( "nui_peer_enabled" , false ) ) { activePeer = new com.android.dialer.main.impl.NewMainActivityPeer ( this ) ; } else { activePeer = new com.android.dialer.main.impl.OldMainActivityPeer ( this ) ; } activePeer.onActivityCreate ( savedInstanceState ) ; }

Target:
protected com.android.dialer.main.MainActivityPeer getNewPeer ( ) { if ( com.android.dialer.configprovider.ConfigProviderBindings.get ( this ) . getBoolean ( "nui_peer_enabled" , false ) ) { return new com.android.dialer.main.impl.NewMainActivityPeer ( this ) ; } else { return new com.android.dialer.main.impl.OldMainActivityPeer ( this ) ; } }
Source:
public boolean onCanceledViaNewOutgoingCallBroadcast ( final com.android.server.telecom.Call call ) { mPendingCallsToDisconnect.add ( call ) ; mHandler.postDelayed ( new java.lang.Runnable ( "CM.oCVNOCB" ) { @ java.lang.Override public void loggedRun ( ) { synchronized ( mLock ) { if ( mPendingCallsToDisconnect.remove ( call ) ) { com.android.server.telecom.Log.i ( this , "Delayed disconnection of call: %s" , call ) ; call.disconnect ( ) ; } } } } . prepare ( ) , com.android.server.telecom.Timeouts.getNewOutgoingCallCancelMillis ( mContext.getContentResolver ( ) ) ) ; return true ; }

Target:
public boolean onCanceledViaNewOutgoingCallBroadcast ( final com.android.server.telecom.Call call ) { mPendingCallsToDisconnect.add ( call ) ; mHandler.postDelayed ( new java.lang.Runnable ( "CM.oCVNOCB" ) { @ java.lang.Override public void loggedRun ( ) { synchronized ( mLock ) { if ( mPendingCallsToDisconnect.remove ( call ) ) { android.telecom.Log.i ( this , "Delayed disconnection of call: %s" , call ) ; call.disconnect ( ) ; } } } } . prepare ( ) , com.android.server.telecom.Timeouts.getNewOutgoingCallCancelMillis ( mContext.getContentResolver ( ) ) ) ; return true ; }
Source:
public boolean setPermissionGrantState ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , java.lang.String permission , int grantState ) { throwIfParentInstance ( "setPermissionGrantState" ) ; try { return mService.setPermissionGrantState ( admin , packageName , permission , grantState ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }

Target:
public void notifyPendingSystemUpdate ( long updateReceivedTime , boolean isSecurityPatch ) { throwIfParentInstance ( "notifyPendingSystemUpdate" ) ; if ( ( mService ) != null ) { try { mService.notifyPendingSystemUpdate ( android.app.admin.SystemUpdateInfo.of ( updateReceivedTime , isSecurityPatch ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }