auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void uninstall ( @ com.android.annotations.NonNull java.io.File apkFile , @ com.android.annotations.Nullable java.lang.String packageName , @ com.android.annotations.NonNull java.lang.String deviceName ) throws com.android.builder.testing.api.DeviceException { if ( packageName != null ) { logger.info ( "DeviceConnector '%s': uninstalling %s" , deviceName , packageName ) ; device.uninstallPackage ( packageName , timeout , logger ) ; } else { logger.info ( "DeviceConnector '%s': unable to uninstall %s: unable to get package name" , deviceName , apkFile ) ; } }

Target:
private void uninstall ( @ com.android.annotations.NonNull java.io.File apkFile , @ com.android.annotations.Nullable java.lang.String packageName , @ com.android.annotations.NonNull java.lang.String deviceName ) throws com.android.builder.testing.api.DeviceException { if ( packageName != null ) { logger.verbose ( "DeviceConnector '%s': uninstalling %s" , deviceName , packageName ) ; device.uninstallPackage ( packageName , timeout , logger ) ; } else { logger.verbose ( "DeviceConnector '%s': unable to uninstall %s: unable to get package name" , deviceName , apkFile ) ; } }
Source:
public void writeOnImsCallTerminated ( int phoneId , com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCallStart ( int phoneId , android.telephony.ims.ImsCallSession session ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = startNewCallSessionIfNeeded ( phoneId ) ; callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_COMMAND ) . setCallIndex ( getCallId ( session ) ) . setImsCommand ( TelephonyCallSession.Event.ImsCommand.IMS_CMD_START ) ) ; }
Source:
public java.nio.ByteBuffer put ( byte [ ] src , int srcOffset , int byteCount ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkPutBounds ( 1 , src.length , srcOffset , byteCount ) ; this . block.pokeByteArray ( ( ( offset ) + ( position ) ) , src , srcOffset , byteCount ) ; position += byteCount ; return this ; }

Target:
public java.nio.ByteBuffer put ( byte [ ] src , int srcOffset , int byteCount ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkPutBounds ( 1 , src.length , srcOffset , byteCount ) ; this . block.pokeByteArray ( ( ( offset ) + ( position ) ) , src , srcOffset , byteCount ) ; position += byteCount ; return this ; }
Source:
private long verifyTimeServiceTimeWasSet ( ) { org.mockito.ArgumentCaptor < java.lang.Long > timeServiceTimeCaptor = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.TYPE ) ; org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTime ( timeServiceTimeCaptor.capture ( ) ) ; return timeServiceTimeCaptor.getValue ( ) ; }

Target:
private void verifyTimeServiceTimeWasSet ( long expectedTimeMillis ) { org.mockito.ArgumentCaptor < java.lang.Long > timeServiceTimeCaptor = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.TYPE ) ; org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTime ( timeServiceTimeCaptor.capture ( ) ) ; org.junit.Assert.assertEquals ( expectedTimeMillis , ( ( long ) ( timeServiceTimeCaptor.getValue ( ) ) ) ) ; }
Source:
public boolean isAssistedDialed ( ) { if ( ( getIntentExtras ( ) ) != null ) { if ( ( ( getIntentExtras ( ) . getBoolean ( TelephonyManagerCompat.USE_ASSISTED_DIALING , false ) ) && ( ( getAssistedDialingExtras ( ) ) != null ) ) && ( ( android.os.Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } } if ( ( hasProperty ( TelephonyManagerCompat.PROPERTY_ASSISTED_DIALING_USED ) ) && ( ( android.os.Build.VERSION.SDK_INT ) > ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } return false ; }

Target:
public boolean isAssistedDialed ( ) { if ( ( getIntentExtras ( ) ) != null ) { if ( ( ( getIntentExtras ( ) . getBoolean ( TelephonyManagerCompat.USE_ASSISTED_DIALING , false ) ) && ( ( getAssistedDialingExtras ( ) ) != null ) ) && ( ( android.os.Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } } if ( ( hasProperty ( TelephonyManagerCompat.PROPERTY_ASSISTED_DIALING_USED ) ) && ( android.support.v4.os.BuildCompat.isAtLeastP ( ) ) ) { return true ; } return false ; }
Source:
private java.io.File checkProjectFolder ( java.lang.String folderPath ) { java.io.File projectFolder = new java.io.File ( folderPath ) ; if ( ! ( projectFolder.isDirectory ( ) ) ) { mLog.error ( null , "Project folder '%1$s' is not a valid directory, this is not an Android project you can update." , projectFolder ) ; return null ; } java.io.File androidManifest = new java.io.File ( projectFolder , com.android.sdklib.SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( ! ( androidManifest.isFile ( ) ) ) { mLog.error ( null , "%1$s not found in '%2$s', this is not an Android project you can update." , SdkConstants.FN_ANDROID_MANIFEST_XML , folderPath ) ; return null ; } return androidManifest ; }

Target:
private java.io.File checkProjectFolder ( java.lang.String folderPath ) { java.io.File projectFolder = new java.io.File ( folderPath ) ; if ( ! ( projectFolder.isDirectory ( ) ) ) { mLog.error ( null , "Project folder '%1$s' is not a valid directory." , projectFolder ) ; return null ; } java.io.File androidManifest = new java.io.File ( projectFolder , com.android.sdklib.SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( ! ( androidManifest.isFile ( ) ) ) { mLog.error ( null , "%1$s is not a valid project (%2$s not found)." , folderPath , SdkConstants.FN_ANDROID_MANIFEST_XML ) ; return null ; } return androidManifest ; }
Source:
public void run ( ) { if ( ( ( ( mPlayer ) != null ) && ( ! ( mSeeking ) ) ) && ( ( mDuration ) != 0 ) ) { int progress = ( mPlayer.getCurrentPosition ( ) ) / ( mDuration ) ; mSeekBar.setProgress ( mPlayer.getCurrentPosition ( ) ) ; } mProgressRefresher.removeCallbacksAndMessages ( null ) ; mProgressRefresher.postDelayed ( new com.android.music.AudioPreview.ProgressRefresher ( ) , 200 ) ; }

Target:
public void run ( ) { if ( ( ( ( mPlayer ) != null ) && ( ! ( mSeeking ) ) ) && ( ( mDuration ) != 0 ) ) { mSeekBar.setProgress ( mPlayer.getCurrentPosition ( ) ) ; } mProgressRefresher.removeCallbacksAndMessages ( null ) ; if ( ! ( mUiPaused ) ) { mProgressRefresher.postDelayed ( new com.android.music.AudioPreview.ProgressRefresher ( ) , 200 ) ; } }
Source:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } synchronized ( this ) { matchFound = java.util.regex.Matcher.findImpl ( address , start , matchOffsets ) ; } return matchFound ; }

Target:
public boolean lookingAt ( ) { synchronized ( this ) { matchFound = java.util.regex.Matcher.lookingAtImpl ( address , input , matchOffsets ) ; } return matchFound ; }
Source:
public void enter ( ) { maybeLogEvaluationResult ( NetworkEvent.NETWORK_CAPTIVE_PORTAL_FOUND ) ; if ( mDontDisplaySigninNotification ) return ; if ( ( mLaunchCaptivePortalAppBroadcastReceiver ) == null ) { mLaunchCaptivePortalAppBroadcastReceiver = new com.android.server.connectivity.NetworkMonitor.CustomIntentReceiver ( com.android.server.connectivity.NetworkMonitor.CaptivePortalState.ACTION_LAUNCH_CAPTIVE_PORTAL_APP , new java.util.Random ( ) . nextInt ( ) , com.android.server.connectivity.NetworkMonitor.CMD_LAUNCH_CAPTIVE_PORTAL_APP ) ; } android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 1 , mNetworkAgentInfo.network.netId , mLaunchCaptivePortalAppBroadcastReceiver.getPendingIntent ( ) ) ; mConnectivityServiceHandler.sendMessage ( message ) ; sendMessageDelayed ( com.android.server.connectivity.NetworkMonitor.CMD_CAPTIVE_PORTAL_RECHECK , 0 , com.android.server.connectivity.NetworkMonitor.CAPTIVE_PORTAL_REEVALUATE_DELAY_MS ) ; }

Target:
public void enter ( ) { maybeLogEvaluationResult ( networkEventType ( validationStage ( ) , com.android.server.connectivity.NetworkMonitor.EvaluationResult.CAPTIVE_PORTAL ) ) ; if ( mDontDisplaySigninNotification ) return ; if ( ( mLaunchCaptivePortalAppBroadcastReceiver ) == null ) { mLaunchCaptivePortalAppBroadcastReceiver = new com.android.server.connectivity.NetworkMonitor.CustomIntentReceiver ( com.android.server.connectivity.NetworkMonitor.CaptivePortalState.ACTION_LAUNCH_CAPTIVE_PORTAL_APP , new java.util.Random ( ) . nextInt ( ) , com.android.server.connectivity.NetworkMonitor.CMD_LAUNCH_CAPTIVE_PORTAL_APP ) ; } android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 1 , mNetworkAgentInfo.network.netId , mLaunchCaptivePortalAppBroadcastReceiver.getPendingIntent ( ) ) ; mConnectivityServiceHandler.sendMessage ( message ) ; sendMessageDelayed ( com.android.server.connectivity.NetworkMonitor.CMD_CAPTIVE_PORTAL_RECHECK , 0 , com.android.server.connectivity.NetworkMonitor.CAPTIVE_PORTAL_REEVALUATE_DELAY_MS ) ; ( mValidations ) ++ ; }
Source:
public void testCompareTo_Null ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c1 = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; try { c1.compareTo ( null ) ; fail ( "Should throw NullPointerException!" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_forNameLjava_lang_String ( ) { java.nio.charset.Charset cs1 = java.nio.charset.Charset.forName ( "UTF-8" ) ; java.nio.charset.Charset cs2 = java.nio.charset.Charset.forName ( "UTF-8" ) ; assertSame ( cs1 , cs2 ) ; java.nio.charset.Charset cs3 = java.nio.charset.Charset.forName ( "ASCII" ) ; java.nio.charset.Charset cs4 = java.nio.charset.Charset.forName ( "US-ASCII" ) ; assertSame ( cs3 , cs4 ) ; }
Source:
public void setSoWriteTimeout ( int writeTimeoutMilliseconds ) throws java.net.SocketException { this . writeTimeoutMilliseconds = writeTimeoutMilliseconds ; android.system.StructTimeval tv = android.system.StructTimeval.fromMillis ( writeTimeoutMilliseconds ) ; try { android.system.Os.setsockoptTimeval ( getFileDescriptor$ ( ) , android.system.OsConstants.SOL_SOCKET , android.system.OsConstants.SO_SNDTIMEO , tv ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public int clientPSKKeyRequested ( java.lang.String identityHint , byte [ ] identity , byte [ ] key ) { return sslParameters.clientPSKKeyRequested ( identityHint , identity , key , this ) ; }
Source:
protected final void doStop ( ) { executor ( com.google.common.util.concurrent.Service.State.STOPPING ) . execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { shutDown ( ) ; notifyStopped ( ) ; } catch ( java.lang.Throwable t ) { notifyFailed ( t ) ; throw com.google.common.base.Throwables.propagate ( t ) ; } } } ) ; }

Target:
protected final void doStart ( ) { com.google.common.util.concurrent.MoreExecutors.renamingDecorator ( executor ( ) , threadNameSupplier ) . execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { startUp ( ) ; notifyStarted ( ) ; } catch ( java.lang.Throwable t ) { notifyFailed ( t ) ; throw com.google.common.base.Throwables.propagate ( t ) ; } } } ) ; }
Source:
public void putNoFallback ( android.icu.impl.UResource.Key key ) { if ( ! ( keyToLoader.containsKey ( key ) ) ) { keyToLoader.put ( key.clone ( ) , android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.DUMMY_LOADER ) ; } }

Target:
public void put ( android.icu.impl.UResource.Key key , android.icu.impl.UResource.Value value , boolean noFallback ) { android.icu.impl.UResource.Table timeZonesTable = value.getTable ( ) ; for ( int j = 0 ; timeZonesTable.getKeyAndValue ( j , key , value ) ; ++ j ) { assert ! ( value.isNoInheritanceMarker ( ) ) ; if ( ( value.getType ( ) ) == ( android.icu.util.UResourceBundle.TABLE ) ) { consumeNamesTable ( key , value , noFallback ) ; } else { } } }
Source:
public boolean checkEntry ( java.lang.String archivePath ) throws com.android.sdklib.internal.build.SignedJarBuilder.IZipEntryFilter.ZipAbortException { verbosePrintln ( "=> %s" , archivePath ) ; java.io.File duplicate = checkFileForDuplicate ( archivePath ) ; if ( duplicate != null ) { throw new com.android.sdklib.build.ApkBuilder.DuplicateFileException ( archivePath , duplicate , mInputFile ) ; } else { mAddedFiles.put ( archivePath , mInputFile ) ; } return true ; }

Target:
public boolean checkEntry ( java.lang.String archivePath ) throws com.android.sdklib.build.ZipAbortException { verbosePrintln ( "=> %s" , archivePath ) ; java.io.File duplicate = checkFileForDuplicate ( archivePath ) ; if ( duplicate != null ) { throw new com.android.sdklib.build.DuplicateFileException ( archivePath , duplicate , mInputFile ) ; } else { mAddedFiles.put ( archivePath , mInputFile ) ; } return true ; }
Source:
private void resetLock ( ) { java.util.concurrent.CopyOnWriteArrayList.U.putObjectVolatile ( this , java.util.concurrent.CopyOnWriteArrayList.LOCK , new java.lang.Object ( ) ) ; }

Target:
public boolean removeAll ( java.util.Collection < ? > collection ) { synchronized ( this ) { slice.checkConcurrentModification ( elements ) ; int removed = removeOrRetain ( collection , false , slice.from , slice.to ) ; slice = new java.util.concurrent.CopyOnWriteArrayList.Slice ( elements , slice.from , ( ( slice.to ) - removed ) ) ; return removed != 0 ; } }
Source:
public void validatePolicyWithSsidExclusionListSizeExceededMax ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.excludedSsidList = new java.lang.String [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_NUMBER_OF_EXCLUDED_SSIDS ) + 1 ] ; java.util.Arrays.fill ( policy.excludedSsidList , "ssid" ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithSsidExclusionListSizeExceededMax ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; java.lang.String [ ] excludedSsidList = new java.lang.String [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_NUMBER_OF_EXCLUDED_SSIDS ) + 1 ] ; java.util.Arrays.fill ( excludedSsidList , "ssid" ) ; policy.setExcludedSsidList ( excludedSsidList ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
private void validateInternalSessionInfoCleanedUp ( int clientId , int sessionId ) throws java.lang.Exception { com.android.server.wifi.nan.WifiNanClientState client = com.android.server.wifi.nan.WifiNanStateManagerTest.getInternalClientState ( mDut , clientId ) ; collector.checkThat ( ( "Client record exists clientId=" + clientId ) , client , org.hamcrest.core.IsNull.notNullValue ( ) ) ; com.android.server.wifi.nan.WifiNanDiscoverySessionState session = com.android.server.wifi.nan.WifiNanStateManagerTest.getInternalSessionState ( client , sessionId ) ; collector.checkThat ( ( "Client record not cleaned-up for sessionId=" + sessionId ) , session , org.hamcrest.core.IsNull.nullValue ( ) ) ; }

Target:
private void validateInternalSessionInfoCleanedUp ( int clientId , int sessionId ) throws java.lang.Exception { com.android.server.wifi.aware.WifiAwareClientState client = com.android.server.wifi.aware.WifiAwareStateManagerTest.getInternalClientState ( mDut , clientId ) ; collector.checkThat ( ( "Client record exists clientId=" + clientId ) , client , org.hamcrest.core.IsNull.notNullValue ( ) ) ; com.android.server.wifi.aware.WifiAwareDiscoverySessionState session = com.android.server.wifi.aware.WifiAwareStateManagerTest.getInternalSessionState ( client , sessionId ) ; collector.checkThat ( ( "Client record not cleaned-up for sessionId=" + sessionId ) , session , org.hamcrest.core.IsNull.nullValue ( ) ) ; }
Source:
private void setDefaultAccount ( com.android.contacts.common.model.account.AccountWithDataSet accountWithDataSet ) { mDefaultAccount = ( accountWithDataSet == null ) ? null : accountWithDataSet.name ; final android.content.SharedPreferences.Editor editor = mPreferences.edit ( ) ; if ( android.text.TextUtils.isEmpty ( mDefaultAccount ) ) { editor.remove ( mDefaultAccountKey ) ; } else { editor.putString ( mDefaultAccountKey , accountWithDataSet.stringify ( ) ) ; } editor.putBoolean ( mDefaultAccountSavedKey , true ) ; com.android.dialer.strictmode.DialerStrictMode.bypass ( editor :: commit ) ; }

Target:
private void setDefaultAccount ( com.android.contacts.common.model.account.AccountWithDataSet accountWithDataSet ) { mDefaultAccount = ( accountWithDataSet == null ) ? null : accountWithDataSet.name ; final android.content.SharedPreferences.Editor editor = mPreferences.edit ( ) ; if ( android.text.TextUtils.isEmpty ( mDefaultAccount ) ) { editor.remove ( mDefaultAccountKey ) ; } else { editor.putString ( mDefaultAccountKey , accountWithDataSet.stringify ( ) ) ; } editor.putBoolean ( mDefaultAccountSavedKey , true ) ; com.android.dialer.strictmode.StrictModeUtils.bypass ( editor :: commit ) ; }
Source:
private void checkTargetCompatibility ( com.android.tools.lint.detector.api.Context context , java.lang.Object cookie ) { if ( ( ( ( mCompileSdkVersion ) > 0 ) && ( ( mTargetSdkVersion ) > 0 ) ) && ( ( mTargetSdkVersion ) > ( mCompileSdkVersion ) ) ) { java.lang.String message = "The targetSdkVersion should not be higher than the compileSdkVersion" ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.DEPENDENCY , message ) ; } }

Target:
private void checkTargetCompatibility ( com.android.tools.lint.detector.api.Context context , java.lang.Object cookie ) { if ( ( ( ( mCompileSdkVersion ) > 0 ) && ( ( mTargetSdkVersion ) > 0 ) ) && ( ( mTargetSdkVersion ) > ( mCompileSdkVersion ) ) ) { java.lang.String message = ( ( ( "The targetSdkVersion (" + ( mTargetSdkVersion ) ) + ") should not be higher than the compileSdkVersion (" ) + ( mCompileSdkVersion ) ) + ")" ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.DEPENDENCY , message ) ; } }
Source:
private void sizeChange ( int newWidth , int newHeight , int oldWidth , int oldHeight ) { onSizeChanged ( newWidth , newHeight , oldWidth , oldHeight ) ; if ( ( mOverlay ) != null ) { mOverlay.getOverlayView ( ) . setRight ( newWidth ) ; mOverlay.getOverlayView ( ) . setBottom ( newHeight ) ; } rebuildOutline ( ) ; }

Target:
private void sizeChange ( int newWidth , int newHeight , int oldWidth , int oldHeight ) { onSizeChanged ( newWidth , newHeight , oldWidth , oldHeight ) ; if ( ( mOverlay ) != null ) { mOverlay.getOverlayView ( ) . setRight ( newWidth ) ; mOverlay.getOverlayView ( ) . setBottom ( newHeight ) ; } mPrivateFlags3 |= android.view.View.PFLAG3_OUTLINE_INVALID ; }
Source:
public void switchHoldingAndActive ( ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.sip.SipPhone.DEBUG ) android.util.Log.d ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , " ~~~~~~ switch fg and bg" ) ; synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { foregroundCall.switchWith ( backgroundCall ) ; if ( backgroundCall.getState ( ) . isAlive ( ) ) backgroundCall.hold ( ) ; if ( foregroundCall.getState ( ) . isAlive ( ) ) foregroundCall.unhold ( ) ; } }

Target:
public void switchHoldingAndActive ( ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.sip.SipPhone.DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , " ~~~~~~ switch fg and bg" ) ; synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { foregroundCall.switchWith ( backgroundCall ) ; if ( backgroundCall.getState ( ) . isAlive ( ) ) backgroundCall.hold ( ) ; if ( foregroundCall.getState ( ) . isAlive ( ) ) foregroundCall.unhold ( ) ; } }
Source:
static void performReceive ( com.android.server.am.ProcessRecord app , android.app.IIntentReceiver receiver , android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered ) throws android.os.RemoteException { if ( ( app != null ) && ( ( app.thread ) != null ) ) { app.thread.scheduleRegisteredReceiver ( receiver , intent , resultCode , data , extras , ordered ) ; } else { receiver.performReceive ( intent , resultCode , data , extras , ordered ) ; } }

Target:
static void performReceive ( com.android.server.am.ProcessRecord app , android.content.IIntentReceiver receiver , android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered ) throws android.os.RemoteException { if ( ( app != null ) && ( ( app.thread ) != null ) ) { app.thread.scheduleRegisteredReceiver ( receiver , intent , resultCode , data , extras , ordered ) ; } else { receiver.performReceive ( intent , resultCode , data , extras , ordered ) ; } }
Source:
public void put ( int index , android.icu.impl.UResource.Value value ) { addCutoff ( cutoffType , value.getString ( ) ) ; }

Target:
public void put ( android.icu.impl.UResource.Key key , android.icu.impl.UResource.Value value , boolean noFallback ) { android.icu.impl.UResource.Table rules = value.getTable ( ) ; for ( int i = 0 ; rules.getKeyAndValue ( i , key , value ) ; ++ i ) { int setNum = android.icu.impl.DayPeriodRules.parseSetNum ( key.toString ( ) ) ; if ( setNum > ( data.maxRuleSetNum ) ) { data.maxRuleSetNum = setNum ; } } }
Source:
private boolean skipTest ( ) { return ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ) { return ; } com.android.bluetooth.TestUtils.stopService ( mServiceRule , com.android.bluetooth.mapclient.MapClientService.class ) ; mService = com.android.bluetooth.mapclient.MapClientService.getMapClientService ( ) ; org.junit.Assert.assertNull ( mService ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mAdapterService ) ; }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String vendorPath ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_EXTRAS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDONS ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( ( pkg.getDesc ( ) . hasPath ( ) ) && ( vendorPath.equals ( pkg.getDesc ( ) . getPath ( ) ) ) ) { return pkg ; } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String path ) { assert ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDONS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasPath ( ) ) && ( path.equals ( d.getPath ( ) ) ) ) { return pkg ; } } return null ; }
Source:
public void close ( ) throws java.io.IOException { synchronized ( mGuard ) { mGuard.close ( ) ; try { mMidiManager.closeDevice ( mClientToken , mDeviceToken ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.midi.MidiDevice.TAG , "RemoteException in closeDevice" ) ; } } }

Target:
public void close ( ) throws java.io.IOException { synchronized ( mGuard ) { if ( ! ( mIsDeviceClosed ) ) { mGuard.close ( ) ; mIsDeviceClosed = true ; try { mMidiManager.closeDevice ( mClientToken , mDeviceToken ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.midi.MidiDevice.TAG , "RemoteException in closeDevice" ) ; } } } }
Source:
public void bluetoothSocketConnBeginConnectThreadPsm ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "address" , description = "The mac address of the device to connect to." ) java.lang.String address , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "isBle" , description = "Is transport BLE?" ) java.lang.Boolean isBle , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "psmValue" ) java.lang.Integer psmValue ) throws java.io.IOException { android.bluetooth.BluetoothDevice mDevice ; mDevice = mBluetoothAdapter.getRemoteDevice ( address ) ; com.googlecode.android_scripting.Log.d ( ( ( ( ( ( "bluetoothSocketConnBeginConnectThreadPsm: Coc connecting to " + address ) + ", isBle=" ) + isBle ) + ", psmValue=" ) + psmValue ) ) ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.ConnectThread connectThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.ConnectThread ( mDevice , psmValue , isBle ) ; connectThread.start ( ) ; mConnectThread = connectThread ; }

Target:
public void bluetoothSocketConnBeginConnectThreadPsm ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "address" , description = "The mac address of the device to connect to." ) java.lang.String address , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "isBle" , description = "Is transport BLE?" ) java.lang.Boolean isBle , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "psmValue" ) java.lang.Integer psmValue , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "securedConn" ) java.lang.Boolean securedConn ) throws java.io.IOException { android.bluetooth.BluetoothDevice mDevice ; mDevice = mBluetoothAdapter.getRemoteDevice ( address ) ; com.googlecode.android_scripting.Log.d ( ( ( ( ( ( ( ( "bluetoothSocketConnBeginConnectThreadPsm: Coc connecting to " + address ) + ", isBle=" ) + isBle ) + ", psmValue=" ) + psmValue ) + ", securedConn=" ) + securedConn ) ) ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.ConnectThread connectThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.ConnectThread ( mDevice , psmValue , isBle , securedConn ) ; connectThread.start ( ) ; mConnectThread = connectThread ; }
Source:
private void mergeFrom ( com.android.apksig.internal.apk.v2.V2SchemeVerifier.Result source ) { mVerifiedUsingV2Scheme = source.verified ; mErrors.addAll ( source.getErrors ( ) ) ; mWarnings.addAll ( source.getWarnings ( ) ) ; for ( com.android.apksig.internal.apk.v2.V2SchemeVerifier.Result.SignerInfo signer : source.signers ) { mV2SchemeSigners.add ( new com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo ( signer ) ) ; } }

Target:
private void mergeFrom ( com.android.apksig.internal.apk.ApkSigningBlockUtils.Result source ) { mVerifiedUsingV2Scheme = source.verified ; mErrors.addAll ( source.getErrors ( ) ) ; mWarnings.addAll ( source.getWarnings ( ) ) ; for ( com.android.apksig.internal.apk.ApkSigningBlockUtils.Result.SignerInfo signer : source.signers ) { mV2SchemeSigners.add ( new com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo ( signer ) ) ; } }
Source:
public static boolean shouldShowEmergencyCallNotification ( android.content.Context context ) { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.SystemContract.METHOD_SHOULD_SHOW_EMERGENCY_CALL_NOTIFICATION , null , null ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_SHOW_EMERGENCY_CALL_NOTIFICATION , false ) ) ; }

Target:
public static boolean shouldShowEmergencyCallNotification ( android.content.Context context ) { try { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.SystemContract.METHOD_SHOULD_SHOW_EMERGENCY_CALL_NOTIFICATION , null , null ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_SHOW_EMERGENCY_CALL_NOTIFICATION , false ) ) ; } catch ( java.lang.NullPointerException | java.lang.IllegalArgumentException ex ) { android.telecom.Log.w ( null , "shouldShowEmergencyCallNotification: provider not ready." ) ; return false ; } }
Source:
void start ( ) { stop ( ) ; mDefaultNetworkCallback = new com.android.server.connectivity.Tethering.UpstreamNetworkCallback ( ) ; getConnectivityManager ( ) . registerDefaultNetworkCallback ( mDefaultNetworkCallback ) ; final android.net.NetworkRequest dunTetheringRequest = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_CELLULAR ) . removeCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_DUN ) . build ( ) ; mDunTetheringCallback = new com.android.server.connectivity.Tethering.UpstreamNetworkCallback ( ) ; getConnectivityManager ( ) . registerNetworkCallback ( dunTetheringRequest , mDunTetheringCallback ) ; }

Target:
public void stop ( ) { if ( ( mDefaultNetworkCallback ) != null ) { cm ( ) . unregisterNetworkCallback ( mDefaultNetworkCallback ) ; mDefaultNetworkCallback = null ; } if ( ( mDunTetheringCallback ) != null ) { cm ( ) . unregisterNetworkCallback ( mDunTetheringCallback ) ; mDunTetheringCallback = null ; } mNetworkMap.clear ( ) ; }
Source:
public static void launchSlideshowActivity ( android.content.Context context , android.net.Uri msgUri , int requestCode ) { android.content.Intent intent = new android.content.Intent ( context , com.android.mms.ui.SlideshowActivity.class ) ; intent.setData ( msgUri ) ; if ( ( requestCode > 0 ) && ( context instanceof android.app.Activity ) ) { ( ( android.app.Activity ) ( context ) ) . startActivityForResult ( intent , requestCode ) ; } else { context.startActivity ( intent ) ; } }

Target:
public static void launchSlideshowActivity ( android.content.Context context , android.net.Uri msgUri , int requestCode ) { android.content.Intent intent = new android.content.Intent ( context , com.android.mms.ui.SlideshowActivity.class ) ; intent.setData ( msgUri ) ; intent.setFlags ( Intent.FLAG_ACTIVITY_SINGLE_TOP ) ; if ( ( requestCode > 0 ) && ( context instanceof android.app.Activity ) ) { ( ( android.app.Activity ) ( context ) ) . startActivityForResult ( intent , requestCode ) ; } else { context.startActivity ( intent ) ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copyFromUnchecked ( short [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
private boolean packageIsBrowser ( java.lang.String packageName , int userId ) { java.util.List < android.content.pm.ResolveInfo > list = queryIntentActivities ( com.android.server.pm.PackageManagerService.sBrowserIntent , null , PackageManager.MATCH_ALL , userId ) ; final int N = list.size ( ) ; for ( int i = 0 ; i < N ; i ++ ) { android.content.pm.ResolveInfo info = list.get ( i ) ; if ( packageName.equals ( info.activityInfo.packageName ) ) { return true ; } } return false ; }

Target:
private boolean packageIsBrowser ( java.lang.String packageName , int userId ) { java.util.List < android.content.pm.ResolveInfo > list = queryIntentActivitiesInternal ( com.android.server.pm.PackageManagerService.sBrowserIntent , null , PackageManager.MATCH_ALL , userId ) ; final int N = list.size ( ) ; for ( int i = 0 ; i < N ; i ++ ) { android.content.pm.ResolveInfo info = list.get ( i ) ; if ( packageName.equals ( info.activityInfo.packageName ) ) { return true ; } } return false ; }
Source:
public com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType getNumberType ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String regionCode = getRegionCodeForNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( number.getCountryCode ( ) , regionCode ) ; if ( metadata == null ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return getNumberTypeHelper ( nationalSignificantNumber , metadata ) ; }

Target:
java.lang.String formatNsnUsingPattern ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formattingPattern , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsnUsingPattern ( nationalNumber , formattingPattern , numberFormat , null ) ; }
Source:
public void processNewLines ( java.lang.String [ ] lines ) { for ( java.lang.String line : lines ) { if ( ! ( line.isEmpty ( ) ) ) { if ( line.startsWith ( com.android.ddmlib.Device.InstallReceiver.SUCCESS_OUTPUT ) ) { mErrorMessage = null ; } else { java.util.regex.Matcher m = com.android.ddmlib.Device.InstallReceiver.FAILURE_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { mErrorMessage = m.group ( 1 ) ; } } } } }

Target:
public void processNewLines ( java.lang.String [ ] lines ) { for ( java.lang.String line : lines ) { if ( ! ( line.isEmpty ( ) ) ) { if ( line.startsWith ( com.android.ddmlib.Device.InstallReceiver.SUCCESS_OUTPUT ) ) { mErrorMessage = null ; } else { java.util.regex.Matcher m = com.android.ddmlib.Device.InstallReceiver.FAILURE_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { mErrorMessage = m.group ( 1 ) ; } else { mErrorMessage = "Unknown failure" ; } } } } }
Source:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.util.MutableInt arg ) throws android.system.ErrnoException { return Libcore.os.ioctlInt ( fd , cmd , arg ) ; }

Target:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.util.MutableInt arg ) throws android.system.ErrnoException { android.util.MutableInt internalArg = new android.util.MutableInt ( arg.value ) ; try { return Libcore.os.ioctlInt ( fd , cmd , internalArg ) ; } finally { arg.value = internalArg.value ; } }
Source:
public void test_getDisplayName ( ) throws java.lang.Exception { assertEquals ( "Swiss Franc" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( java.util.Locale.US ) ) ; assertEquals ( "Schweizer Franken" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "de" , "CH" ) ) ) ; assertEquals ( "franc suisse" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "fr" , "CH" ) ) ) ; assertEquals ( "franco svizzero" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "it" , "CH" ) ) ) ; }

Target:
public void test_getSymbol_noLocaleArgument ( ) { java.util.Currency currency = java.util.Currency.getInstance ( "DEM" ) ; libcore.java.util.CurrencyTest.Locales locales = libcore.java.util.CurrencyTest.getDefaultLocales ( ) ; try { libcore.java.util.CurrencyTest.setDefaultLocales ( new libcore.java.util.CurrencyTest.Locales ( java.util.Locale.US , java.util.Locale.GERMANY , java.util.Locale.FRANCE ) ) ; assertEquals ( "DM" , currency.getSymbol ( ) ) ; } finally { libcore.java.util.CurrencyTest.setDefaultLocales ( locales ) ; } }
Source:
public void stopTestConfiguration ( java.lang.String configurationName , com.google.gct.testing.GoogleCloudTestingUtils.ConfigurationStopReason stopReason ) { com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.GoogleCloudTestingUtils.TEST_CONFIGURATION_STOPPED ) ; builder.addAttribute ( "name" , configurationName ) ; builder.addAttribute ( "stopReason" , stopReason.name ( ) ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }

Target:
public void stopTestConfiguration ( java.lang.String configurationName , com.google.gct.testing.CloudTestingUtils.ConfigurationStopReason stopReason ) { com.intellij.execution.testframework.sm.ServiceMessageBuilder builder = new com.intellij.execution.testframework.sm.ServiceMessageBuilder ( com.google.gct.testing.CloudTestingUtils.TEST_CONFIGURATION_STOPPED ) ; builder.addAttribute ( "name" , configurationName ) ; builder.addAttribute ( "stopReason" , stopReason.name ( ) ) ; getProcessHandler ( ) . notifyTextAvailable ( ( ( builder.toString ( ) ) + '\n' ) , ProcessOutputTypes.STDOUT ) ; }
Source:
public void pullLceData ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_PULL_LCEDATA , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void pullLceData ( android.os.Message response ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( response ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_PULL_LCEDATA , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } try { radioProxy.pullLceData ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "pullLceData" , e ) ; } } }
Source:
protected < T > boolean assertEquals ( java.lang.String message , T [ ] expected , T [ ] actual ) { java.lang.String expectedString = ( expected == null ) ? "null" : java.util.Arrays.asList ( expected ) . toString ( ) ; java.lang.String actualString = ( actual == null ) ? "null" : java.util.Arrays.asList ( actual ) . toString ( ) ; return assertEquals ( message , expectedString , actualString ) ; }

Target:
protected static < T > boolean assertEquals ( java.lang.String message , T [ ] expected , T [ ] actual ) { java.lang.String expectedString = ( expected == null ) ? "null" : java.util.Arrays.asList ( expected ) . toString ( ) ; java.lang.String actualString = ( actual == null ) ? "null" : java.util.Arrays.asList ( actual ) . toString ( ) ; return com.ibm.icu.dev.test.TestFmwk.assertEquals ( message , expectedString , actualString ) ; }
Source:
public void testInCallLongPress_hangupCall ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.Call call = mInCallCallbacks.getService ( ) . getLastCall ( ) ; assertCallState ( call , Call.STATE_DIALING ) ; connection.setActive ( ) ; assertCallState ( call , Call.STATE_ACTIVE ) ; sendMediaButtonLongPress ( ) ; assertCallState ( call , Call.STATE_DISCONNECTED ) ; assertConnectionState ( connection , Connection.STATE_DISCONNECTED ) ; }

Target:
public void testInCallLongPress_togglesMute ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.cts.MockInCallService incallService = mInCallCallbacks.getService ( ) ; assertMuteState ( incallService , false ) ; sendMediaButtonLongPress ( ) ; assertMuteState ( connection , true ) ; assertMuteState ( incallService , true ) ; sendMediaButtonLongPress ( ) ; assertMuteState ( connection , false ) ; assertMuteState ( incallService , false ) ; }
Source:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; com.google.common.base.Preconditions.checkNotNull ( c ) ; return com.google.common.collect.Iterators.concat ( java.util.Arrays.asList ( a , b , c ) . iterator ( ) ) ; }

Target:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c ) { return com.google.common.collect.Iterators.concat ( com.google.common.collect.ImmutableList.of ( a , b , c ) . iterator ( ) ) ; }
Source:
private byte [ ] get ( byte [ ] key ) { java.util.ArrayList < byte [ ] > values = execute ( 'g' , key ) ; return ( values == null ) || ( values.isEmpty ( ) ) ? null : values.get ( 0 ) ; }

Target:
public android.security.KeyStore.State state ( ) { final int ret ; try { ret = mBinder.test ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; throw new java.lang.AssertionError ( e ) ; } switch ( ret ) { case android.security.KeyStore.NO_ERROR : return android.security.KeyStore.State.UNLOCKED ; case android.security.KeyStore.LOCKED : return android.security.KeyStore.State.LOCKED ; case android.security.KeyStore.UNINITIALIZED : return android.security.KeyStore.State.UNINITIALIZED ; default : throw new java.lang.AssertionError ( mError ) ; } }
Source:
public boolean removeKeyPair ( @ android.annotation.Nullable android.content.ComponentName admin , @ android.annotation.NonNull java.lang.String alias ) { throwIfParentInstance ( "removeKeyPair" ) ; try { return mService.removeKeyPair ( admin , alias ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public boolean installCaCert ( @ android.annotation.Nullable android.content.ComponentName admin , byte [ ] certBuffer ) { throwIfParentInstance ( "installCaCert" ) ; if ( ( mService ) != null ) { try { return mService.installCaCert ( admin , mContext.getPackageName ( ) , certBuffer ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { print ( opcode ) ; pw.print ( ' ' ) ; pw.print ( owner ) ; pw.print ( '/' ) ; pw.print ( name ) ; pw.print ( desc ) ; if ( opcode == ( org.objectweb.asm.Opcodes.INVOKEINTERFACE ) ) { pw.print ( ' ' ) ; pw.print ( ( ( ( org.objectweb.asm.Type.getArgumentsAndReturnSizes ( desc ) ) > > 2 ) - 1 ) ) ; } pw.println ( ) ; }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { print ( opcode ) ; pw.print ( ' ' ) ; pw.print ( owner ) ; pw.print ( '/' ) ; pw.print ( name ) ; pw.print ( desc ) ; if ( opcode == ( org.objectweb.asm.Opcodes.INVOKEINTERFACE ) ) { pw.print ( ' ' ) ; pw.print ( ( ( ( org.objectweb.asm.Type.getArgumentsAndReturnSizes ( desc ) ) > > 2 ) - 1 ) ) ; } pw.println ( ) ; }
Source:
public java.util.Iterator < E > iterator ( ) { return new java.util.concurrent.CopyOnWriteArrayList.COWIterator < E > ( getArray ( ) , 0 ) ; }

Target:
public boolean retainAll ( java.util.Collection < ? > collection ) { synchronized ( this ) { slice.checkConcurrentModification ( elements ) ; int removed = removeOrRetain ( collection , true , slice.from , slice.to ) ; slice = new java.util.concurrent.CopyOnWriteArrayList.Slice ( elements , slice.from , ( ( slice.to ) - removed ) ) ; return removed != 0 ; } }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newExtra ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay vendor , @ com.android.annotations.NonNull java.lang.String path , @ com.android.annotations.NonNull java.lang.String displayName , @ com.android.annotations.Nullable java.lang.String [ ] oldPaths , @ com.android.annotations.NonNull com.android.sdklib.repository.NoPreviewRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_EXTRAS ) ; p.mFullRevision = revision ; p.mVendor = vendor ; p.mPath = path ; p.mNameDisplay = displayName ; p.mOldPaths = oldPaths ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newExtra ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay vendor , @ com.android.annotations.NonNull java.lang.String path , @ com.android.annotations.NonNull java.lang.String displayName , @ com.android.annotations.Nullable java.lang.String [ ] oldPaths , @ com.android.annotations.NonNull com.android.sdklib.repository.NoPreviewRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_EXTRA ) ; p.mFullRevision = revision ; p.mVendor = vendor ; p.mPath = path ; p.mNameDisplay = displayName ; p.mOldPaths = oldPaths ; return p ; }
Source:
public void test_getResourceAsStream_withSharpChar ( ) throws java.lang.Exception { java.io.InputStream in = getClass ( ) . getResourceAsStream ( ( "/" + ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ) ) ; assertNotNull ( in ) ; in.close ( ) ; in = getClass ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ; assertNull ( in ) ; in = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ; assertNotNull ( in ) ; in.close ( ) ; }

Target:
public void test_getResourceAsStream ( ) throws java.lang.Exception { assertNull ( getClass ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.RESOURCE_ABS_NAME ) ) ; assertResourceExists ( ( "/" + ( org.apache.harmony.tests.java.lang.ClassTest.RESOURCE_ABS_NAME ) ) ) ; assertResourceExists ( org.apache.harmony.tests.java.lang.ClassTest.RESOURCE_RELATIVE_NAME ) ; java.io.InputStream in = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.RESOURCE_ABS_NAME ) ; assertNotNull ( in ) ; in.close ( ) ; }
Source:
public void callSessionRttModifyResponseReceived ( int status ) { com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onRttModifyResponseReceived ( this , status ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionRttModifyResponseReceived:: " , t ) ; } } }

Target:
public void callSessionRttModifyResponseReceived ( int status ) { com.android.ims.ImsCall.Listener listener ; logi ( "callSessionRttModifyResponseReceived" ) ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onRttModifyResponseReceived ( this , status ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionRttModifyResponseReceived:: " , t ) ; } } }