auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.nfc.handover.BluetoothPeripheralHandover.MSG_TIMEOUT : if ( ( mState ) == ( com.android.nfc.handover.BluetoothPeripheralHandover.STATE_COMPLETE ) ) return ; android.util.Log.i ( com.android.nfc.handover.BluetoothPeripheralHandover.TAG , "Timeout completing BT handover" ) ; complete ( false ) ; break ; case com.android.nfc.handover.BluetoothPeripheralHandover.MSG_NEXT_STEP : nextStep ( ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.nfc.handover.BluetoothPeripheralHandover.MSG_TIMEOUT : if ( ( mState ) == ( com.android.nfc.handover.BluetoothPeripheralHandover.STATE_COMPLETE ) ) return ; android.util.Log.i ( com.android.nfc.handover.BluetoothPeripheralHandover.TAG , "Timeout completing BT handover" ) ; mContext.sendBroadcast ( new android.content.Intent ( com.android.nfc.handover.BluetoothPeripheralHandover.ACTION_TIMEOUT_CONNECT ) ) ; complete ( false ) ; break ; case com.android.nfc.handover.BluetoothPeripheralHandover.MSG_NEXT_STEP : nextStep ( ) ; break ; } }
Source:
public void setOutputFile ( @ com.android.annotations.NonNull java.io.File outputFile ) { variantData.packageLibTask.setDestinationDir ( outputFile.getParentFile ( ) ) ; variantData.packageLibTask.setArchiveName ( outputFile.getName ( ) ) ; }

Target:
public org.gradle.api.tasks.bundling.Zip getPackageLibrary ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getPackageLibrary() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getPackageLibrary() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.api.LibraryVariantOutput ) ( outputs.get ( 0 ) ) ) . getPackageLibrary ( ) ; }
Source:
public void rmPackageDir ( java.lang.String packageDir ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.rmPackageDir ( packageDir ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public boolean getAnyDataEnabled ( ) { if ( ! ( mDataEnabledSettings.isDataEnabled ( ) ) ) return false ; com.android.internal.telephony.dataconnection.DcTracker.DataAllowFailReason failureReason = new com.android.internal.telephony.dataconnection.DcTracker.DataAllowFailReason ( ) ; if ( ! ( isDataAllowed ( failureReason ) ) ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( failureReason.getDataAllowFailReason ( ) ) ; return false ; } for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.values ( ) ) { if ( isDataAllowedForApn ( apnContext ) ) { return true ; } } return false ; }

Target:
public boolean isDataAllowed ( com.android.internal.telephony.dataconnection.DataConnectionReasons dataConnectionReasons ) { return isDataAllowed ( null , dataConnectionReasons ) ; }
Source:
public void setUp ( com.android.tradefed.invoker.IInvocationContext context ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { mBuildInfo = context.getBuildInfos ( ) . get ( 0 ) ; startVirtualenv ( mBuildInfo ) ; setLocalPypiPath ( ) ; installDeps ( mBuildInfo ) ; }

Target:
public void setUp ( com.android.tradefed.invoker.IInvocationContext context ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { mBuildInfo = context.getBuildInfos ( ) . get ( 0 ) ; com.android.tradefed.device.ITestDevice device = context.getDevices ( ) . get ( 0 ) ; mDescriptor = device.getDeviceDescriptor ( ) ; startVirtualenv ( mBuildInfo ) ; setLocalPypiPath ( ) ; installDeps ( mBuildInfo ) ; }
Source:
public void test_isLinkLocalAddress ( ) throws java.lang.Exception { assertFalse ( java.net.InetAddress.getByName ( "127.0.0.1" ) . isLinkLocalAddress ( ) ) ; assertTrue ( java.net.InetAddress.getByName ( "169.254.1.2" ) . isLinkLocalAddress ( ) ) ; assertFalse ( java.net.InetAddress.getByName ( "fec0::" ) . isLinkLocalAddress ( ) ) ; assertTrue ( java.net.InetAddress.getByName ( "fe80::" ) . isLinkLocalAddress ( ) ) ; }

Target:
public void test_isLinkLocalAddress ( ) throws java.lang.Exception { assertFalse ( java.net.InetAddress.getByName ( "127.0.0.1" ) . isLinkLocalAddress ( ) ) ; assertFalse ( java.net.InetAddress.getByName ( "::ffff:127.0.0.1" ) . isLinkLocalAddress ( ) ) ; assertTrue ( java.net.InetAddress.getByName ( "169.254.1.2" ) . isLinkLocalAddress ( ) ) ; assertFalse ( java.net.InetAddress.getByName ( "fec0::" ) . isLinkLocalAddress ( ) ) ; assertTrue ( java.net.InetAddress.getByName ( "fe80::" ) . isLinkLocalAddress ( ) ) ; }
Source:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims ) { validate ( ) ; rsnScriptSetVarVE ( mContext , id , slot , val , e , dims ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarV ( curCon , id , slot , val , mUseInc ) ; }
Source:
public void onCapabilitiesChanged ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities ) { com.googlecode.android_scripting.Log.d ( ( "NetworkCallback onCapabilitiesChanged. RSSI:" + ( networkCapabilities.getSignalStrength ( ) ) ) ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) ) { mEventFacade.postEvent ( TelephonyConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.telephony.TelephonyEvents.NetworkCallbackEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) , networkCapabilities.getSignalStrength ( ) , TelephonyEvents.NetworkCallbackEvent.INVALID_VALUE ) ) ; } }

Target:
public void onCapabilitiesChanged ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities ) { com.googlecode.android_scripting.Log.d ( ( "NetworkCallback onCapabilitiesChanged. RSSI:" + ( networkCapabilities.getSignalStrength ( ) ) ) ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) ) { mEventFacade.postEvent ( ConnectivityConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.ConnectivityEvents.NetworkCallbackEventOnCapabilitiesChanged ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_CAPABILITIES_CHANGED ) , networkCapabilities.getSignalStrength ( ) ) ) ; } }
Source:
public final synchronized void setRate ( double permitsPerSecond ) { com.google.common.base.Preconditions.checkArgument ( ( ( permitsPerSecond > 0.0 ) && ( ! ( java.lang.Double.isNaN ( permitsPerSecond ) ) ) ) , "rate must be positive" ) ; resync ( readSafeMicros ( ) ) ; double stableIntervalMicros = ( java.util.concurrent.TimeUnit.SECONDS.toMicros ( 1L ) ) / permitsPerSecond ; this . stableIntervalMicros = stableIntervalMicros ; doSetRate ( permitsPerSecond , stableIntervalMicros ) ; }

Target:
public final double getRate ( ) { synchronized ( mutex ( ) ) { return doGetRate ( ) ; } }
Source:
void sendCallEvent ( com.android.server.telecom.Call call , java.lang.String event , android.os.Bundle extras ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "sendCallEvent" ) ) ) { try { logOutgoing ( "sendCallEvent %s %s" , callId , event ) ; mServiceInterface.sendCallEvent ( callId , event , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void swapConference ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "swapConference" ) ) ) { try { logOutgoing ( "swapConference %s" , callId ) ; mServiceInterface.swapConference ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public byte [ ] convertToBytes ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String format = ap.getString ( 0 , "png" ) ; java.awt.image.BufferedImage argb = convertSnapshot ( ) ; java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; try { javax.imageio.ImageIO.write ( argb , format , os ) ; } catch ( java.io.IOException e ) { return new byte [ 0 ] ; } return os.toByteArray ( ) ; }

Target:
public byte [ ] convertToBytes ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String format = ap.getString ( 0 , "png" ) ; return impl.convertToBytes ( format ) ; }
Source:
public void test_parkFor_3 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 1 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , false , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; }

Target:
public void test_parkFor_3 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 1 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , false , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; parkerThread.join ( ) ; }
Source:
public void testConstructor ( ) { android.hardware.Camera camera = android.hardware.Camera.open ( ) ; android.hardware.Camera.Parameters parameters = camera.getParameters ( ) ; checkSize ( parameters , WIDTH1 , HEIGHT1 ) ; checkSize ( parameters , WIDTH2 , HEIGHT2 ) ; checkSize ( parameters , WIDTH3 , HEIGHT3 ) ; }

Target:
public void testConstructor ( ) { if ( ( android.hardware.Camera.getNumberOfCameras ( ) ) < 1 ) { return ; } android.hardware.Camera camera = android.hardware.Camera.open ( 0 ) ; android.hardware.Camera.Parameters parameters = camera.getParameters ( ) ; checkSize ( parameters , WIDTH1 , HEIGHT1 ) ; checkSize ( parameters , WIDTH2 , HEIGHT2 ) ; checkSize ( parameters , WIDTH3 , HEIGHT3 ) ; camera.release ( ) ; }
Source:
public void registerForImsiReady ( android.os.Handler h , int what , java.lang.Object obj ) { if ( mDestroyed.get ( ) ) { return ; } android.os.Registrant r = new android.os.Registrant ( h , what , obj ) ; mImsiReadyRegistrants.add ( r ) ; if ( ( mImsi ) != null ) { r.notifyRegistrant ( new android.os.AsyncResult ( null , null , null ) ) ; } }

Target:
public void registerForRecordsLoaded ( android.os.Handler h , int what , java.lang.Object obj ) { if ( mDestroyed.get ( ) ) { return ; } android.os.Registrant r = new android.os.Registrant ( h , what , obj ) ; mRecordsLoadedRegistrants.add ( r ) ; if ( getRecordsLoaded ( ) ) { r.notifyRegistrant ( new android.os.AsyncResult ( null , null , null ) ) ; } }
Source:
public static com.intellij.compiler.classFilesIndex.chainsSearch.context.TargetType create ( final com.intellij.compiler.classFilesIndex.chainsSearch.context.PsiClassType classType ) { final com.intellij.compiler.classFilesIndex.chainsSearch.context.PsiClassType.ClassResolveResult resolvedGenerics = classType.resolveGenerics ( ) ; final com.intellij.compiler.classFilesIndex.chainsSearch.context.PsiClass resolvedClass = resolvedGenerics.getElement ( ) ; if ( resolvedClass == null ) { return null ; } final java.lang.String classQName = resolvedClass.getQualifiedName ( ) ; if ( classQName == null ) { return null ; } if ( resolvedClass.hasTypeParameters ( ) ) { return null ; } return new com.intellij.compiler.classFilesIndex.chainsSearch.context.TargetType ( classQName , false , classType ) ; }

Target:
public static com.intellij.compiler.classFilesIndex.chainsSearch.context.TargetType create ( final com.intellij.psi.PsiClassType classType ) { final com.intellij.psi.PsiClassType.ClassResolveResult resolvedGenerics = classType.resolveGenerics ( ) ; final com.intellij.psi.PsiClass resolvedClass = resolvedGenerics.getElement ( ) ; if ( resolvedClass == null ) { return null ; } final java.lang.String classQName = resolvedClass.getQualifiedName ( ) ; if ( classQName == null ) { return null ; } if ( resolvedClass.hasTypeParameters ( ) ) { return null ; } return new com.intellij.compiler.classFilesIndex.chainsSearch.context.TargetType ( classQName , false , classType ) ; }
Source:
void expectAvailableAndSuspendedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , true , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }

Target:
void expectAvailableDoubleValidatedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; android.net.NetworkCapabilities nc1 = expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; android.net.NetworkCapabilities nc2 = expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; org.junit.Assert.assertEquals ( nc1 , nc2 ) ; }
Source:
public java.lang.String getUsage ( ) { java.lang.StringBuffer usage = new java.lang.StringBuffer ( ) ; java.util.Iterator < com.android.sched.util.codec.StringCodec < ? extends T > > codecListIterator = codecList.iterator ( ) ; while ( codecListIterator.hasNext ( ) ) { usage.append ( codecListIterator.next ( ) . getUsage ( ) ) ; if ( codecListIterator.hasNext ( ) ) { usage.append ( " or " ) ; } } return usage.toString ( ) ; }

Target:
public java.lang.String getUsage ( ) { return com.google.common.base.Joiner.on ( " or " ) . join ( com.google.common.collect.Collections2.transform ( codecList , new com.google.common.base.Function < com.android.sched.util.codec.StringCodec < ? extends T > , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( com.android.sched.util.codec.StringCodec < ? extends T > codec ) { return codec.getUsage ( ) ; } } ) ) ; }
Source:
public java.nio.ByteBuffer putFloat ( float value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putFloat ( float value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; position = newPosition ; return this ; }
Source:
public int writeBytesTo ( byte [ ] dest , int offset , int maxLength ) { byte [ ] hash = asBytes ( ) ; maxLength = com.google.common.primitives.Ints.min ( maxLength , hash.length ) ; com.google.common.base.Preconditions.checkPositionIndexes ( offset , ( offset + maxLength ) , dest.length ) ; java.lang.System.arraycopy ( hash , 0 , dest , offset , maxLength ) ; return maxLength ; }

Target:
public int writeBytesTo ( byte [ ] dest , int offset , int maxLength ) { maxLength = com.google.common.primitives.Ints.min ( maxLength , ( ( bits ( ) ) / 8 ) ) ; com.google.common.base.Preconditions.checkPositionIndexes ( offset , ( offset + maxLength ) , dest.length ) ; writeBytesToImpl ( dest , offset , maxLength ) ; return maxLength ; }
Source:
protected void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { switch ( requestCode ) { case com.android.keychain.KeyChainActivity.REQUEST_UNLOCK : if ( isKeyStoreUnlocked ( ) ) { showCertChooserDialog ( ) ; } else { finish ( null ) ; } return ; default : throw new java.lang.AssertionError ( ) ; } }

Target:
protected void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { switch ( requestCode ) { case com.android.keychain.KeyChainActivity.REQUEST_UNLOCK : if ( mKeyStore.isUnlocked ( ) ) { showCertChooserDialog ( ) ; } else { finish ( null ) ; } return ; default : throw new java.lang.AssertionError ( ) ; } }
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( com.android.bluetooth.btservice.ProfileService.DBG ) log ( "onBind" ) ; return mBinder ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( com.android.bluetooth.btservice.ProfileService.DBG ) log ( "onBind" ) ; if ( ( ( mAdapter ) != null ) && ( ( mBinder ) == null ) ) { throw new java.lang.UnsupportedOperationException ( ( "Cannot bind to " + ( mName ) ) ) ; } return mBinder ; }
Source:
private void stopNotification ( ) { if ( ( mNotificationTimer ) == null ) return ; mNotificationTimer.cancel ( ) ; mNotificationTimer = null ; }

Target:
private void notifyMtuRequest ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "notifyMtuRequest" ) ; } android.content.Intent intent ; if ( ( mCountMtuChange ) == 1 ) { intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_MTU_REQUEST_23BYTES ) ; } else if ( ( mCountMtuChange ) == 2 ) { intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_MTU_REQUEST_512BYTES ) ; } else { return ; } sendBroadcast ( intent ) ; }
Source:
public void runTest ( ) { com.android.rs.imagejb.Script.LaunchOptions lo = new com.android.rs.imagejb.Script.LaunchOptions ( ) ; if ( mUseIntrinsic ) { mHist.setOutput ( mSum ) ; mHist.forEach_Dot ( mInPixelsAllocation ) ; } else { lo.setX ( 0 , 1 ) ; mScript.forEach_pass1 ( mSums , lo ) ; mScript.forEach_pass2 ( mSum ) ; } mScript.invoke_rescale ( ) ; lo.setX ( 0 , 1024 ) ; mScript.forEach_draw ( mOutPixelsAllocation , lo ) ; }

Target:
public void runTest ( ) { com.android.rs.imagejb.Script.LaunchOptions lo = new com.android.rs.imagejb.Script.LaunchOptions ( ) ; if ( mUseIntrinsic ) { mHist.setOutput ( mSum ) ; mHist.forEach_Dot ( mInPixelsAllocation ) ; } else { lo.setX ( 0 , mSums.getType ( ) . getY ( ) ) ; mScript.forEach_pass1 ( lo ) ; mScript.forEach_pass2 ( mSum ) ; } mScript.invoke_rescale ( ) ; lo.setX ( 0 , 1024 ) ; mScript.forEach_draw ( mOutPixelsAllocation , lo ) ; }
Source:
public boolean configHciSnoopLog ( boolean enable ) { try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.configHciSnoopLog ( enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }

Target:
public long getDiscoveryEndMillis ( ) { try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.getDiscoveryEndMillis ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return - 1 ; }
Source:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = com.android.ide.common.api.InsertType.PASTE ; rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = com.android.ide.common.api.InsertType.PASTE ; rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; assertTrue ( ( time != 0 ) ) ; assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; org.junit.Assert.assertTrue ( ( time != 0 ) ) ; org.junit.Assert.assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public boolean isRoot ( ) { if ( ( ( ( mParent ) != null ) && ( mParent.mName.endsWith ( "GestureOverlayView" ) ) ) && ( mParent.isRoot ( ) ) ) { return true ; } return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }

Target:
public boolean isRoot ( ) { if ( ( ( ( mParent ) != null ) && ( mParent.mName.endsWith ( com.android.ide.common.layout.LayoutConstants.GESTURE_OVERLAY_VIEW ) ) ) && ( mParent.isRoot ( ) ) ) { return true ; } return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }
Source:
public void testSerializeFieldMadeStatic ( ) throws java.lang.Exception { java.io.ObjectStreamClass osc = java.io.ObjectStreamClass.lookup ( libcore.java.io.SerializationTest.FieldMadeStatic.class ) ; java.io.ObjectStreamField [ ] fields = osc.getFields ( ) ; assertEquals ( 0 , fields.length ) ; java.lang.String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" + ( "374244669656c644d6164655374617469630000000000000000020001490009737461746963496e7" + "47870000022b8" ) ; libcore.java.io.SerializationTest.FieldMadeStatic deserialized = ( ( libcore.java.io.SerializationTest.FieldMadeStatic ) ( libcore.util.SerializationTester.deserializeHex ( s ) ) ) ; assertEquals ( 9999 , deserialized.staticInt ) ; }

Target:
public void testSerializeFieldMadeStatic ( ) throws java.lang.Exception { java.io.ObjectStreamClass osc = java.io.ObjectStreamClass.lookup ( libcore.java.io.SerializationTest.FieldMadeStatic.class ) ; java.io.ObjectStreamField [ ] fields = osc.getFields ( ) ; assertEquals ( 0 , fields.length ) ; java.lang.String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" + ( "374244669656c644d6164655374617469630000000000000000020001490009737461746963496e7" + "47870000022b8" ) ; libcore.java.io.SerializationTest.FieldMadeStatic deserialized = ( ( libcore.java.io.SerializationTest.FieldMadeStatic ) ( libcore.libcore.util.SerializationTester.deserializeHex ( s ) ) ) ; assertEquals ( 9999 , deserialized.staticInt ) ; }
Source:
private void createRemoteDir ( com.android.tradefed.device.ITestDevice device , java.lang.String remoteFilePath ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( device.doesFileExist ( remoteFilePath ) ) { return ; } java.io.File f = new java.io.File ( remoteFilePath ) ; java.lang.String parentPath = f.getParent ( ) ; if ( parentPath != null ) { createRemoteDir ( device , parentPath ) ; } device.executeShellCommand ( java.lang.String.format ( "mkdir %s" , remoteFilePath ) ) ; }

Target:
private void createRemoteDir ( com.android.tradefed.device.ITestDevice device , java.lang.String remoteFilePath ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( device.doesFileExist ( remoteFilePath ) ) { return ; } if ( ! ( device.doesFileExist ( com.android.cts.tradefed.testtype.VMHostTest.EMULATOR_TEMP_DIR ) ) ) { com.android.tradefed.log.LogUtil.CLog.e ( "Error: Can not found the /data/local/tmp directory!!!" ) ; } device.executeShellCommand ( java.lang.String.format ( "mkdir %s" , com.android.cts.tradefed.testtype.VMHostTest.VM_TEST_TEMP_DIR ) ) ; device.executeShellCommand ( java.lang.String.format ( "mkdir %s" , remoteFilePath ) ) ; }
Source:
com.android.sched.vfs.DirectFS.DirectVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) , name ) ; try { com.android.sched.util.file.Directory.create ( file , new com.android.sched.util.location.DirectoryLocation ( file ) ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { } return new com.android.sched.vfs.DirectFS.DirectNonRootVDir ( this , parent , name ) ; }

Target:
com.android.sched.vfs.ParentVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File path = getNativeFile ( parent.getPath ( ) , name ) ; try { com.android.sched.util.file.AbstractStreamFile.create ( path , new com.android.sched.util.location.FileLocation ( path ) ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { } return new com.android.sched.vfs.ParentVFile ( this , parent , name ) ; }
Source:
public void createRemainingTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.internal.TaskManager taskManager , com.android.build.gradle.model.AndroidComponentSpec spec ) { com.android.build.gradle.internal.VariantManager variantManager = ( ( com.android.build.gradle.model.DefaultAndroidComponentSpec ) ( spec ) ) . getVariantManager ( ) ; taskManager.createTopLevelTestTasks ( new com.android.build.gradle.model.TaskCollectionBuilderAdaptor ( tasks ) , ( ! ( variantManager.getProductFlavors ( ) . isEmpty ( ) ) ) ) ; }

Target:
public void createRemainingTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , com.android.build.gradle.internal.TaskManager taskManager , org.gradle.model.ModelMap < com.android.build.gradle.model.AndroidComponentSpec > spec ) { com.android.build.gradle.internal.VariantManager variantManager = ( ( com.android.build.gradle.model.DefaultAndroidComponentSpec ) ( spec.get ( com.android.build.gradle.model.AndroidComponentModelPlugin.COMPONENT_NAME ) ) ) . getVariantManager ( ) ; taskManager.createTopLevelTestTasks ( new com.android.build.gradle.model.TaskModelMapAdaptor ( tasks ) , ( ! ( variantManager.getProductFlavors ( ) . isEmpty ( ) ) ) ) ; }
Source:
public void testRunAmFailed ( ) { java.lang.StringBuilder output = new java.lang.StringBuilder ( ) ; output.append ( "usage: am [subcommand] [options]" ) ; addLineBreak ( output ) ; output.append ( "start an Activity: am start [-D] [-W] <INTENT>" ) ; addLineBreak ( output ) ; output.append ( "-D: enable debugging" ) ; addLineBreak ( output ) ; output.append ( "-W: wait for launch to complete" ) ; addLineBreak ( output ) ; output.append ( "start a Service: am startservice <INTENT>" ) ; addLineBreak ( output ) ; output.append ( "Error: Bad component name: wfsdafddfasasdf" ) ; injectTestString ( output.toString ( ) ) ; assertEquals ( InstrumentationResultParser.NO_TEST_RESULTS_MSG , mTestResult.mRunFailedMessage ) ; }

Target:
public void testRunAmFailed ( ) { java.lang.StringBuilder output = new java.lang.StringBuilder ( ) ; addLine ( output , "usage: am [subcommand] [options]" ) ; addLine ( output , "start an Activity: am start [-D] [-W] <INTENT>" ) ; addLine ( output , "-D: enable debugging" ) ; addLine ( output , "-W: wait for launch to complete" ) ; addLine ( output , "start a Service: am startservice <INTENT>" ) ; addLine ( output , "Error: Bad component name: wfsdafddfasasdf" ) ; injectTestString ( output.toString ( ) ) ; assertEquals ( InstrumentationResultParser.NO_TEST_RESULTS_MSG , mTestResult.mRunFailedMessage ) ; }
Source:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( ( testFramework.getApi ( ) ) == 18 ) { return ; } com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; org.junit.Assert.assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }

Target:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( ( api ) == 18 ) { return ; } com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; org.junit.Assert.assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }
Source:
public void processDisconnectReason ( com.android.ims.ImsReasonInfo imsReasonInfo ) { if ( ( ( imsReasonInfo.mCode ) == ( imsReasonInfo.CODE_REGISTRATION_ERROR ) ) && ( ( imsReasonInfo.mExtraMessage ) != null ) ) { if ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) { processWfcDisconnectForNotification ( imsReasonInfo ) ; } } }

Target:
public void processDisconnectReason ( android.telephony.ims.ImsReasonInfo imsReasonInfo ) { if ( ( ( imsReasonInfo.mCode ) == ( imsReasonInfo.CODE_REGISTRATION_ERROR ) ) && ( ( imsReasonInfo.mExtraMessage ) != null ) ) { if ( com.android.ims.ImsManager.getInstance ( mContext , mPhoneId ) . isWfcEnabledByUser ( ) ) { processWfcDisconnectForNotification ( imsReasonInfo ) ; } } }
Source:
public static com.android.bluetooth.opp.BluetoothOppPreference getInstance ( android.content.Context context ) { synchronized ( com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE_LOCK ) { if ( ( com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE ) == null ) { com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE = new com.android.bluetooth.opp.BluetoothOppPreference ( ) ; } if ( ! ( com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE.init ( context ) ) ) { return null ; } return com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE ; } }

Target:
public static com.android.bluetooth.opp.BluetoothOppPreference getInstance ( android.content.Context context ) { synchronized ( com.android.bluetooth.opp.BluetoothOppPreference.INSTANCE_LOCK ) { if ( ( com.android.bluetooth.opp.BluetoothOppPreference.sInstance ) == null ) { com.android.bluetooth.opp.BluetoothOppPreference.sInstance = new com.android.bluetooth.opp.BluetoothOppPreference ( ) ; } if ( ! ( com.android.bluetooth.opp.BluetoothOppPreference.sInstance.init ( context ) ) ) { return null ; } return com.android.bluetooth.opp.BluetoothOppPreference.sInstance ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper buildHelper = new com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper ( mBuild ) ; sepolicyAnalyze = buildHelper.getTestFile ( "sepolicy-analyze" ) ; sepolicyAnalyze.setExecutable ( true ) ; devicePolicyFile = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; devicePolicyFile.deleteOnExit ( ) ; mDevice.pullFile ( "/sys/fs/selinux/policy" , devicePolicyFile ) ; }

Target:
public static java.io.File getDevicePolicyFile ( com.android.tradefed.device.ITestDevice device ) throws java.lang.Exception { java.io.File file ; synchronized ( android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles ) { file = android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles.get ( device ) ; } if ( file != null ) { return file ; } file = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; file.deleteOnExit ( ) ; device.pullFile ( "/sys/fs/selinux/policy" , file ) ; synchronized ( android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles ) { android.security.cts.SELinuxHostTest.cachedDevicePolicyFiles.put ( device , file ) ; } return file ; }
Source:
public void testStrategyExtraSeparators ( ) throws java.lang.Exception { final android.support.v4.content.FileProvider.SimplePathStrategy strat = new android.support.v4.content.FileProvider.SimplePathStrategy ( "authority" ) ; strat.addRoot ( "tag" , mContext.getFilesDir ( ) ) ; java.io.File inFile = new java.io.File ( mContext.getFilesDir ( ) , "//foo//bar//" ) ; java.io.File outFile = new java.io.File ( mContext.getFilesDir ( ) , "/foo/bar" ) ; final java.lang.String expected = "content://authority/tag/foo/bar" ; assertEquals ( expected , strat.getUriForFile ( inFile ) . toString ( ) ) ; assertEquals ( outFile.getPath ( ) , strat.getFileForUri ( android.net.Uri.parse ( expected ) ) . getPath ( ) ) ; }

Target:
public void testStrategyExtraSeparators ( ) throws java.lang.Exception { final android.support.v4.content.FileProvider.SimplePathStrategy strat = new android.support.v4.content.FileProvider.SimplePathStrategy ( "authority" ) ; strat.addRoot ( "tag" , mContext.getFilesDir ( ) ) ; java.io.File inFile = new java.io.File ( mContext.getFilesDir ( ) , "//foo//bar//" ) ; java.io.File expectedRoot = mContext.getFilesDir ( ) . getCanonicalFile ( ) ; java.io.File outFile = new java.io.File ( expectedRoot , "/foo/bar" ) ; final java.lang.String expected = "content://authority/tag/foo/bar" ; assertEquals ( expected , strat.getUriForFile ( inFile ) . toString ( ) ) ; assertEquals ( outFile.getPath ( ) , strat.getFileForUri ( android.net.Uri.parse ( expected ) ) . getPath ( ) ) ; }
Source:
public void verifyModifyRetrievedConfig ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = "test1" ; mProvider = createProvider ( config ) ; verifyInstalledConfig ( config , true ) ; android.net.wifi.hotspot2.PasspointConfiguration retrievedConfig = mProvider.getConfig ( ) ; retrievedConfig.homeSp.fqdn = "test2" ; verifyInstalledConfig ( retrievedConfig , false ) ; }

Target:
public void verifyModifyRetrievedConfig ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = "test1" ; config.credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; config.credential.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; mProvider = createProvider ( config ) ; verifyInstalledConfig ( config , true ) ; android.net.wifi.hotspot2.PasspointConfiguration retrievedConfig = mProvider.getConfig ( ) ; retrievedConfig.homeSp.fqdn = "test2" ; verifyInstalledConfig ( retrievedConfig , false ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj == ( this ) ) return true ; if ( ! ( obj instanceof java.io.FilePermission ) ) return false ; java.io.FilePermission that = ( ( java.io.FilePermission ) ( obj ) ) ; return ( ( ( ( this . mask ) == ( that.mask ) ) && ( this . cpath.equals ( that.cpath ) ) ) && ( ( this . directory ) == ( that.directory ) ) ) && ( ( this . recursive ) == ( that.recursive ) ) ; }

Target:
public boolean implies ( java.security.Permission p ) { return true ; }
Source:
private static com.android.tools.lint.client.api.JavaParser.ResolvedField createField ( java.lang.String containingClass , java.lang.String name ) { com.android.tools.lint.client.api.JavaParser.ResolvedField mock = org.easymock.EasyMock.createMock ( com.android.tools.lint.client.api.JavaParser.ResolvedField.class ) ; org.easymock.EasyMock.expect ( mock.getName ( ) ) . andReturn ( name ) . anyTimes ( ) ; org.easymock.EasyMock.expect ( mock.getContainingClass ( ) ) . andReturn ( com.android.tools.lint.ExternalAnnotationRepositoryTest.createClass ( containingClass ) ) . anyTimes ( ) ; org.easymock.EasyMock.replay ( mock ) ; return mock ; }

Target:
private static com.android.tools.lint.client.api.JavaParser.ResolvedField createField ( java.lang.String containingClass , java.lang.String name ) { com.android.tools.lint.client.api.JavaParser.ResolvedField mock = org.mockito.Mockito.mock ( com.android.tools.lint.client.api.JavaParser.ResolvedField.class ) ; org.mockito.Mockito.when ( mock.getName ( ) ) . thenReturn ( name ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass cls = com.android.tools.lint.ExternalAnnotationRepositoryTest.createClass ( containingClass ) ; org.mockito.Mockito.when ( mock.getContainingClass ( ) ) . thenReturn ( cls ) ; return mock ; }
Source:
private static int hexToInt ( char c ) { if ( ( '0' <= c ) && ( c <= '9' ) ) { return c - '0' ; } else if ( ( 'a' <= c ) && ( c <= 'f' ) ) { return 10 + ( c - 'a' ) ; } else if ( ( 'A' <= c ) && ( c <= 'F' ) ) { return 10 + ( c - 'A' ) ; } else { return - 1 ; } }

Target:
private static int hexCharToValue ( char c ) { if ( ( '0' <= c ) && ( c <= '9' ) ) { return c - '0' ; } if ( ( 'a' <= c ) && ( c <= 'f' ) ) { return ( 10 + c ) - 'a' ; } if ( ( 'A' <= c ) && ( c <= 'F' ) ) { return ( 10 + c ) - 'A' ; } return - 1 ; }
Source:
public static java.util.List < java.lang.Integer > getInts ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { java.util.List < java.lang.Integer > result = new java.util.ArrayList < java.lang.Integer > ( ) ; result.addAll ( keyCharacteristics.hwEnforced.getInts ( tag ) ) ; result.addAll ( keyCharacteristics.swEnforced.getInts ( tag ) ) ; return result ; }

Target:
public static java.lang.String getJcaDigestAlgorithmFromKeymasterDigest ( int keymasterDigest ) { switch ( keymasterDigest ) { case android.security.keymaster.KeymasterDefs.KM_DIGEST_NONE : return "NONE" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_MD5 : return "MD5" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA1 : return "SHA-1" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_224 : return "SHA-224" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_256 : return "SHA-256" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_384 : return "SHA-384" ; case android.security.keymaster.KeymasterDefs.KM_DIGEST_SHA_2_512 : return "SHA-512" ; default : throw new java.lang.IllegalArgumentException ( ( "Unsupported digest algorithm: " + keymasterDigest ) ) ; } }
Source:
public void setDefaultSmdpAddress ( java.lang.String cardId , java.lang.String defaultSmdpAddress , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void setDefaultSmdpAddress ( java.lang.String cardId , java.lang.String defaultSmdpAddress , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , null ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
private void processAudioEvent ( int state , android.bluetooth.BluetoothDevice device ) { if ( ! ( mCurrentDevice.equals ( device ) ) ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "Audio changed on disconnected device: " + device ) ) ; return ; } switch ( state ) { case HeadsetClientHalConstants.AUDIO_STATE_DISCONNECTED : removeMessages ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DISCONNECT_AUDIO ) ; mAudioState = android.bluetooth.BluetoothHeadsetClient.STATE_AUDIO_DISCONNECTED ; com.android.bluetooth.hfpclient.HeadsetClientStateMachine.routeHfpAudio ( false ) ; transitionTo ( mConnected ) ; break ; default : android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "Audio State Device: " + device ) + " bad state: " ) + state ) ) ; break ; } }

Target:
private void processAudioEvent ( int state , android.bluetooth.BluetoothDevice device ) { if ( ! ( mCurrentDevice.equals ( device ) ) ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "Audio changed on disconnected device: " + device ) ) ; return ; } switch ( state ) { case HeadsetClientHalConstants.AUDIO_STATE_DISCONNECTED : removeMessages ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DISCONNECT_AUDIO ) ; mAudioState = android.bluetooth.BluetoothHeadsetClient.STATE_AUDIO_DISCONNECTED ; routeHfpAudio ( false ) ; returnAudioFocusIfNecessary ( ) ; transitionTo ( mConnected ) ; break ; default : android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "Audio State Device: " + device ) + " bad state: " ) + state ) ) ; break ; } }
Source:
private android.os.IInterface createImsFeature ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { switch ( featureType ) { case android.telephony.ims.feature.ImsFeature.EMERGENCY_MMTEL : { return mIImsServiceController.createEmergencyMMTelFeature ( slotId , c ) ; } case android.telephony.ims.feature.ImsFeature.MMTEL : { return mIImsServiceController.createMMTelFeature ( slotId , c ) ; } case android.telephony.ims.feature.ImsFeature.RCS : { return mIImsServiceController.createRcsFeature ( slotId , c ) ; } default : return null ; } }

Target:
private android.os.IInterface createImsFeature ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { switch ( featureType ) { case android.telephony.ims.feature.ImsFeature.FEATURE_MMTEL : { return mIImsServiceController.createMmTelFeature ( slotId , c ) ; } case android.telephony.ims.feature.ImsFeature.FEATURE_RCS : { return mIImsServiceController.createRcsFeature ( slotId , c ) ; } default : return null ; } }
Source:
public void junit ( ) throws java.lang.Exception { java.io.File junitJack = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "junit" , ".zip" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.srcToLib ( ( ( ( com.android.jack.toolchain.ToolchainTest.corePath.getAbsolutePath ( ) ) + ( java.io.File.pathSeparator ) ) + ( com.android.jack.TestTools.getFromAndroidTree ( "out/host/common/obj/JAVA_LIBRARIES/hamcrest-core-hostdex-jack_intermediates/classes.jack" ) ) ) , junitJack , true , com.android.jack.toolchain.ToolchainTest.JUNIT_SOURCELIST ) ; java.io.File junitOutFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.libToExe ( junitJack , junitOutFolder , false ) ; }

Target:
public void junit ( ) throws java.lang.Exception { java.io.File junitJack = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "junit" , ".zip" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.addToClasspath ( com.android.jack.toolchain.ToolchainTest.corePath ) . addToClasspath ( com.android.jack.TestTools.getFromAndroidTree ( "out/host/common/obj/JAVA_LIBRARIES/hamcrest-core-hostdex-jack_intermediates/classes.jack" ) ) . srcToLib ( junitJack , true , com.android.jack.toolchain.ToolchainTest.JUNIT_SOURCELIST ) ; java.io.File junitOutFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.libToExe ( junitJack , junitOutFolder , false ) ; }