auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public int executeActivity ( android.content.Intent intent ) throws java.lang.InterruptedException { android.hardware.cts.helpers.ActivityResultMultiplexedLatch.Latch latch = mActivityResultMultiplexedLatch.bindThread ( ) ; startActivityForResult ( intent , latch.getRequestCode ( ) ) ; return latch.await ( ) ; }

Target:
public int executeActivity ( android.content.Intent intent ) throws java.lang.InterruptedException { android.hardware.cts.helpers.ActivityResultMultiplexedLatch.Latch latch = mActivityResultMultiplexedLatch.bindThread ( ) ; try { startActivityForResult ( intent , latch.getRequestCode ( ) ) ; } catch ( android.content.ActivityNotFoundException e ) { return RESULT_CANCELED ; } return latch.await ( ) ; }
Source:
public void rilConnected ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RIL_CONNECTED ) ; mRil.setRadioPower ( false , null ) ; mRil.setCdmaSubscriptionSource ( mRil.mCdmaSubscription , null ) ; mRil.setCellInfoListRate ( ) ; mRil.notifyRegistrantsRilConnectionChanged ( 15 ) ; }

Target:
public void rilConnected ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RIL_CONNECTED ) ; mRil.setRadioPower ( false , null ) ; mRil.setCdmaSubscriptionSource ( mRil.mCdmaSubscription , null ) ; mRil.setCellInfoListRate ( ) ; mRil.notifyRegistrantsRilConnected ( ) ; }
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
public int getSubscriptionCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.IllegalStateException ( "Telephony service unavailable" ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }
Source:
public void testGetAndSetDefaultUncaughtExceptionHandler ( ) { try { java.lang.Thread current = java.lang.Thread.currentThread ( ) ; java.lang.ThreadGroup tg = current.getThreadGroup ( ) ; jsr166.ThreadTest.MyHandler eh = new jsr166.ThreadTest.MyHandler ( ) ; java.lang.Thread.setDefaultUncaughtExceptionHandler ( eh ) ; assertEquals ( eh , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; java.lang.Thread.setDefaultUncaughtExceptionHandler ( null ) ; } catch ( java.lang.SecurityException ok ) { } assertEquals ( null , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; }

Target:
public void testGetAndSetDefaultUncaughtExceptionHandler ( ) { assertEquals ( null , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; java.lang.Thread.UncaughtExceptionHandler defaultHandler = java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ; jsr166.ThreadTest.MyHandler eh = new jsr166.ThreadTest.MyHandler ( ) ; try { java.lang.Thread.setDefaultUncaughtExceptionHandler ( eh ) ; try { assertSame ( eh , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; } finally { java.lang.Thread.setDefaultUncaughtExceptionHandler ( defaultHandler ) ; } } catch ( java.lang.SecurityException ok ) { assertNotNull ( java.lang.System.getSecurityManager ( ) ) ; } assertSame ( defaultHandler , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; }
Source:
public java.util.List < java.lang.Integer > getInts ( int tag ) { switch ( android.security.keymaster.KeymasterDefs.getTagType ( tag ) ) { case KeymasterDefs.KM_INT_REP : case KeymasterDefs.KM_ENUM_REP : break ; default : throw new java.lang.IllegalArgumentException ( ( "Tag is not a repeating type: " + tag ) ) ; } java.util.List < java.lang.Integer > values = new java.util.ArrayList < java.lang.Integer > ( ) ; for ( android.security.keymaster.KeymasterArgument arg : mArguments ) { if ( ( arg.tag ) == tag ) { values.add ( ( ( android.security.keymaster.KeymasterIntArgument ) ( arg ) ) . value ) ; } } return values ; }

Target:
public java.util.List < java.lang.Integer > getInts ( int tag ) { switch ( android.security.keymaster.KeymasterDefs.getTagType ( tag ) ) { case KeymasterDefs.KM_UINT_REP : case KeymasterDefs.KM_ENUM_REP : break ; default : throw new java.lang.IllegalArgumentException ( ( "Tag is not a repeating type: " + tag ) ) ; } java.util.List < java.lang.Integer > values = new java.util.ArrayList < java.lang.Integer > ( ) ; for ( android.security.keymaster.KeymasterArgument arg : mArguments ) { if ( ( arg.tag ) == tag ) { values.add ( ( ( android.security.keymaster.KeymasterIntArgument ) ( arg ) ) . value ) ; } } return values ; }
Source:
private void trackingEnabled_packageUpdate_responseWithoutTokenCausesStorageReset ( boolean success ) throws java.lang.Exception { configureTrackingEnabled ( ) ; configureReliabilityConfigSettingsOk ( ) ; configureValidApplications ( ) ; mPackageTracker.start ( ) ; checkIntentHelperInitializedAndReliabilityTrackingEnabled ( ) ; checkPackageStorageStatusIsInitialOrReset ( ) ; com.android.server.timezone.PackageVersions packageVersions = new com.android.server.timezone.PackageVersions ( 2 , 3 ) ; simulatePackageInstallation ( packageVersions ) ; checkUpdateCheckTriggered ( packageVersions ) ; mPackageTracker.recordCheckResult ( null , success ) ; mFakeIntentHelper.assertReliabilityTriggeringEnabled ( ) ; checkPackageStorageStatusIsInitialOrReset ( ) ; }

Target:
private void trackingEnabled_packageUpdate_responseWithoutTokenCausesStorageReset ( boolean success ) throws java.lang.Exception { configureTrackingEnabled ( ) ; configureReliabilityConfigSettingsOk ( ) ; configureValidApplications ( ) ; mPackageTracker.start ( ) ; checkIntentHelperInitializedAndReliabilityTrackingEnabled ( ) ; checkPackageStorageStatusIsInitialOrReset ( ) ; com.android.server.timezone.PackageVersions packageVersions = new com.android.server.timezone.PackageVersions ( 2 , 3 ) ; simulatePackageInstallation ( packageVersions ) ; checkUpdateCheckTriggered ( packageVersions ) ; mPackageTracker.recordCheckResult ( null , success ) ; mFakeIntentHelper.assertReliabilityTriggerScheduled ( ) ; checkPackageStorageStatusIsInitialOrReset ( ) ; }
Source:
public void test_getInstanceLjava_lang_String02 ( ) { try { javax.net.ssl.KeyManagerFactory.getInstance ( null ) ; fail ( "NoSuchAlgorithmException or NullPointerException should be thrown (algorithm is null" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { } catch ( java.lang.NullPointerException e ) { } for ( int i = 0 ; i < ( tests.api.javax.net.ssl.KeyManagerFactory1Test.invalidValues.length ) ; i ++ ) { try { javax.net.ssl.KeyManagerFactory.getInstance ( tests.api.javax.net.ssl.KeyManagerFactory1Test.invalidValues [ i ] ) ; fail ( "NoSuchAlgorithmException was not thrown as expected for algorithm: " . concat ( tests.api.javax.net.ssl.KeyManagerFactory1Test.invalidValues [ i ] ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { } } }

Target:
public void test_getInstanceLjava_lang_String02 ( ) { try { javax.net.ssl.KeyManagerFactory.getInstance ( null ) ; fail ( "NoSuchAlgorithmException or NullPointerException should be thrown (algorithm is null" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { } catch ( java.lang.NullPointerException e ) { } for ( int i = 0 ; i < ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.invalidValues.length ) ; i ++ ) { try { javax.net.ssl.KeyManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.invalidValues [ i ] ) ; fail ( "NoSuchAlgorithmException was not thrown as expected for algorithm: " . concat ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.invalidValues [ i ] ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { } } }
Source:
public void setVisible ( boolean visible ) { if ( visible && ( ! ( mShown ) ) ) { onEnter ( ) ; } super . setVisible ( visible ) ; if ( visible ) { mShown = true ; try { mIgnore = true ; mCreateToggle.setSelection ( mValues.createActivity ) ; } finally { mIgnore = false ; } } validatePage ( ) ; }

Target:
public void setVisible ( boolean visible ) { if ( visible && ( ! ( mShown ) ) ) { onEnter ( ) ; } super . setVisible ( visible ) ; if ( visible ) { mShown = true ; if ( mAskCreate ) { try { mIgnore = true ; mCreateToggle.setSelection ( mValues.createActivity ) ; } finally { mIgnore = false ; } } } validatePage ( ) ; }
Source:
private void preverify ( ) { if ( configuration.verbose ) { java.lang.System.out.println ( "Preverifying..." ) ; } new proguard.Preverifier ( configuration ) . execute ( programClassPool ) ; }

Target:
private void obfuscate ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Obfuscating..." ) ; if ( ( configuration.applyMapping ) != null ) { java.lang.System.out.println ( ( ( "Applying mapping [" + ( fileName ( configuration.applyMapping ) ) ) + "]" ) ) ; } if ( ( configuration.printMapping ) != null ) { java.lang.System.out.println ( ( ( "Printing mapping to [" + ( fileName ( configuration.printMapping ) ) ) + "]..." ) ) ; } } new proguard.obfuscate.Obfuscator ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }
Source:
public void onRemovingChildren ( @ com.android.annotations.NonNull java.util.List < com.android.ide.common.api.INode > deleted , @ com.android.annotations.NonNull com.android.ide.common.api.INode parent , boolean moved ) { super . onRemovingChildren ( deleted , parent , moved ) ; com.android.ide.common.layout.grid.GridModel grid = com.android.ide.common.layout.grid.GridModel.get ( mRulesEngine , parent , null ) ; grid.onDeleted ( deleted ) ; }

Target:
public void onRemovingChildren ( @ com.android.annotations.NonNull java.util.List < com.android.ide.common.api.INode > deleted , @ com.android.annotations.NonNull com.android.ide.common.api.INode parent , boolean moved ) { super . onRemovingChildren ( deleted , parent , moved ) ; if ( ! ( com.android.ide.common.layout.GridLayoutRule.sGridMode ) ) { com.android.ide.common.layout.grid.GridModel grid = com.android.ide.common.layout.grid.GridModel.get ( mRulesEngine , parent , null ) ; grid.onDeleted ( deleted ) ; } }
Source:
private synchronized int getNextMergerIdx ( int oldMergerIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewMerger ( ) ) ; return getCurrentMergerIdx ( ) ; }

Target:
private com.android.jack.tools.merger.JackMerger getNewJackMerger ( int firstTypeIndex ) { if ( deterMultidex ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) , firstTypeIndex ) ; } else { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ; } }
Source:
public static < K extends java.lang.Comparable < ? super K > , V > com.google.common.collect.ImmutableSortedMap < K , V > of ( K k1 , V v1 , K k2 , V v2 , K k3 , V v3 , K k4 , V v4 ) { return new com.google.common.collect.ImmutableSortedMap.Builder < K , V > ( com.google.common.collect.Ordering.natural ( ) ) . put ( k1 , v1 ) . put ( k2 , v2 ) . put ( k3 , v3 ) . put ( k4 , v4 ) . build ( ) ; }

Target:
public static < K extends java.lang.Comparable < ? super K > , V > com.google.common.collect.ImmutableSortedMap < K , V > of ( K k1 , V v1 , K k2 , V v2 , K k3 , V v3 , K k4 , V v4 ) { return com.google.common.collect.ImmutableSortedMap.fromEntries ( com.google.common.collect.Ordering.natural ( ) , false , 4 , com.google.common.collect.ImmutableMap.entryOf ( k1 , v1 ) , com.google.common.collect.ImmutableMap.entryOf ( k2 , v2 ) , com.google.common.collect.ImmutableMap.entryOf ( k3 , v3 ) , com.google.common.collect.ImmutableMap.entryOf ( k4 , v4 ) ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.ScreenRatio size = com.android.resources.ScreenRatio.getEnum ( value ) ; if ( size != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenRatioQualifier ( size ) ; config.setScreenRatioQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.ScreenRatio size = com.android.resources.ScreenRatio.getEnum ( value ) ; if ( size != null ) { com.android.ide.common.resources.configuration.ScreenRatioQualifier qualifier = new com.android.ide.common.resources.configuration.ScreenRatioQualifier ( size ) ; config.setScreenRatioQualifier ( qualifier ) ; return true ; } return false ; }
Source:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ) { com.android.ide.eclipse.adt.internal.resources.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getXmlString ( mResourceType , item , mSystemButton.getSelection ( ) ) ; } }

Target:
protected void computeResult ( ) { java.lang.Object [ ] elements = getSelectedElements ( ) ; if ( ( ( elements.length ) == 1 ) && ( ( elements [ 0 ] ) instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( elements [ 0 ] ) ) ; mCurrentResource = com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getXmlString ( mResourceType , item , mSystemButton.getSelection ( ) ) ; } }
Source:
public boolean startFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-REMOVE 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }

Target:
public boolean setConcurrencyPriority ( boolean isStaHigherPriority ) { return mSupplicantStaIfaceHal.setConcurrencyPriority ( isStaHigherPriority ) ; }
Source:
public void testGetNetworkOperator ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; android.telecom.PhoneAccount fakePhoneAccount = makeQuickAccount ( "id0" , com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_ACCOUNT_INDEX ) ; org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountOfCurrentUser ( org.mockito.Matchers.any ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( fakePhoneAccount ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; assertEquals ( networkOperator , "label0" ) ; }

Target:
public void testGetNetworkOperator ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; android.telecom.PhoneAccount fakePhoneAccount = makeQuickAccount ( "id0" , com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_ACCOUNT_INDEX ) ; org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountOfCurrentUser ( org.mockito.ArgumentMatchers.nullable ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( fakePhoneAccount ) ; java.lang.String networkOperator = mBluetoothPhoneService.mBinder.getNetworkOperator ( ) ; assertEquals ( networkOperator , "label0" ) ; }
Source:
private void setState ( boolean enabled , boolean resetSession , boolean resetClient ) { synchronized ( mLock ) { mEnabled = enabled ; if ( ( ! ( mEnabled ) ) || resetSession ) { resetSessionLocked ( ) ; } if ( resetClient ) { mServiceClient = null ; } } }

Target:
private void setState ( boolean enabled , boolean resetSession , boolean resetClient ) { synchronized ( mLock ) { mEnabled = enabled ; if ( ( ! ( mEnabled ) ) || resetSession ) { resetSessionLocked ( ) ; } if ( resetClient ) { mServiceClient = null ; if ( ( mServiceClientCleaner ) != null ) { mServiceClientCleaner.clean ( ) ; mServiceClientCleaner = null ; } } } }
Source:
public static void dispatchPlaybackStateChanged ( int playbackState ) { switch ( playbackState ) { case android.media.session.PlaybackState.STATE_PLAYING : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_PLAY_RECEIVED , new android.os.Bundle ( ) ) ; break ; case android.media.session.PlaybackState.STATE_PAUSED : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_PAUSE_RECEIVED , new android.os.Bundle ( ) ) ; break ; case android.media.session.PlaybackState.STATE_SKIPPING_TO_NEXT : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_SKIP_NEXT_RECEIVED , new android.os.Bundle ( ) ) ; break ; case android.media.session.PlaybackState.STATE_SKIPPING_TO_PREVIOUS : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_SKIP_PREV_RECEIVED , new android.os.Bundle ( ) ) ; break ; default : break ; } }

Target:
public static void dispatchPlaybackStateChanged ( int playbackState ) { android.os.Bundle news = new android.os.Bundle ( ) ; switch ( playbackState ) { case android.media.session.PlaybackState.STATE_PLAYING : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_PLAY_RECEIVED , news ) ; break ; case android.media.session.PlaybackState.STATE_PAUSED : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_PAUSE_RECEIVED , news ) ; break ; case android.media.session.PlaybackState.STATE_SKIPPING_TO_NEXT : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_SKIP_NEXT_RECEIVED , news ) ; break ; case android.media.session.PlaybackState.STATE_SKIPPING_TO_PREVIOUS : com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.mEventFacade.postEvent ( com.googlecode.android_scripting.facade.bluetooth.BluetoothMediaFacade.EVENT_SKIP_PREV_RECEIVED , news ) ; break ; default : break ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "BuildType{" + "name='" ) + ( mName ) ) + '\'' ) + ", debuggable=" ) + ( mDebuggable ) ) + ", debugJniBuild=" ) + ( mDebugJniBuild ) ) + ", debugSigned=" ) + ( mDebugSigned ) ) + ", packageNameSuffix='" ) + ( mPackageNameSuffix ) ) + '\'' ) + ", runProguard=" ) + ( mRunProguard ) ) + ", zipAlign=" ) + ( mZipAlign ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "debuggable" , mDebuggable ) . add ( "debugJniBuild" , mDebugJniBuild ) . add ( "debugSigned" , mDebugSigned ) . add ( "packageNameSuffix" , mPackageNameSuffix ) . add ( "runProguard" , mRunProguard ) . add ( "zipAlign" , mZipAlign ) . omitNullValues ( ) . toString ( ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int literal = ( ( com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ) << 28 ) > > 28 ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int literal = ( ( com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ) << 28 ) > > 28 ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , literal , a ) ; }
Source:
public android.accounts.Account [ ] getAccountsByTypeAsUser ( java.lang.String type , android.os.UserHandle userHandle ) { try { return mService.getAccountsAsUser ( type , userHandle.getIdentifier ( ) ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public android.accounts.Account [ ] getAccountsByTypeAsUser ( java.lang.String type , android.os.UserHandle userHandle ) { try { return mService.getAccountsAsUser ( type , userHandle.getIdentifier ( ) , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public boolean setNetworkSelectionModeManual ( int subId , com.android.internal.telephony.OperatorInfo operator , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.setNetworkSelectionModeManual ( subId , operator , persistSelection ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual NPE" , ex ) ; } return false ; }

Target:
private static boolean isKeyEnabled ( int keyAvailability , int keyType ) { int returnValue = ( keyAvailability > > ( keyType - 1 ) ) & 1 ; return returnValue == 1 ? true : false ; }
Source:
public java.util.Iterator < com.android.vts.util.StatSummary > iterator ( ) { java.util.Iterator < com.android.vts.util.StatSummary > it = new java.util.Iterator < com.android.vts.util.StatSummary > ( ) { private int currentIndex = 0 ; @ java.lang.Override public boolean hasNext ( ) { return ( ( labels ) != null ) && ( ( currentIndex ) < ( labels.size ( ) ) ) ; } @ java.lang.Override public com.android.vts.util.StatSummary next ( ) { java.lang.String label = labels.get ( ( ( currentIndex ) ++ ) ) ; return statSummaries.get ( labelIndices.get ( label ) ) ; } } ; return it ; }

Target:
public void remove ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodId ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( p , false ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( call.getType ( ) , false ) ) ; return sb.toString ( ) ; }

Target:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodId ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( p ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( call.getType ( ) ) ) ; return sb.toString ( ) ; }
Source:
void maybeStartFilter ( ) { mHardwareAddress = android.net.apf.ApfTest.TestApfFilter.MOCK_MAC_ADDR ; installNewProgramLocked ( ) ; java.io.FileDescriptor readSocket = new java.io.FileDescriptor ( ) ; mWriteSocket = new java.io.FileDescriptor ( ) ; try { android.system.Os.socketpair ( android.net.apf.AF_UNIX , android.net.apf.SOCK_STREAM , 0 , mWriteSocket , readSocket ) ; } catch ( android.system.ErrnoException e ) { fail ( ) ; return ; } mReceiveThread = new android.net.apf.ReceiveThread ( readSocket ) ; mReceiveThread.start ( ) ; }

Target:
void maybeStartFilter ( ) { mHardwareAddress = android.net.apf.ApfTest.TestApfFilter.MOCK_MAC_ADDR ; installNewProgramLocked ( ) ; java.io.FileDescriptor readSocket = new java.io.FileDescriptor ( ) ; mWriteSocket = new java.io.FileDescriptor ( ) ; try { android.system.Os.socketpair ( android.net.apf.AF_UNIX , android.net.apf.SOCK_STREAM , 0 , mWriteSocket , readSocket ) ; } catch ( android.system.ErrnoException e ) { org.junit.Assert.fail ( ) ; return ; } mReceiveThread = new android.net.apf.ReceiveThread ( readSocket ) ; mReceiveThread.start ( ) ; }
Source:
public void test_socket_getLocalPort ( ) throws java.io.IOException { serverChannel.bind ( null ) ; clientChannel.connect ( serverChannel.getLocalAddress ( ) ) ; java.nio.channels.SocketChannel myChannel = serverChannel.accept ( ) ; int port = myChannel.socket ( ) . getLocalPort ( ) ; assertEquals ( serverChannel.socket ( ) . getLocalPort ( ) , port ) ; myChannel.close ( ) ; clientChannel.close ( ) ; serverChannel.close ( ) ; }

Target:
public void test_socket_getLocalPort ( ) throws java.io.IOException { serverChannel.socket ( ) . bind ( null ) ; clientChannel.connect ( serverChannel.socket ( ) . getLocalSocketAddress ( ) ) ; java.nio.channels.SocketChannel myChannel = serverChannel.accept ( ) ; int port = myChannel.socket ( ) . getLocalPort ( ) ; assertEquals ( serverChannel.socket ( ) . getLocalPort ( ) , port ) ; myChannel.close ( ) ; clientChannel.close ( ) ; serverChannel.close ( ) ; }
Source:
public void afterCheckFile ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( ( mSeenUsesSdk ) == 0 ) && ( context.isEnabled ( com.android.tools.lint.checks.ManifestOrderDetector.USES_SDK ) ) ) { context.report ( com.android.tools.lint.checks.ManifestOrderDetector.USES_SDK , com.android.tools.lint.detector.api.Location.create ( context.file ) , ( "Manifest should specify a minimum API level with " + ( "<uses-sdk android:minSdkVersion=\"?\" />; if it really supports " + "all versions of Android set it to 1." ) ) , null ) ; } }

Target:
public void afterCheckFile ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { com.android.tools.lint.detector.api.XmlContext xmlContext = ( ( com.android.tools.lint.detector.api.XmlContext ) ( context ) ) ; org.w3c.dom.Element element = xmlContext.document.getDocumentElement ( ) ; if ( element != null ) { checkDocumentElement ( xmlContext , element ) ; } if ( ( ( mSeenUsesSdk ) == 0 ) && ( context.isEnabled ( com.android.tools.lint.checks.ManifestOrderDetector.USES_SDK ) ) ) { context.report ( com.android.tools.lint.checks.ManifestOrderDetector.USES_SDK , com.android.tools.lint.detector.api.Location.create ( context.file ) , ( "Manifest should specify a minimum API level with " + ( "<uses-sdk android:minSdkVersion=\"?\" />; if it really supports " + "all versions of Android set it to 1." ) ) , null ) ; } }
Source:
public boolean startPktFateMonitoring ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } }

Target:
public boolean startPktFateMonitoring ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.startPktFateMonitoring ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } } }
Source:
private void closeSocket ( ) { try { if ( ( mSocket ) != null ) { mSocket.close ( ) ; mSocket = null ; } } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Error when closing socket" , e ) ; mSocket = null ; } }

Target:
private void closeSocket ( ) { try { if ( ( mSocket ) != null ) { if ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , ( "Closing socket" + ( mSocket ) ) ) ; mSocket.close ( ) ; mSocket = null ; } } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Error when closing socket" , e ) ; mSocket = null ; } }
Source:
public static int FloatGtMatCond_IntVarVar ( float a , float b , int x , int y ) { int result = ( a < b ) ? x : y ; return result + ( a < b ? 0 : 1 ) ; }

Target:
public static int FloatGtMatCond_IntVarVar ( float a , float b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a < b ) ? x : y ; return result + ( a < b ? 0 : 1 ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( "LibraryDependencyImpl{" + "dependencies=" ) + ( dependencies ) ) + ", variantName='" ) + ( variantName ) ) + '\'' ) + ", requestedCoordinates=" ) + ( requestedCoordinates ) ) + ", resolvedCoordinates=" ) + ( resolvedCoordinates ) ) + ", bundle= " ) + ( super . toString ( ) ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "dependencies" , dependencies ) . add ( "variantName" , variantName ) . add ( "requestedCoordinates" , requestedCoordinates ) . add ( "resolvedCoordinates" , resolvedCoordinates ) . add ( "super" , super . toString ( ) ) . toString ( ) ; }
Source:
public void test ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/sample_icon.gif: Warning: Using the .gif format for bitmaps is discouraged [GifUsage]\n" + ( ( ( ( ( ( "res/drawable/ic_launcher.png: Warning: The ic_launcher.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable [IconDuplicatesConfig]\n" + " res/drawable-mdpi/ic_launcher.png: <No location-specific message\n" ) + "res/drawable/ic_launcher.png: Warning: Found bitmap drawable res/drawable/ic_launcher.png in densityless folder [IconLocation]\n" ) + "res/drawable-hdpi: Warning: Missing the following drawables in drawable-hdpi: sample_icon.gif (found in drawable-mdpi) [IconDensities]\n" ) + "res: Warning: Missing density variation folders in res: drawable-xhdpi, drawable-xxhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 5 warnings\n" ) + "" ) ) , lintProject ( "apicheck/minsdk4.xml=>AndroidManifest.xml" , "res/drawable/ic_launcher.png" , "res/drawable/ic_launcher.png=>res/drawable-mdpi/ic_launcher.png" , "res/drawable-mdpi/sample_icon.gif" , "res/drawable-mdpi/sample_icon.gif=>res/drawable-hdpi/.svn" , "res/drawable-hdpi/ic_launcher.png" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/sample_icon.gif: Warning: Using the .gif format for bitmaps is discouraged [GifUsage]\n" + ( ( ( ( ( ( "res/drawable/ic_launcher.png: Warning: The ic_launcher.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable [IconDuplicatesConfig]\n" + " res/drawable-mdpi/ic_launcher.png: <No location-specific message\n" ) + "res/drawable/ic_launcher.png: Warning: Found bitmap drawable res/drawable/ic_launcher.png in densityless folder [IconLocation]\n" ) + "res/drawable-hdpi: Warning: Missing the following drawables in drawable-hdpi: sample_icon.gif (found in drawable-mdpi) [IconDensities]\n" ) + "res: Warning: Missing density variation folders in res: drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 5 warnings\n" ) + "" ) ) , lintProject ( "apicheck/minsdk4.xml=>AndroidManifest.xml" , "res/drawable/ic_launcher.png" , "res/drawable/ic_launcher.png=>res/drawable-mdpi/ic_launcher.png" , "res/drawable-mdpi/sample_icon.gif" , "res/drawable-mdpi/sample_icon.gif=>res/drawable-hdpi/.svn" , "res/drawable-hdpi/ic_launcher.png" ) ) ; }
Source:
public com.android.ide.common.resources.ResourceFolder processFolder ( @ com.android.annotations.NonNull com.android.io.IAbstractFolder folder ) { java.lang.String [ ] folderSegments = folder.getName ( ) . split ( SdkConstants.RES_QUALIFIER_SEP ) ; com.android.resources.ResourceFolderType type = com.android.resources.ResourceFolderType.getTypeByName ( folderSegments [ 0 ] ) ; if ( type != null ) { com.android.ide.common.resources.configuration.FolderConfiguration config = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( folderSegments ) ; if ( config != null ) { return add ( type , config , folder ) ; } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFolder processFolder ( @ com.android.annotations.NonNull com.android.io.IAbstractFolder folder ) { ensureInitialized ( ) ; java.lang.String [ ] folderSegments = folder.getName ( ) . split ( SdkConstants.RES_QUALIFIER_SEP ) ; com.android.resources.ResourceFolderType type = com.android.resources.ResourceFolderType.getTypeByName ( folderSegments [ 0 ] ) ; if ( type != null ) { com.android.ide.common.resources.configuration.FolderConfiguration config = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( folderSegments ) ; if ( config != null ) { return add ( type , config , folder ) ; } } return null ; }
Source:
public boolean isConcurrentVoiceAndDataAllowed ( ) { if ( mPhone.isPhoneTypeGsm ( ) ) { return ( mSS.getRilVoiceRadioTechnology ( ) ) >= ( android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_UMTS ) ; } else if ( mPhone.isPhoneTypeCdma ( ) ) { return false ; } else { return ( mSS.getCssIndicator ( ) ) == 1 ; } }

Target:
public boolean isConcurrentVoiceAndDataAllowed ( ) { if ( ( mSS.getCssIndicator ( ) ) == 1 ) { return true ; } else if ( mPhone.isPhoneTypeGsm ( ) ) { return ( mSS.getRilDataRadioTechnology ( ) ) >= ( android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_UMTS ) ; } else { return false ; } }
Source:
public void testCallbackFiltering2 ( ) throws java.lang.Exception { android.telephony.embms.cts.MbmsDownloadStateCallbackTest.TestDSCallback callback = new android.telephony.embms.cts.MbmsDownloadStateCallbackTest.TestDSCallback ( android.telephony.mbms.DownloadStateCallback.STATE_UPDATES ) ; android.telephony.mbms.DownloadRequest request = android.telephony.embms.cts.DOWNLOAD_REQUEST_TEMPLATE.build ( ) ; mDownloadSession.registerStateCallback ( request , callback , mCallbackHandler ) ; mMiddlewareControl.fireOnStateUpdated ( null , null , 0 ) ; assertNotNull ( callback.waitOnStateUpdated ( android.telephony.embms.cts.MbmsDownloadStateCallbackTest.SHORT_TIMEOUT ) ) ; mMiddlewareControl.fireOnProgressUpdated ( null , null , 0 , 0 , 0 , 0 ) ; assertNull ( callback.waitOnProgressUpdated ( android.telephony.embms.cts.MbmsDownloadStateCallbackTest.SHORT_TIMEOUT ) ) ; }

Target:
public void testCallbackFiltering2 ( ) throws java.lang.Exception { android.telephony.embms.cts.MbmsDownloadStateCallbackTest.TestDSCallback callback = new android.telephony.embms.cts.MbmsDownloadStateCallbackTest.TestDSCallback ( android.telephony.mbms.DownloadStateCallback.STATE_UPDATES ) ; android.telephony.mbms.DownloadRequest request = downloadRequestTemplate.build ( ) ; mDownloadSession.registerStateCallback ( request , mCallbackExecutor , callback ) ; mMiddlewareControl.fireOnStateUpdated ( null , null , 0 ) ; assertNotNull ( callback.waitOnStateUpdated ( android.telephony.embms.cts.MbmsDownloadStateCallbackTest.SHORT_TIMEOUT ) ) ; mMiddlewareControl.fireOnProgressUpdated ( null , null , 0 , 0 , 0 , 0 ) ; assertNull ( callback.waitOnProgressUpdated ( android.telephony.embms.cts.MbmsDownloadStateCallbackTest.SHORT_TIMEOUT ) ) ; }
Source:
public boolean hasCategory ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.config.category.Category > target ) { if ( target == ( com.android.sched.util.config.category.Category.class ) ) { return true ; } for ( java.lang.Class < ? extends com.android.sched.util.config.category.Category > category : categories ) { if ( target.isAssignableFrom ( category ) ) { return true ; } } return false ; }

Target:
public boolean hasCategory ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.config.category.Category > target ) { if ( target == ( com.android.sched.util.config.category.Category.class ) ) { return true ; } for ( java.lang.Class < ? extends com.android.sched.util.config.category.Category > category : categories.keySet ( ) ) { if ( target.isAssignableFrom ( category ) ) { return true ; } } return false ; }
Source:
public static void maybeUnwrapIOException ( java.lang.RuntimeException e ) throws java.io.IOException { if ( ( e instanceof java.lang.IllegalStateException ) && ( e.getMessage ( ) . startsWith ( android.util.ExceptionUtils.PREFIX_IO ) ) ) { throw new java.io.IOException ( e.getMessage ( ) . substring ( android.util.ExceptionUtils.PREFIX_IO.length ( ) ) ) ; } }

Target:
public static void maybeUnwrapIOException ( java.lang.RuntimeException e ) throws java.io.IOException { if ( e instanceof android.os.ParcelableException ) { ( ( android.os.ParcelableException ) ( e ) ) . maybeRethrow ( java.io.IOException.class ) ; } }
Source:
public final byte [ ] update ( byte [ ] input ) { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( input.length ) == 0 ) { return null ; } return spiImpl.engineUpdate ( input , 0 , input.length ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return getSpi ( ) . engineDoFinal ( input , 0 , input.length ) ; }
Source:
protected void cleanup ( ) { if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mPanDevices ) != null ) { java.util.List < android.bluetooth.BluetoothDevice > devList = getConnectedDevices ( ) ; for ( android.bluetooth.BluetoothDevice dev : devList ) { handlePanDeviceStateChange ( dev , mPanIfName , BluetoothProfile.STATE_DISCONNECTED , BluetoothPan.LOCAL_PANU_ROLE , BluetoothPan.REMOTE_NAP_ROLE ) ; } mPanDevices.clear ( ) ; } }

Target:
protected void cleanup ( ) { com.android.bluetooth.pan.PanService.setPanService ( null ) ; if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mPanDevices ) != null ) { java.util.List < android.bluetooth.BluetoothDevice > devList = getConnectedDevices ( ) ; for ( android.bluetooth.BluetoothDevice dev : devList ) { handlePanDeviceStateChange ( dev , mPanIfName , BluetoothProfile.STATE_DISCONNECTED , BluetoothPan.LOCAL_PANU_ROLE , BluetoothPan.REMOTE_NAP_ROLE ) ; } mPanDevices.clear ( ) ; } }
Source:
static android.content.Intent createDisplayMessageIntent ( android.content.Context context , java.lang.Class intentClass , android.telephony.CellBroadcastMessage message , int notificationId ) { android.content.Intent intent = new android.content.Intent ( context , intentClass ) ; intent.putExtra ( CellBroadcastMessage.SMS_CB_MESSAGE_EXTRA , message ) ; intent.putExtra ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.SMS_CB_NOTIFICATION_ID_EXTRA , notificationId ) ; intent.putExtra ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.NEW_ALERT_EXTRA , true ) ; intent.setType ( java.lang.Integer.toString ( notificationId ) ) ; return intent ; }

Target:
private void showNewAlert ( android.content.Intent intent ) { android.os.Bundle extras = intent.getExtras ( ) ; if ( extras == null ) { android.util.Log.e ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.TAG , "received SHOW_NEW_ALERT_ACTION with no extras!" ) ; return ; } android.telephony.CellBroadcastMessage cbm = ( ( android.telephony.CellBroadcastMessage ) ( extras.get ( "message" ) ) ) ; if ( cbm == null ) { android.util.Log.e ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.TAG , "received SHOW_NEW_ALERT_ACTION with no message extra" ) ; return ; } if ( com.android.cellbroadcastreceiver.CellBroadcastConfigService.isEmergencyAlertMessage ( cbm ) ) { openEmergencyAlertNotification ( cbm ) ; } else { addToNotificationBar ( cbm ) ; } }
Source:
private void sendImsFeatureStatusChanged ( int slot , int feature , int status ) { synchronized ( mLock ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureListener > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureListener callbacks = i.next ( ) ; try { callbacks.imsStatusChanged ( slot , feature , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureStatusChanged: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } } }

Target:
private void sendImsFeatureStatusChanged ( int slot , int feature , int status ) { synchronized ( mLock ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureCallback > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureCallback callbacks = i.next ( ) ; try { callbacks.imsStatusChanged ( slot , feature , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureStatusChanged: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } } }
Source:
public void testRequestShowKeyboardShortcuts ( ) throws java.lang.InterruptedException { if ( ! ( keyboardShortcutsSupported ( ) ) ) { return ; } mActivity.openOptionsMenu ( ) ; mActivity.waitForMenuToBeOpen ( ) ; mActivity.requestShowKeyboardShortcuts ( ) ; mActivity.waitForKeyboardShortcutsToBeRequested ( ) ; mActivity.dismissKeyboardShortcutsHelper ( ) ; assertTrue ( mActivity.onProvideKeyboardShortcutsCalled ( ) ) ; }

Target:
public void testRequestShowKeyboardShortcuts ( ) throws java.lang.InterruptedException { if ( ! ( keyboardShortcutsSupported ( ) ) ) { return ; } getInstrumentation ( ) . runOnMainSync ( ( ) -> mActivity.openOptionsMenu ( ) ) ; mActivity.waitForMenuToBeOpen ( ) ; getInstrumentation ( ) . runOnMainSync ( ( ) -> mActivity.requestShowKeyboardShortcuts ( ) ) ; mActivity.waitForKeyboardShortcutsToBeRequested ( ) ; getInstrumentation ( ) . runOnMainSync ( ( ) -> mActivity.dismissKeyboardShortcutsHelper ( ) ) ; assertTrue ( mActivity.onProvideKeyboardShortcutsCalled ( ) ) ; }
Source:
public void clearCache ( final boolean includeDiskFiles ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearCache ( includeDiskFiles ) ; } } ) ; return ; } mAwContents.clearCache ( includeDiskFiles ) ; }

Target:
public boolean isPaused ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return isPaused ( ) ; } } ) ; return ret ; } return mAwContents.isPaused ( ) ; }
Source:
public void enter ( ) { if ( com.android.server.wifi.WifiStateMachine.DBG ) { log ( ( ( "RoamingState Enter" + " mScreenOn=" ) + ( mScreenOn ) ) ) ; } setScanAlarm ( false , 0 ) ; ( roamWatchdogCount ) ++ ; loge ( ( "Start Roam Watchdog " + ( roamWatchdogCount ) ) ) ; sendMessageDelayed ( obtainMessage ( com.android.server.wifi.WifiStateMachine.CMD_ROAM_WATCHDOG_TIMER , roamWatchdogCount , 0 ) , com.android.server.wifi.WifiStateMachine.ROAM_GUARD_TIMER_MSEC ) ; mAssociated = false ; }

Target:
public void exit ( ) { logd ( "WifiStateMachine: Leaving Roaming state" ) ; }
Source:
private void fireSelectionChanged ( ) { if ( mInsideUpdateSelection ) { return ; } try { mInsideUpdateSelection = true ; final org.eclipse.jface.viewers.SelectionChangedEvent event = new org.eclipse.jface.viewers.SelectionChangedEvent ( this , getSelection ( ) ) ; org.eclipse.jface.util.SafeRunnable.run ( new org.eclipse.jface.util.SafeRunnable ( ) { public void run ( ) { for ( java.lang.Object listener : mSelectionListeners.getListeners ( ) ) { ( ( org.eclipse.jface.viewers.ISelectionChangedListener ) ( listener ) ) . selectionChanged ( event ) ; } } } ) ; } finally { mInsideUpdateSelection = false ; } }

Target:
private void fireSelectionChanged ( ) { if ( mInsideUpdateSelection ) { return ; } try { mInsideUpdateSelection = true ; final org.eclipse.jface.viewers.SelectionChangedEvent event = new org.eclipse.jface.viewers.SelectionChangedEvent ( this , getSelection ( ) ) ; org.eclipse.jface.util.SafeRunnable.run ( new org.eclipse.jface.util.SafeRunnable ( ) { public void run ( ) { for ( java.lang.Object listener : mSelectionListeners.getListeners ( ) ) { ( ( org.eclipse.jface.viewers.ISelectionChangedListener ) ( listener ) ) . selectionChanged ( event ) ; } } } ) ; updateMenuActions ( ) ; } finally { mInsideUpdateSelection = false ; } }
Source:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findVerticalPatch ( int x , int y ) { if ( x < ( ( image.getWidth ( ) ) / 2 ) ) { return getVerticalPatchLeft ( y ) ; } else { return getVerticalPaddingRight ( y ) ; } }

Target:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findHorizontalPatch ( int x , int y ) { java.util.List < com.android.draw9patch.ui.Pair < java.lang.Integer > > markers ; com.android.draw9patch.ui.ImageViewer.UpdateRegion region ; if ( y < ( ( image.getHeight ( ) ) / 2 ) ) { markers = patchInfo.horizontalPatchMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.TOP_PATCH ; } else { markers = patchInfo.horizontalPaddingMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.BOTTOM_PADDING ; } return getContainingPatch ( markers , x , region ) ; }