auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testInvalidInsertionCarrierInfo ( ) { try { android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( CarrierIdentification.GID1 , com.android.providers.telephony.CarrierIdProviderTest.dummy_gid1 ) ; mContentResolver.insert ( CarrierIdentification.CONTENT_URI , contentValues ) ; org.junit.Assert.fail ( "should throw an exception for null mccmnc" ) ; } catch ( java.lang.Exception e ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProviderTest.TAG , ( "Error inserting carrier info:" + e ) ) ; assertTrue ( ( e instanceof android.database.SQLException ) ) ; assertFalse ( mContentObserver.changed ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCarrierIdProviderTestable = new com.android.providers.telephony.CarrierIdProviderTestable ( ) ; mContext = new com.android.providers.telephony.CarrierIdProviderTest.MockContextWithProvider ( mCarrierIdProviderTestable ) ; mContentResolver = mContext.getContentResolver ( ) ; mContentObserver = new com.android.providers.telephony.CarrierIdProviderTest.FakeContentObserver ( null ) ; java.lang.reflect.Field field = com.android.internal.telephony.SubscriptionController.class . getDeclaredField ( "sInstance" ) ; field.setAccessible ( true ) ; field.set ( null , mSubController ) ; }
Source:
public com.android.server.wifi.WifiConfigStoreData switchUserStoreAndRead ( com.android.server.wifi.WifiConfigStore.StoreFile userStore ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { stopBufferedWriteAlarm ( ) ; mUserStore = userStore ; long readStartTime = mClock.getElapsedSinceBootMillis ( ) ; byte [ ] userDataBytes = mUserStore.readRawData ( ) ; long readTime = ( mClock.getElapsedSinceBootMillis ( ) ) - readStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Reading from user store completed in " + readTime ) + " ms." ) ) ; return com.android.server.wifi.WifiConfigStoreData.parseRawData ( null , userDataBytes ) ; }

Target:
public void switchUserStoreAndRead ( com.android.server.wifi.WifiConfigStore.StoreFile userStore ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { resetStoreData ( false ) ; stopBufferedWriteAlarm ( ) ; mUserStore = userStore ; long readStartTime = mClock.getElapsedSinceBootMillis ( ) ; byte [ ] userDataBytes = mUserStore.readRawData ( ) ; long readTime = ( mClock.getElapsedSinceBootMillis ( ) ) - readStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Reading from user store completed in " + readTime ) + " ms." ) ) ; deserializeData ( userDataBytes , false ) ; }
Source:
private java.util.Set < java.lang.Integer > getFieldIds ( com.android.dx.io.DexBuffer dex , java.util.Set < java.lang.Integer > memberNameIndexes , int declaringType ) { java.util.Set < java.lang.Integer > fields = new java.util.HashSet < java.lang.Integer > ( ) ; int fieldIndex = 0 ; for ( com.android.dx.io.FieldId fieldId : dex.fieldIds ( ) ) { if ( ( memberNameIndexes.contains ( fieldId.getNameIndex ( ) ) ) && ( declaringType == ( fieldId.getDeclaringClassIndex ( ) ) ) ) { fields.add ( fieldIndex ) ; } fieldIndex ++ ; } return fields ; }

Target:
private java.util.Set < java.lang.Integer > getFieldIds ( com.android.dex.Dex dex , java.util.Set < java.lang.Integer > memberNameIndexes , int declaringType ) { java.util.Set < java.lang.Integer > fields = new java.util.HashSet < java.lang.Integer > ( ) ; int fieldIndex = 0 ; for ( com.android.dex.FieldId fieldId : dex.fieldIds ( ) ) { if ( ( memberNameIndexes.contains ( fieldId.getNameIndex ( ) ) ) && ( declaringType == ( fieldId.getDeclaringClassIndex ( ) ) ) ) { fields.add ( fieldIndex ) ; } fieldIndex ++ ; } return fields ; }
Source:
private static com.android.server.wifi.nan.WifiNanClientState getInternalClientState ( com.android.server.wifi.nan.WifiNanStateManager dut , int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanStateManager.class . getDeclaredField ( "mClients" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseArray < com.android.server.wifi.nan.WifiNanClientState > clients = ( ( android.util.SparseArray < com.android.server.wifi.nan.WifiNanClientState > ) ( field.get ( dut ) ) ) ; return clients.get ( clientId ) ; }

Target:
private static com.android.server.wifi.aware.WifiAwareClientState getInternalClientState ( com.android.server.wifi.aware.WifiAwareStateManager dut , int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareStateManager.class . getDeclaredField ( "mClients" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseArray < com.android.server.wifi.aware.WifiAwareClientState > clients = ( ( android.util.SparseArray < com.android.server.wifi.aware.WifiAwareClientState > ) ( field.get ( dut ) ) ) ; return clients.get ( clientId ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { for ( java.io.File ref : mReferences.values ( ) ) { ref.delete ( ) ; } mExecutionService.shutdown ( ) ; mDevice.uninstallPackage ( android.theme.cts.ThemeHostTest.PACKAGE ) ; super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { for ( java.io.File ref : mReferences.values ( ) ) { ref.delete ( ) ; } mExecutionService.shutdown ( ) ; mDevice.uninstallPackage ( android.theme.cts.ThemeHostTest.PACKAGE ) ; mDevice.executeShellCommand ( android.theme.cts.ThemeHostTest.CLEAR_GENERATED_CMD ) ; super . tearDown ( ) ; }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.ResourceType ) { return mResources.getResources ( ( ( com.android.ide.eclipse.adt.internal.resources.ResourceType ) ( parentElement ) ) ) ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement instanceof com.android.resources.ResourceType ) { return mResources.getResources ( ( ( com.android.resources.ResourceType ) ( parentElement ) ) ) ; } else if ( ( mFullLevels ) && ( parentElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( parentElement ) ) . getSourceFileArray ( ) ; } return null ; }
Source:
public void testStaging_install_noCurrent ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataStagedDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.STAGED_DIR_NAME ) ; com.android.timezone.distro.TimeZoneDistro stagedDistro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataStagedDir , stagedDistro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 0 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataStagedDir ) ; assertDeviceDirContainsDistro ( dataCurrentDir , stagedDistro ) ; }

Target:
public void testStaging_install_noCurrent ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataStagedDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.STAGED_DIR_NAME ) ; byte [ ] stagedDistroBytes = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . buildBytes ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataStagedDir , stagedDistroBytes ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 0 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataStagedDir ) ; assertDeviceDirContainsDistro ( dataCurrentDir , stagedDistroBytes ) ; }
Source:
public void setStreamMute ( int streamType , boolean state , android.os.IBinder cb ) { if ( mUseFixedVolume ) { return ; } if ( isStreamAffectedByMute ( streamType ) ) { mStreamStates [ streamType ] . mute ( cb , state ) ; } }

Target:
public void setStreamMute ( int streamType , boolean state , android.os.IBinder cb ) { if ( mUseFixedVolume ) { return ; } if ( isStreamAffectedByMute ( streamType ) ) { if ( ( mHdmiManager ) != null ) { synchronized ( mHdmiManager ) { if ( ( streamType == ( AudioSystem.STREAM_MUSIC ) ) && ( ( mHdmiTvClient ) != null ) ) { synchronized ( mHdmiTvClient ) { if ( mHdmiSystemAudioSupported ) { mHdmiTvClient.setSystemAudioMute ( state ) ; } } } } } mStreamStates [ streamType ] . mute ( cb , state ) ; } }
Source:
public final void addInstance ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Instance instance ) { mShalowSize += instance.getSize ( ) ; mInstances.add ( instance ) ; }

Target:
public final void addInstance ( int heapId , @ com.android.annotations.NonNull com.android.tools.perflib.heap.Instance instance ) { mShalowSize += instance.getSize ( ) ; java.util.ArrayList < com.android.tools.perflib.heap.Instance > instances = mInstances.get ( heapId ) ; if ( instances == null ) { instances = new java.util.ArrayList < com.android.tools.perflib.heap.Instance > ( ) ; mInstances.put ( heapId , instances ) ; } instances.add ( instance ) ; }
Source:
public void fileChanged ( org.eclipse.core.resources.IProject project , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file , int eventType ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags changeFlags = mProjectFlags.get ( project ) ; if ( ( changeFlags != null ) && ( changeFlags.isAllTrue ( ) ) ) { return ; } java.util.Collection < com.android.resources.ResourceType > resTypes = file.getResourceTypes ( ) ; if ( ( resTypes.size ( ) ) > 0 ) { if ( changeFlags == null ) { changeFlags = new com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags ( ) ; mProjectFlags.put ( project , changeFlags ) ; } changeFlags.resources = true ; } }

Target:
public void fileChanged ( org.eclipse.core.resources.IProject project , com.android.ide.common.resources.ResourceFile file , int eventType ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags changeFlags = mProjectFlags.get ( project ) ; if ( ( changeFlags != null ) && ( changeFlags.isAllTrue ( ) ) ) { return ; } java.util.Collection < com.android.resources.ResourceType > resTypes = file.getResourceTypes ( ) ; if ( ( resTypes.size ( ) ) > 0 ) { if ( changeFlags == null ) { changeFlags = new com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags ( ) ; mProjectFlags.put ( project , changeFlags ) ; } changeFlags.resources = true ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { onUserRemoved ( intent ) ; }

Target:
public final int startActivity ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , java.lang.String profileFile , android.os.ParcelFileDescriptor profileFd , android.os.Bundle options ) { return startActivityAsUser ( caller , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , profileFile , profileFd , options , android.os.UserHandle.getCallingUserId ( ) ) ; }
Source:
public void removeDefaultNetworkActiveListener ( android.net.ConnectivityManager.OnNetworkActiveListener l ) { android.os.INetworkActivityListener rl = mNetworkActivityListeners.get ( l ) ; if ( rl == null ) { throw new java.lang.IllegalArgumentException ( ( "Listener not registered: " + l ) ) ; } try { getNetworkManagementService ( ) . unregisterNetworkActivityListener ( rl ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void removeDefaultNetworkActiveListener ( android.net.ConnectivityManager.OnNetworkActiveListener l ) { android.os.INetworkActivityListener rl = mNetworkActivityListeners.get ( l ) ; com.android.internal.util.Preconditions.checkArgument ( ( rl != null ) , "Listener was not registered." ) ; try { getNetworkManagementService ( ) . unregisterNetworkActivityListener ( rl ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void testListenerCompatLayer ( ) throws java.lang.Exception { android.telephony.ims.ImsCallSessionListener listener = org.mockito.Mockito.mock ( android.telephony.ims.ImsCallSessionListener.class ) ; com.android.ims.ImsReasonInfo info = org.mockito.Mockito.mock ( com.android.ims.ImsReasonInfo.class ) ; mCompatCallSession.setListener ( listener ) ; mCompatCallSession.mListener.callSessionTerminated ( null , info ) ; org.mockito.Mockito.verify ( listener ) . callSessionTerminated ( org.mockito.ArgumentMatchers.eq ( info ) ) ; }

Target:
public void testListenerCompatLayer ( ) throws java.lang.Exception { android.telephony.ims.ImsCallSessionListener listener = org.mockito.Mockito.mock ( android.telephony.ims.ImsCallSessionListener.class ) ; android.telephony.ims.ImsReasonInfo info = org.mockito.Mockito.mock ( android.telephony.ims.ImsReasonInfo.class ) ; mCompatCallSession.setListener ( listener ) ; mCompatCallSession.mListener.callSessionTerminated ( null , info ) ; org.mockito.Mockito.verify ( listener ) . callSessionTerminated ( org.mockito.ArgumentMatchers.eq ( info ) ) ; }
Source:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > getLiveEntry ( @ javax.annotation.Nullable java.lang.Object key ) { if ( key == null ) { return null ; } int hash = hash ( key ) ; return segmentFor ( hash ) . getLiveEntry ( key , hash , ticker.read ( ) ) ; }

Target:
public boolean isEmpty ( ) { return map.isEmpty ( ) ; }
Source:
public boolean pageDown ( final boolean bottom ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageDown ( bottom ) ; } } ) ; return ret ; } return mAwContents.pageDown ( bottom ) ; }

Target:
public boolean pageUp ( final boolean top ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageUp ( top ) ; } } ) ; return ret ; } return mAwContents.pageUp ( top ) ; }
Source:
private void expectNetworkStatsUidDetail ( android.net.NetworkStats detail , java.lang.String [ ] tetherIfacePairs , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.mockito.Mockito.when ( mNetManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ) . thenReturn ( detail ) ; org.mockito.Mockito.when ( mNetManager.getNetworkStatsTethering ( ) ) . thenReturn ( tetherStats ) ; }

Target:
private void expectNetworkStatsUidDetail ( android.net.NetworkStats detail , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.mockito.Mockito.when ( mNetManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ) . thenReturn ( detail ) ; org.mockito.Mockito.when ( mNetManager.getNetworkStatsTethering ( android.net.NetworkStats.STATS_PER_UID ) ) . thenReturn ( tetherStats ) ; }
Source:
private boolean stopLazyRoam ( ) { boolean status ; if ( ! ( useHalBasedAutoJoinOffload ( ) ) ) return false ; if ( com.android.server.wifi.WifiStateMachine.DBG ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "stopLazyRoam" ) ; } return com.android.server.wifi.WifiNative.setLazyRoam ( false , null ) ; }

Target:
private static android.net.wifi.IClientInterface setupDriverForClientMode ( android.net.wifi.IWificond wificond ) { if ( wificond == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to get reference to wificond" ) ; return null ; } android.net.wifi.IClientInterface clientInterface = null ; try { clientInterface = wificond.createClientInterface ( ) ; } catch ( android.os.RemoteException e1 ) { } if ( clientInterface == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Could not get IClientInterface instance from wificond" ) ; return null ; } return clientInterface ; }
Source:
public void startVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { for ( com.android.jack.ir.ast.JMethod sameEnclosingTypeMethod : type.getMethods ( ) ) { com.android.jack.ir.ast.JMethodIdWide id = sameEnclosingTypeMethod.getMethodId ( ) . getMethodIdWide ( ) ; if ( ( ! ( id.canBeVirtual ( ) ) ) && ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( id ) ) ) ) { if ( com.android.jack.shrob.obfuscation.Renamer.getKey ( id ) . equals ( methodKey ) ) { hasFoundMethodId = true ; return ; } } } visitSuperTypes ( type ) ; visitSubTypes ( type ) ; }

Target:
public void startVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { for ( com.android.jack.ir.ast.JMethod sameEnclosingTypeMethod : type.getMethods ( ) ) { com.android.jack.ir.ast.JMethodIdWide id = sameEnclosingTypeMethod.getMethodId ( ) . getMethodIdWide ( ) ; if ( ( ! ( id.canBeVirtual ( ) ) ) && ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( id ) ) ) ) { if ( com.android.jack.shrob.obfuscation.Renamer.getKey ( id ) . equals ( methodKey ) ) { hasFoundMethodId = true ; return ; } } } visit ( type ) ; visitSuperTypes ( type ) ; visitSubTypes ( type ) ; }
Source:
boolean start ( ) { if ( ( ( mAdbOsLocation ) != null ) && ( ( ! ( mVersionCheck ) ) || ( ! ( startAdb ( ) ) ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }

Target:
boolean start ( ) { if ( ( ( ( mAdbOsLocation ) != null ) && ( ( com.android.ddmlib.AndroidDebugBridge.sAdbServerPort ) != null ) ) && ( ( ! ( mVersionCheck ) ) || ( ! ( startAdb ( ) ) ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }
Source:
public void onViewHolderCollapsed ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder collapseViewHolder ) { if ( ( collapseViewHolder.getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) { currentlyExpandedViewHolderId = - 1 ; } }

Target:
public void collapseExpandedViewHolder ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder collapseViewHolder ) { com.android.dialer.common.Assert.checkArgument ( ( ( collapseViewHolder.getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; collapseViewHolder.collapseViewHolder ( ) ; currentlyExpandedViewHolderId = - 1 ; if ( mediaPlayer.isPlaying ( ) ) { com.android.dialer.common.Assert.checkArgument ( java.util.Objects.equals ( mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) , collapseViewHolder.getViewHolderVoicemailUri ( ) ) , "the voicemail being played should have been of the recently collapsed view holder." ) ; mediaPlayer.reset ( ) ; } }
Source:
private void acquireWakeLockLocked ( ) { try { acquireWakeLockXLocked ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.LocationManagerService.TAG , "exception in acquireWakeLock()" , e ) ; } }

Target:
private void incrementPendingBroadcasts ( ) { synchronized ( mWakeLock ) { if ( ( ( mPendingBroadcasts ) ++ ) == 0 ) { try { mWakeLock.acquire ( ) ; log ( "Acquired wakelock" ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.server.LocationManagerService.TAG , "exception in acquireWakeLock()" , e ) ; } } } }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
public void setFacilityLock ( java.lang.String facility , boolean lockState , java.lang.String password , int serviceClass , android.os.Message response ) { setFacilityLockForApp ( facility , lockState , password , serviceClass , null , response ) ; }

Target:
public void getDataCallList ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DATA_CALL_LIST , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return com.android.dialer.common.Assert.isNotNull ( phoneLookupInfo.getPeopleApiInfo ( ) . getLookupUri ( ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return com.android.dialer.common.Assert.isNotNull ( phoneLookupInfo.getPeopleApiInfo ( ) . getLookupUri ( ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PHONE_NUMBER_CACHE : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void test_getRelativeDateTimeStringCTS ( ) throws java.lang.Exception { java.util.Locale en_US = java.util.Locale.getDefault ( ) ; java.util.TimeZone tz = java.util.TimeZone.getDefault ( ) ; final long baseTime = java.lang.System.currentTimeMillis ( ) ; final long DAY_DURATION = ( ( ( 5 * 24 ) * 60 ) * 60 ) * 1000 ; assertNotNull ( libcore.icu.RelativeDateTimeFormatter.getRelativeDateTimeString ( en_US , tz , ( baseTime - DAY_DURATION ) , baseTime , libcore.icu.RelativeDateTimeFormatter.MINUTE_IN_MILLIS , libcore.icu.RelativeDateTimeFormatter.DAY_IN_MILLIS , libcore.icu.RelativeDateTimeFormatter.FORMAT_NUMERIC_DATE ) ) ; }

Target:
public void test_getRelativeDateTimeStringCTS ( ) throws java.lang.Exception { java.util.Locale en_US = java.util.Locale.getDefault ( ) ; java.util.TimeZone tz = java.util.TimeZone.getDefault ( ) ; final long baseTime = java.lang.System.currentTimeMillis ( ) ; final long DAY_DURATION = ( ( ( 5 * 24 ) * 60 ) * 60 ) * 1000 ; assertNotNull ( libcore.icu.RelativeDateTimeFormatter.getRelativeDateTimeString ( en_US , tz , ( baseTime - DAY_DURATION ) , baseTime , libcore.icu.RelativeDateTimeFormatter.MINUTE_IN_MILLIS , libcore.icu.RelativeDateTimeFormatter.DAY_IN_MILLIS , libcore.icu.DateUtilsBridge.FORMAT_NUMERIC_DATE ) ) ; }
Source:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( dialog.getModuleName ( ) ) ; createRunConfiguration ( project , module , moduleRoot ) ; addAppEngineGradleFacet ( ) ; }

Target:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( dialog.getModuleName ( ) ) ; com.android.tools.idea.templates.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; addAppEngineGradleFacet ( ) ; }
Source:
public boolean setNetworkConnectChoice ( int networkId , java.lang.String connectChoiceConfigKey , long timestamp ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( ( ( "Set network connect choice " + connectChoiceConfigKey ) + " for " ) + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( connectChoiceConfigKey ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( timestamp ) ; return true ; }

Target:
public boolean setNetworkConnectChoice ( int networkId , java.lang.String connectChoiceConfigKey , long timestamp ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( ( ( "Set network connect choice " + connectChoiceConfigKey ) + " for " ) + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( connectChoiceConfigKey ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( timestamp ) ; saveToStore ( false ) ; return true ; }
Source:
public void testAlwaysOnVpnDisabled ( ) throws java.lang.Exception { assertNull ( mDevicePolicyManager.getAlwaysOnVpnPackage ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT ) ) ; assertFalse ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.isNetworkVpn ( mContext ) ) ; }

Target:
public void testAlwaysOnVpnDisabled ( ) throws java.lang.Exception { for ( int i = 0 ; i < 60 ; i ++ ) { if ( ( mDevicePolicyManager.getAlwaysOnVpnPackage ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT ) ) == null ) { break ; } java.lang.Thread.sleep ( 1000 ) ; } assertNull ( mDevicePolicyManager.getAlwaysOnVpnPackage ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT ) ) ; assertFalse ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.isNetworkVpn ( mContext ) ) ; }
Source:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void moveCompleteApp ( java.lang.String fromUuid , java.lang.String toUuid , java.lang.String packageName , java.lang.String dataAppName , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.moveCompleteApp ( fromUuid , toUuid , packageName , dataAppName , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public static void assertArrayEquals ( java.lang.String message , byte [ ] expecteds , byte [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , byte [ ] expecteds , byte [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
private static void testOatFilesUnloaded ( int pid ) throws java.lang.Exception { java.lang.System.loadLibrary ( Main.nativeLibraryName ) ; Main.stopJit ( ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.System.runFinalization ( ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( new java.io.FileReader ( ( ( "/proc/" + pid ) + "/maps" ) ) ) ; java.lang.String line ; int count = 0 ; while ( ( line = reader.readLine ( ) ) != null ) { if ( line.contains ( "@141-class-unload-ex.jar" ) ) { java.lang.System.out.println ( line ) ; ++ count ; } } java.lang.System.out.println ( ( "Number of loaded unload-ex maps " + count ) ) ; Main.startJit ( ) ; }

Target:
private static void testOatFilesUnloaded ( int pid ) throws java.lang.Exception { java.lang.System.loadLibrary ( Main.nativeLibraryName ) ; Main.stopJit ( ) ; Main.doUnloading ( ) ; java.lang.System.runFinalization ( ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( new java.io.FileReader ( ( ( "/proc/" + pid ) + "/maps" ) ) ) ; java.lang.String line ; int count = 0 ; while ( ( line = reader.readLine ( ) ) != null ) { if ( line.contains ( "@141-class-unload-ex.jar" ) ) { java.lang.System.out.println ( line ) ; ++ count ; } } java.lang.System.out.println ( ( "Number of loaded unload-ex maps " + count ) ) ; Main.startJit ( ) ; }
Source:
public boolean migrate ( java.lang.String key , int uid ) { try { return ( mBinder.migrate ( key , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean duplicate ( java.lang.String srcKey , int srcUid , java.lang.String destKey , int destUid ) { try { return ( mBinder.duplicate ( srcKey , srcUid , destKey , destUid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public void testSelectedDescendantsMatch_SelectedDescendantsMatchAndDoNotMatch ( ) { android.view.View grany = setUpViewHierarchy ( ) ; try { android.support.test.espresso.assertion.ViewAssertions.selectedDescendantsMatch ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.TextView.class ) , android.support.test.espresso.matcher.ViewMatchers.hasContentDescription ( ) ) . check ( grany , absentException ) ; } catch ( junit.framework.AssertionFailedError expected ) { return ; } fail ( "should fail because not all descendants match." ) ; }

Target:
public void selectedDescendantsMatch_SelectedDescendantsMatchAndDoNotMatch ( ) { android.view.View grany = setUpViewHierarchy ( ) ; expectedException.expect ( junit.framework.AssertionFailedError.class ) ; android.support.test.espresso.assertion.ViewAssertions.selectedDescendantsMatch ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.TextView.class ) , android.support.test.espresso.matcher.ViewMatchers.hasContentDescription ( ) ) . check ( grany , absentException ) ; }
Source:
public java.lang.String readString ( ) throws java.io.IOException { final int size = readRawVarint32 ( ) ; if ( ( size <= ( ( bufferSize ) - ( bufferPos ) ) ) && ( size > 0 ) ) { final java.lang.String result = new java.lang.String ( buffer , bufferPos , size , "UTF-8" ) ; bufferPos += size ; return result ; } else { return new java.lang.String ( readRawBytes ( size ) , "UTF-8" ) ; } }

Target:
public java.lang.String readString ( ) throws java.io.IOException { final int size = readRawVarint32 ( ) ; if ( size < 0 ) { throw com.google.protobuf.nano.InvalidProtocolBufferNanoException.negativeSize ( ) ; } if ( size > ( ( bufferSize ) - ( bufferPos ) ) ) { throw com.google.protobuf.nano.InvalidProtocolBufferNanoException.truncatedMessage ( ) ; } final java.lang.String result = new java.lang.String ( buffer , bufferPos , size , "UTF-8" ) ; bufferPos += size ; return result ; }
Source:
private void checkMethodAccessFlags ( int requiredSetMemberAccessFlags , int requiredUnsetMemberAccessFlags ) throws proguard.ParseException { if ( ( ( requiredSetMemberAccessFlags | requiredUnsetMemberAccessFlags ) & ( ~ ( proguard.classfile.ClassConstants.VALID_INTERNAL_ACC_METHOD ) ) ) != 0 ) { throw new proguard.ParseException ( ( "Invalid field access modifier for method before " + ( reader.locationDescription ( ) ) ) ) ; } }

Target:
private void checkFieldAccessFlags ( int requiredSetMemberAccessFlags , int requiredUnsetMemberAccessFlags ) throws proguard.ParseException { if ( ( ( requiredSetMemberAccessFlags | requiredUnsetMemberAccessFlags ) & ( ~ ( ClassConstants.VALID_ACC_FIELD ) ) ) != 0 ) { throw new proguard.ParseException ( ( "Invalid method access modifier for field before " + ( reader.locationDescription ( ) ) ) ) ; } }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_char.d.T_aput_char_1 t = new dot.junit.opcodes.aput_char.d.T_aput_char_1 ( ) ; char [ ] arr = new char [ 2 ] ; try { t.run ( arr , 2 , 'g' ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aput_char.d.T_aput_char_1" , java.lang.NullPointerException.class , null , 0 , 'g' ) ; }
Source:
private void onRoamingOff ( ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( "onRoamingOff" ) ; setDataProfilesAsNeeded ( ) ; if ( ! ( mDataEnabledSettings.isUserDataEnabled ( ) ) ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }

Target:
private void onRoamingOff ( ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( "onRoamingOff" ) ; setInitialAttachApn ( ) ; setDataProfilesAsNeeded ( ) ; if ( ! ( mDataEnabledSettings.isUserDataEnabled ( ) ) ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }
Source:
public synchronized int getConnectionState ( ) { com.android.internal.util.IState currentState = getCurrentState ( ) ; if ( currentState == ( mConnecting ) ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTING ; } else if ( currentState instanceof com.android.bluetooth.hfp.HeadsetStateMachine.ConnectedBase ) { return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; } else if ( currentState == ( mDisconnecting ) ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; } return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; }

Target:
synchronized int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( ( mCurrentDevice ) == null ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } if ( ! ( mCurrentDevice.equals ( device ) ) ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } return ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HeadsetStateBase ) ( getCurrentState ( ) ) ) . getConnectionStateInt ( ) ; }
Source:
private boolean shouldPreserveCurrentVisualArea ( ) { javax.swing.JScrollBar scrollBar = myEditor.getScrollPane ( ) . getVerticalScrollBar ( ) ; if ( ( scrollBar.getVisibleAmount ( ) ) == 0 ) return myLastPreserveVisualArea ; myLastPreserveVisualArea = ( ( scrollBar.getValue ( ) ) + ( scrollBar.getVisibleAmount ( ) ) ) != ( scrollBar.getMaximum ( ) ) ; return myLastPreserveVisualArea ; }

Target:
private boolean shouldPreserveCurrentVisualArea ( ) { if ( ( myEditor ) == null ) return myLastPreserveVisualArea ; com.intellij.execution.impl.Document document = myEditor.getDocument ( ) ; int caretOffset = myEditor.getCaretModel ( ) . getOffset ( ) ; myLastPreserveVisualArea = ( document.getLineNumber ( caretOffset ) ) < ( ( document.getLineCount ( ) ) - 1 ) ; return myLastPreserveVisualArea ; }
Source:
public void onHostCardEmulationData ( int technology , byte [ ] data ) { if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationData ( data ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationData ( data ) ; } }

Target:
public void onHostCardEmulationData ( int technology , byte [ ] data ) { if ( ( mPowerManager ) != null ) { mPowerManager.userActivity ( android.os.SystemClock.uptimeMillis ( ) , PowerManager.USER_ACTIVITY_EVENT_TOUCH , 0 ) ; } if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationData ( data ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationData ( data ) ; } }
Source:
byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; output.write ( mEnvelope.origSubaddress.origBytes , 0 , mEnvelope.origSubaddress.origBytes.length ) ; return output.toByteArray ( ) ; }

Target:
byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.serviceCategory ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; output.write ( mEnvelope.origSubaddress.origBytes , 0 , mEnvelope.origSubaddress.origBytes.length ) ; return output.toByteArray ( ) ; }
Source:
private boolean loopQueryCalls ( ) { if ( ( callsInState ( BluetoothHeadsetClientCall.CALL_STATE_ACTIVE ) ) > 1 ) { return true ; } android.bluetooth.BluetoothHeadsetClientCall c = getCall ( BluetoothHeadsetClientCall.CALL_STATE_INCOMING ) ; if ( ( c != null ) && ( ( mIndicatorCallSetup ) == ( HeadsetClientHalConstants.CALLSETUP_NONE ) ) ) return true ; return false ; }

Target:
private int hfToAmVol ( int hfVol ) { int amRange = ( mMaxAmVcVol ) - ( mMinAmVcVol ) ; int hfRange = ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MAX_HFP_SCO_VOICE_CALL_VOLUME ) - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ; int amOffset = ( amRange * ( hfVol - ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.MIN_HFP_SCO_VOICE_CALL_VOLUME ) ) ) / hfRange ; int amVol = ( mMinAmVcVol ) + amOffset ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "HF -> AM " + hfVol ) + " " ) + amVol ) ) ; return amVol ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_byte.d.T_aput_byte_1 t = new dot.junit.opcodes.aput_byte.d.T_aput_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , ( - 1 ) , ( ( byte ) ( 100 ) ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_byte.d.T_aput_byte_1" , java.lang.ArrayIndexOutOfBoundsException.class , new byte [ 2 ] , ( - 1 ) , ( ( byte ) ( 100 ) ) ) ; }
Source:
public boolean delKey ( java.lang.String key , int uid ) { try { return ( mBinder.del_key ( key , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean isEmpty ( int userId ) { try { return ( mBinder.isEmpty ( userId ) ) != 0 ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private java.io.File getWrittenResources ( ) throws com.android.ide.common.res2.MergingException , java.io.IOException { com.android.ide.common.res2.ResourceMerger resourceMerger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( false ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; com.android.ide.common.res2.MergedResourceWriter writer = new com.android.ide.common.res2.MergedResourceWriter ( folder , mPngCruncher , false , false , null ) ; resourceMerger.mergeData ( writer , false ) ; return folder ; }

Target:
private java.io.File getWrittenResources ( ) throws com.android.ide.common.res2.MergingException , java.io.IOException { com.android.ide.common.res2.ResourceMerger resourceMerger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( false ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; com.android.ide.common.res2.MergedResourceWriter writer = getConsumer ( folder ) ; resourceMerger.mergeData ( writer , false ) ; return folder ; }
Source:
private void endingTask ( @ javax.annotation.Nonnull com.android.jack.server.ServerInfo info ) { synchronized ( lock ) { ( info.currentLocal ) -- ; if ( ( info.currentLocal ) == 0 ) { startTimer ( ) ; } lock.notifyAll ( ) ; } }

Target:
private void endingTask ( @ javax.annotation.Nonnull com.android.jack.server.ServerInfo info ) { synchronized ( lock ) { ( info.currentLocal ) -- ; if ( ( ( adminInfo.currentLocal ) == 0 ) && ( ( serviceInfo.currentLocal ) == 0 ) ) { setServerMode ( ServerMode.WAIT ) ; } lock.notifyAll ( ) ; } }
Source:
public static int computeStringSizeNoTag ( final java.lang.String value ) { try { final byte [ ] bytes = value.getBytes ( "UTF-8" ) ; return ( com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( bytes.length ) ) + ( bytes.length ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "UTF-8 not supported." ) ; } }

Target:
public static int computeStringSizeNoTag ( final java.lang.String value ) { final int length = com.google.protobuf.nano.CodedOutputByteBufferNano.encodedLength ( value ) ; return ( com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( length ) ) + length ; }
Source:
public void test_parkUntil_1 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }

Target:
public void test_parkUntil_1 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }