auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testContains ( ) throws java.lang.Exception { assertFalse ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertFalse ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; }

Target:
public void testContains ( ) throws java.lang.Exception { assertFalse ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; assertTrue ( mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertFalse ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; assertTrue ( mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; }
Source:
private void writeCodes ( com.android.jack.dx.dex.file.DexFile file , com.android.jack.dx.util.AnnotatedOutput out ) { com.android.jack.dx.dex.code.DalvInsnList insns = code.getInsns ( ) ; try { insns.writeTo ( out ) ; } catch ( java.lang.RuntimeException ex ) { throw com.android.jack.dx.util.ExceptionWithContext.withContext ( ex , ( ( "...while writing " + "instructions for " ) + ( ref.toHuman ( ) ) ) ) ; } }

Target:
private void writeCodes ( com.android.jack.dx.util.AnnotatedOutput out ) { com.android.jack.dx.dex.code.DalvInsnList insns = code.getInsns ( ) ; try { insns.writeTo ( out ) ; } catch ( java.lang.RuntimeException ex ) { throw com.android.jack.dx.util.ExceptionWithContext.withContext ( ex , ( ( "...while writing " + "instructions for " ) + ( ref.toHuman ( ) ) ) ) ; } }
Source:
public void setAppWillBeHidden ( android.os.IBinder token ) { if ( ! ( checkCallingPermission ( android.Manifest.permission.MANAGE_APP_TOKENS , "setAppWillBeHidden()" ) ) ) { throw new java.lang.SecurityException ( "Requires MANAGE_APP_TOKENS permission" ) ; } com.android.server.WindowManagerService.AppWindowToken wtoken ; synchronized ( mWindowMap ) { wtoken = findAppWindowToken ( token ) ; if ( wtoken == null ) { android.util.Log.w ( com.android.server.WindowManagerService.TAG , ( "Attempted to set will be hidden of non-existing app token: " + token ) ) ; return ; } wtoken.willBeHidden = true ; } }

Target:
public void setAppWillBeHidden ( android.os.IBinder token ) { if ( ! ( checkCallingPermission ( android.Manifest.permission.MANAGE_APP_TOKENS , "setAppWillBeHidden()" ) ) ) { throw new java.lang.SecurityException ( "Requires MANAGE_APP_TOKENS permission" ) ; } com.android.server.WindowManagerService.AppWindowToken wtoken ; synchronized ( mWindowMap ) { wtoken = findAppWindowToken ( token ) ; if ( wtoken == null ) { android.util.Slog.w ( com.android.server.WindowManagerService.TAG , ( "Attempted to set will be hidden of non-existing app token: " + token ) ) ; return ; } wtoken.willBeHidden = true ; } }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
public void testEtwsMessageTest ( ) { android.telephony.SmsCbMessage msg = com.android.internal.telephony.gsm.GsmSmsCbTest.createFromPdu ( com.android.internal.telephony.gsm.GsmSmsCbTest.etwsMessageTest ) ; android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GsmSmsCbTest.TAG , msg.toString ( ) ) ; assertEquals ( "GS mismatch" , 0 , msg.getGeographicalScope ( ) ) ; assertEquals ( "serial number mismatch" , 0 , msg.getSerialNumber ( ) ) ; assertEquals ( "message ID mismatch" , 4355 , msg.getServiceCategory ( ) ) ; assertEquals ( "warning type mismatch" , SmsCbEtwsInfo.ETWS_WARNING_TYPE_TEST_MESSAGE , msg.getEtwsWarningInfo ( ) . getWarningType ( ) ) ; }

Target:
public void testEtwsMessageTest ( ) { android.telephony.SmsCbMessage msg = createFromPdu ( com.android.internal.telephony.gsm.GsmSmsCbTest.etwsMessageTest ) ; android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GsmSmsCbTest.TAG , msg.toString ( ) ) ; assertEquals ( "GS mismatch" , 0 , msg.getGeographicalScope ( ) ) ; assertEquals ( "serial number mismatch" , 0 , msg.getSerialNumber ( ) ) ; assertEquals ( "message ID mismatch" , 4355 , msg.getServiceCategory ( ) ) ; assertEquals ( "warning type mismatch" , SmsCbEtwsInfo.ETWS_WARNING_TYPE_TEST_MESSAGE , msg.getEtwsWarningInfo ( ) . getWarningType ( ) ) ; }
Source:
public static java.util.logging.Logger getLogger ( java.lang.String name , java.lang.String resourceBundleName ) { java.lang.Class < ? > callerClass = dalvik.system.VMStack.getStackClass1 ( ) ; java.util.logging.Logger result = java.util.logging.Logger.demandLogger ( name , resourceBundleName , callerClass ) ; if ( ( result.resourceBundleName ) == null ) { result.setupResourceInfo ( resourceBundleName , callerClass ) ; } else if ( ! ( result.resourceBundleName.equals ( resourceBundleName ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( result.resourceBundleName ) + " != " ) + resourceBundleName ) ) ; } return result ; }

Target:
public static java.util.logging.Logger getLogger ( java.lang.String name , java.lang.String resourceBundleName ) { java.lang.Class < ? > callerClass = dalvik.system.VMStack.getStackClass1 ( ) ; java.util.logging.Logger result = java.util.logging.Logger.demandLogger ( name , resourceBundleName , callerClass ) ; result.setupResourceInfo ( resourceBundleName , callerClass ) ; return result ; }
Source:
public static void setDouble ( java.lang.Object array , int index , double value ) throws java.lang.ArrayIndexOutOfBoundsException , java.lang.IllegalArgumentException { if ( array instanceof double [ ] ) { ( ( double [ ] ) ( array ) ) [ index ] = value ; } else { throw java.lang.reflect.Array.badArray ( array ) ; } }

Target:
public static void setDouble ( java.lang.Object array , int index , double d ) throws java.lang.ArrayIndexOutOfBoundsException , java.lang.IllegalArgumentException { if ( array instanceof double [ ] ) { ( ( double [ ] ) ( array ) ) [ index ] = d ; } else { throw java.lang.reflect.Array.badArray ( array ) ; } }
Source:
public synchronized void onConnectEvent ( int netId , int error , int latencyMs , java.lang.String ipAddr , int port , int uid ) throws android.os.RemoteException { com.android.server.connectivity.NetdEventListenerService.maybeVerboseLog ( "onConnectEvent(%d, %d, %dms)" , netId , error , latencyMs ) ; long timestamp = java.lang.System.currentTimeMillis ( ) ; getMetricsForNetwork ( timestamp , netId ) . addConnectResult ( error , latencyMs , ipAddr ) ; if ( ( mNetdEventCallback ) != null ) { mNetdEventCallback.onConnectEvent ( ipAddr , port , timestamp , uid ) ; } }

Target:
public synchronized void onConnectEvent ( int netId , int error , int latencyMs , java.lang.String ipAddr , int port , int uid ) throws android.os.RemoteException { long timestamp = java.lang.System.currentTimeMillis ( ) ; getMetricsForNetwork ( timestamp , netId ) . addConnectResult ( error , latencyMs , ipAddr ) ; if ( ( mNetdEventCallback ) != null ) { mNetdEventCallback.onConnectEvent ( ipAddr , port , timestamp , uid ) ; } }
Source:
public void test005 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST005 ) . addTestExeFileChecker ( new com.android.jack.test.helper.FileChecker ( ) { @ java.lang.Override public void check ( @ javax.annotation.Nonnull java.io.File file ) throws java.lang.Exception { org.jf.dexlib.DexFile dexFile = new org.jf.dexlib.DexFile ( file ) ; org.jf.dexlib.CodeItem ci = com.android.jack.TestTools.getEncodedMethod ( dexFile , "Lcom/android/jack/constant/test005/jack/Constant005;" , "test" , "()I" ) . codeItem ; junit.framework.Assert.assertEquals ( 7 , countOpcode ( ci , Opcode.CONST_4 ) ) ; } } ) . compileAndRunTest ( ) ; }

Target:
public void test005 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST005 ) . compileAndRunTest ( ) ; }
Source:
public boolean requestIcon ( long bssid , java.lang.String fileName ) { java.lang.String result = mSupplicantHook.doCustomSupplicantCommand ( ( ( ( "REQ_HS20_ICON " + ( com.android.server.wifi.hotspot2.Utils.macToString ( bssid ) ) ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; }

Target:
public boolean requestIcon ( long bssid , java.lang.String fileName ) { if ( ( bssid == 0 ) || ( fileName == null ) ) return false ; return mSupplicantHook.requestIcon ( com.android.server.wifi.hotspot2.Utils.macToString ( bssid ) , fileName ) ; }
Source:
public void testUnocclude ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedActivity" ) ; gotoKeyguard ( ) ; launchActivity ( "TestActivity" ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , null ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_UNOCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testUnocclude ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; launchActivity ( "TestActivity" ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , null ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_UNOCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { com.android.tools.perflib.heap.Instance instance = heap.getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }

Target:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }
Source:
private static boolean isGradleProject ( com.intellij.openapi.project.Project project ) { com.intellij.openapi.module.ModuleManager moduleManager = com.intellij.openapi.module.ModuleManager.getInstance ( project ) ; for ( com.intellij.openapi.module.Module module : moduleManager.getModules ( ) ) { com.intellij.facet.FacetManager facetManager = com.intellij.facet.FacetManager.getInstance ( module ) ; for ( com.intellij.facet.Facet facet : facetManager.getAllFacets ( ) ) { if ( "android-gradle" . equals ( facet.getType ( ) . getStringId ( ) ) ) { return true ; } } } return false ; }

Target:
public static boolean isGradleProject ( com.intellij.openapi.project.Project project ) { com.intellij.openapi.module.ModuleManager moduleManager = com.intellij.openapi.module.ModuleManager.getInstance ( project ) ; for ( com.intellij.openapi.module.Module module : moduleManager.getModules ( ) ) { com.intellij.facet.FacetManager facetManager = com.intellij.facet.FacetManager.getInstance ( module ) ; for ( com.intellij.facet.Facet facet : facetManager.getAllFacets ( ) ) { if ( "android-gradle" . equals ( facet.getType ( ) . getStringId ( ) ) ) { return true ; } } } return false ; }
Source:
protected void init ( ) { com.ibm.icu.dev.test.util.LocaleAliasTest.available = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; for ( int i = 0 ; i < ( com.ibm.icu.dev.test.util.LocaleAliasTest.available.length ) ; i ++ ) { availableMap.put ( com.ibm.icu.dev.test.util.LocaleAliasTest.available [ i ] . toString ( ) , "" ) ; } }

Target:
public void init ( ) { com.ibm.icu.dev.test.util.LocaleAliasTest.available = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; for ( int i = 0 ; i < ( com.ibm.icu.dev.test.util.LocaleAliasTest.available.length ) ; i ++ ) { availableMap.put ( com.ibm.icu.dev.test.util.LocaleAliasTest.available [ i ] . toString ( ) , "" ) ; } }
Source:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.dependency.AndroidDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( ( rsLib != null ) && ( rsLib.isDirectory ( ) ) ) { list.add ( rsLib ) ; } } return list ; }

Target:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.dependency.AndroidDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( rsLib.isDirectory ( ) ) { list.add ( rsLib ) ; } } return list ; }
Source:
void addEntry ( int hash , K key , V value , int bucketIndex ) { java.util.LinkedHashMap.LinkedHashMapEntry < K , V > eldest = header.after ; if ( ( eldest != ( header ) ) && ( removeEldestEntry ( eldest ) ) ) { removeEntryForKey ( eldest.key ) ; } super . addEntry ( hash , key , value , bucketIndex ) ; }

Target:
void addEntry ( int hash , K key , V value , int bucketIndex ) { super . addEntry ( hash , key , value , bucketIndex ) ; java.util.LinkedHashMap.LinkedHashMapEntry < K , V > eldest = header.after ; if ( removeEldestEntry ( eldest ) ) { removeEntryForKey ( eldest.key ) ; } }
Source:
public static void runTest ( ) { Transform t = new Transform ( ) ; try { java.lang.reflect.Method hi = Transform.class . getMethod ( "sayHi" ) ; java.lang.reflect.Method bye = Transform.class . getMethod ( "sayGoodbye" ) ; hi.invoke ( t ) ; t.sayHi ( ) ; bye.invoke ( t ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( ( "Unexpected error occured! " + ( e.toString ( ) ) ) ) ; e.printStackTrace ( ) ; } }

Target:
public static void runTest ( ) throws java.lang.Exception { Transform t = new Transform ( ) ; java.lang.reflect.Method hi = Transform.class . getMethod ( "sayHi" ) ; java.lang.reflect.Method bye = Transform.class . getMethod ( "sayGoodbye" ) ; hi.invoke ( t ) ; t.sayHi ( ) ; bye.invoke ( t ) ; }
Source:
private static java.lang.Class getClassInstance ( java.lang.String cname ) { java.lang.Class clz = null ; if ( cname != null ) { try { clz = java.lang.ClassLoader.getSystemClassLoader ( ) . loadClass ( cname ) ; } catch ( java.lang.ClassNotFoundException ex ) { try { clz = java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) . loadClass ( cname ) ; } catch ( java.lang.ClassNotFoundException innerEx ) { clz = null ; } } } return clz ; }

Target:
private static java.lang.Class getClassInstance ( java.lang.String cname ) throws java.lang.ClassNotFoundException { try { return java.lang.ClassLoader.getSystemClassLoader ( ) . loadClass ( cname ) ; } catch ( java.lang.ClassNotFoundException ex ) { return java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) . loadClass ( cname ) ; } }
Source:
public int codePointBefore ( int index ) { int i = index - 1 ; if ( ( i < 0 ) || ( i >= ( count ) ) ) { throw new java.lang.StringIndexOutOfBoundsException ( index ) ; } return java.lang.Character.codePointBefore ( this , index ) ; }

Target:
public int codePointBefore ( int index ) { int i = index - 1 ; if ( ( i < 0 ) || ( i >= ( length ( ) ) ) ) { throw new java.lang.StringIndexOutOfBoundsException ( index ) ; } return java.lang.Character.codePointBefore ( this , index ) ; }
Source:
public int [ ] blend ( int [ ] src , int [ ] dst ) { return new int [ ] { dst [ 0 ] , dst [ 1 ] , src [ 2 ] , java.lang.Math.min ( 255 , ( ( src [ 3 ] ) + ( dst [ 3 ] ) ) ) } ; }

Target:
public int [ ] blend ( int [ ] src , int [ ] dst , int [ ] result ) { return new int [ ] { dst [ 0 ] , dst [ 1 ] , src [ 2 ] , java.lang.Math.min ( 255 , ( ( src [ 3 ] ) + ( dst [ 3 ] ) ) ) } ; }
Source:
public void testFindOutgoingCallPhoneAccountSelfManaged ( ) throws java.lang.Exception { java.util.List < android.telecom.PhoneAccountHandle > accounts = mCallsManager.findOutgoingCallPhoneAccount ( com.android.server.telecom.tests.CallsManagerTest.SELF_MANAGED_HANDLE , com.android.server.telecom.tests.CallsManagerTest.TEST_ADDRESS , false , null ) ; assertEquals ( 1 , accounts.size ( ) ) ; assertEquals ( com.android.server.telecom.tests.CallsManagerTest.SELF_MANAGED_HANDLE , accounts.get ( 0 ) ) ; }

Target:
public void testFindOutgoingCallPhoneAccountSelfManaged ( ) throws java.lang.Exception { java.util.List < android.telecom.PhoneAccountHandle > accounts = mCallsManager.findOutgoingCallPhoneAccount ( com.android.server.telecom.tests.CallsManagerTest.SELF_MANAGED_HANDLE , com.android.server.telecom.tests.CallsManagerTest.TEST_ADDRESS , false , null ) ; org.junit.Assert.assertEquals ( 1 , accounts.size ( ) ) ; org.junit.Assert.assertEquals ( com.android.server.telecom.tests.CallsManagerTest.SELF_MANAGED_HANDLE , accounts.get ( 0 ) ) ; }
Source:
private void showInputMethod ( android.view.View view ) { final android.view.inputmethod.InputMethodManager imm = ( ( android.view.inputmethod.InputMethodManager ) ( getActivity ( ) . getSystemService ( Context.INPUT_METHOD_SERVICE ) ) ) ; if ( imm != null ) { imm.showSoftInput ( view , 0 ) ; } }

Target:
private void showInputMethod ( android.view.View view ) { if ( ( getActivity ( ) ) == null ) { return ; } final android.view.inputmethod.InputMethodManager imm = ( ( android.view.inputmethod.InputMethodManager ) ( getActivity ( ) . getSystemService ( Context.INPUT_METHOD_SERVICE ) ) ) ; if ( imm != null ) { imm.showSoftInput ( view , 0 ) ; } }
Source:
public void handleUssdRequest ( java.lang.String ussdRequest , android.os.ResultReceiver wrappedCallback ) { enforceCallPermission ( ) ; int subId = getDefaultSubscription ( ) ; if ( ! ( android.telephony.SubscriptionManager.isValidSubscriptionId ( subId ) ) ) { return ; } android.util.Pair < java.lang.String , android.os.ResultReceiver > ussdObject = new android.util.Pair ( ussdRequest , wrappedCallback ) ; sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_HANDLE_USSD_REQUEST , ussdObject , subId ) ; }

Target:
public void handleUssdRequest ( int subId , java.lang.String ussdRequest , android.os.ResultReceiver wrappedCallback ) { enforceCallPermission ( ) ; if ( ! ( android.telephony.SubscriptionManager.isValidSubscriptionId ( subId ) ) ) { return ; } android.util.Pair < java.lang.String , android.os.ResultReceiver > ussdObject = new android.util.Pair ( ussdRequest , wrappedCallback ) ; sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_HANDLE_USSD_REQUEST , ussdObject , subId ) ; }
Source:
static void getInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final int got = ( v == null ) ? ( ( int ) ( m.invokeExact ( ) ) ) : ( ( int ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void getInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final int got = ( v == null ) ? ( ( int ) ( m.invokeExact ( ) ) ) : ( ( int ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public com.android.ide.common.resources.configuration.ResourceQualifier getInvalidQualifier ( ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( ( mQualifiers [ i ] ) != null ) && ( ( mQualifiers [ i ] . isValid ( ) ) == false ) ) { return mQualifiers [ i ] ; } } return null ; }

Target:
public com.android.ide.common.resources.configuration.ResourceQualifier getInvalidQualifier ( ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( ( mQualifiers [ i ] ) != null ) && ( ! ( mQualifiers [ i ] . isValid ( ) ) ) ) { return mQualifiers [ i ] ; } } return null ; }
Source:
public boolean addLogger ( java.util.logging.Logger logger ) { final java.lang.String name = logger.getName ( ) ; if ( name == null ) { throw new java.lang.NullPointerException ( ) ; } drainLoggerRefQueueBounded ( ) ; java.util.logging.LogManager.LoggerContext cx = getUserContext ( ) ; if ( cx.addLocalLogger ( logger , this ) ) { loadLoggerHandlers ( logger , name , ( name + ".handlers" ) ) ; return true ; } else { return false ; } }

Target:
public boolean addLogger ( java.util.logging.Logger logger ) { final java.lang.String name = logger.getName ( ) ; if ( name == null ) { throw new java.lang.NullPointerException ( ) ; } drainLoggerRefQueueBounded ( ) ; java.util.logging.LogManager.LoggerContext cx = getUserContext ( ) ; if ( cx.addLocalLogger ( logger ) ) { loadLoggerHandlers ( logger , name , ( name + ".handlers" ) ) ; return true ; } else { return false ; } }
Source:
public static void openDrawer ( int drawerLayoutId , int gravity ) { if ( android.support.test.espresso.contrib.DrawerActions.checkDrawer ( drawerLayoutId , android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) { return ; } android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( drawerLayoutId ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.registerListener ( ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.actionOpenDrawer ( gravity ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.unregisterListener ( ) ) ; }

Target:
public static void openDrawer ( int drawerLayoutId , int gravity ) { if ( android.support.test.espresso.contrib.DrawerActions.checkDrawer ( drawerLayoutId , android.support.test.espresso.contrib.DrawerMatchers.isOpen ( gravity ) ) ) { return ; } android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( drawerLayoutId ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.registerListener ( ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.actionOpenDrawer ( gravity ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.unregisterListener ( ) ) ; }
Source:
private static java.io.File [ ] splitLibraryPath ( java.lang.String path ) { java.util.ArrayList < java.io.File > result = dalvik.system.DexPathList.splitPaths ( path , java.lang.System.getProperty ( "java.library.path" , "." ) , true ) ; return result.toArray ( new java.io.File [ result.size ( ) ] ) ; }

Target:
private static java.io.File [ ] splitLibraryPath ( java.lang.String path ) { java.util.ArrayList < java.io.File > result = dalvik.system.DexPathList.splitPaths ( path , java.lang.System.getProperty ( "java.library.path" ) , true ) ; return result.toArray ( new java.io.File [ result.size ( ) ] ) ; }
Source:
public void testCanEncodeCharSequence ( ) { assertTrue ( encoder.canEncode ( "w" ) ) ; assertFalse ( encoder.canEncode ( "슣" ) ) ; assertFalse ( encoder.canEncode ( "𐀀" ) ) ; try { encoder.canEncode ( null ) ; } catch ( java.lang.NullPointerException e ) { } assertTrue ( encoder.canEncode ( "" ) ) ; }

Target:
public void testCanEncodeCharSequence ( ) { assertTrue ( encoder.canEncode ( "w" ) ) ; assertFalse ( encoder.canEncode ( "슣" ) ) ; assertFalse ( encoder.canEncode ( "𐀀" ) ) ; }
Source:
public void test_reset ( ) { java.io.InputStream is = new java.io.ByteArrayInputStream ( new byte [ 10 ] ) ; java.util.zip.InflaterInputStream iis = new java.util.zip.InflaterInputStream ( is ) ; try { iis.reset ( ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_reset ( ) throws java.io.IOException { java.io.InputStream is = new java.io.ByteArrayInputStream ( new byte [ 10 ] ) ; try ( java.util.zip.InflaterInputStream iis = new java.util.zip.InflaterInputStream ( is ) ) { try { iis.reset ( ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } } }
Source:
public void test_parse_h_z_4DigitOffsetFromGMT ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "EST" ) ) ; cal.set ( 1970 , java.util.Calendar.JANUARY , 1 , 4 , 30 ) ; assertParse ( "h z" , "14 GMT-0001 " , new java.util.Date ( 54000000 ) , 0 , 11 ) ; assertParse ( "h z" , "14 GMT+0001 " , new java.util.Date ( 46800000 ) , 0 , 11 ) ; }

Target:
public void test_parse_h_z_4DigitOffsetFromGMT ( ) throws java.lang.Exception { assertParse ( "h z" , "14 GMT-0001 " , new java.util.Date ( 54000000 ) , 0 , 11 ) ; assertParse ( "h z" , "14 GMT+0001 " , new java.util.Date ( 46800000 ) , 0 , 11 ) ; }
Source:
public void testReceiverAndIntentFilter ( ) { org.mockito.ArgumentCaptor < android.content.IntentFilter > intentFilter = org.mockito.ArgumentCaptor.forClass ( android.content.IntentFilter.class ) ; new com.android.server.telecom.SystemStateProvider ( mContext ) ; org.mockito.Mockito.verify ( mContext ) . registerReceiver ( org.mockito.Matchers.any ( android.content.BroadcastReceiver.class ) , intentFilter.capture ( ) ) ; assertEquals ( 2 , intentFilter.getValue ( ) . countActions ( ) ) ; assertEquals ( UiModeManager.ACTION_ENTER_CAR_MODE , intentFilter.getValue ( ) . getAction ( 0 ) ) ; assertEquals ( UiModeManager.ACTION_EXIT_CAR_MODE , intentFilter.getValue ( ) . getAction ( 1 ) ) ; }

Target:
public void testReceiverAndIntentFilter ( ) { org.mockito.ArgumentCaptor < android.content.IntentFilter > intentFilter = org.mockito.ArgumentCaptor.forClass ( android.content.IntentFilter.class ) ; new com.android.server.telecom.SystemStateProvider ( mContext ) ; org.mockito.Mockito.verify ( mContext ) . registerReceiver ( org.mockito.Matchers.any ( android.content.BroadcastReceiver.class ) , intentFilter.capture ( ) ) ; org.junit.Assert.assertEquals ( 2 , intentFilter.getValue ( ) . countActions ( ) ) ; org.junit.Assert.assertEquals ( UiModeManager.ACTION_ENTER_CAR_MODE , intentFilter.getValue ( ) . getAction ( 0 ) ) ; org.junit.Assert.assertEquals ( UiModeManager.ACTION_EXIT_CAR_MODE , intentFilter.getValue ( ) . getAction ( 1 ) ) ; }
Source:
public static int $noinline$runSmaliTestInt ( java.lang.String name , int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , int . class ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , arg ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }

Target:
public static int $noinline$runSmaliTestInt ( java.lang.String name , int arg ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , int . class ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , arg ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }
Source:
public void stopAdvertisingSet ( android.bluetooth.le.AdvertisingSetCallback callback ) { if ( callback == null ) { throw new java.lang.IllegalArgumentException ( "callback cannot be null" ) ; } android.bluetooth.le.IAdvertisingSetCallback wrapped = mCallbackWrappers.remove ( callback ) ; if ( wrapped == null ) { return ; } android.bluetooth.IBluetoothGatt gatt ; try { gatt = mBluetoothManager.getBluetoothGatt ( ) ; gatt.stopAdvertisingSet ( wrapped ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.le.BluetoothLeAdvertiser.TAG , "Failed to stop advertising - " , e ) ; throw new java.lang.IllegalStateException ( "Failed to stop advertising" ) ; } }

Target:
public void stopAdvertisingSet ( android.bluetooth.le.AdvertisingSetCallback callback ) { if ( callback == null ) { throw new java.lang.IllegalArgumentException ( "callback cannot be null" ) ; } android.bluetooth.le.IAdvertisingSetCallback wrapped = mCallbackWrappers.remove ( callback ) ; if ( wrapped == null ) { return ; } android.bluetooth.IBluetoothGatt gatt ; try { gatt = mBluetoothManager.getBluetoothGatt ( ) ; gatt.stopAdvertisingSet ( wrapped ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.le.BluetoothLeAdvertiser.TAG , "Failed to stop advertising - " , e ) ; } }
Source:
public void testRemove ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , ( ( jsr166.DelayQueueTest.PDelay ) ( q.remove ( ) ) ) ) ; } try { q.remove ( ) ; shouldThrow ( ) ; } catch ( java.util.NoSuchElementException success ) { } }

Target:
public void testRemove ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , q.remove ( ) ) ; } try { q.remove ( ) ; shouldThrow ( ) ; } catch ( java.util.NoSuchElementException success ) { } }
Source:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.reportError ( device , error ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.reportError ( device , error ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { java.lang.Object selection = ( ( org.eclipse.swt.widgets.TreeItem ) ( e.item ) ) . getData ( ) ; if ( selection instanceof com.android.hierarchyviewerlib.device.IHvDevice ) { mModel.setSelection ( ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( selection ) ) , null ) ; } else if ( selection instanceof com.android.hierarchyviewerlib.models.Window ) { mModel.setSelection ( ( ( com.android.hierarchyviewerlib.models.Window ) ( selection ) ) . getHvDevice ( ) , ( ( com.android.hierarchyviewerlib.models.Window ) ( selection ) ) ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { org.eclipse.swt.widgets.TreeItem item = ( ( org.eclipse.swt.widgets.TreeItem ) ( e.item ) ) ; if ( item == null ) return ; java.lang.Object selection = item.getData ( ) ; if ( selection instanceof com.android.hierarchyviewerlib.device.IHvDevice ) { mModel.setSelection ( ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( selection ) ) , null ) ; } else if ( selection instanceof com.android.hierarchyviewerlib.models.Window ) { mModel.setSelection ( ( ( com.android.hierarchyviewerlib.models.Window ) ( selection ) ) . getHvDevice ( ) , ( ( com.android.hierarchyviewerlib.models.Window ) ( selection ) ) ) ; } }
Source:
public static com.android.jack.Version getVersion ( ) { if ( ( com.android.jack.Jack.version ) == null ) { java.io.InputStream is = com.android.jack.Jack.class . getClassLoader ( ) . getResourceAsStream ( com.android.jack.Jack.PROPERTIES_FILE ) ; if ( is != null ) { com.android.jack.Jack.version = new com.android.jack.Version ( is ) ; } else { com.android.jack.Jack.logger.log ( java.util.logging.Level.SEVERE , ( "Failed to open Jack properties file " + ( com.android.jack.Jack.PROPERTIES_FILE ) ) ) ; throw new java.lang.AssertionError ( ) ; } } return com.android.jack.Jack.version ; }

Target:
public static com.android.jack.Version getVersion ( ) { if ( ( com.android.jack.Jack.version ) == null ) { java.io.InputStream is = com.android.jack.Jack.class . getClassLoader ( ) . getResourceAsStream ( com.android.jack.Jack.PROPERTIES_FILE ) ; if ( is != null ) { com.android.jack.Jack.version = new com.android.jack.Version ( is ) ; } else { com.android.jack.Jack.logger.log ( java.util.logging.Level.SEVERE , ( "Failed to open Jack properties file " + ( com.android.jack.Jack.PROPERTIES_FILE ) ) ) ; throw new java.lang.AssertionError ( ) ; } } assert ( com.android.jack.Jack.version ) != null ; return com.android.jack.Jack.version ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.REF_CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "bouncycastle" ) ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.JARJAR_RULES = new com.android.jack.JarJarRules ( com.android.jack.TestTools.getFromAndroidTree ( "external/bouncycastle/jarjar-rules.txt" ) ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.REF_CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "bouncycastle" ) ; com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.JARJAR_RULES = new com.android.jack.JarJarRules ( com.android.jack.TestTools.getFromAndroidTree ( "external/bouncycastle/jarjar-rules.txt" ) ) ; }
Source:
public java.nio.IntBuffer asIntBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 2 ; return ( ( java.nio.IntBuffer ) ( new java.nio.ByteBufferAsIntBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public final java.nio.IntBuffer asIntBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 2 ; return new java.nio.ByteBufferAsIntBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
void serverSetPreferredPhy ( int serverIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mServerMap.connIdByAddress ( serverIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "serverSetPreferredPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "serverSetPreferredPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattServerSetPreferredPhyNative ( serverIf , connId , txPhy , rxPhy , phyOptions ) ; }

Target:
void serverSetPreferredPhy ( int serverIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mServerMap.connIdByAddress ( serverIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "serverSetPreferredPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "serverSetPreferredPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattServerSetPreferredPhyNative ( serverIf , address , txPhy , rxPhy , phyOptions ) ; }
Source:
public static float scalb ( float f , int scale_factor ) { final int MAX_SCALE = ( ( ( sun.misc.FloatConsts.MAX_EXPONENT ) + ( - ( sun.misc.FloatConsts.MIN_EXPONENT ) ) ) + ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) ) + 1 ; scale_factor = java.lang.Math.max ( java.lang.Math.min ( scale_factor , MAX_SCALE ) , ( - MAX_SCALE ) ) ; return ( ( float ) ( ( ( double ) ( f ) ) * ( sun.misc.FpUtils.powerOfTwoD ( scale_factor ) ) ) ) ; }

Target:
public static double scalb ( double d , int scale_factor ) { return java.lang.Math.scalb ( d , scale_factor ) ; }
Source:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; }

Target:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; }
Source:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerPrivateKey ( ) ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; long s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerPrivateKey ( ) ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public com.android.tools.lint.detector.api.Location resolve ( ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( mNode ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( mFile , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return null ; }

Target:
public com.android.tools.lint.detector.api.Location resolve ( ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( mNode ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( mFile , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( mFile ) ; }
Source:
private com.android.build.gradle.internal.test.report.PackageTestResults addPackageForClass ( java.lang.String className , java.lang.String device , java.lang.String project , java.lang.String flavor ) { java.lang.String packageName ; int pos = className.lastIndexOf ( "." ) ; if ( pos != ( - 1 ) ) { packageName = className.substring ( 0 , pos ) ; } else { packageName = "" ; } return addPackage ( packageName , device , project , flavor ) ; }

Target:
private com.android.build.gradle.internal.test.report.PackageTestResults addPackageForClass ( java.lang.String className ) { java.lang.String packageName ; int pos = className.lastIndexOf ( "." ) ; if ( pos != ( - 1 ) ) { packageName = className.substring ( 0 , pos ) ; } else { packageName = "" ; } return addPackage ( packageName ) ; }
Source:
public static java.lang.Package create ( com.android.sdklib.internal.repository.sources.SdkSource source , java.util.Properties props , int revision , java.lang.String license , java.lang.String description , java.lang.String descUrl , com.android.sdklib.internal.repository.archives.Archive.Os archiveOs , com.android.sdklib.internal.repository.archives.Archive.Arch archiveArch , java.lang.String archiveOsPath ) { return new com.android.sdklib.internal.repository.packages.ToolPackage ( source , props , revision , license , description , descUrl , archiveOs , archiveArch , archiveOsPath ) ; }

Target:
public static java.lang.Package create ( com.android.sdklib.internal.repository.sources.SdkSource source , java.util.Properties props , int revision , java.lang.String license , java.lang.String description , java.lang.String descUrl , java.lang.String archiveOsPath ) { return new com.android.sdklib.internal.repository.packages.ToolPackage ( source , props , revision , license , description , descUrl , archiveOsPath ) ; }
Source:
private void dispatchBookkeepingRequest ( int sequenceNumber , java.net.Socket socket ) throws java.lang.InterruptedException { requestCount.incrementAndGet ( ) ; com.google.mockwebserver.RecordedRequest request = new com.google.mockwebserver.RecordedRequest ( null , null , null , ( - 1 ) , null , sequenceNumber , socket ) ; dispatcher.dispatch ( request ) ; requestQueue.add ( request ) ; }

Target:
private void dispatchBookkeepingRequest ( int sequenceNumber , java.net.Socket socket ) throws java.lang.InterruptedException { requestCount.incrementAndGet ( ) ; com.google.mockwebserver.RecordedRequest request = new com.google.mockwebserver.RecordedRequest ( null , null , null , ( - 1 ) , null , sequenceNumber , socket ) ; dispatcher.dispatch ( request ) ; }
Source:
public void createTest ( com.android.rs.imagejb.Resources res ) { mScript = new com.android.rs.imagejb.ScriptC_colorcube ( mRS , res , R.raw.colorcube ) ; mIntrinsic = android.renderscript.ScriptIntrinsic3DLUT.create ( mRS , android.renderscript.Element.U8_4 ( mRS ) ) ; initCube ( ) ; mScript.invoke_setCube ( mCube ) ; mIntrinsic.setLUT ( mCube ) ; }

Target:
public void createTest ( com.android.rs.imagejb.Resources res ) { mScript = new com.android.rs.imagejb.ScriptC_colorcube ( mRS ) ; mIntrinsic = android.renderscript.ScriptIntrinsic3DLUT.create ( mRS , android.renderscript.Element.U8_4 ( mRS ) ) ; initCube ( ) ; mScript.invoke_setCube ( mCube ) ; mIntrinsic.setLUT ( mCube ) ; }
Source:
public void testAdd ( ) { try { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertTrue ( q.add ( new java.lang.Integer ( i ) ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; q.add ( new java.lang.Integer ( SIZE ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }

Target:
public void testAdd ( ) { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertTrue ( q.add ( new java.lang.Integer ( i ) ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; try { q.add ( new java.lang.Integer ( SIZE ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }
Source:
public void testNvResetConfig ( ) throws java.lang.Exception { int resetType = 1 ; mRILUnderTest.nvResetConfig ( resetType , obtainMessage ( ) ) ; org.mockito.Mockito.verify ( mRadioProxy ) . nvResetConfig ( mSerialNumberCaptor.capture ( ) , org.mockito.Matchers.eq ( ( ( java.lang.Integer ) ( com.android.internal.telephony.RILTest.invokeMethod ( mRILInstance , "convertToHalResetNvType" , new java.lang.Class < ? > [ ] { java.lang.Integer.TYPE } , new java.lang.Object [ ] { resetType } ) ) ) ) ) ; com.android.internal.telephony.RILTest.verifyRILResponse ( mRILUnderTest , mSerialNumberCaptor.getValue ( ) , com.android.internal.telephony.RILConstants.RIL_REQUEST_NV_RESET_CONFIG ) ; }

Target:
public void testNvResetConfig ( ) throws java.lang.Exception { int resetType = 1 ; mRILUnderTest.nvResetConfig ( resetType , obtainMessage ( ) ) ; org.mockito.Mockito.verify ( mRadioProxy ) . nvResetConfig ( mSerialNumberCaptor.capture ( ) , org.mockito.Matchers.eq ( ( ( java.lang.Integer ) ( invokeMethod ( mRILInstance , "convertToHalResetNvType" , new java.lang.Class < ? > [ ] { java.lang.Integer.TYPE } , new java.lang.Object [ ] { resetType } ) ) ) ) ) ; com.android.internal.telephony.RILTest.verifyRILResponse ( mRILUnderTest , mSerialNumberCaptor.getValue ( ) , com.android.internal.telephony.RILConstants.RIL_REQUEST_NV_RESET_CONFIG ) ; }