auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.dialer.voicemail.listui.NewVoicemailViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , int viewType ) { android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) ; android.view.View view = inflater.inflate ( R.layout.new_voicemail_entry , viewGroup , false ) ; com.android.dialer.voicemail.listui.NewVoicemailViewHolder newVoicemailViewHolder = new com.android.dialer.voicemail.listui.NewVoicemailViewHolder ( view , clock , this ) ; newVoicemailViewHolderSet.add ( newVoicemailViewHolder ) ; return newVoicemailViewHolder ; }

Target:
public com.android.dialer.voicemail.listui.NewVoicemailViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , int viewType ) { com.android.dialer.common.LogUtil.enterBlock ( "NewVoicemailAdapter.onCreateViewHolder" ) ; android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) ; android.view.View view = inflater.inflate ( R.layout.new_voicemail_entry , viewGroup , false ) ; com.android.dialer.voicemail.listui.NewVoicemailViewHolder newVoicemailViewHolder = new com.android.dialer.voicemail.listui.NewVoicemailViewHolder ( view , clock , this ) ; newVoicemailViewHolderSet.add ( newVoicemailViewHolder ) ; return newVoicemailViewHolder ; }
Source:
public static java.lang.String readFirstLine ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.CharStreams.readFirstLine ( com.google.common.io.Files.newReaderSupplier ( file , charset ) ) ; }

Target:
public static java.util.List < java.lang.String > readLines ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.Files.readLines ( file , charset , new com.google.common.io.LineProcessor < java.util.List < java.lang.String > > ( ) { final java.util.List < java.lang.String > result = com.google.common.collect.Lists.newArrayList ( ) ; @ java.lang.Override public boolean processLine ( java.lang.String line ) { result.add ( line ) ; return true ; } @ java.lang.Override public java.util.List < java.lang.String > getResult ( ) { return result ; } } ) ; }
Source:
private com.android.server.LocationManagerService.Receiver getReceiverLocked ( android.app.PendingIntent intent , int pid , int uid , java.lang.String packageName ) { com.android.server.LocationManagerService.Receiver receiver = mReceivers.get ( intent ) ; if ( receiver == null ) { receiver = new com.android.server.LocationManagerService.Receiver ( null , intent , pid , uid , packageName ) ; mReceivers.put ( intent , receiver ) ; } return receiver ; }

Target:
private com.android.server.LocationManagerService.Receiver getReceiverLocked ( android.app.PendingIntent intent , int pid , int uid , java.lang.String packageName , android.os.WorkSource workSource , boolean hideFromAppOps ) { com.android.server.LocationManagerService.Receiver receiver = mReceivers.get ( intent ) ; if ( receiver == null ) { receiver = new com.android.server.LocationManagerService.Receiver ( null , intent , pid , uid , packageName , workSource , hideFromAppOps ) ; mReceivers.put ( intent , receiver ) ; } return receiver ; }
Source:
public java.lang.invoke.MethodHandle bind ( java.lang.Object receiver , java.lang.String name , java.lang.invoke.MethodType type ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException { java.lang.invoke.MethodHandle handle = java.lang.invoke.MethodHandles.lookup ( ) . findVirtual ( receiver.getClass ( ) , name , type ) ; return handle.bindTo ( receiver ) ; }

Target:
public java.lang.invoke.MethodHandle bind ( java.lang.Object receiver , java.lang.String name , java.lang.invoke.MethodType type ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException { java.lang.invoke.MethodHandle handle = findVirtual ( receiver.getClass ( ) , name , type ) ; java.lang.invoke.MethodHandle adapter = handle.bindTo ( receiver ) ; java.lang.invoke.MethodType adapterType = adapter.type ( ) ; if ( handle.isVarargsCollector ( ) ) { adapter = adapter.asVarargsCollector ( adapterType.parameterType ( ( ( adapterType.parameterCount ( ) ) - 1 ) ) ) ; } return adapter ; }
Source:
public void testRunNormalInput ( ) { mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockRunUtil ( "which" , "python" , CommandStatus.SUCCESS ) ) ; try { mTest.run ( mMockInvocationListener ) ; } catch ( java.lang.IllegalArgumentException e ) { fail ( ) ; e.printStackTrace ( ) ; } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }

Target:
public void testRunNormalInputCommandFailed ( ) { mProcessHelper = com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockProcessHelper ( CommandStatus.FAILED ) ; mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( createMockRunUtil ( "which" ) ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( "Failed to run VTS test" . equals ( e.getMessage ( ) ) ) ) { fail ( ) ; } } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }
Source:
private void assertNoContentInstalled ( ) { java.io.File currentTzDataDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.CURRENT_TZ_DATA_DIR_NAME ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertFalse ( workingDir.exists ( ) ) ; java.io.File oldDataDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.OLD_TZ_DATA_DIR_NAME ) ; assertFalse ( oldDataDir.exists ( ) ) ; }

Target:
private void assertNoContentInstalled ( ) { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertFalse ( workingDir.exists ( ) ) ; java.io.File oldDataDir = installer.getOldTzDataDir ( ) ; assertFalse ( oldDataDir.exists ( ) ) ; }
Source:
public void test3_0ControlStatusListener ( ) throws java.lang.Exception { synchronized ( mLock ) { mHasControl = true ; mInitialized = false ; createListenerLooper ( true , false , false ) ; waitForLooperInitialization_l ( ) ; getEqualizer ( 0 ) ; int looperWaitCount = android.media.cts.EqualizerTest.MAX_LOOPER_WAIT_COUNT ; while ( ( mHasControl ) && ( ( looperWaitCount -- ) > 0 ) ) { try { mLock.wait ( ) ; } catch ( java.lang.Exception e ) { } } terminateListenerLooper ( ) ; releaseEqualizer ( ) ; } assertFalse ( "effect control not lost by effect1" , mHasControl ) ; }

Target:
public void test3_0ControlStatusListener ( ) throws java.lang.Exception { synchronized ( mLock ) { mHasControl = true ; mInitialized = false ; createListenerLooper ( true , false , false ) ; waitForLooperInitialization_l ( ) ; getEqualizer ( mSession ) ; int looperWaitCount = android.media.cts.EqualizerTest.MAX_LOOPER_WAIT_COUNT ; while ( ( mHasControl ) && ( ( looperWaitCount -- ) > 0 ) ) { try { mLock.wait ( ) ; } catch ( java.lang.Exception e ) { } } terminateListenerLooper ( ) ; releaseEqualizer ( ) ; } assertFalse ( "effect control not lost by effect1" , mHasControl ) ; }
Source:
public void testPass2 ( ) { addTestMetric ( "key2" , "metric2" ) ; }

Target:
public void testPass2 ( ) { addTestMetric ( "key2" , "metric2" ) ; if ( ( testOption ) != null ) { addTestMetric ( "test-option" , testOption ) ; } if ( ! ( listOption.isEmpty ( ) ) ) { addTestMetric ( "list-option" , listOption.toString ( ) ) ; } if ( ! ( mapOption.isEmpty ( ) ) ) { addTestMetric ( "map-option" , mapOption.toString ( ) ) ; } }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( libraryVDir , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }

Target:
public com.android.sched.vfs.InputVDir getDir ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.prependPath ( fileType.getVPathPrefix ( ) ) ; return libraryVDir.getInputVDir ( clonedPath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL209 = null ; try { { INTEGER_LITERAL209 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3495 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL209 != null ? INTEGER_LITERAL209.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL204 = null ; try { { INTEGER_LITERAL204 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3380 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL204 != null ? INTEGER_LITERAL204.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public void setChannelIdPrivateKey ( java.security.PrivateKey privateKey ) { if ( ! ( getUseClientMode ( ) ) ) { throw new java.lang.IllegalStateException ( "Server mode" ) ; } if ( handshakeStarted ) { throw new java.lang.IllegalStateException ( ( "Could not change Channel ID private key after the initial handshake has" + " begun." ) ) ; } this . channelIdPrivateKey = privateKey ; }

Target:
public void setChannelIdPrivateKey ( java.security.PrivateKey privateKey ) { if ( ! ( getUseClientMode ( ) ) ) { throw new java.lang.IllegalStateException ( "Server mode" ) ; } if ( handshakeStarted ) { throw new java.lang.IllegalStateException ( ( "Could not change Channel ID private key after the initial handshake has" + " begun." ) ) ; } if ( privateKey == null ) { this . channelIdEnabled = false ; this . channelIdPrivateKey = null ; } else { this . channelIdEnabled = true ; try { this . channelIdPrivateKey = org.conscrypt.OpenSSLKey.fromPrivateKey ( privateKey ) ; } catch ( java.security.InvalidKeyException e ) { } } }
Source:
public java.lang.String dexName ( ) { if ( ( mIsTypeVariable ) || ( mIsWildcard ) ) { if ( ( ( mExtendsBounds ) != null ) && ( ! ( mExtendsBounds.isEmpty ( ) ) ) ) { return ( mExtendsBounds.get ( 0 ) . dexName ( ) ) + ( mDimension ) ; } else { return "java.lang.Object" + ( mDimension ) ; } } return qualifiedTypeName ( ) ; }

Target:
public java.lang.String dexName ( ) { if ( ( mIsTypeVariable ) || ( mIsWildcard ) ) { if ( ( ( mExtendsBounds ) != null ) && ( ! ( mExtendsBounds.isEmpty ( ) ) ) ) { return ( mExtendsBounds.get ( 0 ) . dexName ( ) ) + ( mDimension ) ; } else { return "java.lang.Object" + ( mDimension ) ; } } return ( mQualifiedTypeName ) + ( mDimension ) ; }
Source:
public void handleUserUnlock ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Handling user unlock for " + userId ) ) ; } if ( ( userId == ( mCurrentUserId ) ) && ( mPendingUnlockStoreRead ) ) { handleUserUnlockOrSwitch ( mCurrentUserId ) ; } }

Target:
public void handleUserUnlock ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Handling user unlock for " + userId ) ) ; } if ( mPendingStoreRead ) { android.util.Log.w ( com.android.server.wifi.WifiConfigManager.TAG , "Ignore user unlock until store is read!" ) ; mDeferredUserUnlockRead = true ; return ; } if ( ( userId == ( mCurrentUserId ) ) && ( mPendingUnlockStoreRead ) ) { handleUserUnlockOrSwitch ( mCurrentUserId ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLambda lambda ) { com.android.jack.ir.ast.JInterface lambdaType = lambda.getType ( ) ; try { com.android.jack.ir.ast.JMethodId mthIdWithReturnType = lambda.getMethodIdToImplement ( ) ; lambda.resolveMethodId ( lambdaType.getMethodId ( mthIdWithReturnType.getMethodIdWide ( ) . getName ( ) , mthIdWithReturnType.getMethodIdWide ( ) . getParamTypes ( ) , MethodKind.INSTANCE_VIRTUAL , mthIdWithReturnType.getType ( ) ) ) ; } catch ( com.android.jack.lookup.JMethodWithReturnLookupException e ) { throw new java.lang.AssertionError ( ) ; } return super . visit ( lambda ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLambda lambda ) { com.android.jack.ir.ast.JInterface lambdaType = lambda.getType ( ) ; try { com.android.jack.ir.ast.JMethodId mthIdWithErasure = lambda.getMethodIdWithErasure ( ) ; lambda.resolveMethodId ( lambdaType.getMethodId ( mthIdWithErasure.getMethodIdWide ( ) . getName ( ) , mthIdWithErasure.getMethodIdWide ( ) . getParamTypes ( ) , MethodKind.INSTANCE_VIRTUAL , mthIdWithErasure.getType ( ) ) ) ; } catch ( com.android.jack.lookup.JMethodWithReturnLookupException e ) { throw new java.lang.AssertionError ( ) ; } return super . visit ( lambda ) ; }
Source:
public boolean startLoggingRingBuffer ( int verboseLevel , int flags , int maxInterval , int minDataSize , java.lang.String ringName ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.startLoggingRingBufferNative ( com.android.server.wifi.WifiNative.sWlan0Index , verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } else { return false ; } } }

Target:
public boolean startLoggingRingBuffer ( int verboseLevel , int flags , int maxInterval , int minDataSize , java.lang.String ringName ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.startLoggingRingBuffer ( verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.startLoggingRingBufferNative ( com.android.server.wifi.WifiNative.sWlan0Index , verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } else { return false ; } } } }
Source:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( patch , com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
public java.io.OutputStream getOutputStream ( ) throws java.io.IOException { checkOpenAndConnected ( ) ; if ( isOutputShutdown ( ) ) { throw new java.net.SocketException ( "Socket output is shutdown" ) ; } return new java.nio.SocketChannelImpl.SocketChannelOutputStream ( channel ) ; }

Target:
public void bind ( java.net.SocketAddress localAddr ) throws java.io.IOException { if ( channel.isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } if ( ( java.nio.SocketChannelImpl.SOCKET_STATUS_PENDING ) == ( channel.status ) ) { throw new java.nio.channels.ConnectionPendingException ( ) ; } super . bind ( localAddr ) ; channel.onBind ( false ) ; }
Source:
protected boolean cleanup ( ) { if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mInputDevices ) != null ) { for ( android.bluetooth.BluetoothDevice device : mInputDevices.keySet ( ) ) { int inputDeviceState = getConnectionState ( device ) ; if ( inputDeviceState != ( android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ) ) { broadcastConnectionState ( device , BluetoothProfile.STATE_DISCONNECTED ) ; } } mInputDevices.clear ( ) ; } com.android.bluetooth.hid.HidService.clearHidService ( ) ; return true ; }

Target:
protected boolean cleanup ( ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , "Stopping Bluetooth HidService" ) ; if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mInputDevices ) != null ) { for ( android.bluetooth.BluetoothDevice device : mInputDevices.keySet ( ) ) { int inputDeviceState = getConnectionState ( device ) ; if ( inputDeviceState != ( android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ) ) { broadcastConnectionState ( device , BluetoothProfile.STATE_DISCONNECTED ) ; } } mInputDevices.clear ( ) ; } com.android.bluetooth.hid.HidService.clearHidService ( ) ; return true ; }
Source:
public void testTimeZoneNotChangedByParse ( ) throws java.lang.Exception { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "UTC" ) ; java.text.SimpleDateFormat df = new java.text.SimpleDateFormat ( "dd MMM yyyy HH:mm:ss zzz" ) ; df.setTimeZone ( tz ) ; df.parse ( "22 Jul 1977 12:23:45 HST" ) ; assertEquals ( tz , df.getTimeZone ( ) ) ; }

Target:
public void testTimeZoneNotChangedByParse ( ) throws java.lang.Exception { java.text.SimpleDateFormat df = new java.text.SimpleDateFormat ( "dd MMM yyyy HH:mm:ss zzz" ) ; df.setTimeZone ( libcore.java.text.SimpleDateFormatTest.UTC ) ; df.parse ( "22 Jul 1977 12:23:45 HST" ) ; assertEquals ( libcore.java.text.SimpleDateFormatTest.UTC , df.getTimeZone ( ) ) ; }
Source:
void messageFromNative ( com.android.bluetooth.a2dp.A2dpStackEvent stackEvent ) { synchronized ( mStateMachines ) { android.bluetooth.BluetoothDevice device = stackEvent.device ; com.android.bluetooth.a2dp.A2dpStateMachine sm = getOrCreateStateMachine ( device ) ; if ( sm == null ) { android.util.Log.e ( com.android.bluetooth.a2dp.A2dpService.TAG , ( "Cannot process stack event: no state machine: " + stackEvent ) ) ; return ; } sm.sendMessage ( A2dpStateMachine.STACK_EVENT , stackEvent ) ; } }

Target:
void bondStateChanged ( android.bluetooth.BluetoothDevice device , int bondState ) { if ( com.android.bluetooth.a2dp.A2dpService.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpService.TAG , ( ( ( "Bond state changed for device: " + device ) + " state: " ) + bondState ) ) ; } if ( bondState != ( android.bluetooth.BluetoothDevice.BOND_NONE ) ) { return ; } synchronized ( mStateMachines ) { com.android.bluetooth.a2dp.A2dpStateMachine sm = mStateMachines.get ( device ) ; if ( sm == null ) { return ; } if ( ( sm.getConnectionState ( ) ) != ( android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ) ) { return ; } removeStateMachine ( device ) ; } }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { mLayoutEditor.wrapUndoRecording ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { mLayoutEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { mLayoutEditor.wrapUndoEditXmlModel ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { deleteSelection ( "Remove" , mDragSelection ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }
Source:
public void startProvisioning ( com.android.voicemail.impl.ActivationTask task , android.telecom.PhoneAccountHandle phone , com.android.voicemail.impl.VoicemailStatus.Editor status , com.android.voicemail.impl.sms.StatusMessage message , android.os.Bundle data ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; protocol.startProvisioning ( task , phone , this , status , message , data ) ; }

Target:
public void startProvisioning ( com.android.voicemail.impl.ActivationTask task , android.telecom.PhoneAccountHandle phone , com.android.voicemail.impl.VoicemailStatus.Editor status , com.android.voicemail.impl.sms.StatusMessage message , android.os.Bundle data , boolean isCarrierInitiated ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; protocol.startProvisioning ( task , phone , this , status , message , data , isCarrierInitiated ) ; }
Source:
private android.graphics.drawable.Drawable getConferencePhoto ( boolean canManageConference ) { com.android.incallui.Log.v ( this , ( "canManageConferencePhoto: " + canManageConference ) ) ; final int resId = ( canManageConference ) ? R.drawable.img_conference : R.drawable.img_phone ; return getView ( ) . getResources ( ) . getDrawable ( resId ) ; }

Target:
public void updateColors ( ) { com.android.contacts.common.util.MaterialColorMapUtils.MaterialPalette themeColors = com.android.incallui.InCallPresenter.getInstance ( ) . getThemeColors ( ) ; if ( ( ( mCurrentThemeColors ) != null ) && ( mCurrentThemeColors.equals ( themeColors ) ) ) { return ; } mPrimaryCallCardContainer.setBackgroundColor ( themeColors.mPrimaryColor ) ; mCallButtonsContainer.setBackgroundColor ( themeColors.mPrimaryColor ) ; mCurrentThemeColors = themeColors ; }
Source:
public void testAspectRatio ( ) throws java.lang.Exception { java.util.List < java.lang.Double > aspectRatios = getAllAspectRatios ( ) ; for ( double aspectRatio : aspectRatios ) { if ( ( aspectRatio >= 1.333 ) && ( aspectRatio <= 1.86 ) ) { return ; } } fail ( ( "Aspect ratios were not between 1.333 and 1.86: " + aspectRatios ) ) ; }

Target:
public void testAspectRatio ( ) throws java.lang.Exception { double aspectRatio = getRealAspectRatio ( getActivity ( ) ) ; if ( ( aspectRatio >= 1.333 ) && ( aspectRatio <= 1.86 ) ) { return ; } fail ( ( "Aspect ratio was not between 1.333 and 1.86: " + aspectRatio ) ) ; }
Source:
public final float float_literal ( ) throws org.jf.smali.RecognitionException { float value = 0.0F ; org.antlr.runtime.tree.CommonTree FLOAT_LITERAL208 = null ; try { { FLOAT_LITERAL208 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.FLOAT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_FLOAT_LITERAL_in_float_literal3498 ) ) ) ; value = org.jf.smali.LiteralTools.parseFloat ( ( FLOAT_LITERAL208 != null ? FLOAT_LITERAL208.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL211 = null ; try { { SHORT_LITERAL211 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3525 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL211 != null ? SHORT_LITERAL211.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public final java.nio.ByteBuffer duplicate ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , isReadOnly ) ; }

Target:
public final java.nio.ByteBuffer duplicate ( ) { if ( memoryRef.isFreed ) { throw new java.lang.IllegalStateException ( "buffer has been freed" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , isReadOnly ) ; }
Source:
private void logErrorAndDisplayDialog ( @ org.jetbrains.annotations.NotNull final java.lang.String title , @ org.jetbrains.annotations.NotNull final java.lang.Exception exception ) { if ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isDispatchThread ( ) ) { com.intellij.openapi.ui.Messages.showErrorDialog ( exception.getMessage ( ) , title ) ; } else { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.ui.Messages.showErrorDialog ( exception.getMessage ( ) , title ) ; } } , com.intellij.openapi.application.ModalityState.defaultModalityState ( ) ) ; } com.google.gct.login.GoogleLogin.GOOGLE_LOGIN_LOG.error ( exception.getMessage ( ) , exception ) ; }

Target:
private void logErrorAndDisplayDialog ( @ org.jetbrains.annotations.NotNull final java.lang.String title , @ org.jetbrains.annotations.NotNull final java.lang.Exception exception ) { com.google.gct.login.GoogleLogin.LOG.error ( exception.getMessage ( ) , exception ) ; com.google.gct.login.GoogleLoginUtils.showErrorDialog ( exception.getMessage ( ) , title ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) { createNewString ( ) ; } else { assert com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.isValueResource ( mResourceType ) ; java.lang.String newName = createNewValue ( mResourceType ) ; if ( newName != null ) { com.android.ide.eclipse.adt.internal.resources.ResourceItem [ ] items = setupResourceList ( ) ; selectItemName ( newName , items ) ; } } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) { createNewString ( ) ; } else { assert com.android.ide.eclipse.adt.internal.resources.ResourceNameValidator.isValueBasedResourceType ( mResourceType ) ; java.lang.String newName = createNewValue ( mResourceType ) ; if ( newName != null ) { com.android.ide.eclipse.adt.internal.resources.ResourceItem [ ] items = setupResourceList ( ) ; selectItemName ( newName , items ) ; } } }
Source:
protected void finalize ( ) throws java.io.IOException { if ( ( fd ) != null ) { if ( ( ( fd ) == ( java.io.FileDescriptor.out ) ) || ( ( fd ) == ( java.io.FileDescriptor.err ) ) ) { flush ( ) ; } else { close ( ) ; } } }

Target:
protected void finalize ( ) throws java.io.IOException { if ( ( guard ) != null ) { guard.warnIfOpen ( ) ; } if ( ( fd ) != null ) { if ( ( ( fd ) == ( java.io.FileDescriptor.out ) ) || ( ( fd ) == ( java.io.FileDescriptor.err ) ) ) { flush ( ) ; } else { close ( ) ; } } }
Source:
public static boolean shouldSystemBlockNumber ( android.content.Context context , java.lang.String phoneNumber ) { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER , phoneNumber , null ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_NUMBER_IS_BLOCKED , false ) ) ; }

Target:
public static boolean shouldSystemBlockNumber ( android.content.Context context , java.lang.String phoneNumber , android.os.Bundle extras ) { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER , phoneNumber , extras ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_NUMBER_IS_BLOCKED , false ) ) ; }
Source:
protected void engineInit ( byte [ ] params ) throws java.io.IOException { try { org.bouncycastle.asn1.oiw.ElGamalParameter elP = new org.bouncycastle.asn1.oiw.ElGamalParameter ( ( ( org.bouncycastle.asn1.ASN1Sequence ) ( org.bouncycastle.asn1.ASN1Primitive.fromByteArray ( params ) ) ) ) ; currentSpec = new org.bouncycastle.jce.spec.ElGamalParameterSpec ( elP.getP ( ) , elP.getG ( ) ) ; } catch ( java.lang.ClassCastException e ) { throw new java.io.IOException ( "Not a valid ElGamal Parameter encoding." ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.io.IOException ( "Not a valid ElGamal Parameter encoding." ) ; } }

Target:
protected void engineInit ( byte [ ] params ) throws java.io.IOException { try { org.bouncycastle.asn1.oiw.ElGamalParameter elP = org.bouncycastle.asn1.oiw.ElGamalParameter.getInstance ( org.bouncycastle.asn1.ASN1Primitive.fromByteArray ( params ) ) ; currentSpec = new org.bouncycastle.jce.spec.ElGamalParameterSpec ( elP.getP ( ) , elP.getG ( ) ) ; } catch ( java.lang.ClassCastException e ) { throw new java.io.IOException ( "Not a valid ElGamal Parameter encoding." ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.io.IOException ( "Not a valid ElGamal Parameter encoding." ) ; } }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , ( ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) | ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) ) ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ) { found = true ; } return null ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( ! ( found ) ) && ( shouldStub ( access , name , desc ) ) ) { found = true ; } return null ; }
Source:
public java.lang.String getKey ( com.android.manifmerger.XmlElement xmlElement ) { java.lang.String key = ( ( mNamespaceUri ) == null ) ? xmlElement.getXml ( ) . getAttribute ( mAttributeName ) : xmlElement.getXml ( ) . getAttributeNS ( mNamespaceUri , mAttributeName ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( key ) ) return null ; return key ; }

Target:
public java.lang.String getKey ( org.w3c.dom.Element xmlElement ) { java.lang.String key = ( ( mNamespaceUri ) == null ) ? xmlElement.getAttribute ( mAttributeName ) : xmlElement.getAttributeNS ( mNamespaceUri , mAttributeName ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( key ) ) return null ; return key ; }
Source:
public boolean createForward ( int localPort , int remotePort ) { try { return com.android.ddmlib.AdbHelper.createForward ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , this , localPort , remotePort ) ; } catch ( com.android.ddmlib.TimeoutException e ) { com.android.ddmlib.Log.e ( "adb-forward" , "timeout" ) ; return false ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( "adb-forward" , e ) ; return false ; } }

Target:
public void createForward ( int localPort , int remotePort ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.AdbHelper.createForward ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , this , localPort , remotePort ) ; }
Source:
public com.android.sched.vfs.OutputVFile getJayceOutputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( com.android.jack.backend.jayce.JayceFileImporter.JAYCE_FILE_EXTENSION ) ) , '/' ) ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyName ( ) , java.lang.String.valueOf ( true ) ) ; return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( fileType.getFileExtension ( ) ) ) , '/' ) ) ; }
Source:
public static android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification getDefault ( android.hardware.cts.helpers.TestSensorEnvironment environment ) { long reportLatencyUs = environment.getMaxReportLatencyUs ( ) ; long fifoMaxEventCount = environment.getSensor ( ) . getFifoMaxEventCount ( ) ; if ( fifoMaxEventCount > 0 ) { long fifoBasedReportLatencyUs = fifoMaxEventCount * ( environment.getMaximumExpectedSamplingPeriodUs ( ) ) ; reportLatencyUs = java.lang.Math.min ( reportLatencyUs , fifoBasedReportLatencyUs ) ; } long reportLatencyNs = java.util.concurrent.TimeUnit.MICROSECONDS.toNanos ( reportLatencyUs ) ; return new android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.DEFAULT_THRESHOLD_NS , reportLatencyNs ) ; }

Target:
public static android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification getDefault ( android.hardware.cts.helpers.TestSensorEnvironment environment ) { long reportLatencyUs = environment.getMaxReportLatencyUs ( ) ; long fifoMaxEventCount = environment.getSensor ( ) . getFifoMaxEventCount ( ) ; int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs ( ) ; if ( ( fifoMaxEventCount > 0 ) && ( maximumExpectedSamplingPeriodUs != ( java.lang.Integer.MAX_VALUE ) ) ) { long fifoBasedReportLatencyUs = fifoMaxEventCount * maximumExpectedSamplingPeriodUs ; reportLatencyUs = java.lang.Math.min ( reportLatencyUs , fifoBasedReportLatencyUs ) ; } long reportLatencyNs = java.util.concurrent.TimeUnit.MICROSECONDS.toNanos ( reportLatencyUs ) ; return new android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.DEFAULT_THRESHOLD_NS , reportLatencyNs ) ; }
Source:
public void testAospServiceContexts ( ) throws java.lang.Exception { deviceSvcFile = java.io.File.createTempFile ( "service_contexts" , ".tmp" ) ; deviceSvcFile.deleteOnExit ( ) ; mDevice.pullFile ( "/service_contexts" , deviceSvcFile ) ; aospSvcFile = copyResourceToTempFile ( "/general_service_contexts" ) ; assertFileStartsWith ( aospSvcFile , deviceSvcFile ) ; }

Target:
public void testAospServiceContexts ( ) throws java.lang.Exception { deviceSvcFile = java.io.File.createTempFile ( "service_contexts" , ".tmp" ) ; deviceSvcFile.deleteOnExit ( ) ; mDevice.pullFile ( "/service_contexts" , deviceSvcFile ) ; aospSvcFile = copyResourceToTempFile ( "/general_service_contexts" ) ; if ( ! ( isFileStartsWith ( aospSvcFile , deviceSvcFile ) ) ) { aospSvcFile = copyResourceToTempFile ( "/ab3857191_service_contexts" ) ; assertFileStartsWith ( aospSvcFile , deviceSvcFile ) ; } }
Source:
private void doClean ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { com.android.ide.eclipse.adt.AdtPlugin.printBuildToConsole ( BuildVerbosity.VERBOSE , project , Messages.Removing_Generated_Classes ) ; if ( ( mGenFolder ) != null ) { removeDerivedResources ( mGenFolder , monitor ) ; } removeMarkersFromProject ( project , AndroidConstants.MARKER_AAPT_COMPILE ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_XML ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_AIDL ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_RENDERSCRIPT ) ; removeMarkersFromProject ( project , AndroidConstants.MARKER_ANDROID ) ; }

Target:
private void doClean ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { com.android.ide.eclipse.adt.AdtPlugin.printBuildToConsole ( BuildVerbosity.VERBOSE , project , Messages.Removing_Generated_Classes ) ; if ( ( mGenFolder ) != null ) { removeDerivedResources ( mGenFolder , monitor ) ; } removeMarkersFromContainer ( project , AndroidConstants.MARKER_AAPT_COMPILE ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_XML ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_AIDL ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_RENDERSCRIPT ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_ANDROID ) ; }
Source:
public void wifiConnectByConfig ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig = genWifiConfig ( config ) ; com.googlecode.android_scripting.facade.wifi.WifiManagerFacade.WifiActionListener listener = new com.googlecode.android_scripting.facade.wifi.WifiManagerFacade.WifiActionListener ( mEventFacade , com.googlecode.android_scripting.facade.wifi.WifiConstants.WIFI_CONNECT_BY_CONFIG_CALLBACK ) ; mWifi.connect ( wifiConfig , listener ) ; }

Target:
public void wifiConnectByConfig ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws java.security.GeneralSecurityException , org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig ; com.googlecode.android_scripting.facade.wifi.WifiManagerFacade.WifiActionListener listener ; if ( config.has ( WifiEnterpriseConfig.EAP_KEY ) ) { wifiConfig = genWifiEnterpriseConfig ( config ) ; } else { wifiConfig = genWifiConfig ( config ) ; } listener = new com.googlecode.android_scripting.facade.wifi.WifiManagerFacade.WifiActionListener ( mEventFacade , WifiConstants.WIFI_CONNECT_BY_CONFIG_CALLBACK ) ; mWifi.connect ( wifiConfig , listener ) ; }
Source:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.IPackageVersion ) { return ( ( com.android.sdklib.internal.repository.IPackageVersion ) ( pkg ) ) . getVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.PlatformToolPackage ) ) { return PkgCategoryApi.KEY_TOOLS ; } else { return PkgCategoryApi.KEY_EXTRA ; } }

Target:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.IPackageVersion ) { return ( ( com.android.sdklib.internal.repository.packages.IPackageVersion ) ( pkg ) ) . getVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformToolPackage ) ) { return PkgCategoryApi.KEY_TOOLS ; } else { return PkgCategoryApi.KEY_EXTRA ; } }
Source:
public void onServiceDisconnected ( int profile ) { synchronized ( this ) { switch ( profile ) { case android.bluetooth.BluetoothProfile.A2DP : mA2dp = null ; break ; case android.bluetooth.BluetoothProfile.HEADSET : mHeadset = null ; break ; case android.bluetooth.BluetoothProfile.INPUT_DEVICE : mInput = null ; break ; case android.bluetooth.BluetoothProfile.PAN : mPan = null ; break ; } } }

Target:
public void onServiceDisconnected ( int profile ) { synchronized ( this ) { switch ( profile ) { case android.bluetooth.BluetoothProfile.A2DP : mA2dp = null ; break ; case android.bluetooth.BluetoothProfile.HEADSET : mHeadset = null ; break ; case android.bluetooth.BluetoothProfile.HID_HOST : mInput = null ; break ; case android.bluetooth.BluetoothProfile.PAN : mPan = null ; break ; } } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) , Element.DataType.SIGNED_16 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public static com.android.cts.TestSession createSession ( final java.lang.String testPlanName ) throws com.android.cts.TestNotFoundException , com.android.cts.TestPlanNotFoundException , java.io.IOException , java.security.NoSuchAlgorithmException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String testPlanPath = com.android.cts.TestHost.sConfig.getPlanRepository ( ) . getPlanPath ( testPlanName ) ; com.android.cts.TestSession ts = com.android.cts.TestSessionBuilder.getInstance ( ) . build ( testPlanPath ) ; com.android.cts.TestHost.sSessions.add ( ts ) ; return ts ; }

Target:
public static com.android.cts.TestSession createSession ( final java.lang.String testPlanName , android.annotation.cts.Profile profile ) throws com.android.cts.TestNotFoundException , com.android.cts.TestPlanNotFoundException , java.io.IOException , java.security.NoSuchAlgorithmException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String testPlanPath = com.android.cts.TestHost.sConfig.getPlanRepository ( ) . getPlanPath ( testPlanName ) ; com.android.cts.TestSession ts = com.android.cts.TestSessionBuilder.getInstance ( ) . build ( testPlanPath , profile ) ; com.android.cts.TestHost.sSessions.add ( ts ) ; return ts ; }
Source:
public void testGetNewCall ( ) throws java.lang.Exception { assertEquals ( "setSupportProgressBarVisibility" , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "Should use setSupportProgressBarVisibility instead of setProgressBarVisibility name" ) ) ; assertEquals ( "getSupportActionBar" , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "Should use getSupportActionBar instead of getActionBar name" ) ) ; assertNull ( com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "No match" ) ) ; }

Target:
public void testGetNewCall ( ) throws java.lang.Exception { assertEquals ( "setSupportProgressBarVisibility" , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "Should use setSupportProgressBarVisibility instead of setProgressBarVisibility name" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertEquals ( "getSupportActionBar" , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "Should use getSupportActionBar instead of getActionBar name" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertEquals ( "getSupportActionBar" , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "Should use `getSupportActionBar` instead of `getActionBar` name" , com.android.tools.lint.detector.api.TextFormat.RAW ) ) ; assertNull ( com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( "No match" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }
Source:
private void ensureReadParams ( ) { synchronized ( mParamsLock ) { if ( readParams ) { return ; } byte [ ] [ ] params = org.conscrypt.NativeCrypto.get_DH_params ( key.getPkeyContext ( ) ) ; p = params [ 0 ] ; g = params [ 1 ] ; x = params [ 3 ] ; readParams = true ; } }

Target:
private void ensureReadParams ( ) { synchronized ( mParamsLock ) { if ( readParams ) { return ; } byte [ ] [ ] params = org.conscrypt.NativeCrypto.get_DH_params ( key.getNativeRef ( ) ) ; p = params [ 0 ] ; g = params [ 1 ] ; x = params [ 3 ] ; readParams = true ; } }
Source:
public boolean dumpProfiles ( int uid , java.lang.String packageName , java.lang.String codePaths ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return false ; try { return mInstalld.dumpProfiles ( uid , packageName , codePaths ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void binderDied ( ) { synchronized ( mLock ) { tryRemoveServiceLocked ( this ) ; if ( mIsAutomation ) { mUiAutomationService = null ; populateEnabledAccessibilityServicesLocked ( ) ; populateTouchExplorationGrantedAccessibilityServicesLocked ( ) ; handleAccessibilityEnabledSettingChangedLocked ( ) ; sendStateToClientsLocked ( ) ; handleTouchExplorationEnabledSettingChangedLocked ( ) ; updateInputFilterLocked ( ) ; populateAccessibilityServiceListLocked ( ) ; manageServicesLocked ( ) ; } } }

Target:
public void onServiceConnected ( android.content.ComponentName componentName , android.os.IBinder service ) { mService = service ; mServiceInterface = IAccessibilityServiceClient.Stub.asInterface ( service ) ; try { mServiceInterface.setConnection ( this , mId ) ; synchronized ( mLock ) { tryAddServiceLocked ( this , mUserId ) ; } } catch ( android.os.RemoteException re ) { android.util.Slog.w ( com.android.server.accessibility.AccessibilityManagerService.LOG_TAG , ( "Error while setting Controller for service: " + service ) , re ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.System.setProperty ( "dexmaker.dexcache" , getContext ( ) . getCacheDir ( ) . toString ( ) ) ; com.android.internal.util.test.BroadcastInterceptingContext context = new com.android.internal.util.test.BroadcastInterceptingContext ( getContext ( ) ) ; mServerSocket = new android.net.LocalServerSocket ( com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mNMService = com.android.server.NetworkManagementService.create ( context , com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mSocket = mServerSocket.accept ( ) ; mOutputStream = mSocket.getOutputStream ( ) ; }

Target:
public android.os.IBinder getService ( java.lang.String name ) { switch ( name ) { case android.os.BatteryStats.SERVICE_NAME : return mBatteryStatsService ; default : throw new java.lang.UnsupportedOperationException ( ( "Unknown service " + name ) ) ; } }