auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( ( ( "iccOpenLogicalChannel: subId=" + subId ) + " aid=" ) + AID ) ) ; android.telephony.IccOpenLogicalChannelResponse response = ( ( android.telephony.IccOpenLogicalChannelResponse ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_OPEN_CHANNEL , AID , subId ) ) ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "iccOpenLogicalChannel: " + response ) ) ; return response ; }

Target:
public void setVoiceActivationState ( int subId , int activationState ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { phone.setVoiceActivationState ( activationState ) ; } else { com.android.phone.PhoneInterfaceManager.loge ( ( "setVoiceActivationState fails with invalid subId: " + subId ) ) ; } }
Source:
void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.v ( this , "putExtras: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.putExtras ( callId , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void addExistingConnection ( java.lang.String callId , android.telecom.ParcelableConnection connection ) { android.telecom.Log.v ( this , "addExistingConnection: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.addExistingConnection ( callId , connection , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public void testAesCbcHmacMd5Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha1Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void accept ( java.util.List < java.lang.String > result ) { if ( ( result == null ) || ( ( result.size ( ) ) == 0 ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.requestRebind ( MockListener.COMPONENT_NAME ) ; status = RETEST ; } else { if ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . isConnected ) { status = PASS ; next ( ) ; } else { if ( ( -- ( mRetries ) ) > 0 ) { status = RETEST ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } } }
Source:
public void testIsEmergencyNumberWithPlusSign_US ( ) { assertFalse ( shortInfo.isEmergencyNumber ( "+911" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "＋911" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( " +911" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "+112" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "+999" , RegionCode.US ) ) ; }

Target:
public void testIsEmergencyNumberWithPlusSign_US ( ) { assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "＋911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( " +911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+112" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+999" , RegionCode.US ) ) ; }
Source:
private void trackNewTetherableInterface ( java.lang.String iface , int interfaceType ) { com.android.server.connectivity.Tethering.TetherState tetherState ; tetherState = new com.android.server.connectivity.Tethering.TetherState ( new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( iface , mLooper , interfaceType , mNMService , mStatsService , this ) ) ; mTetherStates.put ( iface , tetherState ) ; tetherState.mStateMachine.start ( ) ; }

Target:
private void trackNewTetherableInterface ( java.lang.String iface , int interfaceType ) { com.android.server.connectivity.Tethering.TetherState tetherState ; tetherState = new com.android.server.connectivity.Tethering.TetherState ( new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( iface , mLooper , interfaceType , mNMService , mStatsService , this , new com.android.server.connectivity.tethering.IPv6TetheringInterfaceServices ( iface , mNMService ) ) ) ; mTetherStates.put ( iface , tetherState ) ; tetherState.mStateMachine.start ( ) ; }
Source:
public boolean perform ( ) { boolean permitAcquired = false ; try { semaphore.acquire ( ) ; permitAcquired = true ; java.lang.Thread.sleep ( Main.QueuedWait.SLEEP_TIME ) ; } catch ( java.lang.InterruptedException ignored ) { } finally { if ( permitAcquired ) { semaphore.release ( ) ; } } return true ; }

Target:
public boolean perform ( ) { boolean permitAcquired = false ; try { semaphore.acquire ( ) ; permitAcquired = true ; java.lang.Thread.sleep ( Main.QueuedWait.SLEEP_TIME ) ; } catch ( java.lang.OutOfMemoryError ignored ) { } catch ( java.lang.InterruptedException ignored ) { } finally { if ( permitAcquired ) { semaphore.release ( ) ; } } return true ; }
Source:
protected void eventLoop ( ) { mPackageMananger.loadPackages ( ) ; mPackageMananger.performAutoInstallTask ( new com.android.sdkuilib.internal.repository.PackageManager.IAutoInstallTask ( ) { public boolean acceptPackage ( java.lang.Package pkg ) { return mPackageFilter.accept ( pkg ) ; } public void setResult ( java.lang.Package pkg , boolean success , java.io.File installPath ) { mResultCode = java.lang.Boolean.valueOf ( success ) ; mResultPath = installPath ; } public void taskCompleted ( ) { close ( ) ; } } ) ; super . eventLoop ( ) ; }

Target:
protected void eventLoop ( ) { mPackageMananger.loadPackagesWithInstallTask ( new com.android.sdkuilib.internal.repository.PackageLoader.IAutoInstallTask ( ) { public boolean acceptPackage ( java.lang.Package pkg ) { return mPackageFilter.accept ( pkg ) ; } public void setResult ( java.lang.Package pkg , boolean success , java.io.File installPath ) { mResultCode = java.lang.Boolean.valueOf ( success ) ; mResultPath = installPath ; } public void taskCompleted ( ) { close ( ) ; } } ) ; super . eventLoop ( ) ; }
Source:
public boolean remove ( java.lang.Object o ) { java.util.Iterator < java.util.Map.Entry < K , V > > iterator = unfiltered.entrySet ( ) . iterator ( ) ; while ( iterator.hasNext ( ) ) { java.util.Map.Entry < K , V > entry = iterator.next ( ) ; if ( ( com.google.common.base.Objects.equal ( o , entry.getValue ( ) ) ) && ( predicate.apply ( entry ) ) ) { iterator.remove ( ) ; return true ; } } return false ; }

Target:
static < K > com.google.common.base.Predicate < java.util.Map.Entry < K , ? > > keyPredicateOnEntries ( com.google.common.base.Predicate < ? super K > keyPredicate ) { return com.google.common.base.Predicates.compose ( keyPredicate , com.google.common.collect.Maps.< K > keyFunction ( ) ) ; }
Source:
public boolean startIncomingCall ( java.lang.String phoneNumber ) { com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlReqSetMTCall req = new com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlReqSetMTCall ( ) ; req.setPhoneNumber ( phoneNumber ) ; if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_MT_CALL , 0 , 0 , req ) ) ) { android.util.Log.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CMD_SET_MT_CALL request failed" ) ; return false ; } return true ; }

Target:
public boolean startIncomingCall ( java.lang.String phoneNumber ) { com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlReqSetMTCall req = new com.android.internal.telephony.ril_proto.RilCtrlCmds.CtrlReqSetMTCall ( ) ; req.setPhoneNumber ( phoneNumber ) ; if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_MT_CALL , 0 , 0 , req ) ) ) { android.telephony.Rlog.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CMD_SET_MT_CALL request failed" ) ; return false ; } return true ; }
Source:
public com.android.build.gradle.internal.dsl.NdkConfigDsl setSrcDirs ( java.lang.Iterable < java.lang.String > filters ) { if ( filters != null ) { if ( ( abiFilters ) == null ) { abiFilters = com.google.common.collect.Sets.newHashSetWithExpectedSize ( 2 ) ; } else { abiFilters.clear ( ) ; } for ( java.lang.String filter : filters ) { abiFilters.add ( filter ) ; } } else { abiFilters = null ; } return this ; }

Target:
public com.android.build.gradle.internal.dsl.NdkConfigDsl setAbiFilters ( java.util.Collection < java.lang.String > filters ) { if ( filters != null ) { if ( ( abiFilters ) == null ) { abiFilters = com.google.common.collect.Sets.newHashSetWithExpectedSize ( filters.size ( ) ) ; } else { abiFilters.clear ( ) ; } for ( java.lang.String filter : filters ) { abiFilters.add ( filter ) ; } } else { abiFilters = null ; } return this ; }
Source:
private void add ( com.android.sdklib.BuildToolInfo.PathId id , java.lang.String leaf ) { add ( id , new java.io.File ( mPath , leaf ) ) ; }

Target:
private void add ( com.android.sdklib.BuildToolInfo.PathId id , java.lang.String ... leaves ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 256 ) ; for ( java.lang.String leaf : leaves ) { if ( leaf != null ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( java.io.File.separatorChar ) ; } sb.append ( leaf ) ; } } add ( id , new java.io.File ( mPath , sb.toString ( ) ) ) ; }
Source:
public static android.content.Intent checkIntent ( final android.content.Intent intent ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return intent.filterEquals ( ( ( android.content.Intent ) ( item ) ) ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( intent.toString ( ) ) ; } } ; return org.mockito.Mockito.argThat ( m ) ; }

Target:
public static android.content.Intent checkIntent ( final android.content.Intent intent ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return intent.filterEquals ( ( ( android.content.Intent ) ( item ) ) ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( intent.toString ( ) ) ; } } ; return org.mockito.hamcrest.MockitoHamcrest.argThat ( m ) ; }
Source:
private void assertIntsEqual ( int [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekInt ( ( ptr + ( 4 * i ) ) , swap ) ) ; } }

Target:
private void assertIntsEqual ( int [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekInt ( ( ptr + ( ( SizeOf.INT ) * i ) ) , swap ) ) ; } }
Source:
public boolean isConcurrentVoiceAndDataAllowed ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; return telephony == null ? false : telephony.isConcurrentVoiceAndDataAllowed ( getSubId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isConcurrentVoiceAndDataAllowed" , e ) ; } return false ; }

Target:
public boolean isConcurrentVoiceAndDataSupported ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; return telephony == null ? false : telephony.isConcurrentVoiceAndDataAllowed ( getSubId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isConcurrentVoiceAndDataAllowed" , e ) ; } return false ; }
Source:
protected void onSaveInstanceState ( android.os.Bundle outState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkMenuActivity.LOG_TAG , ( "onSaveInstanceState: " + ( mSlotId ) ) ) ; outState.putInt ( "STATE" , mState ) ; outState.putParcelable ( "MENU" , mStkMenu ) ; outState.putBoolean ( "ACCEPT_USERS_INPUT" , mAcceptUsersInput ) ; }

Target:
protected void onSaveInstanceState ( android.os.Bundle outState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkMenuActivity.LOG_TAG , ( "onSaveInstanceState: " + ( mSlotId ) ) ) ; outState.putInt ( com.android.stk.StkMenuActivity.STATE_KEY , mState ) ; outState.putParcelable ( com.android.stk.StkMenuActivity.MENU_KEY , mStkMenu ) ; outState.putBoolean ( com.android.stk.StkMenuActivity.ACCEPT_USERS_INPUT_KEY , mAcceptUsersInput ) ; outState.putBoolean ( com.android.stk.StkMenuActivity.RESPONSE_SENT_KEY , mIsResponseSent ) ; }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ! ( originalVFS.isClosed ( ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ( ( linkedOutputJackLib ) == null ) && ( ! ( originalVFS.isClosed ( ) ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setIndeterminate ( true ) ; if ( ! ( indicator instanceof com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ) { return ; } ( ( com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ( indicator ) ) . addStateDelegate ( new com.intellij.openapi.progress.util.ProgressIndicatorBase ( ) { @ java.lang.Override public void cancel ( ) { assert ( uiFacade ) != null ; uiFacade.stop ( ) ; super . cancel ( ) ; } } ) ; loggedIn = ( state != null ) && ( state.logInWithLocalServer ( message ) ) ; }

Target:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setIndeterminate ( true ) ; if ( ! ( indicator instanceof com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ) { return ; } ( ( com.intellij.openapi.wm.ex.ProgressIndicatorEx ) ( indicator ) ) . addStateDelegate ( new com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase ( ) { @ java.lang.Override public void cancel ( ) { assert ( uiFacade ) != null ; uiFacade.stop ( ) ; super . cancel ( ) ; } } ) ; loggedIn = ( state != null ) && ( state.logInWithLocalServer ( message ) ) ; }
Source:
public void testLoopMainThreadUntilIdle_emptyQueue ( ) { final java.util.concurrent.CountDownLatch latch = new java.util.concurrent.CountDownLatch ( 1 ) ; assertTrue ( testThread.getHandler ( ) . post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { uiController.get ( ) . loopMainThreadUntilIdle ( ) ; latch.countDown ( ) ; } } ) ) ; try { assertTrue ( "Never returned from UiControllerImpl.loopMainThreadUntilIdle();" , latch.await ( 10 , java.util.concurrent.TimeUnit.SECONDS ) ) ; } catch ( java.lang.InterruptedException e ) { fail ( ( "Failed with exception " + e ) ) ; } }

Target:
public void loopMainThreadUntilIdle_emptyQueue ( ) { final java.util.concurrent.CountDownLatch latch = new java.util.concurrent.CountDownLatch ( 1 ) ; junit.framework.Assert.assertTrue ( testThread.getHandler ( ) . post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { uiController.get ( ) . loopMainThreadUntilIdle ( ) ; latch.countDown ( ) ; } } ) ) ; try { junit.framework.Assert.assertTrue ( "Never returned from UiControllerImpl.loopMainThreadUntilIdle();" , latch.await ( 10 , java.util.concurrent.TimeUnit.SECONDS ) ) ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Failed with exception " + e ) ) ; } }
Source:
public void testValidateToMultiplePackagesTwo ( ) { intento.internalIntended ( org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.package" ) , android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.android.other" ) ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" , "com.google.android.other" ) ) ) ; }

Target:
public void validateToMultiplePackagesTwo ( ) { intento.internalIntended ( org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.package" ) , android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.android.other" ) ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" , "com.google.android.other" ) ) ) ; }
Source:
static final < K , V > java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] newArray ( int i ) { return new java.util.concurrent.ConcurrentHashMap.HashEntry [ i ] ; }

Target:
static final < K , V > java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > entryAt ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] tab , int i ) { return tab == null ? null : ( ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > ) ( java.util.concurrent.ConcurrentHashMap.UNSAFE.getObjectVolatile ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.TSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.TBASE ) ) ) ) ) ; }
Source:
public void focusOut ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( ( ( "focusOut: " + view ) + " mServedView=" ) + ( mServedView ) ) + " winFocus=" ) + ( view.hasWindowFocus ( ) ) ) ) ; if ( ( mServedView ) != view ) { if ( false && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } } }

Target:
public void focusOut ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( "focusOut: view=" + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( view ) ) ) + " mServedView=" ) + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( mServedView ) ) ) ) ; if ( ( mServedView ) != view ) { if ( false && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "x86" ) ; makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "armeabi" ) ; mTarget = getSdkManager ( ) . getTargets ( ) [ 0 ] ; mAvdFolder = com.android.sdklib.internal.avd.AvdInfo.getDefaultAvdFolder ( getAvdManager ( ) , getName ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.io.File siX86 = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "x86" ) ; makeFakeSkin ( siX86 , "Tag1X86Skin" ) ; java.io.File siArm = makeSystemImageFolder ( com.android.sdkmanager.TARGET_DIR_NAME_0 , "tag-1" , "armeabi" ) ; makeFakeSkin ( siArm , "Tag1ArmSkin" ) ; mTarget = getSdkManager ( ) . getTargets ( ) [ 0 ] ; mAvdFolder = com.android.sdklib.internal.avd.AvdInfo.getDefaultAvdFolder ( getAvdManager ( ) , getName ( ) ) ; }
Source:
void internalPropagateException ( java.lang.Throwable ex ) { java.util.concurrent.CountedCompleter < ? > a = this ; java.util.concurrent.CountedCompleter < ? > s = a ; while ( ( ( a.onExceptionalCompletion ( ex , s ) ) && ( ( a = ( s = a ) . completer ) != null ) ) && ( ( a.status ) >= 0 ) ) a.recordExceptionalCompletion ( ex ) ; }

Target:
void internalPropagateException ( java.lang.Throwable ex ) { java.util.concurrent.CountedCompleter < ? > a = this ; java.util.concurrent.CountedCompleter < ? > s = a ; while ( ( ( ( a.onExceptionalCompletion ( ex , s ) ) && ( ( a = ( s = a ) . completer ) != null ) ) && ( ( a.status ) >= 0 ) ) && ( ( a.recordExceptionalCompletion ( ex ) ) == ( java.util.concurrent.ForkJoinTask.EXCEPTIONAL ) ) ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.sdklib.resources.NavigationState state = com.android.sdklib.resources.NavigationState.getEnum ( value ) ; if ( state != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier ( ) ; qualifier.mValue = state ; config.setNavigationStateQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.NavigationState state = com.android.resources.NavigationState.getEnum ( value ) ; if ( state != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier ( ) ; qualifier.mValue = state ; config.setNavigationStateQualifier ( qualifier ) ; return true ; } return false ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; element = android.renderscript.Element.BOOLEAN ( mRS ) ; type = new android.renderscript.cts.Type.Builder ( mRS , android.renderscript.Element.I8 ( mRS ) ) . setX ( 1 ) . create ( ) ; allocation = android.renderscript.Allocation.createTyped ( mRS , type ) ; sampler = new android.renderscript.cts.Sampler.Builder ( mRS ) . create ( ) ; script = new android.renderscript.cts.ScriptC_is_object_element ( mRS , mRes , R.raw.is_object_element ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; element = android.renderscript.Element.BOOLEAN ( mRS ) ; type = new android.renderscript.cts.Type.Builder ( mRS , android.renderscript.Element.I8 ( mRS ) ) . setX ( 1 ) . create ( ) ; allocation = android.renderscript.Allocation.createTyped ( mRS , type ) ; sampler = new android.renderscript.cts.Sampler.Builder ( mRS ) . create ( ) ; script = new android.renderscript.cts.ScriptC_is_object ( mRS ) ; ms_is_object = new android.renderscript.cts.ScriptC_is_object ( mRS ) ; }
Source:
public void testPubkeyIsBlacklisted ( ) throws java.lang.Exception { java.security.PublicKey pk = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.createPublicKey ( com.android.org.bouncycastle.jce.provider.CertBlacklistTest.TEST_CERT ) ; java.lang.String hash = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.getHash ( pk ) ; java.util.HashSet < java.lang.String > testBlackList = new java.util.HashSet < java.lang.String > ( ) ; testBlackList.add ( hash ) ; writeBlacklist ( testBlackList ) ; com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( tmpFile.getCanonicalPath ( ) , com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_SERIAL_BLACKLIST_PATH ) ; assertTrue ( bl.isPublicKeyBlackListed ( pk ) ) ; }

Target:
public void testPubkeyIsBlacklisted ( ) throws java.lang.Exception { java.security.PublicKey pk = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.createPublicKey ( com.android.org.bouncycastle.jce.provider.CertBlacklistTest.TEST_CERT ) ; java.lang.String hash = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.getHash ( pk ) ; java.util.HashSet < java.lang.String > testBlackList = new java.util.HashSet < java.lang.String > ( ) ; testBlackList.add ( hash ) ; writeBlacklist ( testBlackList ) ; com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( tmpFile.getCanonicalPath ( ) , "" ) ; assertTrue ( bl.isPublicKeyBlackListed ( pk ) ) ; }
Source:
public void testWithTagNull ( ) { try { android.support.test.espresso.matcher.ViewMatchers.withTagKey ( 0 , null ) ; fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } try { android.support.test.espresso.matcher.ViewMatchers.withTagValue ( null ) ; fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void withTagNull ( ) { try { android.support.test.espresso.matcher.ViewMatchers.withTagKey ( 0 , null ) ; org.junit.Assert.fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } try { android.support.test.espresso.matcher.ViewMatchers.withTagValue ( null ) ; org.junit.Assert.fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } }
Source:
private void resetBatteryLevel ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { com.android.bluetooth.btservice.RemoteDevices.warnLog ( "device is null" ) ; return ; } com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProperties = getDeviceProperties ( device ) ; if ( deviceProperties == null ) { return ; } deviceProperties.setBatteryLevel ( ( - 1 ) ) ; }

Target:
void onHfIndicatorValueChanged ( android.content.Intent intent ) { android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( device == null ) { android.util.Log.e ( com.android.bluetooth.btservice.RemoteDevices.TAG , "onHfIndicatorValueChanged() remote device is null" ) ; return ; } int indicatorId = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_ID , ( - 1 ) ) ; int indicatorValue = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_VALUE , ( - 1 ) ) ; if ( indicatorId == ( com.android.bluetooth.hfp.HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS ) ) { updateBatteryLevel ( device , indicatorValue ) ; } }
Source:
public static int externalArrayTypeDimensionCount ( java.lang.String externalType ) { int dimensions = 0 ; int length = ClassConstants.EXTERNAL_TYPE_ARRAY.length ( ) ; int offset = ( externalType.length ( ) ) - length ; while ( externalType.regionMatches ( offset , ClassConstants.EXTERNAL_TYPE_ARRAY , 0 , length ) ) { dimensions ++ ; offset -= length ; } return dimensions ; }

Target:
public static int externalArrayTypeDimensionCount ( java.lang.String externalType ) { int dimensions = 0 ; int length = JavaConstants.TYPE_ARRAY.length ( ) ; int offset = ( externalType.length ( ) ) - length ; while ( externalType.regionMatches ( offset , JavaConstants.TYPE_ARRAY , 0 , length ) ) { dimensions ++ ; offset -= length ; } return dimensions ; }
Source:
public V put ( K key , V value ) { if ( value == null ) throw new java.lang.NullPointerException ( ) ; int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; return segmentFor ( hash ) . put ( key , hash , value , false ) ; }

Target:
public V replace ( K key , V value ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; if ( value == null ) throw new java.lang.NullPointerException ( ) ; java.util.concurrent.ConcurrentHashMap.Segment < K , V > s = segmentForHash ( hash ) ; return s == null ? null : s.replace ( key , hash , value ) ; }
Source:
public static java.lang.Object createInstanceAndCallStaticMethod ( dalvik.system.DexClassLoaderTest.Configuration config , java.lang.String className , java.lang.String methodName ) throws java.lang.ClassNotFoundException , java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { dalvik.system.DexClassLoader dcl = dalvik.system.DexClassLoaderTest.createInstance ( config ) ; java.lang.Class c = dcl.loadClass ( className ) ; java.lang.reflect.Method m = c.getMethod ( methodName , ( ( java.lang.Class [ ] ) ( null ) ) ) ; return m.invoke ( null , ( ( java.lang.Object [ ] ) ( null ) ) ) ; }

Target:
public java.lang.Object createLoaderAndCallMethod ( java.lang.String className , java.lang.String methodName , java.io.File ... files ) throws java.lang.ReflectiveOperationException { java.lang.ClassLoader cl = createLoader ( files ) ; java.lang.Class c = cl.loadClass ( className ) ; java.lang.reflect.Method m = c.getMethod ( methodName , ( ( java.lang.Class [ ] ) ( null ) ) ) ; return m.invoke ( null , ( ( java.lang.Object [ ] ) ( null ) ) ) ; }
Source:
public void dispose ( ) { if ( ( mBackground ) != null ) { mBackground.dispose ( ) ; mBackground = null ; } super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( ( mBackground ) != null ) { mBackground.dispose ( ) ; mBackground = null ; } if ( ( mForeground ) != null ) { mForeground.dispose ( ) ; mForeground = null ; } super . dispose ( ) ; }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.SUFFICIENT , method = "setAllowFileAccess" , args = { boolean . class } ) } ) public void testAccessAllowFileAccess ( ) { assertTrue ( mSettings.getAllowFileAccess ( ) ) ; java.lang.String fileUrl = android.webkit.cts.TestHtmlConstants.getFileUrl ( TestHtmlConstants.HELLO_WORLD_URL ) ; loadUrl ( fileUrl ) ; assertEquals ( TestHtmlConstants.HELLO_WORLD_TITLE , mWebView.getTitle ( ) ) ; fileUrl = android.webkit.cts.TestHtmlConstants.getFileUrl ( TestHtmlConstants.BR_TAG_URL ) ; mSettings.setAllowFileAccess ( false ) ; assertFalse ( mSettings.getAllowFileAccess ( ) ) ; loadUrl ( fileUrl ) ; assertEquals ( TestHtmlConstants.BR_TAG_TITLE , mWebView.getTitle ( ) ) ; loadUrl ( TestHtmlConstants.LOCAL_FILESYSTEM_URL ) ; assertEquals ( TestHtmlConstants.WEBPAGE_NOT_AVAILABLE_TITLE , mWebView.getTitle ( ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.SUFFICIENT , method = "setAllowFileAccess" , args = { boolean . class } ) } ) public void testAccessAllowFileAccess ( ) { if ( "4.0.3" . equals ( Build.VERSION.RELEASE ) ) { return ; } assertTrue ( mSettings.getAllowFileAccess ( ) ) ; java.lang.String fileUrl = android.webkit.cts.TestHtmlConstants.getFileUrl ( TestHtmlConstants.HELLO_WORLD_URL ) ; loadUrl ( fileUrl ) ; assertEquals ( TestHtmlConstants.HELLO_WORLD_TITLE , mWebView.getTitle ( ) ) ; fileUrl = android.webkit.cts.TestHtmlConstants.getFileUrl ( TestHtmlConstants.BR_TAG_URL ) ; mSettings.setAllowFileAccess ( false ) ; assertFalse ( mSettings.getAllowFileAccess ( ) ) ; loadUrl ( fileUrl ) ; assertEquals ( TestHtmlConstants.BR_TAG_TITLE , mWebView.getTitle ( ) ) ; loadUrl ( TestHtmlConstants.LOCAL_FILESYSTEM_URL ) ; assertEquals ( TestHtmlConstants.WEBPAGE_NOT_AVAILABLE_TITLE , mWebView.getTitle ( ) ) ; }
Source:
public java.lang.Integer get ( int index ) { com.android.jack.dx.io.DexBuffer.checkBounds ( index , tableOfContents.typeIds.size ) ; return java.lang.Integer.valueOf ( open ( ( ( tableOfContents.typeIds.off ) + ( index * ( com.android.jack.dx.dex.SizeOf.TYPE_ID_ITEM ) ) ) ) . readInt ( ) ) ; }

Target:
private java.util.List < java.lang.Integer > readTypeIds ( ) { com.android.jack.dx.io.DexBuffer.Section typeIds = open ( tableOfContents.typeIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( typeIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public void onPaste ( org.eclipse.swt.dnd.Clipboard clipboard ) { }

Target:
private void copySelectionToClipboard ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection > selection ) { sanitizeSelection ( selection ) ; if ( selection.isEmpty ( ) ) { return ; } java.lang.Object [ ] data = new java.lang.Object [ ] { getSelectionAsElements ( selection ) , getSelectionAsText ( selection ) } ; org.eclipse.swt.dnd.Transfer [ ] types = new org.eclipse.swt.dnd.Transfer [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) , org.eclipse.swt.dnd.TextTransfer.getInstance ( ) } ; mClipboard.setContents ( data , types ) ; }
Source:
private static java.lang.String isimTlvToString ( byte [ ] record ) { com.android.internal.telephony.gsm.SimTlv tlv = new com.android.internal.telephony.gsm.SimTlv ( record , 0 , record.length ) ; do { if ( ( tlv.getTag ( ) ) == ( com.android.internal.telephony.ims.IsimUiccRecords.TAG_ISIM_VALUE ) ) { return new java.lang.String ( tlv.getData ( ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) ; } } while ( tlv.nextObject ( ) ) ; android.util.Log.e ( com.android.internal.telephony.ims.IsimUiccRecords.LOG_TAG , "[ISIM] can't find TLV tag in ISIM record, returning null" ) ; return null ; }

Target:
private static java.lang.String isimTlvToString ( byte [ ] record ) { com.android.internal.telephony.gsm.SimTlv tlv = new com.android.internal.telephony.gsm.SimTlv ( record , 0 , record.length ) ; do { if ( ( tlv.getTag ( ) ) == ( com.android.internal.telephony.ims.IsimUiccRecords.TAG_ISIM_VALUE ) ) { return new java.lang.String ( tlv.getData ( ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) ; } } while ( tlv.nextObject ( ) ) ; android.telephony.Rlog.e ( com.android.internal.telephony.ims.IsimUiccRecords.LOG_TAG , "[ISIM] can't find TLV tag in ISIM record, returning null" ) ; return null ; }
Source:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mDisconnectedLatch.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertNotNull ( mMceStateMachine.getCurrentState ( ) ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }

Target:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; boolean result = false ; try { result = mConnectedLatch.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertTrue ( result ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }
Source:
public static boolean revealLine ( java.lang.String fileName , int lineNumber , java.lang.String perspective ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : com.android.ide.eclipse.ddms.JavaSourceRevealer.sSourceRevealers ) { try { if ( revealer.revealLine ( fileName , lineNumber , perspective ) ) { return true ; } } catch ( java.lang.Throwable t ) { } } return false ; }

Target:
public static boolean revealMethod ( java.lang.String fqmn , java.lang.String fileName , int linenumber , java.lang.String perspective ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : com.android.ide.eclipse.ddms.JavaSourceRevealer.sSourceRevealers ) { try { if ( revealer.revealMethod ( fqmn , fileName , linenumber , perspective ) ) { return true ; } } catch ( java.lang.Throwable t ) { } } return false ; }
Source:
public synchronized void requestToSetMode ( com.android.cts.verifier.sensors.base.ISensorTestStateContainer stateContainer , boolean modeOn ) throws java.lang.InterruptedException { if ( ! ( isSettingAvailable ( ) ) ) { return ; } trySetMode ( stateContainer , modeOn ) ; if ( ( getCurrentSettingMode ( ) ) != modeOn ) { java.lang.String message = stateContainer.getString ( R.string.snsr_setting_mode_not_set , getSettingName ( stateContainer ) , modeOn ) ; throw new java.lang.IllegalStateException ( message ) ; } }

Target:
public synchronized void requestToSetMode ( com.android.cts.verifier.sensors.base.ISensorTestStateContainer stateContainer , boolean modeOn ) throws java.lang.InterruptedException { if ( ( ! ( isSettingAvailable ( ) ) ) && ( ! ( isSettingUiAvailable ( stateContainer ) ) ) ) { return ; } trySetMode ( stateContainer , modeOn ) ; if ( ( getCurrentSettingMode ( ) ) != modeOn ) { java.lang.String message = stateContainer.getString ( R.string.snsr_setting_mode_not_set , getSettingName ( stateContainer ) , modeOn ) ; throw new java.lang.IllegalStateException ( message ) ; } }
Source:
public int compare ( java.lang.String a , java.lang.String b ) { if ( a == b ) { return 0 ; } if ( a == null ) { return - 1 ; } if ( b == null ) { return 1 ; } if ( m_ignoreCase_ ) { return compareCaseInsensitive ( a , b ) ; } return compareCaseSensitive ( a , b ) ; }

Target:
public int compare ( java.lang.String a , java.lang.String b ) { if ( android.icu.impl.Utility.sameObjects ( a , b ) ) { return 0 ; } if ( a == null ) { return - 1 ; } if ( b == null ) { return 1 ; } if ( m_ignoreCase_ ) { return compareCaseInsensitive ( a , b ) ; } return compareCaseSensitive ( a , b ) ; }
Source:
public void reportLocation ( android.location.Location location , boolean passive ) { if ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.INSTALL_LOCATION_PROVIDER ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires INSTALL_LOCATION_PROVIDER permission" ) ; } mLocationHandler.removeMessages ( com.android.server.LocationManagerService.MESSAGE_LOCATION_CHANGED , location ) ; android.os.Message m = android.os.Message.obtain ( mLocationHandler , com.android.server.LocationManagerService.MESSAGE_LOCATION_CHANGED , location ) ; m.arg1 = ( passive ) ? 1 : 0 ; mLocationHandler.sendMessageAtFrontOfQueue ( m ) ; }

Target:
private void checkCallerIsProvider ( ) { if ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.INSTALL_LOCATION_PROVIDER ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return ; } int uid = android.os.Binder.getCallingUid ( ) ; if ( ( mGeocodeProvider ) != null ) { if ( doesPackageHaveUid ( uid , mGeocodeProvider.getConnectedPackageName ( ) ) ) return ; } for ( com.android.server.location.LocationProviderProxy proxy : mProxyProviders ) { if ( doesPackageHaveUid ( uid , proxy.getConnectedPackageName ( ) ) ) return ; } throw new java.lang.SecurityException ( ( "need INSTALL_LOCATION_PROVIDER permission, " + "or UID of a currently bound location provider" ) ) ; }
Source:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; final com.android.settings.SettingsActivity activity = ( ( com.android.settings.SettingsActivity ) ( getActivity ( ) ) ) ; mUm = ( ( android.os.UserManager ) ( activity.getSystemService ( Context.USER_SERVICE ) ) ) ; mSwitchBar = activity.getSwitchBar ( ) ; mSwitch = mSwitchBar.getSwitch ( ) ; mSwitchBar.show ( ) ; }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; final com.android.settings.SettingsActivity activity = ( ( com.android.settings.SettingsActivity ) ( getActivity ( ) ) ) ; mUm = ( ( android.os.UserManager ) ( activity.getSystemService ( Context.USER_SERVICE ) ) ) ; mSwitchBar = activity.getSwitchBar ( ) ; mSwitch = mSwitchBar.getSwitch ( ) ; mSwitchBar.show ( ) ; setHasOptionsMenu ( true ) ; }
Source:
private static android.net.wifi.nan.WifiNanCharacteristics getCharacteristics ( ) { com.android.server.wifi.nan.WifiNanNative.Capabilities cap = new com.android.server.wifi.nan.WifiNanNative.Capabilities ( ) ; cap.maxConcurrentNanClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ; cap.maxMatchFilterLen = com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ; cap.maxVsaDataLen = 255 ; cap.maxMeshDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap.toPublicCharacteristics ( ) ; }

Target:
private static android.net.wifi.aware.WifiAwareCharacteristics getCharacteristics ( ) { com.android.server.wifi.aware.WifiAwareNative.Capabilities cap = new com.android.server.wifi.aware.WifiAwareNative.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxMatchFilterLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ; cap.maxVsaDataLen = 255 ; cap.maxMeshDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap.toPublicCharacteristics ( ) ; }
Source:
private static com.android.jack.test.toolchain.JackBasedToolchain getIncrementalToolchain ( ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 3 ) ; excludeList.add ( com.android.jack.test.toolchain.JillBasedToolchain.class ) ; excludeList.add ( com.android.jack.test.toolchain.IncrementalToolchain.class ) ; excludeList.add ( com.android.jack.test.toolchain.TwoStepsToolchain.class ) ; com.android.jack.test.toolchain.JackBasedToolchain jackToolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class , excludeList ) ; return jackToolchain ; }

Target:
private static com.android.jack.test.toolchain.JackBasedToolchain getIncrementalToolchain ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.jack.test.toolchain.JackBasedToolchain > baseToolchain ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 3 ) ; excludeList.add ( com.android.jack.test.toolchain.JillBasedToolchain.class ) ; excludeList.add ( com.android.jack.test.toolchain.IncrementalToolchain.class ) ; excludeList.add ( com.android.jack.test.toolchain.TwoStepsToolchain.class ) ; com.android.jack.test.toolchain.JackBasedToolchain jackToolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( baseToolchain , excludeList ) ; return jackToolchain ; }
Source:
protected void missingMember ( @ javax.annotation.Nonnull java.lang.String memberName , @ javax.annotation.Nonnull java.lang.String enclosingTypeName , boolean missingInReference ) { differenceFound = true ; java.lang.String location = ( missingInReference ) ? "reference" : "candidate" ; logger.log ( java.util.logging.Level.SEVERE , "Member {0} in {1} not found in {2}" , new java.lang.Object [ ] { memberName , enclosingTypeName , location } ) ; }

Target:
protected void missingMember ( @ javax.annotation.Nonnull java.lang.String memberName , @ javax.annotation.Nonnull java.lang.String enclosingTypeName , boolean missingInReference ) { differenceFound = true ; java.lang.String location = ( missingInReference ) ? "reference" : "candidate" ; com.android.jack.shrob.AbstractListingComparator.logger.log ( java.util.logging.Level.SEVERE , "Member {0} in {1} not found in {2}" , new java.lang.Object [ ] { memberName , enclosingTypeName , location } ) ; }
Source:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode clickedNode = null ; synchronized ( this ) { if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Point pt = transformPoint ( e.x , e.y ) ; clickedNode = tree.getSelected ( pt.x , pt.y ) ; } } if ( clickedNode != null ) { com.android.hierarchyviewerlib.ComponentRegistry.getDirector ( ) . showCapture ( getShell ( ) , clickedNode.viewNode ) ; } }

Target:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode clickedNode = null ; synchronized ( this ) { if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Point pt = transformPoint ( e.x , e.y ) ; clickedNode = tree.getSelected ( pt.x , pt.y ) ; } } if ( clickedNode != null ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . showCapture ( getShell ( ) , clickedNode.viewNode ) ; } }