auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { spiImpl.engineUpdate ( input , 0 , input.length ) ; } return spiImpl.engineDoFinal ( ) ; }

Target:
public final void update ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { getSpi ( ) . engineUpdate ( input , 0 , input.length ) ; } }
Source:
public static java.net.InetSocketAddress getLocalInetSocketAddress ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { return ( ( java.net.InetSocketAddress ) ( Libcore.os.getsockname ( fd ) ) ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static java.net.InetSocketAddress getLocalInetSocketAddress ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { java.net.SocketAddress socketAddress = Libcore.os.getsockname ( fd ) ; if ( ( socketAddress != null ) && ( ! ( socketAddress instanceof java.net.InetSocketAddress ) ) ) { throw new java.net.SocketException ( ( ( "Socket assumed to be pending closure: Expected sockname " + "to be an InetSocketAddress, got " ) + ( socketAddress.getClass ( ) ) ) ) ; } return ( ( java.net.InetSocketAddress ) ( socketAddress ) ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
public android.content.pm.UserInfo getCurrentUser ( ) throws android.os.RemoteException { final int callingUid = android.os.Binder.getCallingUid ( ) ; if ( ( callingUid != 0 ) && ( callingUid != ( java.lang.Process.myUid ( ) ) ) ) { android.util.Slog.e ( com.android.server.am.ActivityManagerService.TAG , "Trying to get user from unauthorized app" ) ; return null ; } return android.app.AppGlobals.getPackageManager ( ) . getUser ( mCurrentUserId ) ; }

Target:
public int [ ] getRunningUserIds ( ) { if ( ( checkCallingPermission ( android.Manifest.permission.INTERACT_ACROSS_USERS ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { java.lang.String msg = ( ( ( ( "Permission Denial: isUserRunning() from pid=" + ( android.os.Binder.getCallingPid ( ) ) ) + ", uid=" ) + ( android.os.Binder.getCallingUid ( ) ) ) + " requires " ) + ( android.Manifest.permission.INTERACT_ACROSS_USERS ) ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } synchronized ( this ) { return mStartedUserArray ; } }
Source:
public void stopRingbackForCall ( com.android.server.telecom.Call call ) { if ( ( mCall ) == call ) { mCall = null ; if ( ( mTonePlayer ) == null ) { android.telecom.Log.w ( this , "No player found to stop." ) ; } else { android.telecom.Log.i ( this , "Stopping the ringback tone for %s." , call ) ; mTonePlayer.stopTone ( ) ; mTonePlayer = null ; } } }

Target:
public void stopRingbackForCall ( com.android.server.telecom.Call call ) { if ( ( mCall ) == call ) { mCall = null ; if ( ( mTonePlayer ) == null ) { android.telecom.Log.w ( this , "No player found to stop." ) ; } else { android.telecom.Log.i ( this , "Stopping the ringback tone for %s." , call ) ; android.telecom.Log.addEvent ( call , com.android.server.telecom.LogUtils.Events.STOP_RINGBACK ) ; mTonePlayer.stopTone ( ) ; mTonePlayer = null ; } } }
Source:
public java.lang.String getDensityFilter ( ) { return getVariantOutputData ( ) . getDensityFilter ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.build.OutputFile > getOutputs ( ) { com.google.common.collect.ImmutableList.Builder < com.android.build.OutputFile > outputFileBuilder = com.google.common.collect.ImmutableList.builder ( ) ; for ( com.android.build.gradle.api.ApkOutputFile apkOutputFile : getVariantOutputData ( ) . getOutputs ( ) ) { outputFileBuilder.add ( apkOutputFile ) ; } return outputFileBuilder.build ( ) ; }
Source:
public boolean hasUtcZone ( long whenMillis ) { for ( android.icu.util.TimeZone zone : getIcuTimeZones ( ) ) { if ( ( zone.getOffset ( whenMillis ) ) == 0 ) { return true ; } } return false ; }

Target:
public boolean hasUtcZone ( long whenMillis ) { if ( ! ( everUsesUtc ) ) { return false ; } for ( android.icu.util.TimeZone zone : getIcuTimeZones ( ) ) { if ( ( zone.getOffset ( whenMillis ) ) == 0 ) { return true ; } } return false ; }
Source:
private boolean reasonablePin ( java.lang.String pin ) { if ( ( ( pin == null ) || ( ( pin.length ( ) ) < ( com.android.settings.SimLockSettings.MIN_PIN_LENGTH ) ) ) || ( ( pin.length ( ) ) > ( com.android.settings.SimLockSettings.MAX_PIN_LENGTH ) ) ) { return false ; } else { return true ; } }

Target:
private boolean reasonablePin ( java.lang.String pin ) { if ( ( ( pin == null ) || ( ( pin.length ( ) ) < ( com.android.settings.IccLockSettings.MIN_PIN_LENGTH ) ) ) || ( ( pin.length ( ) ) > ( com.android.settings.IccLockSettings.MAX_PIN_LENGTH ) ) ) { return false ; } else { return true ; } }
Source:
public void testSaveProperties ( ) throws java.lang.Exception { java.util.Properties props = createProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , props , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; java.util.Properties props2 = new java.util.Properties ( ) ; p.saveProperties ( props2 ) ; assertEquals ( props2 , props ) ; }

Target:
public void testSaveProperties ( ) throws java.lang.Exception { java.util.Properties expected = createExpectedProps ( ) ; java.lang.Package p = new com.android.sdklib.internal.repository.packages.PackageTest.MockPackage ( null , expected , ( - 1 ) , null , null , null , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH ) ; java.util.Properties actual = new java.util.Properties ( ) ; p.saveProperties ( actual ) ; assertEquals ( expected , actual ) ; }
Source:
private static void addModuleForAccessingCallDetails ( android.content.Context context , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules , com.android.dialer.calllog.model.CoalescedRow row ) { boolean canReportInaccurateNumber = false ; boolean canSupportAssistedDialing = ! ( android.text.TextUtils.isEmpty ( row.lookupUri ( ) ) ) ; modules.add ( new com.android.dialer.contactactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , row.coalescedIds ( ) , com.android.dialer.calllog.ui.menu.Modules.createDialerContactFromRow ( row ) , canReportInaccurateNumber , canSupportAssistedDialing ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ) ; }

Target:
private static void addModuleForAccessingCallDetails ( android.content.Context context , java.util.List < com.android.dialer.contactactions.ContactActionModule > modules , com.android.dialer.calllog.model.CoalescedRow row ) { boolean canReportAsInvalidNumber = row.canReportAsInvalidNumber ( ) ; boolean canSupportAssistedDialing = ! ( android.text.TextUtils.isEmpty ( row.lookupUri ( ) ) ) ; modules.add ( new com.android.dialer.contactactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , row.coalescedIds ( ) , com.android.dialer.calllog.ui.menu.Modules.createDialerContactFromRow ( row ) , canReportAsInvalidNumber , canSupportAssistedDialing ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ) ; }
Source:
public void start ( android.content.Context context , android.os.Looper looper ) { android.util.Log.i ( com.android.server.wifi.nan.WifiNanStateManager.TAG , "start()" ) ; mContext = context ; mSm = new com.android.server.wifi.nan.WifiNanStateManager.WifiNanStateMachine ( com.android.server.wifi.nan.WifiNanStateManager.TAG , looper ) ; mSm.setDbg ( com.android.server.wifi.nan.WifiNanStateManager.DBG ) ; mSm.start ( ) ; mRtt = new com.android.server.wifi.nan.WifiNanRttStateManager ( ) ; mDataPathMgr = new com.android.server.wifi.nan.WifiNanDataPathStateManager ( this ) ; mDataPathMgr.start ( mContext , mSm.getHandler ( ) . getLooper ( ) ) ; }

Target:
public void start ( android.content.Context context , android.os.Looper looper ) { android.util.Log.i ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , "start()" ) ; mContext = context ; mSm = new com.android.server.wifi.aware.WifiAwareStateManager.WifiAwareStateMachine ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , looper ) ; mSm.setDbg ( com.android.server.wifi.aware.WifiAwareStateManager.DBG ) ; mSm.start ( ) ; mRtt = new com.android.server.wifi.aware.WifiAwareRttStateManager ( ) ; mDataPathMgr = new com.android.server.wifi.aware.WifiAwareDataPathStateManager ( this ) ; mDataPathMgr.start ( mContext , mSm.getHandler ( ) . getLooper ( ) ) ; }
Source:
byte getDialpadIndex ( char ch ) ;

Target:
protected com.google.common.base.Optional < java.lang.Byte > getDialpadIndex ( char ch ) { if ( isValidDialpadNumericChar ( ch ) ) { return com.google.common.base.Optional.of ( ( ( byte ) ( ch - '0' ) ) ) ; } if ( isValidDialpadAlphabeticChar ( ch ) ) { return com.google.common.base.Optional.of ( ( ( byte ) ( ( getCharToKeyMap ( ) . get ( ch ) ) - '0' ) ) ) ; } return com.google.common.base.Optional.absent ( ) ; }
Source:
private static byte [ ] getExpectedPlainText ( java.lang.String algorithm ) { if ( algorithm.equals ( "RSA/ECB/NOPADDING" ) ) { return libcore.javax.crypto.CipherTest.PKCS1_BLOCK_TYPE_00_PADDED_PLAIN_TEXT ; } return libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ; }

Target:
private static byte [ ] getExpectedPlainText ( java.lang.String algorithm , java.lang.String provider ) { if ( ( ( ( algorithm.equals ( "AES" ) ) || ( algorithm.equals ( "AES/CBC/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/CTS/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/ECB/NOPADDING" ) ) ) { return libcore.javax.crypto.CipherTest.SIXTEEN_BYTE_BLOCK_PLAIN_TEXT ; } if ( ( ! ( provider.equals ( "BC" ) ) ) && ( algorithm.equals ( "RSA/ECB/NOPADDING" ) ) ) { return libcore.javax.crypto.CipherTest.PKCS1_BLOCK_TYPE_00_PADDED_PLAIN_TEXT ; } return libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ; }
Source:
public static int NotEqualFalseRhs ( boolean arg ) { return arg == false ? 3 : 5 ; }

Target:
public static int runSmaliTest ( java.lang.String name , boolean input ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , new java.lang.Class [ ] { boolean . class } ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }
Source:
public void TestGetAvailable ( ) { com.ibm.icu.util.ULocale [ ] locales = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; if ( ( locales.length ) < 10 ) { errln ( "Did not get the correct result from getAvailableLocales" ) ; } if ( ! ( locales [ ( ( locales.length ) - 1 ) ] . getName ( ) . equals ( "zu_ZA" ) ) ) { errln ( "Did not get the expected result" ) ; } }

Target:
public void TestGetAvailable ( ) { com.ibm.icu.util.ULocale [ ] locales = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; if ( ( locales.length ) < 10 ) { errln ( "Did not get the correct result from getAvailableLocales" ) ; } if ( ! ( locales [ ( ( locales.length ) - 1 ) ] . getName ( ) . startsWith ( "z" ) ) ) { errln ( "Did not get the expected result" ) ; } }
Source:
public synchronized void close ( ) throws com.android.sched.util.file.CannotCloseInputException , com.android.sched.util.file.CannotCloseOutputException { if ( ! ( closed ) ) { if ( vfs.getCapabilities ( ) . contains ( Capabilities.WRITE ) ) { try { printDigest ( vfs.getRootDir ( ) . createVFile ( com.android.sched.vfs.MessageDigestFS.DIGEST_FILE_NAME ) . getOutputStream ( ) ) ; } catch ( com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.sched.util.file.CannotCloseOutputException ( this , e ) ; } } vfs.close ( ) ; closed = true ; } }

Target:
public synchronized void close ( ) throws com.android.sched.util.file.CannotCloseException { if ( ! ( closed ) ) { if ( vfs.getCapabilities ( ) . contains ( Capabilities.WRITE ) ) { try { printDigest ( vfs.getRootDir ( ) . createVFile ( com.android.sched.vfs.MessageDigestFS.DIGEST_FILE_NAME ) . getOutputStream ( ) ) ; } catch ( com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.sched.util.file.CannotCloseException ( this , e ) ; } } vfs.close ( ) ; closed = true ; } }
Source:
private void buildAidlCompilationList ( org.eclipse.core.resources.IProject project , java.util.ArrayList < org.eclipse.core.runtime.IPath > sourceFolderPathList ) { org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; for ( org.eclipse.core.runtime.IPath sourceFolderPath : sourceFolderPathList ) { org.eclipse.core.resources.IFolder sourceFolder = root.getFolder ( sourceFolderPath ) ; if ( ( sourceFolder.exists ( ) ) && ( ( sourceFolder.equals ( mGenFolder ) ) == false ) ) { scanFolderForAidl ( sourceFolder , sourceFolder ) ; } } }

Target:
protected void startupOnInitialize ( ) { super . startupOnInitialize ( ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; mManifestPackage = loadProjectStringProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_PACKAGE ) ; mGenFolder = project.getFolder ( SdkConstants.FD_GEN_SOURCES ) ; mMustCompileResources = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_RESOURCES , true ) ; org.eclipse.jdt.core.IJavaProject javaProject = org.eclipse.jdt.core.JavaCore.create ( project ) ; com.android.ide.eclipse.adt.internal.build.JavaGenerator aidlGenerator = new com.android.ide.eclipse.adt.internal.build.AidlGenerator ( javaProject , mGenFolder ) ; mGeneratorList.add ( aidlGenerator ) ; mDerivedProgressMonitor = new com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.DerivedProgressMonitor ( mGenFolder ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCe = getInstrumentation ( ) . getContext ( ) ; mDe = mCe.createDeviceProtectedStorageContext ( ) ; mPm = mCe.getPackageManager ( ) ; mDevice = android.support.test.uiautomator.UiDevice.getInstance ( getInstrumentation ( ) ) ; assertNotNull ( mDevice ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCe = getInstrumentation ( ) . getContext ( ) ; mDe = mCe.createDeviceProtectedStorageContext ( ) ; mPm = mCe.getPackageManager ( ) ; final android.content.Intent intent = new android.content.Intent ( android.app.admin.DevicePolicyManager.ACTION_SET_NEW_PASSWORD ) ; intent.addCategory ( Intent.CATEGORY_DEFAULT ) ; android.content.pm.ResolveInfo rInfo = mPm.resolveActivity ( intent , PackageManager.MATCH_DEFAULT_ONLY ) ; if ( rInfo != null ) { mEncryptionSettingPackage = rInfo.activityInfo.packageName ; } mDevice = android.support.test.uiautomator.UiDevice.getInstance ( getInstrumentation ( ) ) ; assertNotNull ( mDevice ) ; }
Source:
public int computeVerticalScrollExtent ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { int ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer call ( ) { return computeVerticalScrollExtent ( ) ; } } ) ; return ret ; } return mAwContents.computeVerticalScrollExtent ( ) ; }

Target:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }
Source:
public void testAesCbcHmacSha1Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha256Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; android.system.Os.umask ( ( ( libcore.io.OsConstants.S_IRWXG ) | ( libcore.io.OsConstants.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }

Target:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; android.system.Os.umask ( ( ( android.system.OsConstants.S_IRWXG ) | ( android.system.OsConstants.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }
Source:
public android.os.PersistableBundle getCarrierConfig ( android.service.carrier.CarrierIdentifier id ) { return this . onLoadConfig ( id ) ; }

Target:
public void getCarrierConfig ( android.service.carrier.CarrierIdentifier id , android.os.ResultReceiver result ) { try { android.os.Bundle data = new android.os.Bundle ( ) ; data.putParcelable ( android.service.carrier.CarrierService.ICarrierServiceWrapper.KEY_CONFIG_BUNDLE , this . onLoadConfig ( id ) ) ; result.send ( android.service.carrier.CarrierService.ICarrierServiceWrapper.RESULT_OK , data ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.service.carrier.CarrierService.LOG_TAG , ( "Error in onLoadConfig: " + ( e.getMessage ( ) ) ) , e ) ; result.send ( android.service.carrier.CarrierService.ICarrierServiceWrapper.RESULT_ERROR , null ) ; } }
Source:
public void setAudioRouteAllowed ( boolean allowed ) { if ( android.bluetooth.BluetoothHeadsetClient.VDBG ) android.bluetooth.BluetoothHeadsetClient.log ( "setAudioRouteAllowed" ) ; if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { mService.setAudioRouteAllowed ( allowed ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadsetClient.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadsetClient.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadsetClient.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadsetClient.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } }

Target:
public boolean connectAudio ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { return mService.connectAudio ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadsetClient.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadsetClient.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadsetClient.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadsetClient.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }
Source:
private static javax.net.ssl.X509TrustManager findX509TrustManager ( javax.net.ssl.TrustManager [ ] tms ) throws java.security.KeyManagementException { for ( javax.net.ssl.TrustManager tm : tms ) { if ( tm instanceof javax.net.ssl.X509TrustManager ) { return ( ( javax.net.ssl.X509TrustManager ) ( tm ) ) ; } } throw new java.security.KeyManagementException ( ( "Failed to find an X509TrustManager in " + ( java.util.Arrays.toString ( tms ) ) ) ) ; }

Target:
private static javax.net.ssl.X509TrustManager findFirstX509TrustManager ( javax.net.ssl.TrustManager [ ] tms ) { for ( javax.net.ssl.TrustManager tm : tms ) { if ( tm instanceof javax.net.ssl.X509TrustManager ) { return ( ( javax.net.ssl.X509TrustManager ) ( tm ) ) ; } } return null ; }
Source:
public void testCrashWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "DisplayingBitmaps" ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.ImageView" ) ) . click ( ) ; }

Target:
public void testCrashWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; if ( ! ( com.android.devtools.systemimage.uitest.utils.PackageInstallationUtil.isPackageInstalled ( instrumentation , "com.example.android.displayingbitmaps" ) ) ) { com.android.devtools.systemimage.uitest.utils.PackageInstallationUtil.installApk ( instrumentation , "CrashExample.apk" ) ; } com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "DisplayingBitmaps" ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.ImageView" ) ) . click ( ) ; }
Source:
public android.view.inputmethod.InputMethodSubtype getCurrentInputMethodSubtype ( ) { synchronized ( mH ) { try { return mService.getCurrentInputMethodSubtype ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return null ; } } }

Target:
public void dispatchKeyEventFromInputMethod ( @ android.annotation.Nullable android.view.View targetView , @ android.annotation.NonNull android.view.KeyEvent event ) { synchronized ( mH ) { android.view.ViewRootImpl viewRootImpl = ( targetView != null ) ? targetView.getViewRootImpl ( ) : null ; if ( viewRootImpl == null ) { if ( ( mServedView ) != null ) { viewRootImpl = mServedView.getViewRootImpl ( ) ; } } if ( viewRootImpl != null ) { viewRootImpl.dispatchKeyFromIme ( event ) ; } } }
Source:
public void callSessionUpdateFailed ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionUpdateFailed :: session=" + session ) + " reasonInfo=" ) + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionUpdateFailed :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; mUpdateRequest = com.android.ims.ImsCall.UPDATE_NONE ; } if ( listener != null ) { try { listener.onCallUpdateFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionUpdateFailed :: " , t ) ; } } }

Target:
public void callSessionUpdated ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsCallProfile profile ) { logi ( ( ( ( "callSessionUpdated :: session=" + session ) + " profile=" ) + profile ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionUpdated :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; setCallProfile ( profile ) ; } if ( listener != null ) { try { listener.onCallUpdated ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionUpdated :: " , t ) ; } } }
Source:
private void cancelPreloadRecentApps ( ) { if ( mPreloadedRecentApps ) { mPreloadedRecentApps = false ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.cancelPreloadRecentApps ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when showing recent apps" , e ) ; mStatusBarService = null ; } } }

Target:
private void cancelPreloadRecentApps ( ) { if ( mPreloadedRecentApps ) { mPreloadedRecentApps = false ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.cancelPreloadRecentApps ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when cancelling recent apps preload" , e ) ; mStatusBarService = null ; } } }
Source:
public void push ( com.android.traceview.Call c ) { mStack.add ( c ) ; }

Target:
void endTrace ( java.util.ArrayList < com.android.traceview.TraceAction > trace ) { for ( int i = ( mStack.size ( ) ) - 1 ; i >= 1 ; i -- ) { com.android.traceview.Call call = mStack.get ( i ) ; call.mGlobalEndTime = mGlobalEndTime ; call.mThreadEndTime = mThreadEndTime ; if ( trace != null ) { trace.add ( new com.android.traceview.TraceAction ( TraceAction.ACTION_INCOMPLETE , call ) ) ; } } mStack.clear ( ) ; mStackMethods.clear ( ) ; }
Source:
public boolean ping ( ) { java.lang.String pong = doStringCommand ( "PING" ) ; return ( pong != null ) && ( pong.equals ( "PONG" ) ) ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public com.android.sched.vfs.InputOutputVDir checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectDir ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectVFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
public static java.util.Map < java.lang.String , java.lang.String > parsePropertyFile ( @ com.android.annotations.NonNull com.android.io.IAbstractFile propFile , @ com.android.annotations.Nullable com.android.utils.ILogger log ) { try { return com.android.sdklib.internal.project.ProjectProperties.parsePropertyStream ( propFile.getContents ( ) , propFile.getOsLocation ( ) , log ) ; } catch ( com.android.io.StreamException e ) { if ( log != null ) { log.warning ( "Error parsing '%1$s': %2$s." , propFile.getOsLocation ( ) , e.getMessage ( ) ) ; } } return null ; }

Target:
public static java.util.Map < java.lang.String , java.lang.String > parsePropertyFile ( @ com.android.annotations.NonNull com.android.io.IAbstractFile propFile , @ com.android.annotations.Nullable com.android.utils.ILogger log ) { java.io.InputStream is = null ; try { is = propFile.getContents ( ) ; return com.android.sdklib.internal.project.ProjectProperties.parsePropertyStream ( is , propFile.getOsLocation ( ) , log ) ; } catch ( com.android.io.StreamException e ) { if ( log != null ) { log.warning ( "Error parsing '%1$s': %2$s." , propFile.getOsLocation ( ) , e.getMessage ( ) ) ; } } finally { com.google.common.io.Closeables.closeQuietly ( is ) ; } return null ; }
Source:
public boolean configHciSnoopLog ( boolean enable ) { try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.configHciSnoopLog ( enable ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
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 ; }
Source:
public android.net.NetworkCapabilities createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) ; netCap.mNetworkCapabilities = in.readLong ( ) ; netCap.mTransportTypes = in.readLong ( ) ; netCap.mLinkUpBandwidthKbps = in.readInt ( ) ; netCap.mLinkDownBandwidthKbps = in.readInt ( ) ; netCap.mNetworkSpecifier = in.readString ( ) ; netCap.mSignalStrength = in.readInt ( ) ; return netCap ; }

Target:
public android.net.NetworkCapabilities createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) ; netCap.mNetworkCapabilities = in.readLong ( ) ; netCap.mTransportTypes = in.readLong ( ) ; netCap.mLinkUpBandwidthKbps = in.readInt ( ) ; netCap.mLinkDownBandwidthKbps = in.readInt ( ) ; netCap.mNetworkSpecifier = in.readParcelable ( null ) ; netCap.mSignalStrength = in.readInt ( ) ; return netCap ; }
Source:
public void testInjectKeyEvent_securityException ( ) { android.view.KeyCharacterMap keyCharacterMap = android.support.test.espresso.base.UiControllerImpl.getKeyCharacterMap ( ) ; android.view.KeyEvent [ ] events = keyCharacterMap.getEvents ( "a" . toCharArray ( ) ) ; try { injector.injectKeyEvent ( events [ 0 ] ) ; fail ( "Should have thrown a security exception!" ) ; } catch ( android.support.test.espresso.InjectEventSecurityException expected ) { } }

Target:
public void injectKeyEvent_securityException ( ) throws android.support.test.espresso.InjectEventSecurityException { android.view.KeyCharacterMap keyCharacterMap = android.support.test.espresso.base.UiControllerImpl.getKeyCharacterMap ( ) ; android.view.KeyEvent [ ] events = keyCharacterMap.getEvents ( "a" . toCharArray ( ) ) ; expectedException.expect ( android.support.test.espresso.InjectEventSecurityException.class ) ; injector.injectKeyEvent ( events [ 0 ] ) ; }
Source:
private void initForReal ( ) { mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , mWebView.getContext ( ) , new com.android.webview.chromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }

Target:
private void initForReal ( ) { mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , mWebView.getContext ( ) , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , new com.android.webview.chromium.WebViewChromium.WebViewNativeGLDelegate ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , dexoptNeeded , vmSafeMode , debuggable , outputPath ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded , boolean bootComplete ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , instructionSet , dexoptNeeded , bootComplete ) ; }
Source:
public boolean startScreenSaver ( ) { synchronized ( mLock ) { if ( isScreenSaverEnabled ( ) ) { android.service.dreams.IDreamManager dm = getDreamManager ( ) ; if ( dm == null ) return false ; try { if ( com.android.internal.policy.impl.PhoneWindowManager.localLOGV ) android.util.Log.v ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "startScreenSaver: entering dreamland..." ) ; dm.dream ( ) ; return true ; } catch ( android.os.RemoteException ex ) { } } } return false ; }

Target:
private boolean isWakeKeyWhenScreenOff ( int keyCode ) { switch ( keyCode ) { case android.view.KeyEvent.KEYCODE_VOLUME_UP : case android.view.KeyEvent.KEYCODE_VOLUME_DOWN : case android.view.KeyEvent.KEYCODE_VOLUME_MUTE : return ( mDockMode ) != ( android.content.Intent.EXTRA_DOCK_STATE_UNDOCKED ) ; case android.view.KeyEvent.KEYCODE_MUTE : case android.view.KeyEvent.KEYCODE_HEADSETHOOK : case android.view.KeyEvent.KEYCODE_MEDIA_PLAY : case android.view.KeyEvent.KEYCODE_MEDIA_PAUSE : case android.view.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE : case android.view.KeyEvent.KEYCODE_MEDIA_STOP : case android.view.KeyEvent.KEYCODE_MEDIA_NEXT : case android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS : case android.view.KeyEvent.KEYCODE_MEDIA_REWIND : case android.view.KeyEvent.KEYCODE_MEDIA_RECORD : case android.view.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD : case android.view.KeyEvent.KEYCODE_CAMERA : return false ; } return true ; }
Source:
public long suggestHighestPriority ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { return mScheduleManager.suggestHighestPriority ( schedule ) ; } return DvrScheduleManager.DEFAULT_PRIORITY ; }

Target:
public void setHighestPriority ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { long newPriority = mScheduleManager.suggestHighestPriority ( schedule ) ; if ( newPriority != ( schedule.getPriority ( ) ) ) { mDataManager.updateScheduledRecording ( com.android.tv.dvr.data.ScheduledRecording.buildFrom ( schedule ) . setPriority ( newPriority ) . build ( ) ) ; } } }
Source:
private void notifyDefaultData ( com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( DBG ) { log ( ( ( ( "notifyDefaultData: type=" + ( apnContext.getApnType ( ) ) ) + ", reason:" ) + ( apnContext.getReason ( ) ) ) ) ; } apnContext.setState ( DctConstants.State.CONNECTED ) ; mPhone.notifyDataConnection ( apnContext.getReason ( ) , apnContext.getApnType ( ) ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.dataconnection.DATA_STALL_NOT_SUSPECTED ) ; }

Target:
private void onApnChanged ( ) { com.android.internal.telephony.DctConstants.State overallState = getOverallState ( ) ; boolean isDisconnected = ( overallState == ( DctConstants.State.IDLE ) ) || ( overallState == ( DctConstants.State.FAILED ) ) ; if ( ( mPhone ) instanceof com.android.internal.telephony.gsm.GSMPhone ) { ( ( com.android.internal.telephony.gsm.GSMPhone ) ( mPhone ) ) . updateCurrentCarrierInProvider ( ) ; } if ( DBG ) log ( "onApnChanged: createAllApnList and cleanUpAllConnections" ) ; createAllApnList ( ) ; setInitialAttachApn ( ) ; cleanUpAllConnections ( ( ! isDisconnected ) , Phone.REASON_APN_CHANGED ) ; if ( isDisconnected ) { setupDataOnConnectableApns ( Phone.REASON_APN_CHANGED ) ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int literal = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }
Source:
public int getTextRunCursor ( int contextStart , int contextEnd , int flags , int offset , int cursorOpt , android.graphics.Paint p ) { int contextCount = contextEnd - contextStart ; return p.getTextRunCursor ( mChars , ( contextStart + ( mStart ) ) , contextCount , flags , ( offset + ( mStart ) ) , cursorOpt ) ; }

Target:
public int getTextRunCursor ( int contextStart , int contextEnd , int dir , int offset , int cursorOpt , android.graphics.Paint p ) { int contextCount = contextEnd - contextStart ; return p.getTextRunCursor ( mChars , ( contextStart + ( mStart ) ) , contextCount , dir , ( offset + ( mStart ) ) , cursorOpt ) ; }
Source:
public void testStageInstallWithErrorCode_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneDistroInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , doesNotExist , testInstallDir ) ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.stageInstallWithErrorCode ( distro ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneDistroInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , doesNotExist , testInstallDir ) ; byte [ ] distroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "phone request for voicemailUri: %s with number:%s" , voicemailUri.toString ( ) , numberVoicemailFrom ) ; com.android.dialer.common.Assert.checkArgument ( ( ! ( android.text.TextUtils.isEmpty ( numberVoicemailFrom ) ) ) , ( "number cannot be empty:" + ( numberVoicemailFrom ) ) ) ; com.android.dialer.precall.PreCall.start ( getContext ( ) , new com.android.dialer.callintent.CallIntentBuilder ( numberVoicemailFrom , com.android.dialer.callintent.CallInitiationType.Type.VOICEMAIL_LOG ) ) ; }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "phone request for voicemailUri: %s with number:%s" , voicemailUri.toString ( ) , numberVoicemailFrom ) ; com.android.dialer.common.Assert.checkArgument ( ( ! ( android.text.TextUtils.isEmpty ( numberVoicemailFrom ) ) ) , ( "number cannot be empty:" + ( numberVoicemailFrom ) ) ) ; com.android.dialer.precall.PreCall.start ( getContext ( ) , new com.android.dialer.callintent.CallIntentBuilder ( numberVoicemailFrom , com.android.dialer.callintent.CallInitiationType.Type.VOICEMAIL_LOG ) . setPhoneAccountHandle ( com.android.dialer.telecom.TelecomUtil.composePhoneAccountHandle ( phoneAccountComponentName , phoneAccountId ) ) ) ; }
Source:
private void createPatch ( ) throws com.intellij.updater.OperationCancelledException , java.io.IOException { com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertTrue ( myFile.exists ( ) ) ; }

Target:
private void createPatch ( ) throws com.intellij.updater.OperationCancelledException , java.io.IOException { com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertTrue ( myFile.exists ( ) ) ; }
Source:
public void handleEvent ( org.eclipse.swt.widgets.Event arg0 ) { synchronized ( this ) { setTransform ( ) ; } doRedraw ( ) ; }

Target:
public void mouseMove ( org.eclipse.swt.events.MouseEvent e ) { boolean moved = false ; synchronized ( this ) { if ( dragging ) { moved = true ; handleMouseEvent ( transformPoint ( e.x , e.y ) ) ; } } if ( moved ) { model.removeTreeChangeListener ( this ) ; model.setViewport ( viewport ) ; model.addTreeChangeListener ( this ) ; doRedraw ( ) ; } }
Source:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { com.android.sched.util.log.Event optEvent = tracer.start ( JackEventType.REMOVE_DEAD_CODE ) ; try { com.android.jack.cfg.CfgBuilder.removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId ) ; } finally { optEvent.end ( ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }

Target:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { try ( com.android.sched.util.log.Event optEvent = tracer.open ( JackEventType.REMOVE_DEAD_CODE ) ) { removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }
Source:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "me me me me" , java.lang.System.currentTimeMillis ( ) ) ; n.contentView = new android.widget.RemoteViews ( getPackageName ( ) , R.layout.chrono_notification ) ; mChronometerBase = android.os.SystemClock.elapsedRealtime ( ) ; n.contentView.setChronometer ( R.id.time , mChronometerBase , "Yay! (%s)" , true ) ; n.flags |= android.app.Notification.FLAG_ONGOING_EVENT ; n.contentIntent = makeIntent ( ) ; mNM.notify ( 2 , n ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #2" , "Notify me!!!" , makeIntent ( ) ) ; n.defaults = android.app.Notification.DEFAULT_VIBRATE ; mNM.notify ( 2 , n ) ; }
Source:
private java.lang.String [ ] splitSignature ( @ javax.annotation.Nonnull java.lang.String signature ) { assert com.android.jack.util.NamingTools.isClassDescriptor ( signature ) ; java.lang.String [ ] splitName = signature.substring ( 1 , ( ( signature.length ( ) ) - 1 ) ) . split ( java.lang.String.valueOf ( JLookup.PACKAGE_SEPARATOR ) ) ; return splitName ; }

Target:
public abstract T getDefined ( @ javax.annotation.Nonnull java.lang.String signature ) ;
Source:
public boolean equals ( java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof java.util.Locale ) { java.util.Locale o = ( ( java.util.Locale ) ( object ) ) ; return ( ( languageCode.equals ( o.languageCode ) ) && ( countryCode.equals ( o.countryCode ) ) ) && ( variantCode.equals ( o.variantCode ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof java.util.Locale ) { java.util.Locale o = ( ( java.util.Locale ) ( object ) ) ; return ( ( ( ( languageCode.equals ( o.languageCode ) ) && ( countryCode.equals ( o.countryCode ) ) ) && ( variantCode.equals ( o.variantCode ) ) ) && ( scriptCode.equals ( o.scriptCode ) ) ) && ( extensions.equals ( o.extensions ) ) ; } return false ; }
Source:
public void test10089890 ( ) throws java.lang.Exception { assertEquals ( "Jan 1–2" , formatDateRange ( 0 , libcore.icu.DateIntervalFormatTest.DAY , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "Europe/London" ) ) ; assertEquals ( "Dec 31, 1969 – Jan 1, 1970" , formatDateRange ( 0 , libcore.icu.DateIntervalFormatTest.DAY , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "America/Los_Angeles" ) ) ; }

Target:
public void test10089890 ( ) throws java.lang.Exception { java.util.Locale l = java.util.Locale.US ; java.util.TimeZone utc = java.util.TimeZone.getTimeZone ( "UTC" ) ; java.util.TimeZone pacific = java.util.TimeZone.getTimeZone ( "America/Los_Angeles" ) ; int flags = ( ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) | ( FORMAT_SHOW_TIME ) ) | ( FORMAT_24HOUR ) ; assertEquals ( "Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00" , formatDateRange ( l , utc , 0 , ( ( libcore.icu.DateIntervalFormatTest.DAY ) + 1 ) , flags ) ) ; assertEquals ( "Dec 31, 1969, 16:00 – Jan 1, 1970, 16:00" , formatDateRange ( l , pacific , 0 , libcore.icu.DateIntervalFormatTest.DAY , flags ) ) ; }