auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public android.telecom.PhoneAccountHandle getPhoneAccountHandle ( ) { return new android.telecom.PhoneAccountHandle ( android.content.ComponentName.unflattenFromString ( phoneAccountComponentName ) , phoneAccountId ) ; }

Target:
public android.telecom.PhoneAccountHandle getPhoneAccountHandle ( ) { if ( ( android.text.TextUtils.isEmpty ( phoneAccountComponentName ) ) || ( android.text.TextUtils.isEmpty ( phoneAccountId ) ) ) { return null ; } android.content.ComponentName componentName = android.content.ComponentName.unflattenFromString ( phoneAccountComponentName ) ; if ( componentName == null ) { return null ; } return new android.telecom.PhoneAccountHandle ( componentName , phoneAccountId ) ; }
Source:
public void getIMEI ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_IMEI , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getIMEI ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_IMEI , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
private void onGetIdleTime ( byte [ ] address , int idleTime ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , "onGetIdleTime()" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_IDLE_TIME ) ; msg.obj = address ; msg.arg1 = idleTime ; mHandler.sendMessage ( msg ) ; }

Target:
private void onGetIdleTime ( byte [ ] address , int idleTime ) { if ( com.android.bluetooth.hid.HidHostService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , "onGetIdleTime()" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidHostService.MESSAGE_ON_GET_IDLE_TIME ) ; msg.obj = address ; msg.arg1 = idleTime ; mHandler.sendMessage ( msg ) ; }
Source:
public void setNickname ( java.lang.String cardId , java.lang.String iccid , java.lang.String nickname , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setNickname ( mContext.getOpPackageName ( ) , cardId , iccid , nickname , new com.android.internal.telephony.euicc.ISetNicknameCallback.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 setNickname" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void removeNotificationFromList ( java.lang.String cardId , int seqNumber , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . removeNotificationFromList ( mContext.getOpPackageName ( ) , cardId , seqNumber , new com.android.internal.telephony.euicc.IRemoveNotificationFromListCallback.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 removeNotificationFromList" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
android.content.ComponentName startServiceInPackage ( int uid , android.content.Intent service , java.lang.String resolvedType ) { synchronized ( this ) { if ( com.android.server.am.ActivityManagerService.DEBUG_SERVICE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "startServiceInPackage: " + service ) + " type=" ) + resolvedType ) ) ; final long origId = android.os.Binder.clearCallingIdentity ( ) ; android.content.ComponentName res = startServiceLocked ( null , service , resolvedType , ( - 1 ) , uid ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; return res ; } }

Target:
android.content.ComponentName startServiceInPackage ( int uid , android.content.Intent service , java.lang.String resolvedType , int userId ) { synchronized ( this ) { if ( com.android.server.am.ActivityManagerService.DEBUG_SERVICE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "startServiceInPackage: " + service ) + " type=" ) + resolvedType ) ) ; final long origId = android.os.Binder.clearCallingIdentity ( ) ; android.content.ComponentName res = mServices.startServiceLocked ( null , service , resolvedType , ( - 1 ) , uid , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; return res ; } }
Source:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( mSkipPreconditions ) { return ; } try { if ( ! ( instrument ( device , buildInfo ) ) ) { throw new com.android.tradefed.targetprep.TargetSetupError ( "Not all device-side preconditions met" ) ; } } catch ( java.io.FileNotFoundException e ) { throw new com.android.tradefed.targetprep.TargetSetupError ( java.lang.String.format ( "Couldn't find %s to instrument" , com.android.cts.tradefed.targetprep.DevicePreconditionPreparer.APK_NAME ) , e ) ; } }

Target:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( mSkipPreconditions ) { return ; } try { if ( ! ( instrument ( device , buildInfo ) ) ) { com.android.cts.tradefed.targetprep.DevicePreconditionPreparer.printWarning ( ( "Not all device-side preconditions met, " + "CTS tests may fail as a result." ) ) ; } } catch ( java.io.FileNotFoundException e ) { throw new com.android.tradefed.targetprep.TargetSetupError ( java.lang.String.format ( "Couldn't find %s to instrument" , com.android.cts.tradefed.targetprep.DevicePreconditionPreparer.APK_NAME ) , e ) ; } }
Source:
public void testDisconnectEvent ( ) throws java.lang.Exception { testConnectEvent ( ) ; mDc.sendMessage ( DataConnection.EVENT_DISCONNECT , mDcp ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 1 ) ) . deactivateDataCall ( org.mockito.Matchers.eq ( 1 ) , org.mockito.Matchers.eq ( RILConstants.DEACTIVATE_REASON_NONE ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; org.junit.Assert.assertEquals ( "DcInactiveState" , getCurrentState ( ) . getName ( ) ) ; }

Target:
public void testDisconnectEvent ( ) throws java.lang.Exception { testConnectEvent ( ) ; mDc.sendMessage ( DataConnection.EVENT_DISCONNECT , mDcp ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier , org.mockito.Mockito.times ( 1 ) ) . deactivateDataCall ( org.mockito.ArgumentMatchers.eq ( 1 ) , org.mockito.ArgumentMatchers.eq ( RILConstants.DEACTIVATE_REASON_NONE ) , org.mockito.ArgumentMatchers.any ( android.os.Message.class ) ) ; org.junit.Assert.assertEquals ( "DcInactiveState" , getCurrentState ( ) . getName ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cacheDir.mkdirs ( ) ; android.cts.util.FileUtils.setPermissions ( cacheDir.getPath ( ) , 511 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new com.google.mockwebserver.MockWebServer ( ) ; java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cacheDir.mkdirs ( ) ; android.cts.util.FileUtils.setPermissions ( cacheDir.getPath ( ) , 511 ) ; }
Source:
public void onServiceConnected ( android.content.ComponentName className , android.os.IBinder service ) { if ( android.bluetooth.BluetoothSap.DBG ) android.bluetooth.BluetoothSap.log ( "Proxy object connected" ) ; mService = IBluetoothSap.Stub.asInterface ( service ) ; if ( ( mServiceListener ) != null ) { mServiceListener.onServiceConnected ( BluetoothProfile.SAP , this ) ; } }

Target:
public void onServiceConnected ( android.content.ComponentName className , android.os.IBinder service ) { if ( android.bluetooth.BluetoothSap.DBG ) android.bluetooth.BluetoothSap.log ( "Proxy object connected" ) ; mService = IBluetoothSap.Stub.asInterface ( android.os.Binder.allowBlocking ( service ) ) ; if ( ( mServiceListener ) != null ) { mServiceListener.onServiceConnected ( BluetoothProfile.SAP , this ) ; } }
Source:
public void testUngrant_Imported_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key for testcase" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_Imported_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key for testcase" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
public void testPackageOverridePackageFromFlavor ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.setPackageName ( "foo.bar" ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertEquals ( "foo.bar" , builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverridePackageFromFlavor ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.getProductFlavor ( ) . setPackageName ( "foo.bar" ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertEquals ( "foo.bar" , builder.getPackageOverride ( "" ) ) ; }
Source:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , mIsPhoneInEcmState ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "sendEmergencyCallbackModeChange" ) ; }

Target:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , isInEcm ( ) ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManager.broadcastStickyIntent ( intent , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "sendEmergencyCallbackModeChange" ) ; }
Source:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( dialog.getModuleName ( ) ) ; com.android.tools.idea.templates.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; addAppEngineGradleFacet ( ) ; }

Target:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.android.tools.idea.templates.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.addAppEngineGradleFacet ( ) ; }
Source:
public static com.android.chimpchat.ChimpChat getInstance ( java.util.Map < java.lang.String , java.lang.String > options ) { com.android.chimpchat.ChimpChat.sAdbLocation = options.get ( "adbLocation" ) ; com.android.chimpchat.core.IChimpBackend backend = com.android.chimpchat.ChimpChat.createBackendByName ( options.get ( "backend" ) ) ; if ( backend == null ) { return null ; } com.android.chimpchat.ChimpChat chimpchat = new com.android.chimpchat.ChimpChat ( backend ) ; return chimpchat ; }

Target:
public static com.android.chimpchat.ChimpChat getInstance ( java.util.Map < java.lang.String , java.lang.String > options ) { com.android.chimpchat.ChimpChat.sAdbLocation = options.get ( "adbLocation" ) ; com.android.chimpchat.ChimpChat.sNoInitAdb = java.lang.Boolean.valueOf ( options.get ( "noInitAdb" ) ) ; com.android.chimpchat.core.IChimpBackend backend = com.android.chimpchat.ChimpChat.createBackendByName ( options.get ( "backend" ) ) ; if ( backend == null ) { return null ; } com.android.chimpchat.ChimpChat chimpchat = new com.android.chimpchat.ChimpChat ( backend ) ; return chimpchat ; }
Source:
public void showWarning ( java.lang.String message ) { javax.swing.JOptionPane.showMessageDialog ( null , message ) ; }

Target:
public boolean showWarning ( java.lang.String message ) { java.lang.Object [ ] choices = new java.lang.Object [ ] { "Retry" , "Exit" } ; int choice = javax.swing.JOptionPane.showOptionDialog ( null , message , "Warning" , javax.swing.JOptionPane.DEFAULT_OPTION , javax.swing.JOptionPane.QUESTION_MESSAGE , null , choices , choices [ 0 ] ) ; return choice == 0 ; }
Source:
public android.content.ContentProviderResult [ ] applyBatch ( java.lang.String authority , java.util.ArrayList < android.content.ContentProviderOperation > operations ) throws android.content.OperationApplicationException , android.os.RemoteException { android.content.ContentProviderClient provider = acquireContentProviderClient ( authority ) ; if ( provider == null ) { throw new java.lang.IllegalArgumentException ( ( "Unknown authority " + authority ) ) ; } try { return provider.applyBatch ( operations ) ; } finally { provider.release ( ) ; } }

Target:
public static java.lang.String [ ] getSyncAdapterPackagesForAuthorityAsUser ( java.lang.String authority , int userId ) { try { return android.content.ContentResolver.getContentService ( ) . getSyncAdapterPackagesForAuthorityAsUser ( authority , userId ) ; } catch ( android.os.RemoteException e ) { } return com.android.internal.util.ArrayUtils.emptyArray ( java.lang.String.class ) ; }
Source:
public int doFinal ( byte [ ] out , int outOff ) { finish ( ) ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( H1 , out , outOff ) ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( H2 , out , ( outOff + 4 ) ) ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( H3 , out , ( outOff + 8 ) ) ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( H4 , out , ( outOff + 12 ) ) ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( H5 , out , ( outOff + 16 ) ) ; reset ( ) ; return org.bouncycastle.crypto.digests.SHA1Digest.DIGEST_LENGTH ; }

Target:
public int doFinal ( byte [ ] out , int outOff ) { finish ( ) ; org.bouncycastle.util.Pack.intToBigEndian ( H1 , out , outOff ) ; org.bouncycastle.util.Pack.intToBigEndian ( H2 , out , ( outOff + 4 ) ) ; org.bouncycastle.util.Pack.intToBigEndian ( H3 , out , ( outOff + 8 ) ) ; org.bouncycastle.util.Pack.intToBigEndian ( H4 , out , ( outOff + 12 ) ) ; org.bouncycastle.util.Pack.intToBigEndian ( H5 , out , ( outOff + 16 ) ) ; reset ( ) ; return org.bouncycastle.crypto.digests.SHA1Digest.DIGEST_LENGTH ; }
Source:
public static com.android.jack.jayce.JayceInternalWriter get ( @ javax.annotation.Nonnull com.android.jack.library.OutputJackLibrary outputJackLibrary , @ javax.annotation.Nonnull java.io.OutputStream out ) { com.android.jack.jayce.v0004.io.JayceInternalWriterImpl jayceWriter = new com.android.jack.jayce.v0004.io.JayceInternalWriterImpl ( out ) ; outputJackLibrary.putProperty ( outputJackLibrary.buildPropertyName ( FileType.JAYCE , null ) , java.lang.String.valueOf ( true ) ) ; outputJackLibrary.putProperty ( outputJackLibrary.keyJayceMajorVersion , java.lang.String.valueOf ( com.android.jack.jayce.JayceWriterFactory.DEFAULT_MAJOR_VERSION ) ) ; outputJackLibrary.putProperty ( outputJackLibrary.keyJayceMinorVersion , java.lang.String.valueOf ( jayceWriter.getCurrentMinor ( ) ) ) ; return jayceWriter ; }

Target:
public static com.android.jack.jayce.JayceInternalWriter get ( @ javax.annotation.Nonnull com.android.jack.library.OutputJackLibrary outputJackLibrary , @ javax.annotation.Nonnull java.io.OutputStream out , @ javax.annotation.Nonnull com.android.sched.util.location.HasLocation locationProvider ) { com.android.jack.jayce.v0004.io.JayceInternalWriterImpl jayceWriter = new com.android.jack.jayce.v0004.io.JayceInternalWriterImpl ( out , locationProvider ) ; outputJackLibrary.putProperty ( outputJackLibrary.buildPropertyName ( FileType.JAYCE , null ) , java.lang.String.valueOf ( true ) ) ; outputJackLibrary.putProperty ( outputJackLibrary.keyJayceMajorVersion , java.lang.String.valueOf ( com.android.jack.jayce.JayceWriterFactory.DEFAULT_MAJOR_VERSION ) ) ; outputJackLibrary.putProperty ( outputJackLibrary.keyJayceMinorVersion , java.lang.String.valueOf ( jayceWriter.getCurrentMinor ( ) ) ) ; return jayceWriter ; }
Source:
public boolean mergeProfiles ( int uid , java.lang.String pkgName ) throws com.android.internal.os.InstallerConnection.InstallerException { throw new java.lang.IllegalStateException ( "Should not reach here" ) ; }

Target:
public void dexopt ( java.lang.String apkPath , int uid , @ android.annotation.Nullable java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , @ android.annotation.Nullable java.lang.String outputPath , int dexFlags , java.lang.String compilerFilter , @ android.annotation.Nullable java.lang.String volumeUuid , @ android.annotation.Nullable java.lang.String sharedLibraries ) throws com.android.internal.os.InstallerConnection.InstallerException { commands.add ( com.android.server.pm.OtaDexoptService.buildCommand ( "dexopt" , apkPath , uid , pkgName , instructionSet , dexoptNeeded , outputPath , dexFlags , compilerFilter , volumeUuid , sharedLibraries ) ) ; }
Source:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }

Target:
public boolean isCspPlmnEnabled ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.isCspPlmnEnabled ( ) : false ; }
Source:
protected void writeDiff ( java.io.File olderFile , java.io.File newerFile , java.io.OutputStream patchOutput ) throws java.io.IOException { java.io.BufferedInputStream olderFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( olderFile ) ) ; java.io.BufferedInputStream newerFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( newerFile ) ) ; try { writeDiff ( olderFileIn , newerFileIn , patchOutput ) ; } finally { olderFileIn.close ( ) ; newerFileIn.close ( ) ; } }

Target:
protected void writeDiff ( java.io.File olderFile , java.io.File newerFile , java.io.OutputStream patchOutput ) throws java.io.IOException { java.io.BufferedInputStream olderFileIn = new java.io.BufferedInputStream ( com.intellij.updater.Utils.newFileInputStream ( olderFile , myPatch.isNormalized ( ) ) ) ; java.io.BufferedInputStream newerFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( newerFile ) ) ; try { writeDiff ( olderFileIn , newerFileIn , patchOutput ) ; } finally { olderFileIn.close ( ) ; newerFileIn.close ( ) ; } }
Source:
static void testAddMethodToProfile ( java.io.File file , java.lang.reflect.Method m ) { Main.ensureProfilingInfo ( m ) ; Main.ensureProfileProcessing ( ) ; if ( ! ( Main.profileHasMethod ( true , file.getPath ( ) , m ) ) ) { throw new java.lang.RuntimeException ( ( ( "Method with index " + m ) + " not in the profile" ) ) ; } }

Target:
static void testAddMethodToProfile ( java.io.File file , java.lang.reflect.Method m ) { Main.ensureProfilingInfo ( m ) ; Main.ensureProfileProcessing ( ) ; if ( ! ( Main.presentInProfile ( file.getPath ( ) , m ) ) ) { throw new java.lang.RuntimeException ( ( ( "Method with index " + m ) + " not in the profile" ) ) ; } }
Source:
static void putSendFileInfo ( android.net.Uri uri , com.android.bluetooth.opp.BluetoothOppSendFileInfo sendFileInfo ) { if ( com.android.bluetooth.opp.BluetoothOppUtility.D ) android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppUtility.TAG , ( ( ( "putSendFileInfo: uri=" + uri ) + " sendFileInfo=" ) + sendFileInfo ) ) ; com.android.bluetooth.opp.BluetoothOppUtility.sSendFileMap.put ( uri , sendFileInfo ) ; }

Target:
static void putSendFileInfo ( android.net.Uri uri , com.android.bluetooth.opp.BluetoothOppSendFileInfo sendFileInfo ) { if ( com.android.bluetooth.opp.BluetoothOppUtility.D ) android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppUtility.TAG , ( ( ( "putSendFileInfo: uri=" + uri ) + " sendFileInfo=" ) + sendFileInfo ) ) ; if ( sendFileInfo == ( BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR ) ) { android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppUtility.TAG , ( "putSendFileInfo: bad sendFileInfo, URI: " + uri ) ) ; } com.android.bluetooth.opp.BluetoothOppUtility.sSendFileMap.put ( uri , sendFileInfo ) ; }
Source:
public static java.util.Map < java.lang.String , org.python.core.PyObject > runStringAndGet ( java.lang.String script , java.util.Collection < java.lang.String > names ) { com.android.monkeyrunner.ScriptRunner.initPython ( ) ; final org.python.util.PythonInterpreter python = new org.python.util.PythonInterpreter ( ) ; python.exec ( script ) ; com.google.common.collect.ImmutableMap.Builder < java.lang.String , org.python.core.PyObject > builder = com.google.common.collect.ImmutableMap.builder ( ) ; for ( java.lang.String name : names ) { builder.put ( name , python.get ( name ) ) ; } return builder.build ( ) ; }

Target:
public static java.util.Map < java.lang.String , org.python.core.PyObject > runStringAndGet ( java.lang.String executablePath , java.lang.String script , java.util.Collection < java.lang.String > names ) { com.android.monkeyrunner.ScriptRunner.initPython ( executablePath ) ; final org.python.util.PythonInterpreter python = new org.python.util.PythonInterpreter ( ) ; python.exec ( script ) ; com.google.common.collect.ImmutableMap.Builder < java.lang.String , org.python.core.PyObject > builder = com.google.common.collect.ImmutableMap.builder ( ) ; for ( java.lang.String name : names ) { builder.put ( name , python.get ( name ) ) ; } return builder.build ( ) ; }
Source:
public void testFlagFExistingE ( ) { int iFlags = PackageManager.INSTALL_EXTERNAL ; int rFlags = ( PackageManager.INSTALL_FORWARD_LOCK ) | ( PackageManager.INSTALL_REPLACE_EXISTING ) ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , ( - 1 ) ) ; }

Target:
public void testFlagFExistingE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int iFlags = android.content.pm.PackageManager.INSTALL_EXTERNAL ; int rFlags = ( android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ) | ( android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ) ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , ( - 1 ) ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_char.d.T_aput_char_1 t = new dot.junit.opcodes.aput_char.d.T_aput_char_1 ( ) ; char [ ] arr = new char [ 2 ] ; try { t.run ( arr , ( - 1 ) , 'g' ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_char.d.T_aput_char_1" , java.lang.ArrayIndexOutOfBoundsException.class , new char [ 2 ] , ( - 1 ) , 'g' ) ; }
Source:
private void handleClientResult ( int resultCode , android.content.Intent data , boolean secure ) { if ( data != null ) { com.android.cts.verifier.TestResult result = com.android.cts.verifier.TestResult.fromActivityResult ( resultCode , data ) ; com.android.cts.verifier.bluetooth.BluetoothTestActivity.TestListItem test = ( secure ) ? mSecureClientTest : mInsecureClientTest ; updateTest ( test ) ; } }

Target:
private void handleClientResult ( int resultCode , android.content.Intent data , boolean secure ) { if ( data != null ) { com.android.cts.verifier.TestResult result = com.android.cts.verifier.TestResult.fromActivityResult ( resultCode , data ) ; com.android.cts.verifier.bluetooth.BluetoothTestActivity.TestListItem test = ( secure ) ? mSecureClientTest : mInsecureClientTest ; test.setResult ( result.getResult ( ) ) ; updateTest ( test ) ; } }
Source:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; byte [ ] encoded = ( ( byte [ ] ) ( stream.readObject ( ) ) ) ; key = new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO ( encoded ) ) ; final long origGroup = org.conscrypt.NativeCrypto.EC_KEY_get0_group ( key.getPkeyContext ( ) ) ; group = new org.conscrypt.OpenSSLECGroupContext ( org.conscrypt.NativeCrypto.EC_GROUP_dup ( origGroup ) ) ; }

Target:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; byte [ ] encoded = ( ( byte [ ] ) ( stream.readObject ( ) ) ) ; key = new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO ( encoded ) ) ; final long origGroup = org.conscrypt.NativeCrypto.EC_KEY_get0_group ( key.getNativeRef ( ) ) ; group = new org.conscrypt.OpenSSLECGroupContext ( org.conscrypt.NativeCrypto.EC_GROUP_dup ( origGroup ) ) ; }
Source:
public void addMatrix ( android.support.v8.renderscript.Matrix4f v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addMatrix ( new android.support.v8.renderscript.Matrix4f ( v.getArray ( ) ) ) ; return ; } for ( int i = 0 ; i < ( v.mMat.length ) ; i ++ ) { addF32 ( v.mMat [ i ] ) ; } }

Target:
public void addU64 ( android.support.v8.renderscript.Long2 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addU64 ( v ) ; return ; } addU64 ( v.x ) ; addU64 ( v.y ) ; }
Source:
public static void e ( @ android.support.annotation.NonNull java.lang.String tag , @ android.support.annotation.Nullable java.lang.String msg , @ android.support.annotation.NonNull java.lang.Throwable throwable ) { if ( ! ( android.text.TextUtils.isEmpty ( msg ) ) ) { com.android.dialer.common.LogUtil.println ( android.util.Log.ERROR , com.android.dialer.common.LogUtil.TAG , tag , msg ) ; } com.android.dialer.common.LogUtil.println ( android.util.Log.ERROR , com.android.dialer.common.LogUtil.TAG , tag , android.util.Log.getStackTraceString ( throwable ) ) ; }

Target:
public static void e ( @ android.support.annotation.NonNull java.lang.String tag , @ android.support.annotation.Nullable java.lang.String msg , @ android.support.annotation.NonNull java.lang.Throwable throwable ) { if ( ! ( android.text.TextUtils.isEmpty ( msg ) ) ) { com.android.dialer.common.LogUtil.println ( android.util.Log.ERROR , com.android.dialer.common.LogUtil.TAG , tag , ( ( msg + "\n" ) + ( android.util.Log.getStackTraceString ( throwable ) ) ) ) ; } }
Source:
private static void assertServiceStatus ( boolean enabled ) { final java.lang.String actual = android.autofillservice.cts.Helper.runShellCommand ( "settings get secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; final java.lang.String expected = ( enabled ) ? android.autofillservice.cts.InstrumentedAutoFillService.SERVICE_NAME : "null" ; com.google.common.truth.Truth.assertWithMessage ( "Invalid value for secure setting %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) . that ( actual ) . isEqualTo ( expected ) ; }

Target:
private static void assertServiceStatus ( boolean enabled ) { final java.lang.String actual = android.autofillservice.cts.Helper.runShellCommand ( "settings get secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; final java.lang.String expected = ( enabled ) ? android.autofillservice.cts.AutoFillServiceTestCase.SERVICE_NAME : "null" ; com.google.common.truth.Truth.assertWithMessage ( "Invalid value for secure setting %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) . that ( actual ) . isEqualTo ( expected ) ; }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID , int p2 ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( subId , AID , p2 ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID , int p2 ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( subId , getOpPackageName ( ) , AID , p2 ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public void testQueryPhoneState ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; org.mockito.Mockito.when ( ringingCall.getHandle ( ) ) . thenReturn ( android.net.Uri.parse ( "tel:555-0000" ) ) ; mBluetoothPhoneService.mBinder.queryPhoneState ( ) ; org.mockito.Mockito.verify ( mMockBluetoothHeadset ) . phoneStateChanged ( org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CALL_STATE_INCOMING ) , org.mockito.Matchers.eq ( "555-0000" ) , org.mockito.Matchers.eq ( PhoneNumberUtils.TOA_Unknown ) ) ; }

Target:
public void testQueryPhoneState ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; org.mockito.Mockito.when ( ringingCall.getHandle ( ) ) . thenReturn ( android.net.Uri.parse ( "tel:5550000" ) ) ; mBluetoothPhoneService.mBinder.queryPhoneState ( ) ; org.mockito.Mockito.verify ( mMockBluetoothHeadset ) . phoneStateChanged ( org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( 0 ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CALL_STATE_INCOMING ) , org.mockito.Matchers.eq ( "5550000" ) , org.mockito.Matchers.eq ( PhoneNumberUtils.TOA_Unknown ) ) ; }
Source:
public java.lang.String getKey ( com.android.manifmerger.XmlElement xmlElement ) { return ( mNamespaceUri ) == null ? xmlElement.getXml ( ) . getAttribute ( mAttributeName ) : xmlElement.getXml ( ) . getAttributeNS ( mNamespaceUri , mAttributeName ) ; }

Target:
public java.lang.String getKey ( com.android.manifmerger.XmlElement xmlElement ) { java.lang.String key = ( ( mNamespaceUri ) == null ) ? xmlElement.getXml ( ) . getAttribute ( mAttributeName ) : xmlElement.getXml ( ) . getAttributeNS ( mNamespaceUri , mAttributeName ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( key ) ) return null ; return key ; }
Source:
private com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration getConfiguration ( java.lang.String ... qualifierValues ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; assertEquals ( qualifierValues.length , mQualifierList.length ) ; int index = 0 ; for ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier : mQualifierList ) { java.lang.String value = qualifierValues [ ( index ++ ) ] ; if ( value != null ) { assertTrue ( qualifier.checkAndSet ( value , config ) ) ; } } return config ; }

Target:
private com.android.ide.common.resources.configuration.FolderConfiguration getConfiguration ( java.lang.String ... qualifierValues ) { com.android.ide.common.resources.configuration.FolderConfiguration config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; assertEquals ( qualifierValues.length , mQualifierList.length ) ; int index = 0 ; for ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier : mQualifierList ) { java.lang.String value = qualifierValues [ ( index ++ ) ] ; if ( value != null ) { assertTrue ( qualifier.checkAndSet ( value , config ) ) ; } } return config ; }
Source:
public void testUninstallationIsSelective ( ) throws java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ; assertTrue ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ; }

Target:
public void testUninstallationIsSelective ( ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ; assertInstalled ( FAKE_RSA_1.caCertificate ) ; assertUninstalled ( FAKE_DSA_1.caCertificate ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ; }
Source:
private java.util.concurrent.ConcurrentSkipListMap.Node < K , V > hiNode ( ) { if ( ( hi ) == null ) return m.findLast ( ) ; else if ( hiInclusive ) return m.findNear ( hi , ( ( m.LT ) | ( m.EQ ) ) ) ; else return m.findNear ( hi , m.LT ) ; }

Target:
private java.util.concurrent.ConcurrentSkipListMap.Node < K , V > hiNode ( ) { if ( ( hi ) == null ) return m.findLast ( ) ; else if ( hiInclusive ) return m.findNear ( hi , ( ( java.util.concurrent.ConcurrentSkipListMap.LT ) | ( java.util.concurrent.ConcurrentSkipListMap.EQ ) ) ) ; else return m.findNear ( hi , java.util.concurrent.ConcurrentSkipListMap.LT ) ; }
Source:
public long seekTo ( long pos ) throws java.io.IOException { if ( ( mWrapped ) != null ) { return mWrapped.seekTo ( pos ) ; } else { try { return Libcore.os.lseek ( mFd , pos , libcore.io.OsConstants.SEEK_SET ) ; } catch ( libcore.io.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } } }

Target:
public long seekTo ( long pos ) throws java.io.IOException { if ( ( mWrapped ) != null ) { return mWrapped.seekTo ( pos ) ; } else { try { return android.system.Os.lseek ( mFd , pos , android.system.OsConstants.SEEK_SET ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } } }
Source:
private static java.lang.String getRegionForCalendar ( com.ibm.icu.util.ULocale loc ) { java.lang.String region = loc.getCountry ( ) ; if ( ( region.length ( ) ) == 0 ) { com.ibm.icu.util.ULocale maxLocale = com.ibm.icu.util.ULocale.addLikelySubtags ( loc ) ; region = maxLocale.getCountry ( ) ; if ( ( region.length ( ) ) == 0 ) { region = "001" ; } } return region ; }

Target:
private static java.lang.String getRegionForCalendar ( com.ibm.icu.util.ULocale loc ) { java.lang.String region = com.ibm.icu.util.ULocale.getRegionForSupplementalData ( loc , true ) ; if ( ( region.length ( ) ) == 0 ) { region = "001" ; } return region ; }
Source:
public void registerListener ( android.os.storage.StorageEventListener listener ) { if ( listener == null ) { return ; } synchronized ( mListeners ) { mListeners.add ( new android.os.storage.StorageManager.ListenerDelegate ( listener ) ) ; } }

Target:
public void registerListener ( android.os.storage.StorageEventListener listener ) { if ( listener == null ) { return ; } synchronized ( mListeners ) { if ( ( mBinderListener ) == null ) { try { mBinderListener = new android.os.storage.StorageManager.MountServiceBinderListener ( ) ; mMountService.registerListener ( mBinderListener ) ; } catch ( android.os.RemoteException rex ) { android.util.Log.e ( android.os.storage.StorageManager.TAG , "Register mBinderListener failed" ) ; return ; } } mListeners.add ( new android.os.storage.StorageManager.ListenerDelegate ( listener ) ) ; } }
Source:
com.android.hierarchyviewerlib.device.ViewNode find ( com.android.hierarchyviewerlib.device.ViewNode rootNode ) { if ( rootNode.id.equals ( id ) ) { return rootNode ; } for ( com.android.hierarchyviewerlib.device.ViewNode child : rootNode.children ) { com.android.hierarchyviewerlib.device.ViewNode found = find ( child ) ; if ( found != null ) { return found ; } } return null ; }

Target:
public com.android.hierarchyviewerlib.device.ViewNode findView ( com.android.chimpchat.hierarchyviewer.HierarchyViewer viewer ) { return viewer.findViewById ( id ) ; }
Source:
private void openDocuments ( final com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { com.android.documentsui.Metrics.logUserAction ( getContext ( ) , Metrics.USER_ACTION_OPEN ) ; new com.android.documentsui.dirlist.DirectoryFragment.GetDocumentsTask ( ) { @ java.lang.Override void onDocumentsReady ( java.util.List < com.android.documentsui.model.DocumentInfo > docs ) { com.android.documentsui.BaseActivity.get ( com.android.documentsui.dirlist.DirectoryFragment.this ) . onDocumentsPicked ( docs ) ; } } . execute ( selected ) ; }

Target:
private void openDocuments ( final com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { com.android.documentsui.Metrics.logUserAction ( getContext ( ) , Metrics.USER_ACTION_OPEN ) ; java.util.List < com.android.documentsui.model.DocumentInfo > docs = mModel.getDocuments ( selected ) ; com.android.documentsui.BaseActivity.get ( this ) . onDocumentsPicked ( docs ) ; }
Source:
public boolean verify ( byte [ ] digest , byte [ ] expected ) { try { rawSignature.update ( digest ) ; return rawSignature.verify ( expected ) ; } catch ( java.security.SignatureException e ) { throw new org.bouncycastle.operator.RuntimeOperatorException ( ( "exception obtaining raw signature: " + ( e.getMessage ( ) ) ) , e ) ; } }

Target:
public boolean verify ( byte [ ] digest , byte [ ] expected ) { try { rawSignature.update ( digest ) ; return rawSignature.verify ( expected ) ; } catch ( java.security.SignatureException e ) { throw new org.bouncycastle.operator.RuntimeOperatorException ( ( "exception obtaining raw signature: " + ( e.getMessage ( ) ) ) , e ) ; } finally { try { stream.verify ( expected ) ; } catch ( java.lang.Exception e ) { } } }
Source:
public boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.unregisterApp ( config ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unregisterApp ( config ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.util.Map.Entry < T , U > data ) throws com.android.sched.util.codec.CheckingException { com.android.sched.util.config.ChainedException.ChainedExceptionBuilder < com.android.sched.util.codec.CheckingException > exceptions = new com.android.sched.util.config.ChainedException.ChainedExceptionBuilder < com.android.sched.util.codec.CheckingException > ( ) ; try { keyParser.checkValue ( context , data.getKey ( ) ) ; } catch ( com.android.sched.util.codec.CheckingException e ) { exceptions.appendException ( e ) ; } try { valueParser.checkValue ( context , data.getValue ( ) ) ; } catch ( com.android.sched.util.codec.CheckingException e ) { exceptions.appendException ( e ) ; } exceptions.throwIfNecessary ( ) ; }

Target:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull com.android.sched.util.codec.PairCodec.Pair < T , U > data ) throws com.android.sched.util.codec.CheckingException { com.android.sched.util.config.ChainedException.ChainedExceptionBuilder < com.android.sched.util.codec.CheckingException > exceptions = new com.android.sched.util.config.ChainedException.ChainedExceptionBuilder < com.android.sched.util.codec.CheckingException > ( ) ; try { keyParser.checkValue ( context , data.getFirst ( ) ) ; } catch ( com.android.sched.util.codec.CheckingException e ) { exceptions.appendException ( e ) ; } try { valueParser.checkValue ( context , data.getSecond ( ) ) ; } catch ( com.android.sched.util.codec.CheckingException e ) { exceptions.appendException ( e ) ; } exceptions.throwIfNecessary ( ) ; }
Source:
public boolean getRoamingCapabilities ( com.android.server.wifi.WifiNative.RoamingCapabilities capabilities ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "getRoamingCapabilities " ) ; try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getRoamingCapabilities ( capabilities ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean enableDisableTdls ( boolean enable , java.lang.String macAdd , com.android.server.wifi.WifiNative.TdlsEventHandler tdlsCallBack ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "enableDisableTdls not supported" ) ; return false ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { com.android.server.wifi.WifiNative.sTdlsEventHandler = tdlsCallBack ; return com.android.server.wifi.WifiNative.enableDisableTdlsNative ( com.android.server.wifi.WifiNative.sWlan0Index , enable , macAdd ) ; } } }
Source:
public android.os.Bundle getApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName ) { throwIfParentInstance ( "getApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { return mService.getApplicationRestrictions ( admin , packageName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }

Target:
public void setKeepUninstalledPackages ( @ android.annotation.Nullable android.content.ComponentName admin , @ android.annotation.NonNull java.util.List < java.lang.String > packageNames ) { throwIfParentInstance ( "setKeepUninstalledPackages" ) ; if ( ( mService ) != null ) { try { mService.setKeepUninstalledPackages ( admin , mContext.getPackageName ( ) , packageNames ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
protected void transform ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JNode newNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.Transformation transformation ) throws java.lang.UnsupportedOperationException { if ( ! ( annotations.transform ( existingNode , newNode , transformation ) ) ) { super . transform ( existingNode , newNode , transformation ) ; } }

Target:
protected void transform ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JNode newNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.Transformation transformation ) throws java.lang.UnsupportedOperationException { if ( ! ( transform ( annotations , existingNode , ( ( com.android.jack.ir.ast.JAnnotation ) ( newNode ) ) , transformation ) ) ) { super . transform ( existingNode , newNode , transformation ) ; } }