auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) { return true ; } if ( ( o == null ) | ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) { return false ; } com.android.ide.common.blame.Message that = ( ( com.android.ide.common.blame.Message ) ( o ) ) ; return ( ( ( mKind ) == ( that.mKind ) ) && ( mText.equals ( that.mText ) ) ) && ( mSourceFilePositions.equals ( that.mSourceFilePositions ) ) ; }

Target:
public java.lang.String getSourcePath ( ) { java.io.File file = mSourceFilePositions.get ( 0 ) . getFile ( ) . getSourceFile ( ) ; if ( file == null ) { return null ; } return file.getAbsolutePath ( ) ; }
Source:
public void clearMatches ( ) { mFindIsUp = false ; nativeSetFindIsDown ( ) ; pinScrollTo ( mScrollX , mScrollY , false , 0 ) ; invalidate ( ) ; }

Target:
public void clearMatches ( ) { if ( mFindIsUp ) { recordNewContentSize ( mContentWidth , ( ( mContentHeight ) - ( mFindHeight ) ) , false ) ; mFindIsUp = false ; } nativeSetFindIsDown ( ) ; pinScrollTo ( mScrollX , mScrollY , false , 0 ) ; invalidate ( ) ; }
Source:
public void set ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { if ( config != null ) { for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { mQualifiers [ i ] = config.mQualifiers [ i ] ; } } }

Target:
public void set ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , boolean nonFakeValuesOnly ) { if ( config != null ) { for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier q = config.mQualifiers [ i ] ; if ( ( ( nonFakeValuesOnly == false ) || ( q == null ) ) || ( ( q.hasFakeValue ( ) ) == false ) ) { mQualifiers [ i ] = q ; } } } }
Source:
private synchronized void onAcceptFailed ( ) { android.util.Log.w ( TAG , "onAcceptFailed() calling shutdown..." ) ; mConHandler.onAcceptFailed ( ) ; shutdown ( false ) ; }

Target:
private synchronized void onAcceptFailed ( ) { shutdown ( false ) ; android.bluetooth.BluetoothAdapter mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; if ( ( mAdapter != null ) && ( ( mAdapter.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) ) { android.util.Log.d ( TAG , "onAcceptFailed() calling shutdown..." ) ; mConHandler.onAcceptFailed ( ) ; } }
Source:
public java.lang.String [ ] getPossibleValues ( java.lang.String prefix ) { java.util.TreeSet < java.lang.String > packages = new java.util.TreeSet < java.lang.String > ( ) ; for ( org.eclipse.jdt.core.IJavaProject project : com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects ( null ) ) { com.android.sdklib.xml.AndroidManifestParser.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( project.getProject ( ) ) ; if ( manifestData == null ) { continue ; } packages.add ( manifestData.getPackage ( ) ) ; } return packages.toArray ( new java.lang.String [ packages.size ( ) ] ) ; }

Target:
public java.lang.String [ ] getPossibleValues ( java.lang.String prefix ) { java.util.TreeSet < java.lang.String > packages = new java.util.TreeSet < java.lang.String > ( ) ; for ( org.eclipse.jdt.core.IJavaProject project : com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects ( null ) ) { com.android.sdklib.xml.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( project.getProject ( ) ) ; if ( manifestData == null ) { continue ; } packages.add ( manifestData.getPackage ( ) ) ; } return packages.toArray ( new java.lang.String [ packages.size ( ) ] ) ; }
Source:
public android.icu.text.DateFormat setBooleanAttribute ( android.icu.text.DateFormat.BooleanAttribute key , boolean value ) { if ( value ) { booleanAttributes.add ( key ) ; } else { booleanAttributes.remove ( key ) ; } return this ; }

Target:
public android.icu.text.DateFormat setBooleanAttribute ( android.icu.text.DateFormat.BooleanAttribute key , boolean value ) { if ( key.equals ( android.icu.text.DateFormat.BooleanAttribute.PARSE_PARTIAL_MATCH ) ) { key = android.icu.text.DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH ; } if ( value ) { booleanAttributes.add ( key ) ; } else { booleanAttributes.remove ( key ) ; } return this ; }
Source:
void abort ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "abort" ) ) ) { try { logOutgoing ( "abort %s" , callId ) ; mServiceInterface.abort ( callId ) ; } catch ( android.os.RemoteException e ) { } } removeCall ( call , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }

Target:
void abort ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "abort" ) ) ) { try { logOutgoing ( "abort %s" , callId ) ; mServiceInterface.abort ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } removeCall ( call , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }
Source:
public void doF32_relaxed ( long seed , int ulp ) { baseTestHelper ( android.renderscript.cts.RSBaseCompute.TEST_RELAXED_F32 , android.renderscript.Element.F32 ( mRS ) , android.renderscript.Element.F32 ( mRS ) , seed , 1 , 0 , 1 , 0 , 1 , 1 , 1 , 0 , ulp ) ; }

Target:
public void doF32_relaxed ( long seed , int ulp ) { baseTestHelper ( android.renderscript.cts.RSBaseCompute.TEST_RELAXED_F32 , android.renderscript.Element.F32 ( mRS ) , android.renderscript.Element.F32 ( mRS ) , seed , 0.0F , 1.0F , 1 , 0 , 1 , 1 , 1 , 0 , ulp ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { print ( "@" ) ; printTypeName ( annotationLiteral.getType ( ) ) ; lparen ( ) ; java.util.List < com.android.jack.ir.ast.JNameValuePair > nameValuePairs = new java.util.ArrayList < com.android.jack.ir.ast.JNameValuePair > ( annotationLiteral.getNameValuePairs ( ) ) ; java.util.Collections.sort ( nameValuePairs , new java.util.Comparator < com.android.jack.ir.ast.JNameValuePair > ( ) { @ java.lang.Override public int compare ( com.android.jack.ir.ast.JNameValuePair nameValuePair1 , com.android.jack.ir.ast.JNameValuePair nameValuePair2 ) { return nameValuePair1.getName ( ) . compareTo ( nameValuePair2.getName ( ) ) ; } } ) ; visitCollectionWithCommas ( nameValuePairs.iterator ( ) ) ; rparen ( ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod x ) { printMethodHeader ( x ) ; if ( x instanceof com.android.jack.ir.ast.JAnnotationMethod ) { com.android.jack.ir.ast.JLiteral defaultValue = ( ( com.android.jack.ir.ast.JAnnotationMethod ) ( x ) ) . getDefaultValue ( ) ; if ( defaultValue != null ) { space ( ) ; print ( com.android.jack.ir.impl.CHARS_DEFAULT ) ; space ( ) ; accept ( defaultValue ) ; } } return false ; }
Source:
protected static void rolloverCounters ( ) { com.android.bluetooth.pbap.BluetoothPbapUtils.sDbIdentifier.set ( java.util.Calendar.getInstance ( ) . getTimeInMillis ( ) ) ; com.android.bluetooth.pbap.BluetoothPbapUtils.sPrimaryVersionCounter = ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.sPrimaryVersionCounter ) < 0 ) ? 0 : com.android.bluetooth.pbap.BluetoothPbapUtils.sPrimaryVersionCounter ; com.android.bluetooth.pbap.BluetoothPbapUtils.sSecondaryVersionCounter = ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.sSecondaryVersionCounter ) < 0 ) ? 0 : com.android.bluetooth.pbap.BluetoothPbapUtils.sSecondaryVersionCounter ; if ( com.android.bluetooth.pbap.BluetoothPbapUtils.V ) android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapUtils.TAG , ( "mDbIdentifier rolled over to:" + ( com.android.bluetooth.pbap.BluetoothPbapUtils.sDbIdentifier ) ) ) ; }

Target:
protected static void rolloverCounters ( ) { com.android.bluetooth.pbap.BluetoothPbapUtils.mDbIdentifier.set ( java.util.Calendar.getInstance ( ) . getTimeInMillis ( ) ) ; com.android.bluetooth.pbap.BluetoothPbapUtils.primaryVersionCounter = ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.primaryVersionCounter ) < 0 ) ? 0 : com.android.bluetooth.pbap.BluetoothPbapUtils.primaryVersionCounter ; com.android.bluetooth.pbap.BluetoothPbapUtils.secondaryVersionCounter = ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.secondaryVersionCounter ) < 0 ) ? 0 : com.android.bluetooth.pbap.BluetoothPbapUtils.secondaryVersionCounter ; if ( com.android.bluetooth.pbap.BluetoothPbapUtils.V ) android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapUtils.TAG , ( "mDbIdentifier rolled over to:" + ( com.android.bluetooth.pbap.BluetoothPbapUtils.mDbIdentifier ) ) ) ; }
Source:
private void checkInOptionBase ( javax.lang.model.element.Element annotatedElement ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { if ( ( annotatedElement.getEnclosingElement ( ) . getKind ( ) ) != ( javax.lang.model.element.ElementKind.CLASS ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( annotatedElement , "The field should belong to a class." ) ; } javax.lang.model.type.TypeMirror thisOptionClass = annotatedElement.getEnclosingElement ( ) . asType ( ) ; javax.lang.model.type.TypeMirror optionsBase = elementUtils.getTypeElement ( "com.google.devtools.common.options.OptionsBase" ) . asType ( ) ; if ( ! ( typeUtils.isAssignable ( thisOptionClass , optionsBase ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( annotatedElement , "@Option annotated fields can only be in classes that inherit from OptionsBase." ) ; } }

Target:
private void checkInOptionBase ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { if ( ( optionField.getEnclosingElement ( ) . getKind ( ) ) != ( javax.lang.model.element.ElementKind.CLASS ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "The field should belong to a class." ) ; } javax.lang.model.type.TypeMirror thisOptionClass = optionField.getEnclosingElement ( ) . asType ( ) ; javax.lang.model.type.TypeMirror optionsBase = elementUtils.getTypeElement ( "com.google.devtools.common.options.OptionsBase" ) . asType ( ) ; if ( ! ( typeUtils.isAssignable ( thisOptionClass , optionsBase ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields can only be in classes that inherit from OptionsBase." ) ; } }
Source:
private android.bluetooth.BluetoothGattService getService ( ) { if ( ( mBluetoothGatt ) == null ) return null ; android.bluetooth.BluetoothGattService service = mBluetoothGatt.getService ( com.android.cts.verifier.bluetooth.BleClientService.SERVICE_UUID ) ; if ( service == null ) { showMessage ( "Service not found" ) ; return null ; } return service ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID serverUid , java.util.UUID characteristicUid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = null ; android.bluetooth.BluetoothGattService service = getService ( serverUid ) ; if ( service != null ) { characteristic = service.getCharacteristic ( characteristicUid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } } return characteristic ; }
Source:
public void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , int phy ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.clientConnect ( clientIf , address , isDirect , transport , phy ) ; }

Target:
public void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , boolean opportunistic , int phy ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.clientConnect ( clientIf , address , isDirect , transport , opportunistic , phy ) ; }
Source:
public void write ( java.io.OutputStream out ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataOutputStream dataOut = new java.io.DataOutputStream ( out ) ; try { dataOut.writeUTF ( myOldBuild ) ; dataOut.writeUTF ( myNewBuild ) ; dataOut.writeBoolean ( myIsBinary ) ; dataOut.writeBoolean ( myIsStrict ) ; writeActions ( dataOut , myActions ) ; } finally { dataOut.flush ( ) ; } }

Target:
public void write ( java.io.OutputStream out ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataOutputStream dataOut = new java.io.DataOutputStream ( out ) ; try { dataOut.writeUTF ( myOldBuild ) ; dataOut.writeUTF ( myNewBuild ) ; dataOut.writeBoolean ( myIsBinary ) ; dataOut.writeBoolean ( myIsStrict ) ; dataOut.writeBoolean ( myIsNormalized ) ; writeActions ( dataOut , myActions ) ; } finally { dataOut.flush ( ) ; } }
Source:
public void resetMemory ( java.lang.String cardId , @ android.telephony.euicc.EuiccCardManager.ResetOption int options , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . resetMemory ( mContext.getOpPackageName ( ) , cardId , options , new com.android.internal.telephony.euicc.IResetMemoryCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling resetMemory" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void resetMemory ( java.lang.String cardId , @ android.telephony.euicc.EuiccCardManager.ResetOption int options , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . resetMemory ( mContext.getOpPackageName ( ) , cardId , options , new com.android.internal.telephony.euicc.IResetMemoryCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , null ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling resetMemory" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public boolean importKey ( java.lang.String keyName , byte [ ] key , int uid ) { try { return ( mBinder.import_key ( keyName , 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 generate ( java.lang.String key , int uid , int flags ) { try { return ( mBinder.generate ( key , uid , flags ) ) == ( 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 synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } mSessionStatusHandler.sendMessage ( mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.START_LISTENER ) ) ; }

Target:
public synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } synchronized ( mPbapStateMachineMap ) { mPbapStateMachineMap.clear ( ) ; } mSessionStatusHandler.sendMessage ( mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.START_LISTENER ) ) ; }
Source:
public final void testVerifyPublicKeyString ( ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { java.security.cert.Certificate c1 = new org.apache.harmony.security.tests.support.cert.MyCertificate ( "TEST_TYPE" , tests.security.cert.CertificateTest.testEncoding ) ; c1.verify ( null , null ) ; }

Target:
public final void testVerifyPublicKeyString ( ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { java.security.cert.Certificate c1 = new org.apache.harmony.security.tests.support.cert.MyCertificate ( "TEST_TYPE" , tests.security.cert.CertificateTest.testEncoding ) ; c1.verify ( ( ( java.security.PublicKey ) ( null ) ) , ( ( java.lang.String ) ( null ) ) ) ; }
Source:
public void showWaitingForDebugger ( android.app.IApplicationThread who , boolean waiting ) { synchronized ( this ) { com.android.server.am.ProcessRecord app = ( who != null ) ? getRecordForAppLocked ( who ) : null ; if ( app == null ) return ; android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.server.am.ActivityManagerService.WAIT_FOR_DEBUGGER_MSG ; msg.obj = app ; msg.arg1 = ( waiting ) ? 1 : 0 ; mUiHandler.sendMessage ( msg ) ; } }

Target:
public void showWaitingForDebugger ( android.app.IApplicationThread who , boolean waiting ) { synchronized ( this ) { com.android.server.am.ProcessRecord app = ( who != null ) ? getRecordForAppLocked ( who ) : null ; if ( app == null ) return ; android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.server.am.ActivityManagerService.WAIT_FOR_DEBUGGER_UI_MSG ; msg.obj = app ; msg.arg1 = ( waiting ) ? 1 : 0 ; mUiHandler.sendMessage ( msg ) ; } }
Source:
public void setNetworkSelectionModeAutomatic ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setNetworkSelectionModeAutomatic ( subId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }

Target:
private boolean isImsiEncryptionRequired ( int subId , int keyType ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager == null ) { return false ; } android.os.PersistableBundle pb = configManager.getConfigForSubId ( subId ) ; if ( pb == null ) { return false ; } int keyAvailability = pb.getInt ( CarrierConfigManager.IMSI_KEY_AVAILABILITY_INT ) ; return android.telephony.TelephonyManager.isKeyEnabled ( keyAvailability , keyType ) ; }
Source:
public void closeRttPipes ( ) { }

Target:
public void closeRttPipes ( ) { if ( ( mInCallToConnectionServiceStreams ) != null ) { mDiscardedRttFds.add ( mInCallToConnectionServiceStreams [ 0 ] ) ; mDiscardedRttFds.add ( mInCallToConnectionServiceStreams [ 1 ] ) ; } if ( ( mConnectionServiceToInCallStreams ) != null ) { mDiscardedRttFds.add ( mConnectionServiceToInCallStreams [ 0 ] ) ; mDiscardedRttFds.add ( mConnectionServiceToInCallStreams [ 1 ] ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.String > getClassData ( com.android.ddmlib.Client client ) { java.io.File hprofLocalFile = com.android.preload.classdataretrieval.hprof.Hprof.doHprof ( client , timeout ) ; if ( hprofLocalFile == null ) { throw new java.lang.RuntimeException ( "Failed getting dump..." ) ; } java.lang.System.out.println ( ( "Dump file is " + hprofLocalFile ) ) ; try { return com.android.preload.classdataretrieval.hprof.Hprof.analyzeHprof ( hprofLocalFile ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.util.Map < java.lang.String , java.lang.String > getClassData ( com.android.ddmlib.Client client ) { java.io.File hprofLocalFile = com.android.preload.classdataretrieval.hprof.Hprof.doHprof ( client , timeout ) ; if ( hprofLocalFile == null ) { throw new java.lang.RuntimeException ( "Failed getting dump..." ) ; } java.lang.System.out.println ( ( "Dump file is " + hprofLocalFile ) ) ; try { return com.android.preload.classdataretrieval.hprof.Hprof.analyzeHprof ( hprofLocalFile ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } finally { hprofLocalFile.delete ( ) ; } }
Source:
public void onDataConnectionStateChanged ( int state , int networkType ) { if ( DEBUG ) { android.util.Log.d ( mTag , ( ( ( "onDataConnectionStateChanged: state=" + state ) + " type=" ) + networkType ) ) ; } mDataState = state ; mDataNetType = networkType ; updateTelephony ( ) ; }

Target:
public void onDataConnectionStateChanged ( int state , int networkType ) { if ( DEBUG ) { android.util.Log.d ( mTag , ( ( ( "onDataConnectionStateChanged: state=" + state ) + " type=" ) + networkType ) ) ; } mDataState = state ; mDataNetType = networkType ; if ( ( ( ( mDataNetType ) == ( android.telephony.TelephonyManager.NETWORK_TYPE_LTE ) ) && ( ( mServiceState ) != null ) ) && ( mServiceState.isUsingCarrierAggregation ( ) ) ) { mDataNetType = android.telephony.TelephonyManager.NETWORK_TYPE_LTE_CA ; } updateTelephony ( ) ; }
Source:
public static com.android.sdklib.internal.avd.HardwareProperties.ValueType getEnum ( java.lang.String value ) { for ( com.android.sdklib.internal.avd.HardwareProperties.ValueType type : com.android.sdklib.internal.avd.HardwareProperties.ValueType.values ( ) ) { if ( type.mValue.equals ( value ) ) { return type ; } } return null ; }

Target:
public static com.android.sdklib.internal.avd.HardwareProperties.HardwarePropertyType getEnum ( java.lang.String name , boolean isEnum ) { for ( com.android.sdklib.internal.avd.HardwareProperties.HardwarePropertyType type : com.android.sdklib.internal.avd.HardwareProperties.HardwarePropertyType.values ( ) ) { if ( ( type.mName.equals ( name ) ) && ( ( type.mIsEnum ) == isEnum ) ) { return type ; } } return null ; }
Source:
public synchronized void fillSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.transformations.enums.OptimizationUtil supportUtil , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass switchMapClass ) { this . enumType = enumType ; this . supportUtil = supportUtil ; this . switchMapClass = switchMapClass ; com.android.jack.transformations.request.TransformationRequest transformRequest = new com.android.jack.transformations.request.TransformationRequest ( switchMapClass ) ; if ( com.android.jack.transformations.enums.opt.SyntheticClassManager.isSyntheticSwitchMapClass ( switchMapClass ) ) { createInstanceInitIfNotExists ( transformRequest ) ; } createOrUpdateSyntheticInitializer ( transformRequest ) ; transformRequest.commit ( ) ; }

Target:
public synchronized void fillSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass switchMapClass ) { this . enumType = enumType ; this . switchMapClass = switchMapClass ; com.android.jack.transformations.request.TransformationRequest transformRequest = new com.android.jack.transformations.request.TransformationRequest ( switchMapClass ) ; if ( switchMapClass.getName ( ) . startsWith ( SyntheticClassManager.SyntheticSwitchmapClassNamePrefix ) ) { createInstanceInitIfNotExists ( transformRequest ) ; } createOrUpdateSyntheticInitializer ( transformRequest ) ; transformRequest.commit ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mContext = mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) ; mTestCreateConnectionProcessor = new com.android.server.telecom.CreateConnectionProcessor ( mMockCall , mMockConnectionServiceRepository , mMockCreateConnectionResponse , mMockAccountRegistrar , mContext ) ; }

Target:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) { java.lang.Object [ ] args = invocation.getArguments ( ) ; com.android.server.telecom.ConnectionServiceFocusManager.CallFocus focus = ( ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus ) ( args [ 0 ] ) ) ; com.android.server.telecom.ConnectionServiceFocusManager.RequestFocusCallback callback = ( ( com.android.server.telecom.ConnectionServiceFocusManager.RequestFocusCallback ) ( args [ 1 ] ) ) ; callback.onRequestFocusDone ( focus ) ; return null ; }
Source:
protected java.lang.String constructCommand ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm64 -Xcompiler-option --compiler-backend=Optimizing " ) ; commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; return commandBuilder.toString ( ) ; }

Target:
protected java.lang.String constructCommand ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm64 -Xcompiler-option --compiler-backend=Optimizing " ) ; commandBuilder.append ( "-Xno-dex-file-fallback " ) ; commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; return commandBuilder.toString ( ) ; }
Source:
protected void doOKAction ( ) { final org.jetbrains.plugins.github.GithubAuthData auth = myGithubLoginPanel.getAuthData ( ) ; try { org.jetbrains.plugins.github.GithubUtil.checkAuthData ( auth ) ; saveCredentials ( auth ) ; if ( mySettings.isSavePasswordMakesSense ( ) ) { mySettings.setSavePassword ( myGithubLoginPanel.isSavePasswordSelected ( ) ) ; } super . doOKAction ( ) ; } catch ( java.io.IOException e ) { org.jetbrains.plugins.github.ui.GithubLoginDialog.LOG.info ( e ) ; setErrorText ( ( "Can't login: " + ( org.jetbrains.plugins.github.GithubUtil.getErrorTextFromException ( e ) ) ) ) ; } }

Target:
protected void doOKAction ( ) { final org.jetbrains.plugins.github.util.GithubAuthData auth = myGithubLoginPanel.getAuthData ( ) ; try { org.jetbrains.plugins.github.util.GithubUtil.checkAuthData ( auth ) ; saveCredentials ( auth ) ; if ( mySettings.isSavePasswordMakesSense ( ) ) { mySettings.setSavePassword ( myGithubLoginPanel.isSavePasswordSelected ( ) ) ; } super . doOKAction ( ) ; } catch ( java.io.IOException e ) { org.jetbrains.plugins.github.ui.GithubLoginDialog.LOG.info ( e ) ; setErrorText ( ( "Can't login: " + ( org.jetbrains.plugins.github.util.GithubUtil.getErrorTextFromException ( e ) ) ) ) ; } }
Source:
public void simRefresh ( int indicationType , android.hardware.radio.V1_0.SimRefreshResult refreshResult ) { mRil.processIndication ( indicationType ) ; com.android.internal.telephony.uicc.IccRefreshResponse response = new com.android.internal.telephony.uicc.IccRefreshResponse ( ) ; response.refreshResult = refreshResult.type ; response.efId = refreshResult.efId ; response.aid = refreshResult.aid ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SIM_REFRESH , response ) ; if ( ( mRil.mIccRefreshRegistrants ) != null ) { mRil.mIccRefreshRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; } }

Target:
public void newBroadcastSms ( int indicationType , java.util.ArrayList < java.lang.Byte > data ) { mRil.processIndication ( indicationType ) ; byte [ ] response = com.android.internal.telephony.RIL.arrayListToPrimitiveArray ( data ) ; if ( RIL.RILJ_LOGD ) { mRil.unsljLogvRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS , com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( response ) ) ; } if ( ( mRil.mGsmBroadcastSmsRegistrant ) != null ) { mRil.mGsmBroadcastSmsRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , response , null ) ) ; } }
Source:
public com.android.sdklib.SdkManager.LayoutlibVersion getMaxLayoutlibVersion ( ) { com.android.sdklib.SdkManager.LayoutlibVersion maxVersion = null ; for ( com.android.sdklib.IAndroidTarget target : getTargets ( ) ) { if ( target instanceof com.android.sdklib.PlatformTarget ) { com.android.sdklib.SdkManager.LayoutlibVersion lv = ( ( com.android.sdklib.PlatformTarget ) ( target ) ) . getLayoutlibVersion ( ) ; if ( lv != null ) { if ( ( maxVersion == null ) || ( ( lv.compareTo ( maxVersion ) ) > 0 ) ) { maxVersion = lv ; } } } } return maxVersion ; }

Target:
public com.android.sdklib.SdkManager.LayoutlibVersion getMaxLayoutlibVersion ( ) { com.android.sdklib.SdkManager.LayoutlibVersion maxVersion = null ; for ( com.android.sdklib.IAndroidTarget target : getTargets ( ) ) { if ( target instanceof com.android.sdklib.internal.androidTarget.PlatformTarget ) { com.android.sdklib.SdkManager.LayoutlibVersion lv = ( ( com.android.sdklib.internal.androidTarget.PlatformTarget ) ( target ) ) . getLayoutlibVersion ( ) ; if ( lv != null ) { if ( ( maxVersion == null ) || ( ( lv.compareTo ( maxVersion ) ) > 0 ) ) { maxVersion = lv ; } } } } return maxVersion ; }
Source:
public void testAllDisplayNames ( ) throws java.lang.Exception { for ( java.util.Locale locale : java.util.Locale.getAvailableLocales ( ) ) { for ( java.lang.String id : java.util.TimeZone.getAvailableIDs ( ) ) { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( id ) ; assertNotNull ( tz.getDisplayName ( false , java.util.TimeZone.LONG , locale ) ) ; } } }

Target:
public void testDisplayNames_nonUS ( ) throws java.lang.Exception { checkDisplayNames ( java.util.Locale.CHINESE ) ; checkDisplayNames ( java.util.Locale.FRENCH ) ; checkDisplayNames ( java.util.Locale.forLanguageTag ( "bn-BD" ) ) ; }
Source:
private void endDtmfSession ( com.android.server.telecom.Call call ) { if ( ( call != null ) && ( ( mCall ) == call ) ) { stopTone ( call ) ; mCall = null ; android.telecom.Log.d ( this , "Posting delete." ) ; postMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_DELETE_OBJECT ) ; } }

Target:
private void endDtmfSession ( com.android.server.telecom.Call call ) { if ( ( call != null ) && ( ( mCall ) == call ) ) { stopTone ( call ) ; mCall = null ; android.telecom.Log.d ( this , "Posting delete." ) ; getHandler ( ) . sendMessage ( getHandler ( ) . obtainMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_END_SESSION , android.telecom.Log.createSubsession ( ) ) ) ; } }
Source:
private void onLocked ( ) { if ( DBG ) log ( "only fetch EF_LI, EF_PL and EF_ICCID in locked state" ) ; mLockedRecordsRequested = true ; loadEfLiAndEfPl ( ) ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_ICCID , obtainMessage ( com.android.internal.telephony.uicc.SIMRecords.EVENT_GET_ICCID_DONE ) ) ; ( mRecordsToLoad ) ++ ; }

Target:
private void onLocked ( int msg ) { if ( DBG ) log ( "only fetch EF_LI, EF_PL and EF_ICCID in locked state" ) ; mLockedRecordsReqReason = ( msg == ( com.android.internal.telephony.uicc.SIMRecords.EVENT_APP_LOCKED ) ) ? LOCKED_RECORDS_REQ_REASON_LOCKED : LOCKED_RECORDS_REQ_REASON_NETWORK_LOCKED ; loadEfLiAndEfPl ( ) ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_ICCID , obtainMessage ( com.android.internal.telephony.uicc.SIMRecords.EVENT_GET_ICCID_DONE ) ) ; ( mRecordsToLoad ) ++ ; }
Source:
public void handleCreateConnectionComplete ( java.lang.String id , android.telecom.ConnectionRequest request , android.telecom.ParcelableConnection connection ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = id ; args.arg2 = request ; args.arg3 = connection ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_HANDLE_CREATE_CONNECTION_COMPLETE , args ) . sendToTarget ( ) ; }

Target:
public void handleCreateConnectionComplete ( java.lang.String id , android.telecom.ConnectionRequest request , android.telecom.ParcelableConnection connection , android.telecom.Logging.Session.Info sessionInfo ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = id ; args.arg2 = request ; args.arg3 = connection ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_HANDLE_CREATE_CONNECTION_COMPLETE , args ) . sendToTarget ( ) ; }
Source:
private static boolean checkDunRequired ( android.content.Context ctx ) { final android.telephony.TelephonyManager tm = ctx.getSystemService ( android.telephony.TelephonyManager.class ) ; final int secureSetting = ( tm != null ) ? tm.getTetherApnRequired ( ) : com.android.server.connectivity.Tethering.TetheringConfiguration.DUN_UNSPECIFIED ; return secureSetting == ( com.android.server.connectivity.Tethering.TetheringConfiguration.DUN_REQUIRED ) ; }

Target:
public boolean hasTetherableConfiguration ( ) { final com.android.server.connectivity.tethering.TetheringConfiguration cfg = mConfig ; final boolean hasDownstreamConfiguration = ( ( ( cfg.tetherableUsbRegexs.length ) != 0 ) || ( ( cfg.tetherableWifiRegexs.length ) != 0 ) ) || ( ( cfg.tetherableBluetoothRegexs.length ) != 0 ) ; final boolean hasUpstreamConfiguration = ! ( cfg.preferredUpstreamIfaceTypes.isEmpty ( ) ) ; return hasDownstreamConfiguration && hasUpstreamConfiguration ; }
Source:
public void addAllMarkers ( @ javax.annotation.Nonnull java.util.Collection < com.android.sched.marker.Marker > collection ) { ensureMap ( ) ; for ( com.android.sched.marker.Marker marker : collection ) { assert isValidMarker ( marker ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( marker.getClass ( ) ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; assert ( markers ) != null ; markers.put ( marker.getClass ( ) , marker ) ; } }

Target:
public void addAllMarkers ( @ javax.annotation.Nonnull java.util.Collection < com.android.sched.marker.Marker > collection ) { synchronized ( lock ) { ensureMap ( ) ; for ( com.android.sched.marker.Marker marker : collection ) { assert isValidMarker ( marker ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( marker.getClass ( ) ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; assert ( markers ) != null ; markers.put ( marker.getClass ( ) , marker ) ; } } }
Source:
private void notifyUserAction ( boolean enable ) { if ( ( mService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "mService is null" ) ; return ; } try { if ( enable ) { mService.onLeServiceUp ( ) ; } else { mService.onBrEdrDown ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } }

Target:
public boolean isLeEnabled ( ) { final int state = getLeState ( ) ; if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , ( "isLeEnabled(): " + ( android.bluetooth.BluetoothAdapter.nameForState ( state ) ) ) ) ; return ( state == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) || ( state == ( android.bluetooth.BluetoothAdapter.STATE_BLE_ON ) ) ; }
Source:
public com.android.build.gradle.internal.variant.BaseVariantData createVariantData ( @ com.android.annotations.NonNull com.android.builder.core.VariantConfiguration variantConfiguration ) { return new com.android.build.gradle.internal.variant.ApplicationVariantData ( basePlugin , variantConfiguration ) ; }

Target:
public com.android.build.gradle.internal.variant.ApplicationVariantData createVariantData ( @ com.android.annotations.NonNull com.android.builder.core.VariantConfiguration variantConfiguration , @ com.android.annotations.NonNull java.util.Set < java.lang.String > densities , @ com.android.annotations.NonNull java.util.Set < java.lang.String > abis ) { com.android.build.gradle.internal.variant.ApplicationVariantData variant = new com.android.build.gradle.internal.variant.ApplicationVariantData ( basePlugin , variantConfiguration ) ; for ( java.lang.String density : densities ) { for ( java.lang.String abi : abis ) { variant.createOutput ( density , abi ) ; } } return variant ; }
Source:
public boolean requestScores ( android.net.NetworkKey [ ] networks ) { return false ; }

Target:
public boolean requestScores ( android.net.NetworkKey [ ] networks ) { mContext.enforceCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED , com.android.server.NetworkScoreService.TAG ) ; final android.net.INetworkRecommendationProvider provider = getRecommendationProvider ( ) ; if ( provider != null ) { try { provider.requestScores ( networks ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.NetworkScoreService.TAG , "Failed to request scores." , e ) ; } } return false ; }
Source:
private int getCurrentUserId ( ) { final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { android.content.pm.UserInfo currentUser = android.app.ActivityManagerNative.getDefault ( ) . getCurrentUser ( ) ; return currentUser.id ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } return android.os.UserHandle.USER_OWNER ; }

Target:
private int getCurrentUserId ( ) { final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { android.content.pm.UserInfo currentUser = android.app.ActivityManagerNative.getDefault ( ) . getCurrentUser ( ) ; return currentUser.id ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } return android.os.UserHandle.USER_SYSTEM ; }
Source:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { sm.checkPermission ( new java.util.PropertyPermission ( "user.timezone" , "write" ) ) ; } java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.clearCachedDefault ( ) ; }

Target:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { sm.checkPermission ( new java.util.PropertyPermission ( "user.timezone" , "write" ) ) ; } java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.setICUDefault ( null ) ; }
Source:
private void dumpCallTimes ( ) { java.lang.String action ; java.lang.System.out.format ( "id thread global start,end method\n" ) ; for ( com.android.traceview.Call call : mCallList ) { if ( ( call.getMethodAction ( ) ) == 0 ) { action = "+" ; } else { action = " " ; } long callTime = call.mThreadStartTime ; java.lang.System.out.format ( "%2d %6d %8d %8d %s %s\n" , call.getThreadId ( ) , callTime , call.mGlobalStartTime , call.mGlobalEndTime , action , call.getMethodData ( ) . getName ( ) ) ; } }

Target:
private void dumpTimeRecs ( java.util.ArrayList < com.android.traceview.TimeLineView.Record > timeRecs ) { java.lang.System.out.print ( "\nTime Records\n" ) ; java.lang.System.out.print ( "id t-start t-end g-start g-end method\n" ) ; for ( com.android.traceview.TimeLineView.Record record : timeRecs ) { com.android.traceview.Call call = ( ( com.android.traceview.Call ) ( record.block ) ) ; java.lang.System.out.format ( "%2d %8d %8d %8d %8d %s\n" , call.getThreadId ( ) , call.mThreadStartTime , call.mThreadEndTime , call.mGlobalStartTime , call.mGlobalEndTime , call.getMethodData ( ) . getName ( ) ) ; } }
Source:
public java.net.InetAddress getInetAddress ( ) { java.net.SocketAddress remote = sc.remoteAddress ( ) ; if ( remote == null ) { return null ; } else { return ( ( java.net.InetSocketAddress ) ( remote ) ) . getAddress ( ) ; } }

Target:
public java.net.InetAddress getInetAddress ( ) { if ( ! ( isConnected ( ) ) ) { return null ; } java.net.SocketAddress remote = sc.remoteAddress ( ) ; if ( remote == null ) { return null ; } else { return ( ( java.net.InetSocketAddress ) ( remote ) ) . getAddress ( ) ; } }
Source:
public void onRequestFocus ( ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onRequestFocus" ) ; mWebChromeClient.onRequestFocus ( mWebView ) ; } org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onRequestFocus ( ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onRequestFocus" ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onRequestFocus" ) ; mWebChromeClient.onRequestFocus ( mWebView ) ; } } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onRequestFocus" ) ; } }
Source:
com.android.jack.ir.InternalCompilerException translateException ( java.lang.Throwable e ) { if ( e instanceof java.lang.VirtualMachineError ) { throw ( ( java.lang.VirtualMachineError ) ( e ) ) ; } com.android.jack.ir.InternalCompilerException ice ; if ( e instanceof com.android.jack.ir.InternalCompilerException ) { ice = ( ( com.android.jack.ir.InternalCompilerException ) ( e ) ) ; } else { ice = new com.android.jack.ir.InternalCompilerException ( "Error constructing Java AST" , e ) ; } return ice ; }

Target:
com.android.jack.ir.JNodeInternalError translateException ( java.lang.Throwable e ) { if ( e instanceof java.lang.VirtualMachineError ) { throw ( ( java.lang.VirtualMachineError ) ( e ) ) ; } com.android.jack.ir.JNodeInternalError ice ; if ( e instanceof com.android.jack.ir.JNodeInternalError ) { ice = ( ( com.android.jack.ir.JNodeInternalError ) ( e ) ) ; } else { ice = new com.android.jack.ir.JNodeInternalError ( "Error constructing Java AST" , e ) ; } return ice ; }
Source:
public void execute ( android.hardware.cts.helpers.TestSensorManager sensorManager , android.hardware.cts.helpers.TestSensorEventListener listener ) throws java.lang.InterruptedException { try { sensorManager.registerListener ( listener ) ; android.hardware.cts.helpers.SensorCtsHelper.sleep ( duration , timeUnit ) ; java.util.concurrent.CountDownLatch latch = sensorManager.requestFlush ( ) ; listener.waitForFlushComplete ( latch , true ) ; } finally { sensorManager.unregisterListener ( ) ; } }

Target:
public void execute ( android.hardware.cts.helpers.TestSensorManager sensorManager , android.hardware.cts.helpers.TestSensorEventListener listener ) throws java.lang.InterruptedException { try { sensorManager.registerListener ( listener ) ; int i = 0 ; for ( int interval : flushIntervalMs ) { android.hardware.cts.helpers.SensorCtsHelper.sleep ( interval , java.util.concurrent.TimeUnit.MILLISECONDS ) ; listener.waitForFlushComplete ( sensorManager.requestFlush ( ) , ( i <= clearEventIndex ) ) ; ++ i ; } } finally { sensorManager.unregisterListener ( ) ; } }
Source:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , "build/res/all/debug/drawable" ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , ( ( int ) ( - 16711936 ) ) ) ; }

Target:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , "build/res/all/debug/drawable" ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return ; } com.android.tools.lint.detector.api.Project project = context.getProject ( ) ; java.io.File projectFolder = project.getDir ( ) ; checkFolder ( context , new java.io.File ( projectFolder , "res" ) ) ; checkFolder ( context , new java.io.File ( projectFolder , "assets" ) ) ; for ( java.io.File srcFolder : project.getJavaSourceFolders ( ) ) { checkFolder ( context , srcFolder ) ; } }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return ; } com.android.tools.lint.detector.api.Project project = context.getProject ( ) ; java.io.File projectFolder = project.getDir ( ) ; com.android.tools.lint.checks.PrivateKeyDetector.checkFolder ( context , new java.io.File ( projectFolder , "res" ) ) ; com.android.tools.lint.checks.PrivateKeyDetector.checkFolder ( context , new java.io.File ( projectFolder , "assets" ) ) ; for ( java.io.File srcFolder : project.getJavaSourceFolders ( ) ) { com.android.tools.lint.checks.PrivateKeyDetector.checkFolder ( context , srcFolder ) ; } }
Source:
private void freeLoadedPrograms ( ) { java.util.Collection < com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > > programs = getInstalledJacks ( ) ; for ( com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program : programs ) { synchronized ( program ) { program.setLoadedProgram ( null ) ; } } java.lang.System.gc ( ) ; }

Target:
private void freeLoadedPrograms ( ) { java.util.Collection < com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > > programs = getInstalledJacks ( ) ; for ( com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program : programs ) { synchronized ( program ) { program.setLoadedProgram ( com.android.jack.server.JackHttpServer.Assertion.ENABLED , null ) ; } } java.lang.System.gc ( ) ; }
Source:
private static void checkIndex ( int length , int offset , int count ) { if ( offset < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "offset < 0" ) ; } else if ( count < 0 ) { throw new java.lang.IndexOutOfBoundsException ( "count < 0" ) ; } else if ( offset > length ) { throw new java.lang.IndexOutOfBoundsException ( "offset > length" ) ; } else if ( offset > ( length - count ) ) { throw new java.lang.IndexOutOfBoundsException ( "offset + count > length" ) ; } }

Target:
private static javax.net.ssl.SSLEngineResult.HandshakeStatus pendingStatus ( int pendingOutboundBytes ) { return pendingOutboundBytes > 0 ? javax.net.ssl.SSLEngineResult.HandshakeStatus.NEED_WRAP : javax.net.ssl.SSLEngineResult.HandshakeStatus.NEED_UNWRAP ; }
Source:
public boolean isA ( com.android.manifmerger.ManifestModel.NodeTypes type ) { return ( this . mType ) == type ; }

Target:
public void mergeChildren ( com.android.manifmerger.XmlElement lowerPriorityNode , com.android.manifmerger.MergingReport.Builder mergingReport ) { com.android.utils.ILogger logger = mergingReport.getLogger ( ) ; for ( com.android.manifmerger.XmlElement lowerPriorityChild : lowerPriorityNode.getMergeableElements ( ) ) { if ( shouldIgnore ( lowerPriorityChild , mergingReport ) ) { continue ; } mergeChild ( lowerPriorityChild , mergingReport ) ; } }