auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected abstract com.android.internal.telephony.SMSDispatcher.SmsTracker getNewSubmitPduTracker ( 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 , java.util.concurrent.atomic.AtomicInteger unsentPartCount , java.util.concurrent.atomic.AtomicBoolean anyPartFailed , android.net.Uri messageUri , java.lang.String fullMessageText , int priority , boolean expectMore , int validityPeriod ) ;

Target:
protected abstract com.android.internal.telephony.SMSDispatcher.SmsTracker getNewSubmitPduTracker ( 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 , java.util.concurrent.atomic.AtomicInteger unsentPartCount , java.util.concurrent.atomic.AtomicBoolean anyPartFailed , android.net.Uri messageUri , java.lang.String fullMessageText ) ;
Source:
public void format ( double number , java.lang.StringBuffer toInsertInto , int pos , int recursionCount ) { if ( recursionCount >= ( com.ibm.icu.text.NFRuleSet.RECURSION_LIMIT ) ) { throw new java.lang.IllegalStateException ( ( "Recursion limit exceeded when applying ruleSet " + ( name ) ) ) ; } com.ibm.icu.text.NFRule applicableRule = findRule ( number ) ; applicableRule.doFormat ( number , toInsertInto , pos , ( ++ recursionCount ) ) ; }

Target:
public void format ( double number , java.lang.StringBuilder toInsertInto , int pos , int recursionCount ) { if ( recursionCount >= ( com.ibm.icu.text.NFRuleSet.RECURSION_LIMIT ) ) { throw new java.lang.IllegalStateException ( ( "Recursion limit exceeded when applying ruleSet " + ( name ) ) ) ; } com.ibm.icu.text.NFRule applicableRule = findRule ( number ) ; applicableRule.doFormat ( number , toInsertInto , pos , ( ++ recursionCount ) ) ; }
Source:
public com.android.server.wifi.WifiNative.RingBufferStatus [ ] getRingBufferStatus ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getRingBufferStatus ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getRingBufferStatusNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }

Target:
public com.android.server.wifi.WifiNative.RingBufferStatus [ ] getRingBufferStatus ( ) { return mWifiVendorHal.getRingBufferStatus ( ) ; }
Source:
private void writeReturn ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.RETURN_STATEMENT ) ; writer.writeOpen ( ) ; if ( stackIdx == 0 ) { writer.writeNull ( ) ; } else { writeStackAccess ( frame , stackIdx ) ; } sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeReturn ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) throws java.io.IOException { writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.RETURN_STATEMENT ) ; writer.writeOpen ( ) ; if ( stackIdx == 0 ) { writer.writeNull ( ) ; } else { writeStackAccess ( frame , stackIdx ) ; } writeDebugEnd ( currentClass , currentLine ) ; writer.writeClose ( ) ; }
Source:
public void test_getSupportedProtocols ( ) throws java.security.NoSuchAlgorithmException { javax.net.ssl.SSLEngine sse = getEngine ( ) ; try { java.lang.String [ ] res = sse.getSupportedProtocols ( ) ; assertNotNull ( res ) ; assertTrue ( ( ( res.length ) > 0 ) ) ; } catch ( java.lang.Exception ex ) { fail ( ( "Unexpected exception " + ex ) ) ; } }

Target:
public void test_getSupportedProtocols ( ) throws java.lang.Exception { javax.net.ssl.SSLEngine sse = getEngine ( ) ; java.lang.String [ ] res = sse.getSupportedProtocols ( ) ; assertNotNull ( res ) ; assertTrue ( ( ( res.length ) > 0 ) ) ; }
Source:
public static void writeUint24 ( int i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > 16 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > 8 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i ) ) ; }

Target:
public static void writeUint24 ( int i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > > 16 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > > 8 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i ) ) ; }
Source:
void transfer ( java.util.HashMapEntry [ ] newTable , boolean rehash ) { int newCapacity = newTable.length ; for ( java.util.LinkedHashMap.LinkedHashMapEntry < K , V > e = header.after ; e != ( header ) ; e = e.after ) { if ( rehash ) e.hash = ( ( e.key ) == null ) ? 0 : java.util.HashMap.hash ( e.key ) ; int index = indexFor ( e.hash , newCapacity ) ; e.next = newTable [ index ] ; newTable [ index ] = e ; } }

Target:
void transfer ( java.util.HashMapEntry [ ] newTable ) { int newCapacity = newTable.length ; for ( java.util.LinkedHashMap.LinkedHashMapEntry < K , V > e = header.after ; e != ( header ) ; e = e.after ) { int index = indexFor ( e.hash , newCapacity ) ; e.next = newTable [ index ] ; newTable [ index ] = e ; } }
Source:
public java.security.PublicKey getPublicKey ( ) throws java.security.NoSuchAlgorithmException { switch ( org.conscrypt.NativeCrypto.EVP_PKEY_type ( ctx ) ) { case NativeCrypto.EVP_PKEY_RSA : return new org.conscrypt.OpenSSLRSAPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_DH : return new org.conscrypt.OpenSSLDHPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_DSA : return new org.conscrypt.OpenSSLDSAPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_EC : return new org.conscrypt.OpenSSLECPublicKey ( this ) ; default : throw new java.security.NoSuchAlgorithmException ( "unknown PKEY type" ) ; } }

Target:
public java.security.PublicKey getPublicKey ( ) throws java.security.NoSuchAlgorithmException { switch ( org.conscrypt.NativeCrypto.EVP_PKEY_type ( ctx ) ) { case NativeCrypto.EVP_PKEY_RSA : return new org.conscrypt.OpenSSLRSAPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_DH : return new org.conscrypt.OpenSSLDHPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_EC : return new org.conscrypt.OpenSSLECPublicKey ( this ) ; default : throw new java.security.NoSuchAlgorithmException ( "unknown PKEY type" ) ; } }
Source:
private int grabProcessOutput ( final java.lang.Process process ) throws java.lang.InterruptedException { com.android.ide.common.internal.CommandLineRunner.OutputGrabber grabber = new com.android.ide.common.internal.CommandLineRunner.OutputGrabber ( ) ; int exitCode = com.android.sdklib.util.GrabProcessOutput.grabProcessOutput ( process , GrabProcessOutput.Wait.WAIT_FOR_READERS , grabber ) ; if ( ( exitCode == 0 ) && ( grabber.foundError ( ) ) ) { mLogger.error ( null , ( "Process output to error stream but exitCode is " + exitCode ) ) ; exitCode = - 42 ; } return exitCode ; }

Target:
private int grabProcessOutput ( final java.lang.Process process ) throws java.lang.InterruptedException { com.android.ide.common.internal.CommandLineRunner.OutputGrabber grabber = new com.android.ide.common.internal.CommandLineRunner.OutputGrabber ( ) ; return com.android.sdklib.util.GrabProcessOutput.grabProcessOutput ( process , GrabProcessOutput.Wait.WAIT_FOR_READERS , grabber ) ; }
Source:
private synchronized void acquireWakeLock ( ) { if ( ( ( mCompleted ) == true ) || ( ( mWakeLock ) != null ) ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( mContext.getSystemService ( Context.POWER_SERVICE ) ) ) ; mWakeLock = pm.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , android.hardware.cts.helpers.sensoroperations.AlarmOperation.WAKE_LOCK_TAG ) ; }

Target:
private synchronized void acquireWakeLock ( ) { if ( ( mCompleted ) || ( ( mWakeLock ) != null ) ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( mContext.getSystemService ( Context.POWER_SERVICE ) ) ) ; mWakeLock = pm.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , android.hardware.cts.helpers.sensoroperations.AlarmOperation.WAKE_LOCK_TAG ) ; }
Source:
private void setPosition ( java.nio.CharBuffer out ) { if ( out.hasArray ( ) ) { out.position ( ( ( ( out.position ( ) ) + ( data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] ) ) - ( out.arrayOffset ( ) ) ) ) ; } else { out.put ( output , 0 , data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] ) ; } output = null ; }

Target:
private void setPosition ( java.nio.CharBuffer out ) { if ( out.hasArray ( ) ) { out.position ( ( ( out.position ( ) ) + ( data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] ) ) ) ; } else { out.put ( output , 0 , data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] ) ; } output = null ; }
Source:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . getWpsNfcConfigurationToken ( ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock ) . getWpsNfcConfigurationToken ( ) ; }

Target:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . getWpsNfcConfigurationToken ( ) ; executeAndValidateConnectSequence ( 4 , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock ) . getWpsNfcConfigurationToken ( ) ; }
Source:
private void checkJvm ( ) { if ( ( com.intellij.openapi.util.text.StringUtil.containsIgnoreCase ( java.lang.System.getProperty ( "java.vm.name" , "" ) , "OpenJDK" ) ) && ( ! ( com.intellij.ide.SystemInfo.isJavaVersionAtLeast ( "1.7" ) ) ) ) { notifyUnsupportedJvm ( "unsupported.jvm.openjdk.message" ) ; } else if ( com.intellij.openapi.util.text.StringUtil.endsWithIgnoreCase ( java.lang.System.getProperty ( "java.version" , "" ) , "-ea" ) ) { notifyUnsupportedJvm ( "unsupported.jvm.ea.message" ) ; } }

Target:
private void checkJvm ( ) { if ( com.intellij.openapi.util.text.StringUtil.containsIgnoreCase ( java.lang.System.getProperty ( "java.vm.name" , "" ) , "OpenJDK" ) ) { notifyUnsupportedJvm ( "unsupported.jvm.openjdk.message" ) ; } else if ( com.intellij.openapi.util.text.StringUtil.endsWithIgnoreCase ( java.lang.System.getProperty ( "java.version" , "" ) , "-ea" ) ) { notifyUnsupportedJvm ( "unsupported.jvm.ea.message" ) ; } }
Source:
public com.android.ide.common.resources.ResourceFile getMatchingFile ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.resources.ResourceFolderType type , @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.FolderConfiguration config ) { java.util.List < com.android.resources.ResourceType > types = com.android.resources.FolderTypeRelationship.getRelatedResourceTypes ( type ) ; for ( com.android.resources.ResourceType t : types ) { if ( t == ( com.android.resources.ResourceType.ID ) ) { continue ; } com.android.ide.common.resources.ResourceFile match = getMatchingFile ( name , type , config ) ; if ( match != null ) { return match ; } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFile getMatchingFile ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.resources.ResourceFolderType type , @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.FolderConfiguration config ) { java.util.List < com.android.resources.ResourceType > types = com.android.resources.FolderTypeRelationship.getRelatedResourceTypes ( type ) ; for ( com.android.resources.ResourceType t : types ) { if ( t == ( com.android.resources.ResourceType.ID ) ) { continue ; } com.android.ide.common.resources.ResourceFile match = getMatchingFile ( name , t , config ) ; if ( match != null ) { return match ; } } return null ; }
Source:
public final java.nio.ByteBuffer putDouble ( double x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putDouble ( ix ( nextPutIndex ( SizeOf.DOUBLE ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putDouble ( double x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putDouble ( ix ( nextPutIndex ( SizeOf.DOUBLE ) ) , x ) ; return this ; }
Source:
public android.graphics.Bitmap takeScreenshot ( android.graphics.Point testOffset ) { getInstrumentation ( ) . waitForIdleSync ( ) ; android.graphics.Bitmap source = getInstrumentation ( ) . getUiAutomation ( ) . takeScreenshot ( ) ; return android.graphics.Bitmap.createBitmap ( source , testOffset.x , testOffset.y , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_WIDTH , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_HEIGHT ) ; }

Target:
public android.graphics.Bitmap takeScreenshot ( android.graphics.Point testOffset ) { android.graphics.Bitmap source = getInstrumentation ( ) . getUiAutomation ( ) . takeScreenshot ( ) ; return android.graphics.Bitmap.createBitmap ( source , testOffset.x , testOffset.y , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_WIDTH , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_HEIGHT ) ; }
Source:
public void getSignalStrength ( android.os.Message result ) { if ( ( mSignalStrength ) == null ) { mSignalStrength = new android.telephony.SignalStrength ( 20 , 0 , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , true ) ; } resultSuccess ( result , mSignalStrength ) ; }

Target:
public void getSignalStrength ( android.os.Message result ) { if ( ( mSignalStrength ) == null ) { mSignalStrength = new android.telephony.SignalStrength ( 20 , 0 , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID ) ; } resultSuccess ( result , mSignalStrength ) ; }
Source:
public com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }

Target:
private com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; if ( ( ( ( enclosingType.isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.ast.NestedAssignRemover.Visitor visitor = new com.android.jack.transformations.ast.NestedAssignRemover.Visitor ( method ) ; visitor.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.ast.NestedAssignRemover.Visitor visitor = new com.android.jack.transformations.ast.NestedAssignRemover.Visitor ( method ) ; visitor.accept ( method ) ; }
Source:
private static java.util.Set < java.lang.String > getFilters ( @ com.android.annotations.NonNull java.util.List < com.android.ide.common.res2.ResourceSet > resourceSets , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData.DiscoverableFilterType filterType , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.Splits splits ) { java.util.Set < java.lang.String > filtersList = new java.util.HashSet < java.lang.String > ( ) ; if ( filterType.isAuto ( splits ) ) { filtersList.addAll ( com.android.build.gradle.internal.variant.BaseVariantData.getAllFilters ( resourceSets , filterType.folderPrefix ) ) ; } else { filtersList.addAll ( com.android.build.gradle.internal.variant.BaseVariantData.removeAllNullEntries ( filterType.getConfiguredFilters ( splits ) ) ) ; } return filtersList ; }

Target:
private static java.util.Set < java.lang.String > getFilters ( @ com.android.annotations.NonNull java.util.List < com.android.ide.common.res2.ResourceSet > resourceSets , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData.DiscoverableFilterType filterType , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.Splits splits ) { java.util.Set < java.lang.String > filtersList = new java.util.HashSet < java.lang.String > ( ) ; if ( filterType.isAuto ( splits ) ) { filtersList.addAll ( com.android.build.gradle.internal.variant.BaseVariantData.getAllFilters ( resourceSets , filterType.folderPrefix ) ) ; } else { filtersList.addAll ( filterType.getConfiguredFilters ( splits ) ) ; } return filtersList ; }
Source:
public void xorBit ( int i ) throws java.lang.RuntimeException { if ( ( i < 0 ) || ( i > ( ( len ) - 1 ) ) ) { throw new java.lang.RuntimeException ( ) ; } if ( i > ( ( len ) - 1 ) ) { return ; } value [ ( i > > > 5 ) ] ^= org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ; }

Target:
public void xorBit ( int i ) throws java.lang.RuntimeException { if ( ( i < 0 ) || ( i > ( ( len ) - 1 ) ) ) { throw new java.lang.RuntimeException ( ) ; } value [ ( i > > > 5 ) ] ^= org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ; }
Source:
static int native_getTextWidths ( int native_object , java.lang.String text , int start , int end , int bidiFlags , float [ ] widths ) { return android.graphics.Paint_Delegate.native_getTextWidths ( native_object , text.toCharArray ( ) , start , ( end - start ) , bidiFlags , widths ) ; }

Target:
static long native_getTextWidths ( long native_object , java.lang.String text , int start , int end , int bidiFlags , float [ ] widths ) { return android.graphics.Paint_Delegate.native_getTextWidths ( native_object , text.toCharArray ( ) , start , ( end - start ) , bidiFlags , widths ) ; }
Source:
public boolean p2pExtListen ( boolean enable , int period , int interval ) { if ( enable && ( interval < period ) ) { return false ; } if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.configureExtListen ( enable , period , interval ) ; } else { return doBooleanCommand ( ( "P2P_EXT_LISTEN" + ( enable ? ( ( " " + period ) + " " ) + interval : "" ) ) ) ; } }

Target:
public boolean p2pExtListen ( boolean enable , int period , int interval ) { return mSupplicantP2pIfaceHal.configureExtListen ( enable , period , interval ) ; }
Source:
public java.util.Locale.Builder setLanguageTag ( java.lang.String languageTag ) { if ( ( languageTag == null ) || ( languageTag.isEmpty ( ) ) ) { clear ( ) ; return this ; } final java.util.Locale fromIcu = libcore.icu.ICU.forLanguageTag ( languageTag , true ) ; if ( fromIcu == null ) { throw new java.util.IllformedLocaleException ( ( "Invalid languageTag: " + languageTag ) ) ; } setLocale ( fromIcu ) ; return this ; }

Target:
public java.util.Locale.Builder setLanguageTag ( java.lang.String languageTag ) { if ( ( languageTag == null ) || ( languageTag.isEmpty ( ) ) ) { clear ( ) ; return this ; } final java.util.Locale fromIcu = java.util.Locale.forLanguageTag ( languageTag , true ) ; if ( fromIcu == null ) { throw new java.util.IllformedLocaleException ( ( "Invalid languageTag: " + languageTag ) ) ; } setLocale ( fromIcu ) ; return this ; }
Source:
public boolean processFileBytes ( java.lang.String name , long lastModified , byte [ ] bytes ) { if ( ( com.android.dx.command.dexer.Main.args.numThreads ) > 1 ) { com.android.dx.command.dexer.Main.threadPool.execute ( new com.android.dx.command.dexer.Main.ParallelProcessor ( name , lastModified , bytes ) ) ; return false ; } else { return com.android.dx.command.dexer.Main.processFileBytes ( name , lastModified , bytes ) ; } }

Target:
public boolean processFileBytes ( java.lang.String name , long lastModified , byte [ ] bytes ) { return com.android.dx.command.dexer.Main.processFileBytes ( name , lastModified , bytes ) ; }
Source:
private com.android.ide.common.blame.SourceFragmentPositionRange parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourceFragmentPositionRange ( lineNumber , ( - 1 ) , ( - 1 ) ) ; }

Target:
private static com.android.ide.common.blame.SourceFragmentPositionRange parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourceFragmentPositionRange ( lineNumber , ( - 1 ) , ( - 1 ) ) ; }
Source:
public void testNativeParcelUnparcel ( ) { android.net.UidRange original = new android.net.UidRange ( 1234 , java.lang.Integer.MAX_VALUE ) ; byte [ ] inParcel = android.net.UidRangeTest.marshall ( original ) ; byte [ ] outParcel = android.net.UidRangeTest.readAndWriteNative ( inParcel ) ; android.net.UidRange roundTrip = android.net.UidRangeTest.unmarshall ( outParcel ) ; assertEquals ( original , roundTrip ) ; org.junit.Assert.assertArrayEquals ( inParcel , outParcel ) ; }

Target:
public void testNativeParcelUnparcel ( ) { android.net.UidRange original = new android.net.UidRange ( 1234 , java.lang.Integer.MAX_VALUE ) ; byte [ ] inParcel = android.net.UidRangeTest.marshall ( original ) ; byte [ ] outParcel = android.net.UidRangeTest.readAndWriteNative ( inParcel ) ; android.net.UidRange roundTrip = android.net.UidRangeTest.unmarshall ( outParcel ) ; org.junit.Assert.assertEquals ( original , roundTrip ) ; org.junit.Assert.assertArrayEquals ( inParcel , outParcel ) ; }
Source:
public com.android.jack.server.VersionFinder parseVersionFinder ( @ javax.annotation.Nonnull org.simpleframework.http.ContentType versionType , @ javax.annotation.Nonnull java.lang.String versionString ) throws com.android.jack.server.TypeNotSupportedException , com.android.sched.util.codec.ParsingException { if ( ( versionType.getType ( ) . equals ( ExactCodeVersionFinder.SELECT_EXACT_VERSION_CONTENT_TYPE ) ) && ( "1" . equals ( versionType.getParameter ( "version" ) ) ) ) { return com.android.jack.server.type.ExactCodeVersionFinder.parse ( versionString ) ; } else { throw new com.android.jack.server.TypeNotSupportedException ( ( ( "Unsupported version selection '" + versionString ) + "'" ) ) ; } }

Target:
public com.android.jack.server.VersionFinder parseVersionFinder ( @ javax.annotation.Nonnull org.simpleframework.http.ContentType versionType , @ javax.annotation.Nonnull java.lang.String versionString ) throws com.android.jack.server.TypeNotSupportedException , com.android.sched.util.codec.ParsingException { if ( ( versionType.getType ( ) . equals ( ExactCodeVersionFinder.SELECT_EXACT_VERSION_CONTENT_TYPE ) ) && ( "1" . equals ( versionType.getParameter ( "version" ) ) ) ) { return com.android.jack.server.type.ExactCodeVersionFinder.parse ( versionString ) ; } else { throw new com.android.jack.server.TypeNotSupportedException ( versionString ) ; } }
Source:
public void log ( java.lang.Throwable exception , java.lang.String format , java.lang.Object ... args ) { if ( exception != null ) { exception.printStackTrace ( ) ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; if ( format != null ) { sb.append ( java.lang.String.format ( format , args ) ) ; } if ( exception != null ) { sb.append ( exception.toString ( ) ) ; } java.lang.System.err.println ( sb ) ; }

Target:
public void log ( java.lang.Throwable exception , java.lang.String format , java.lang.Object ... args ) { if ( exception != null ) { exception.printStackTrace ( ) ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; if ( format != null ) { sb.append ( java.lang.String.format ( format , args ) ) ; } if ( exception != null ) { sb.append ( exception.toString ( ) ) ; } java.lang.System.err.println ( sb ) ; if ( exception != null ) { fail ( exception.toString ( ) ) ; } }
Source:
public java.lang.String getFolderName ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folder , com.android.sdklib.IAndroidTarget target ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( target ) ; if ( ( segment != null ) && ( ( segment.length ( ) ) > 0 ) ) { result.append ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }

Target:
public java.lang.String getFolderName ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folder ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( ) ; if ( ( segment != null ) && ( ( segment.length ( ) ) > 0 ) ) { result.append ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }
Source:
protected void finalize ( ) throws java.io.IOException { if ( ( ( fd ) != null ) && ( ( fd ) != ( java.io.FileDescriptor.in ) ) ) { java.io.FileInputStream.runningFinalize.set ( java.lang.Boolean.TRUE ) ; try { close ( ) ; } finally { java.io.FileInputStream.runningFinalize.set ( java.lang.Boolean.FALSE ) ; } } }

Target:
protected void finalize ( ) throws java.io.IOException { if ( ( ( fd ) != null ) && ( ( fd ) != ( java.io.FileDescriptor.in ) ) ) { close ( ) ; } }
Source:
static void native_offset ( int nPath , float dx , float dy , int dst_path ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } android.graphics.Path_Delegate dstDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( dst_path ) ; pathDelegate.offset ( dx , dy , dstDelegate ) ; }

Target:
static void native_offset ( long nPath , float dx , float dy , long dst_path ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } android.graphics.Path_Delegate dstDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( dst_path ) ; pathDelegate.offset ( dx , dy , dstDelegate ) ; }
Source:
protected static org.conscrypt.SSLParametersImpl getDefault ( ) throws java.security.KeyManagementException { org.conscrypt.SSLParametersImpl result = org.conscrypt.SSLParametersImpl.defaultParameters ; if ( result == null ) { org.conscrypt.SSLParametersImpl.defaultParameters = result = new org.conscrypt.SSLParametersImpl ( null , null , null , new org.conscrypt.ClientSessionContext ( ) , new org.conscrypt.ServerSessionContext ( ) ) ; } return ( ( org.conscrypt.SSLParametersImpl ) ( result.clone ( ) ) ) ; }

Target:
protected static org.conscrypt.SSLParametersImpl getDefault ( ) throws java.security.KeyManagementException { org.conscrypt.SSLParametersImpl result = org.conscrypt.SSLParametersImpl.defaultParameters ; if ( result == null ) { org.conscrypt.SSLParametersImpl.defaultParameters = result = new org.conscrypt.SSLParametersImpl ( null , null , null , new org.conscrypt.ClientSessionContext ( ) , new org.conscrypt.ServerSessionContext ( ) , null ) ; } return ( ( org.conscrypt.SSLParametersImpl ) ( result.clone ( ) ) ) ; }
Source:
private void addDefaultSourceSet ( final java.lang.String sourceSetName , final java.lang.Class < ? extends org.gradle.language.base.LanguageSourceSet > type ) { all ( new org.gradle.api.Action < org.gradle.language.base.FunctionalSourceSet > ( ) { @ java.lang.Override public void execute ( org.gradle.language.base.FunctionalSourceSet functionalSourceSet ) { org.gradle.language.base.LanguageSourceSet sourceSet = functionalSourceSet.maybeCreate ( sourceSetName , type ) ; } } ) ; }

Target:
public void addDefaultSourceSet ( final java.lang.String sourceSetName , final java.lang.Class < ? extends org.gradle.language.base.LanguageSourceSet > type ) { all ( new org.gradle.api.Action < org.gradle.language.base.FunctionalSourceSet > ( ) { @ java.lang.Override public void execute ( org.gradle.language.base.FunctionalSourceSet functionalSourceSet ) { functionalSourceSet.maybeCreate ( sourceSetName , type ) ; } } ) ; }
Source:
public void testUrlContainsQueryButNoPath ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "http" , server.getHostName ( ) , server.getPort ( ) , "?query" ) ; assertEquals ( "A" , readAscii ( url.openConnection ( ) . getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; com.google.mockwebserver.RecordedRequest request = server.takeRequest ( ) ; assertEquals ( "GET /?query HTTP/1.1" , request.getRequestLine ( ) ) ; }

Target:
public void testUrlContainsQueryButNoPath ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "http" , server.getHostName ( ) , server.getPort ( ) , "?query" ) ; org.junit.Assert.assertEquals ( "A" , readAscii ( url.openConnection ( ) . getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; com.google.mockwebserver.RecordedRequest request = server.takeRequest ( ) ; org.junit.Assert.assertEquals ( "GET /?query HTTP/1.1" , request.getRequestLine ( ) ) ; }
Source:
public void testNewInstanceString_CharArrayIntIntConstructor ( ) { runTestNewInstanceString ( "([CII)V" , "m" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charArrayValue = getStaticFieldValue ( debuggeeClassId , "CHAR_ARRAY" ) ; constructorArguments.add ( charArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; } } ) ; }

Target:
public void testNewInstanceString_CharArrayIntIntConstructor ( ) { runTestNewInstanceString ( "([CII)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charArrayValue = getStaticFieldValue ( debuggeeClassId , "CHAR_ARRAY" ) ; constructorArguments.add ( charArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; } } ) ; }
Source:
public static android.renderscript.FileA3D createFromFile ( android.renderscript.RenderScript rs , java.lang.String path ) { int fileId = rs.nFileA3DCreateFromFile ( path ) ; if ( fileId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create a3d file from " + path ) ) ; } android.renderscript.FileA3D fa3d = new android.renderscript.FileA3D ( fileId , rs , null ) ; fa3d.initEntries ( ) ; return fa3d ; }

Target:
public static android.renderscript.FileA3D createFromFile ( android.renderscript.RenderScript rs , java.lang.String path ) { long fileId = rs.nFileA3DCreateFromFile ( path ) ; if ( fileId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create a3d file from " + path ) ) ; } android.renderscript.FileA3D fa3d = new android.renderscript.FileA3D ( fileId , rs , null ) ; fa3d.initEntries ( ) ; return fa3d ; }
Source:
private java.io.InputStream fetchXmlUrl ( java.lang.String urlString , com.android.sdklib.internal.repository.DownloadCache cache , com.android.sdklib.internal.repository.ITaskMonitor monitor , java.lang.Exception [ ] outException ) { try { java.io.InputStream xml = cache.openCachedUrl ( urlString , monitor ) ; if ( xml != null ) { xml.mark ( 500000 ) ; xml = new com.android.sdklib.io.NonClosingInputStream ( xml ) . setCloseBehavior ( CloseBehavior.RESET ) ; } return xml ; } catch ( java.lang.Exception e ) { if ( outException != null ) { outException [ 0 ] = e ; } } return null ; }

Target:
private java.io.InputStream fetchXmlUrl ( java.lang.String urlString , com.android.sdklib.internal.repository.DownloadCache cache , com.android.sdklib.internal.repository.ITaskMonitor monitor , java.lang.Exception [ ] outException ) { try { java.io.InputStream xml = cache.openCachedUrl ( urlString , monitor ) ; if ( xml != null ) { xml.mark ( 500000 ) ; xml = new com.android.sdklib.io.NonClosingInputStream ( xml ) ; ( ( com.android.sdklib.io.NonClosingInputStream ) ( xml ) ) . setCloseBehavior ( CloseBehavior.RESET ) ; } return xml ; } catch ( java.lang.Exception e ) { if ( outException != null ) { outException [ 0 ] = e ; } } return null ; }
Source:
public void testNewInstance ( ) throws java.lang.Exception { java.security.Provider p = new org.apache.harmony.security.tests.java.security.ProviderServiceTest.MyProvider ( ) ; java.security.Provider.Service s = new java.security.Provider.Service ( p , "SecureRandom" , "algorithm" , "org.apache.harmony.security.tests.support.RandomImpl" , null , null ) ; java.lang.Object o = s.newInstance ( null ) ; assertTrue ( "incorrect instance" , ( o instanceof org.apache.harmony.security.tests.support.RandomImpl ) ) ; try { o = s.newInstance ( new java.lang.Object ( ) ) ; fail ( "No expected NoSuchAlgorithmException" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { } }

Target:
public void testNewInstance ( ) throws java.lang.Exception { java.security.Provider p = new org.apache.harmony.security.tests.java.security.ProviderServiceTest.MyProvider ( ) ; java.security.Provider.Service s = new java.security.Provider.Service ( p , "SecureRandom" , "algorithm" , "org.apache.harmony.security.tests.support.RandomImpl" , null , null ) ; java.lang.Object o = s.newInstance ( null ) ; assertTrue ( "incorrect instance" , ( o instanceof org.apache.harmony.security.tests.support.RandomImpl ) ) ; }
Source:
static boolean native_clipRect ( int nCanvas , float left , float top , float right , float bottom , int regionOp ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nCanvas ) ; if ( canvasDelegate == null ) { return false ; } return canvasDelegate.clipRect ( left , top , right , bottom , regionOp ) ; }

Target:
static boolean native_clipRect ( long nCanvas , float left , float top , float right , float bottom , int regionOp ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nCanvas ) ; if ( canvasDelegate == null ) { return false ; } return canvasDelegate.clipRect ( left , top , right , bottom , regionOp ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { com.android.monkeyrunner.MonkeyRunnerOptions options = com.android.monkeyrunner.MonkeyRunnerOptions.processOptions ( args ) ; com.android.monkeyrunner.MonkeyRunnerStarter.replaceAllLogFormatters ( MonkeyFormatter.DEFAULT_INSTANCE , options.getLogLevel ( ) ) ; if ( options == null ) { return ; } com.android.monkeyrunner.MonkeyRunnerStarter runner = new com.android.monkeyrunner.MonkeyRunnerStarter ( options ) ; int error = runner.run ( ) ; java.lang.System.exit ( error ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { com.android.monkeyrunner.MonkeyRunnerOptions options = com.android.monkeyrunner.MonkeyRunnerOptions.processOptions ( args ) ; if ( options == null ) { return ; } com.android.monkeyrunner.MonkeyRunnerStarter.replaceAllLogFormatters ( MonkeyFormatter.DEFAULT_INSTANCE , options.getLogLevel ( ) ) ; com.android.monkeyrunner.MonkeyRunnerStarter runner = new com.android.monkeyrunner.MonkeyRunnerStarter ( options ) ; int error = runner.run ( ) ; java.lang.System.exit ( error ) ; }
Source:
public void testEnableSafeBrowsing ( ) throws java.lang.Throwable { if ( ! ( com.android.compatibility.common.util.NullWebViewUtils.isWebViewAvailable ( ) ) ) { return ; } assertFalse ( mSettings.getSafeBrowsingEnabled ( ) ) ; mSettings.setSafeBrowsingEnabled ( true ) ; assertTrue ( mSettings.getSafeBrowsingEnabled ( ) ) ; mSettings.setSafeBrowsingEnabled ( false ) ; assertFalse ( mSettings.getSafeBrowsingEnabled ( ) ) ; }

Target:
public void testEnableSafeBrowsing ( ) throws java.lang.Throwable { if ( ! ( com.android.compatibility.common.util.NullWebViewUtils.isWebViewAvailable ( ) ) ) { return ; } assertFalse ( mSettings.getSafeBrowsingEnabled ( ) ) ; mSettings.setSafeBrowsingEnabled ( false ) ; assertFalse ( mSettings.getSafeBrowsingEnabled ( ) ) ; }
Source:
public void sendText ( java.lang.String callingPackage , java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean persistMessageForNonDefaultSmsApp ) { mPhone.getContext ( ) . enforceCallingPermission ( Manifest.permission.SEND_SMS , "Sending SMS message" ) ; sendTextInternal ( callingPackage , destAddr , scAddr , text , sentIntent , deliveryIntent , persistMessageForNonDefaultSmsApp , com.android.internal.telephony.IccSmsInterfaceManager.SMS_MESSAGE_PRIORITY_NOT_SPECIFIED , false , com.android.internal.telephony.IccSmsInterfaceManager.SMS_MESSAGE_PERIOD_NOT_SPECIFIED ) ; }

Target:
public void sendText ( java.lang.String callingPackage , java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean persistMessageForNonDefaultSmsApp ) { mPhone.getContext ( ) . enforceCallingPermission ( Manifest.permission.SEND_SMS , "Sending SMS message" ) ; sendTextInternal ( callingPackage , destAddr , scAddr , text , sentIntent , deliveryIntent , persistMessageForNonDefaultSmsApp ) ; }
Source:
public static java.lang.String hex ( char ch ) { java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; java.lang.String foo = java.lang.Integer.toString ( ch , 16 ) . toUpperCase ( ) ; for ( int i = foo.length ( ) ; i < 4 ; ++ i ) { result.append ( '0' ) ; } return result + foo ; }

Target:
protected static java.lang.String hex ( char ch ) { java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; java.lang.String foo = java.lang.Integer.toString ( ch , 16 ) . toUpperCase ( ) ; for ( int i = foo.length ( ) ; i < 4 ; ++ i ) { result.append ( '0' ) ; } return result + foo ; }
Source:
public void connectionError ( @ com.android.annotations.NonNull java.lang.Exception e ) { synchronized ( com.android.ddmlib.AndroidDebugBridge.getLock ( ) ) { synchronized ( mDevices ) { for ( int n = ( mDevices.size ( ) ) - 1 ; n >= 0 ; n -- ) { com.android.ddmlib.Device device = mDevices.get ( 0 ) ; removeDevice ( device ) ; mServer.deviceDisconnected ( device ) ; } } } }

Target:
public void connectionError ( @ com.android.annotations.NonNull java.lang.Exception e ) { for ( com.android.ddmlib.Device device : mDevices ) { removeDevice ( device ) ; mServer.deviceDisconnected ( device ) ; } }
Source:
private synchronized int getBrowseId ( java.lang.String packageName ) { boolean response = false ; int browseInfoID = 0 ; for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { response = true ; break ; } browseInfoID ++ ; } if ( ! response ) { browseInfoID = - 1 ; } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseId for packageName: " + packageName ) + " , browseInfoID: " ) + browseInfoID ) ) ; return browseInfoID ; }

Target:
private int getBrowseId ( java.lang.String packageName ) { boolean response = false ; int browseInfoID = 0 ; synchronized ( mBrowsePlayerInfoList ) { for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { response = true ; break ; } browseInfoID ++ ; } } if ( ! response ) { browseInfoID = - 1 ; } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseId for packageName: " + packageName ) + " , browseInfoID: " ) + browseInfoID ) ) ; return browseInfoID ; }
Source:
private void updateLocalMediaPath ( com.android.tradefed.device.ITestDevice device , java.io.File mediaFolder ) throws com.android.tradefed.targetprep.TargetSetupError { java.lang.String [ ] subDirs = mediaFolder.list ( ) ; if ( ( subDirs.length ) != 1 ) { throw new com.android.tradefed.targetprep.TargetSetupError ( java.lang.String.format ( "Unexpected contents in directory %s" , mediaFolder.getAbsolutePath ( ) ) ) ; } mLocalMediaPath = new java.io.File ( mediaFolder , subDirs [ 0 ] ) . getAbsolutePath ( ) ; }

Target:
private void updateLocalMediaPath ( java.io.File mediaFolder ) throws com.android.tradefed.targetprep.TargetSetupError { java.lang.String [ ] subDirs = mediaFolder.list ( ) ; if ( ( subDirs.length ) != 1 ) { throw new com.android.tradefed.targetprep.TargetSetupError ( java.lang.String.format ( "Unexpected contents in directory %s" , mediaFolder.getAbsolutePath ( ) ) ) ; } mLocalMediaPath = new java.io.File ( mediaFolder , subDirs [ 0 ] ) . getAbsolutePath ( ) ; }
Source:
private void pushInitializerMethodInfo ( org.eclipse.jdt.internal.compiler.ast.FieldDeclaration x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { com.android.jack.ir.ast.JMethod initMeth ; if ( x.isStatic ( ) ) { initMeth = curClass.type.getMethod ( NamingTools.STATIC_INIT_NAME , JPrimitiveTypeEnum.VOID.getType ( ) ) ; } else { initMeth = curClass.type.getMethod ( com.android.jack.ir.impl.JackIrBuilder.INIT_METHOD_NAME , JPrimitiveTypeEnum.VOID.getType ( ) ) ; } pushMethodInfo ( new com.android.jack.ir.impl.JackIrBuilder.MethodInfo ( initMeth , ( ( com.android.jack.ir.ast.JMethodBody ) ( initMeth.getBody ( ) ) ) , scope ) ) ; }

Target:
private void pushInitializerMethodInfo ( org.eclipse.jdt.internal.compiler.ast.FieldDeclaration x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { com.android.jack.ir.ast.JMethod initMeth ; if ( x.isStatic ( ) ) { initMeth = curClass.type.getMethod ( NamingTools.STATIC_INIT_NAME , JPrimitiveTypeEnum.VOID.getType ( ) ) ; } else { initMeth = curClass.type.getMethod ( com.android.jack.ir.impl.JackIrBuilder.INIT_METHOD_NAME , JPrimitiveTypeEnum.VOID.getType ( ) ) ; } pushMethodInfo ( new com.android.jack.ir.impl.JackIrBuilder.MethodInfo ( this , initMeth , ( ( com.android.jack.ir.ast.JMethodBody ) ( initMeth.getBody ( ) ) ) , scope ) ) ; }
Source:
public static java.lang.String show ( java.util.Map m ) { java.lang.StringBuffer buffer = new java.lang.StringBuffer ( ) ; for ( java.util.Iterator it = m.keySet ( ) . iterator ( ) ; it.hasNext ( ) ; ) { java.lang.Object key = it.next ( ) ; buffer.append ( ( ( ( key + "=>" ) + ( m.get ( key ) ) ) + "\r\n" ) ) ; } return buffer.toString ( ) ; }

Target:
public static java.lang.String show ( java.util.Map m ) { java.lang.StringBuilder buffer = new java.lang.StringBuilder ( ) ; for ( java.util.Iterator it = m.keySet ( ) . iterator ( ) ; it.hasNext ( ) ; ) { java.lang.Object key = it.next ( ) ; buffer.append ( ( ( ( key + "=>" ) + ( m.get ( key ) ) ) + "\r\n" ) ) ; } return buffer.toString ( ) ; }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need DSA or RSA public key" ) ; } try { int result = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getPkeyContext ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { destroyContextIfExists ( ) ; } }

Target:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need DSA or RSA public key" ) ; } try { int result = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getPkeyContext ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { return false ; } finally { destroyContextIfExists ( ) ; } }