auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getLastPdpFailCause ( android.os.Message result ) { getLastDataCallFailCause ( result ) ; }

Target:
public void getLastCallFailCause ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_LAST_CALL_FAIL_CAUSE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getLastCallFailCause ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getLastCallFailCause" , e ) ; } } }
Source:
public static java.lang.String shortToCharToBytePrint ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } char c = ( ( char ) ( value ) ) ; byte b = ( ( byte ) ( c ) ) ; return ( ( "c=" + ( ( int ) ( c ) ) ) + ", b=" ) + ( ( int ) ( b ) ) ; }

Target:
public static java.lang.String $noinline$shortToCharToBytePrint ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } char c = ( ( char ) ( value ) ) ; byte b = ( ( byte ) ( c ) ) ; return ( ( "c=" + ( ( int ) ( c ) ) ) + ", b=" ) + ( ( int ) ( b ) ) ; }
Source:
public synchronized void applyPattern ( java.lang.String pattern ) { setPropertiesFromPattern ( pattern , false ) ; properties.setPositivePrefix ( null ) ; properties.setNegativePrefix ( null ) ; properties.setPositiveSuffix ( null ) ; properties.setNegativeSuffix ( null ) ; properties.setCurrencyPluralInfo ( null ) ; refreshFormatter ( ) ; }

Target:
public synchronized void applyPattern ( java.lang.String pattern ) { setPropertiesFromPattern ( pattern , PatternString.IGNORE_ROUNDING_NEVER ) ; properties.setPositivePrefix ( null ) ; properties.setNegativePrefix ( null ) ; properties.setPositiveSuffix ( null ) ; properties.setNegativeSuffix ( null ) ; properties.setCurrencyPluralInfo ( null ) ; refreshFormatter ( ) ; }
Source:
static com.android.build.gradle.internal.model.DependenciesImpl cloneDependenciesForJavaArtifacts ( @ com.android.annotations.NonNull com.android.builder.model.Dependencies dependencies ) { java.util.List < com.android.builder.model.AndroidLibrary > libraries = java.util.Collections.emptyList ( ) ; java.util.List < java.io.File > jars = com.google.common.collect.Lists.newArrayList ( dependencies.getJars ( ) ) ; java.util.List < java.lang.String > projects = java.util.Collections.emptyList ( ) ; return new com.android.build.gradle.internal.model.DependenciesImpl ( libraries , jars , projects ) ; }

Target:
static com.android.build.gradle.internal.model.DependenciesImpl cloneDependenciesForJavaArtifacts ( @ com.android.annotations.NonNull com.android.builder.model.Dependencies dependencies ) { java.util.List < com.android.builder.model.AndroidLibrary > libraries = java.util.Collections.emptyList ( ) ; java.util.List < com.android.builder.model.JavaLibrary > javaLibraries = com.google.common.collect.Lists.newArrayList ( dependencies.getJavaLibraries ( ) ) ; java.util.List < java.lang.String > projects = java.util.Collections.emptyList ( ) ; return new com.android.build.gradle.internal.model.DependenciesImpl ( libraries , javaLibraries , projects ) ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } return c.getAnnotations ( ) ; }
Source:
public com.android.jack.ir.ast.JDefinedInterface create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( sourceInfo ) != null ; assert ( signature ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( new com.android.jack.jayce.v0002.io.ExportSession ( loader.getLookup ( ) , enclosingPackage.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ) ; com.android.jack.ir.ast.JDefinedInterface jInterfaceType = new com.android.jack.ir.ast.JDefinedInterface ( jSourceInfo , simpleName , modifiers , enclosingPackage , loader ) ; return jInterfaceType ; }

Target:
public com.android.jack.ir.ast.JDefinedInterface create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JDefinedInterface jInterfaceType = new com.android.jack.ir.ast.JDefinedInterface ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; return jInterfaceType ; }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { instance = in.readNode ( com.android.jack.jayce.v0004.nodes.NExpression.class ) ; receiverType = in.readId ( ) ; receiverKind = in.readReceiverKindEnum ( ) ; methodName = in.readId ( ) ; methodArgsType = in.readIds ( ) ; methodKind = in.readMethodKindEnum ( ) ; returnType = in.readId ( ) ; args = in.readNodes ( com.android.jack.jayce.v0004.nodes.NExpression.class ) ; callSiteReturnType = in.readId ( ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { instance = in.readNode ( com.android.jack.jayce.v0004.nodes.NExpression.class ) ; receiverType = in.readId ( ) ; receiverKind = in.readReceiverKindEnum ( ) ; methodName = in.readId ( ) ; methodArgsType = in.readIds ( ) ; methodKind = in.readMethodKindEnum ( ) ; returnType = in.readId ( ) ; args = in.readNodes ( com.android.jack.jayce.v0004.nodes.NExpression.class ) ; callSiteReturnType = in.readId ( ) ; callSiteParameterStrTypes = in.readIds ( ) ; }
Source:
private void notifyNoData ( com.android.internal.telephony.dataconnection.DcFailCause lastFailCauseCode , com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( ( "notifyNoData: type=" + ( apnContext.getApnType ( ) ) ) ) ; if ( ( isPermanentFail ( lastFailCauseCode ) ) && ( ! ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_DEFAULT ) ) ) ) { mPhone.notifyDataConnectionFailed ( apnContext.getReason ( ) , apnContext.getApnType ( ) ) ; } }

Target:
private void notifyNoData ( com.android.internal.telephony.dataconnection.DcFailCause lastFailCauseCode , com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( ( "notifyNoData: type=" + ( apnContext.getApnType ( ) ) ) ) ; if ( ( isPermanentFailure ( lastFailCauseCode ) ) && ( ! ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_DEFAULT ) ) ) ) { mPhone.notifyDataConnectionFailed ( apnContext.getReason ( ) , apnContext.getApnType ( ) ) ; } }
Source:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > getLiveEntry ( @ javax.annotation.Nullable java.lang.Object key ) { if ( key == null ) { return null ; } int hash = hash ( key ) ; return segmentFor ( hash ) . getLiveEntry ( key , hash , ticker.read ( ) ) ; }

Target:
public int size ( ) { return map.size ( ) ; }
Source:
public void testOkClasses ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }

Target:
public void testOkClasses ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING , com.android.tools.lint.checks.MissingClassDetector.INSTANTIATABLE , com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }
Source:
private com.android.internal.telephony.gsm.stk.ResultCode setIcons ( java.lang.Object data ) { android.graphics.Bitmap [ ] icons = null ; int iconIndex = 0 ; if ( data == null ) { return ResultCode.PRFRMD_ICON_NOT_DISPLAYED ; } switch ( mIconLoadState ) { case com.android.internal.telephony.gsm.stk.CommandParamsFactory.LOAD_SINGLE_ICON : mCmdParams.setIcon ( ( ( android.graphics.Bitmap ) ( data ) ) ) ; break ; case com.android.internal.telephony.gsm.stk.CommandParamsFactory.LOAD_MULTI_ICONS : icons = ( ( android.graphics.Bitmap [ ] ) ( data ) ) ; for ( android.graphics.Bitmap icon : icons ) { mCmdParams.setIcon ( icon ) ; } break ; } return ResultCode.OK ; }

Target:
private com.android.internal.telephony.cat.ResultCode setIcons ( java.lang.Object data ) { android.graphics.Bitmap [ ] icons = null ; int iconIndex = 0 ; if ( data == null ) { return ResultCode.PRFRMD_ICON_NOT_DISPLAYED ; } switch ( mIconLoadState ) { case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_SINGLE_ICON : mCmdParams.setIcon ( ( ( android.graphics.Bitmap ) ( data ) ) ) ; break ; case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_MULTI_ICONS : icons = ( ( android.graphics.Bitmap [ ] ) ( data ) ) ; for ( android.graphics.Bitmap icon : icons ) { mCmdParams.setIcon ( icon ) ; } break ; } return ResultCode.OK ; }
Source:
public java.nio.ByteBuffer putLong ( long value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putLong ( long value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }
Source:
public void test_getInstanceLjava_lang_String01 ( ) throws java.security.NoSuchAlgorithmException { for ( java.lang.String validValue : tests.api.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { javax.net.ssl.TrustManagerFactory trustMF = javax.net.ssl.TrustManagerFactory.getInstance ( validValue ) ; assertTrue ( "Not TrustManagerFactory object" , ( trustMF instanceof javax.net.ssl.TrustManagerFactory ) ) ; assertEquals ( "Invalid algorithm" , trustMF.getAlgorithm ( ) , validValue ) ; } }

Target:
public void test_getInstanceLjava_lang_String01 ( ) throws java.security.NoSuchAlgorithmException { for ( java.lang.String validValue : org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { javax.net.ssl.TrustManagerFactory trustMF = javax.net.ssl.TrustManagerFactory.getInstance ( validValue ) ; assertTrue ( "Not TrustManagerFactory object" , ( trustMF instanceof javax.net.ssl.TrustManagerFactory ) ) ; assertEquals ( "Invalid algorithm" , trustMF.getAlgorithm ( ) , validValue ) ; } }
Source:
private void checkInputFile ( java.io.File file ) throws com.android.sdklib.build.ApkCreationException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkCreationException ( "Cannot read %s" , file ) ; } } else { throw new com.android.sdklib.build.ApkCreationException ( "%s does not exist" , file ) ; } }

Target:
private void checkInputFile ( java.io.File file , boolean throwIfDoesntExist ) throws com.android.sdklib.build.ApkCreationException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkCreationException ( "Cannot read %s" , file ) ; } } else if ( throwIfDoesntExist ) { throw new com.android.sdklib.build.ApkCreationException ( "%s does not exist" , file ) ; } }
Source:
public static long copy ( com.google.common.io.InputSupplier < ? extends java.io.InputStream > from , java.io.OutputStream to ) throws java.io.IOException { boolean threw = true ; java.io.InputStream in = from.getInput ( ) ; try { long count = com.google.common.io.ByteStreams.copy ( in , to ) ; threw = false ; return count ; } finally { com.google.common.io.Closeables.close ( in , threw ) ; } }

Target:
public static com.google.common.io.ByteArrayDataInput newDataInput ( byte [ ] bytes ) { return com.google.common.io.ByteStreams.newDataInput ( new java.io.ByteArrayInputStream ( bytes ) ) ; }
Source:
public void run ( ) { for ( int i = 0 ; i < ( uiNodes.size ( ) ) ; i ++ ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = uiLastNode [ 0 ] = uiNodes.get ( i ) ; doUpInternal ( uiNode , selectXmlNode , uiSearchRoot , false ) ; } }

Target:
public void run ( ) { for ( int i = 0 ; i < ( uiNodes.size ( ) ) ; i ++ ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = uiLastNode [ 0 ] = uiNodes.get ( i ) ; doUpInternal ( uiNode , descriptorFilters , selectXmlNode , uiSearchRoot , false ) ; } }
Source:
public void unhold ( java.lang.String callId ) { mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_UNHOLD , callId ) . sendToTarget ( ) ; }

Target:
public void unhold ( java.lang.String callId , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_UNHOLD ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = android.telecom.Log.createSubsession ( ) ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_UNHOLD , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public android.telecom.PhoneAccount build ( ) { if ( mSupportedUriSchemes.isEmpty ( ) ) { addSupportedUriScheme ( android.telecom.PhoneAccount.SCHEME_TEL ) ; } return new android.telecom.PhoneAccount ( mAccountHandle , mAddress , mSubscriptionAddress , mCapabilities , mIcon , mHighlightColor , mLabel , mShortDescription , mSupportedUriSchemes , mExtras , mIsEnabled , mGroupId ) ; }

Target:
public android.telecom.PhoneAccount build ( ) { if ( mSupportedUriSchemes.isEmpty ( ) ) { addSupportedUriScheme ( android.telecom.PhoneAccount.SCHEME_TEL ) ; } return new android.telecom.PhoneAccount ( mAccountHandle , mAddress , mSubscriptionAddress , mCapabilities , mIcon , mHighlightColor , mLabel , mShortDescription , mSupportedUriSchemes , mExtras , mSupportedAudioRoutes , mIsEnabled , mGroupId ) ; }
Source:
public void testLoadTzData_badHeader ( ) throws java.lang.Exception { java.io.RandomAccessFile in = new java.io.RandomAccessFile ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT , "r" ) ; byte [ ] content = new byte [ ( ( int ) ( in.length ( ) ) ) ] ; in.readFully ( content ) ; in.close ( ) ; content [ 0 ] = 'a' ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( content ) ; }

Target:
public void testLoadTzData_badHeader ( ) throws java.lang.Exception { java.io.RandomAccessFile in = new java.io.RandomAccessFile ( libcore.util.ZoneInfoDBTest.SYSTEM_TZDATA_FILE , "r" ) ; byte [ ] content = new byte [ ( ( int ) ( in.length ( ) ) ) ] ; in.readFully ( content ) ; in.close ( ) ; content [ 0 ] = 'a' ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( content ) ; }
Source:
void startMultiAdvertising ( int advertiserId , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.AdvertiseSettings settings ) { enforceAdminPermission ( ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "startMultiAdvertising() - advertiserId=" + advertiserId ) ) ; mAdvertiseManager.startAdvertising ( new com.android.bluetooth.gatt.AdvertiseClient ( advertiserId , settings , advertiseData , scanResponse ) ) ; }

Target:
void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.IAdvertisingSetCallback callback ) { enforceAdminPermission ( ) ; mAdvertiseManager.startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , callback ) ; }
Source:
public void testFailed ( com.android.ddmlib.testrunner.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( status.equals ( TestFailure.ERROR ) ) { mRunResult.reportTestFailure ( test , TestStatus.ERROR , trace ) ; } else { mRunResult.reportTestFailure ( test , TestStatus.FAILURE , trace ) ; } com.android.ddmlib.Log.d ( com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , java.lang.String.format ( "%s %s: %s" , test , status , trace ) ) ; }

Target:
public void testAssumptionFailure ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { mRunResult.testAssumptionFailure ( test , trace ) ; }
Source:
public void testRunNormalInputOnWindows ( ) throws com.android.tradefed.device.DeviceNotAvailableException , java.lang.IllegalArgumentException { java.lang.String originalName = java.lang.System.getProperty ( VtsMultiDeviceTest.OS_NAME ) ; java.lang.System.setProperty ( VtsMultiDeviceTest.OS_NAME , VtsMultiDeviceTest.WINDOWS ) ; mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockRunUtil ( "where" , "python.exe" , CommandStatus.SUCCESS ) ) ; try { mTest.run ( mMockInvocationListener ) ; } finally { java.lang.System.setProperty ( VtsMultiDeviceTest.OS_NAME , originalName ) ; } }

Target:
public void testRunNormalInputCommandFailed ( ) { mTest.setDevice ( mMockITestDevice ) ; com.android.tradefed.util.CommandResult commandResult = new com.android.tradefed.util.CommandResult ( ) ; commandResult.setStatus ( CommandStatus.FAILED ) ; org.easymock.EasyMock.expect ( mRunUtil.runTimedCmd ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.TEST_TIMEOUT , mCommand ) ) . andReturn ( commandResult ) ; org.easymock.EasyMock.replay ( mRunUtil ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.RuntimeException e ) { } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }
Source:
private static android.database.Cursor makeCursor ( java.lang.String [ ] columnNames , java.lang.Object [ ] values ) { assertTrue ( ( ( columnNames.length ) == ( values.length ) ) ) ; android.database.MatrixCursor cursorStub ; if ( ( Build.VERSION.SDK_INT ) < ( Build.VERSION_CODES.ICE_CREAM_SANDWICH ) ) { cursorStub = android.support.test.espresso.matcher.CursorMatchersTest.newMatrixCursorV10 ( columnNames ) ; } else { cursorStub = android.support.test.espresso.matcher.CursorMatchersTest.newMatrixCursorV14 ( columnNames ) ; } cursorStub.addRow ( values ) ; return cursorStub ; }

Target:
private static android.database.Cursor makeCursor ( java.lang.String [ ] columnNames , java.lang.Object [ ] values ) { org.junit.Assert.assertTrue ( ( ( columnNames.length ) == ( values.length ) ) ) ; android.database.MatrixCursor cursorStub ; if ( ( Build.VERSION.SDK_INT ) < ( Build.VERSION_CODES.ICE_CREAM_SANDWICH ) ) { cursorStub = android.support.test.espresso.matcher.CursorMatchersTest.newMatrixCursorV10 ( columnNames ) ; } else { cursorStub = android.support.test.espresso.matcher.CursorMatchersTest.newMatrixCursorV14 ( columnNames ) ; } cursorStub.addRow ( values ) ; return cursorStub ; }
Source:
private com.android.ide.eclipse.gltrace.state.IGLProperty createShaderState ( ) { com.android.ide.eclipse.gltrace.state.IGLProperty shaderType = new com.android.ide.eclipse.gltrace.state.GLEnumProperty ( GLStateType.SHADER_TYPE , com.android.ide.eclipse.gldebugger.GLEnum.GL_VERTEX_SHADER ) ; com.android.ide.eclipse.gltrace.state.IGLProperty shaderSource = new com.android.ide.eclipse.gltrace.state.GLStringProperty ( GLStateType.SHADER_SOURCE , "" ) ; com.android.ide.eclipse.gltrace.state.IGLProperty perShaderState = new com.android.ide.eclipse.gltrace.state.GLCompositeProperty ( GLStateType.PER_SHADER_STATE , shaderType , shaderSource ) ; return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( GLStateType.SHADERS , perShaderState ) ; }

Target:
private com.android.ide.eclipse.gltrace.state.IGLProperty createShaderState ( ) { com.android.ide.eclipse.gltrace.state.IGLProperty shaderType = new com.android.ide.eclipse.gltrace.state.GLEnumProperty ( GLStateType.SHADER_TYPE , com.android.ide.eclipse.gltrace.GLEnum.GL_VERTEX_SHADER ) ; com.android.ide.eclipse.gltrace.state.IGLProperty shaderSource = new com.android.ide.eclipse.gltrace.state.GLStringProperty ( GLStateType.SHADER_SOURCE , "" ) ; com.android.ide.eclipse.gltrace.state.IGLProperty perShaderState = new com.android.ide.eclipse.gltrace.state.GLCompositeProperty ( GLStateType.PER_SHADER_STATE , shaderType , shaderSource ) ; return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( GLStateType.SHADERS , perShaderState ) ; }
Source:
public final java.nio.ByteBuffer get ( byte [ ] dst , int dstOffset , int byteCount ) { checkNotFreed ( ) ; checkGetBounds ( 1 , dst.length , dstOffset , byteCount ) ; this . block.peekByteArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , byteCount ) ; position += byteCount ; return this ; }

Target:
public final java.nio.ByteBuffer get ( byte [ ] dst , int dstOffset , int byteCount ) { checkIsAccessible ( ) ; checkGetBounds ( 1 , dst.length , dstOffset , byteCount ) ; this . block.peekByteArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , byteCount ) ; position += byteCount ; return this ; }
Source:
private boolean visitThrowingRValue ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert expr.canThrow ( ) ; confirmBlockElement ( expr ) ; confirmThrowingPosition ( expr ) ; confirmVarAsgValue ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; return true ; }

Target:
private boolean visitLocalOrParameter ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { confirmBlockElement ( expr ) ; confirmParentForTrivia ( expr ) ; com.android.jack.ir.ast.JNode parent = expr.getParent ( ) ; if ( parent instanceof com.android.jack.ir.ast.JAsgOperation ) { if ( ( ( ( com.android.jack.ir.ast.JAsgOperation ) ( parent ) ) . getLhs ( ) ) == expr ) { confirmParent ( parent , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; } } return true ; }
Source:
public boolean onCreateOptionsMenu ( android.view.Menu menu ) { menu.add ( Menu.NONE , Menu.NONE , Menu.NONE , "Quit" ) . setAlphabeticShortcut ( 'q' ) ; menu.add ( Menu.NONE , Menu.NONE , Menu.NONE , "Action" ) . setAlphabeticShortcut ( 'a' ) ; android.view.cts.WindowStubActivity.mIsOnCreateOptionsMenuCalled = true ; return super . onCreateOptionsMenu ( menu ) ; }

Target:
public boolean onCreateOptionsMenu ( android.view.Menu menu ) { menu.add ( Menu.NONE , Menu.NONE , Menu.NONE , "Quit" ) . setShortcut ( '1' , 'q' ) ; menu.add ( Menu.NONE , Menu.NONE , Menu.NONE , "Action" ) . setShortcut ( '2' , 'a' ) ; android.view.cts.WindowStubActivity.mIsOnCreateOptionsMenuCalled = true ; return super . onCreateOptionsMenu ( menu ) ; }
Source:
void setBounds ( android.graphics.Rect bounds ) { mBounds.set ( bounds ) ; if ( ( isDimming ( ) ) && ( ! ( mLastBounds.equals ( bounds ) ) ) ) { adjustSurface ( mLayer , false ) ; } }

Target:
void setBounds ( android.graphics.Rect bounds , boolean inTransaction ) { mBounds.set ( bounds ) ; if ( ( isDimming ( ) ) && ( ! ( mLastBounds.equals ( bounds ) ) ) ) { try { if ( ! inTransaction ) { android.view.SurfaceControl.openTransaction ( ) ; } adjustBounds ( ) ; } catch ( java.lang.RuntimeException e ) { android.util.Slog.w ( com.android.server.wm.DimLayer.TAG , "Failure setting size" , e ) ; } finally { if ( ! inTransaction ) { android.view.SurfaceControl.closeTransaction ( ) ; } } } }
Source:
public android.net.NetworkCapabilities createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) ; netCap.mNetworkCapabilities = in.readLong ( ) ; netCap.mTransportTypes = in.readLong ( ) ; netCap.mLinkUpBandwidthKbps = in.readInt ( ) ; netCap.mLinkDownBandwidthKbps = in.readInt ( ) ; netCap.mNetworkSpecifier = in.readParcelable ( null ) ; netCap.mSignalStrength = in.readInt ( ) ; return netCap ; }

Target:
public android.net.NetworkCapabilities createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) ; netCap.mNetworkCapabilities = in.readLong ( ) ; netCap.mTransportTypes = in.readLong ( ) ; netCap.mLinkUpBandwidthKbps = in.readInt ( ) ; netCap.mLinkDownBandwidthKbps = in.readInt ( ) ; netCap.mNetworkSpecifier = in.readParcelable ( null ) ; netCap.mSignalStrength = in.readInt ( ) ; netCap.mUids = ( ( android.util.ArraySet < android.net.UidRange > ) ( in.readArraySet ( null ) ) ) ; return netCap ; }
Source:
public void validatePolicyWithRoamingPartnerWithoutCountries ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; android.net.wifi.hotspot2.pps.Policy.RoamingPartner partner = new android.net.wifi.hotspot2.pps.Policy.RoamingPartner ( ) ; partner.fqdn = "test.com" ; partner.fqdnExactMatch = true ; partner.priority = 12 ; policy.preferredRoamingPartnerList.add ( partner ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void verifyParcelWithoutProtoPortMap ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.setRequiredProtoPortMap ( null ) ; android.net.wifi.hotspot2.pps.PolicyTest.verifyParcel ( policy ) ; }
Source:
private static void copy ( java.io.InputStream in , java.io.OutputStream out ) throws java.io.IOException { byte [ ] buffer = new byte [ 8192 ] ; int c ; while ( ( c = in.read ( buffer ) ) != ( - 1 ) ) { out.write ( buffer , 0 , c ) ; } }

Target:
private java.io.File getTimeZoneDataApkFile ( java.lang.String testId ) throws java.lang.Exception { com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper buildHelper = new com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper ( mBuildInfo ) ; java.lang.String fileName = getTimeZoneDataApkName ( testId ) ; return new java.io.File ( buildHelper.getTestsDir ( ) , fileName ) ; }
Source:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "res/values-zh-rCN/plurals3.xml:3: Warning: For language \"zh\" the following quantities are not relevant: one [MissingQuantity]\n" + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-cs/plurals3.xml:3: Warning: For locale \"cs\" the following quantities should also be defined: few [MissingQuantity]\n" ) + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:7: Warning: For language \"zh\" the following quantities are not relevant: one [MissingQuantity]\n" ) + " <plurals name=\"title_day_dialog_content\">\n" ) + " ^\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "res/values-zh-rCN/plurals3.xml" , "res/values-cs/plurals3.xml" ) ) ; }

Target:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "res/values-cs/plurals3.xml:3: Warning: For locale \"cs\" the following quantities should also be defined: few [MissingQuantity]\n" + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:3: Warning: For language \"zh\" the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:7: Warning: For language \"zh\" the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"title_day_dialog_content\">\n" ) + " ^\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "res/values-zh-rCN/plurals3.xml" , "res/values-cs/plurals3.xml" ) ) ; }
Source:
public static void createTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , com.android.build.gradle.ndk.internal.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.buildType.name.equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }

Target:
public static void createTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }
Source:
public static void computeSinpi ( android.renderscript.cts.TestSinpi.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.sin ( ( ( args.in ) * ( ( float ) ( java.lang.Math.PI ) ) ) ) , 4 , 128 ) ; }

Target:
public static void computeTanpi ( android.renderscript.cts.TestTanpi.ArgumentsFloatFloat args ) { android.renderscript.cts.Floaty ip = new android.renderscript.cts.Floaty ( ( ( float ) ( ( ( double ) ( args.in ) ) * ( java.lang.Math.PI ) ) ) , 1 , 1 ) ; args.out = android.renderscript.cts.Floaty.FloatyFromRange ( ( ( float ) ( java.lang.Math.tan ( ip.getDoubleMin ( ) ) ) ) , ( ( float ) ( java.lang.Math.tan ( ip.getDoubleMax ( ) ) ) ) , 4 , 128 ) ; }
Source:
public boolean matchesObject ( final java.lang.Object set ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) final java.util.Set < com.android.messaging.datamodel.data.MessagePartData > actualSet = ( ( java.util.Set < com.android.messaging.datamodel.data.MessagePartData > ) ( set ) ) ; if ( ( actualSet.size ( ) ) != ( mGivenParts.size ( ) ) ) { return false ; } return ( mGivenParts.containsAll ( actualSet ) ) && ( actualSet.containsAll ( mGivenParts ) ) ; }

Target:
public boolean matches ( final java.util.Set < com.android.messaging.datamodel.data.MessagePartData > actualSet ) { if ( ( actualSet.size ( ) ) != ( mGivenParts.size ( ) ) ) { return false ; } return ( mGivenParts.containsAll ( actualSet ) ) && ( actualSet.containsAll ( mGivenParts ) ) ; }
Source:
public boolean isSameUpdatePackageAs ( java.lang.Package pkg ) { if ( ( ( mUpdatePkg ) != null ) && ( ( mUpdatePkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.Package.UpdateInfo.NOT_UPDATE ) ) ) { return ( mUpdatePkg.getRevision ( ) ) == ( pkg.getRevision ( ) ) ; } return false ; }

Target:
public boolean isSameUpdatePackageAs ( java.lang.Package pkg ) { if ( ( ( mUpdatePkg ) != null ) && ( ( mUpdatePkg.canBeUpdatedBy ( pkg ) ) == ( com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ) ) ) { return ( mUpdatePkg.getRevision ( ) ) == ( pkg.getRevision ( ) ) ; } return false ; }
Source:
private boolean sendCtrlCommand ( int cmd , long token , int status , com.google.protobuf.micro.MessageMicro pbData ) { try { com.android.internal.communication.Msg.send ( mRilChannel , cmd , token , status , pbData ) ; } catch ( java.io.IOException e ) { android.util.Log.v ( com.android.internal.telephony.mockril.MockRilController.TAG , ( "send command : %d failed: " + ( e.getStackTrace ( ) ) ) ) ; return false ; } return true ; }

Target:
private boolean sendCtrlCommand ( int cmd , long token , int status , com.google.protobuf.micro.MessageMicro pbData ) { try { com.android.internal.communication.Msg.send ( mRilChannel , cmd , token , status , pbData ) ; } catch ( java.io.IOException e ) { android.telephony.Rlog.v ( com.android.internal.telephony.mockril.MockRilController.TAG , ( "send command : %d failed: " + ( e.getStackTrace ( ) ) ) ) ; return false ; } return true ; }
Source:
protected void checkReportedError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { assertNotNull ( message , com.android.tools.lint.checks.AppCompatCallDetector.getOldCall ( message ) ) ; assertNotNull ( message , com.android.tools.lint.checks.AppCompatCallDetector.getNewCall ( message ) ) ; }

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:
public java.lang.String getISO3Language ( ) { java.lang.String code = libcore.icu.ICU.getISO3LanguageNative ( getIcuLocaleId ( ) ) ; if ( ( ! ( languageCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter language code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortLanguage" ) ; } return code ; }

Target:
public java.lang.String getISO3Language ( ) { if ( languageCode.isEmpty ( ) ) { return "" ; } java.lang.String code = libcore.icu.ICU.getISO3Language ( this ) ; if ( ( ! ( languageCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter language code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortLanguage" ) ; } return code ; }
Source:
private void save ( com.android.manifmerger.XmlDocument xmlDocument , java.io.File out ) { java.io.FileWriter os ; try { os = new java.io.FileWriter ( out ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } try { os.write ( xmlDocument.prettyPrint ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } finally { try { os.close ( ) ; } catch ( java.io.IOException e ) { mLogger.error ( e , "Cannot close output stream" ) ; } } }

Target:
private void save ( com.android.manifmerger.XmlDocument xmlDocument , java.io.File out ) { try { com.google.common.io.Files.write ( xmlDocument.prettyPrint ( ) , out , com.google.common.base.Charsets.UTF_8 ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void setPreferredVoicePrivacy ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE , result ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; send ( rr ) ; }

Target:
public void switchWaitingOrHoldingAndActive ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.switchWaitingOrHoldingAndActive ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "switchWaitingOrHoldingAndActive" , e ) ; } } }
Source:
public void copyFrom ( float [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFrom ( float [ ] d ) { validateIsFloat32 ( ) ; copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public void run ( ) { int count = Main.totalOperations ; while ( count > 0 ) { synchronized ( Main.lockObject ) { Main.inf.foo ( ( 10000 - count ) , ( 11000 - count ) , ( 12000 - count ) , ( 13000 - count ) , ( 14000 - count ) , ( 15000 - count ) ) ; } count -- ; } }

Target:
public void run ( ) { int count = Main.totalOperations ; while ( count > 0 ) { synchronized ( Main.lockObject ) { try { Main.inf.foo ( ( 10000 - count ) , ( 11000 - count ) , ( 12000 - count ) , ( 13000 - count ) , ( 14000 - count ) , ( 15000 - count ) ) ; } catch ( java.lang.OutOfMemoryError e ) { } } count -- ; } }
Source:
private static void readIndex ( ) { libcore.io.MemoryMappedFile mappedFile = null ; try { mappedFile = libcore.io.MemoryMappedFile.mmapRO ( libcore.util.ZoneInfoDB.INDEX_FILE_NAME ) ; libcore.util.ZoneInfoDB.readIndex ( mappedFile ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.AssertionError ( ex ) ; } finally { libcore.io.IoUtils.closeQuietly ( mappedFile ) ; } }

Target:
private static libcore.io.MemoryMappedFile mapData ( ) { try { java.lang.String path = ( java.lang.System.getenv ( "ANDROID_ROOT" ) ) + "/usr/share/zoneinfo/tzdata" ; return libcore.io.MemoryMappedFile.mmapRO ( path ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } }
Source:
public boolean visitSwitch ( lombok.ast.Switch node ) { lombok.ast.Expression condition = node.astCondition ( ) ; com.android.tools.lint.client.api.JavaParser.TypeDescriptor type = mContext.getType ( condition ) ; if ( ( type != null ) && ( type.matchesName ( com.android.tools.lint.client.api.JavaParser.TYPE_INT ) ) ) { com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation = findIntDef ( condition ) ; if ( annotation != null ) { checkSwitch ( node , annotation ) ; } } return super . visitSwitch ( node ) ; }

Target:
public void visitSwitchStatement ( com.intellij.psi.PsiSwitchStatement statement ) { com.intellij.psi.PsiExpression condition = statement.getExpression ( ) ; if ( ( condition != null ) && ( PsiType.INT.equals ( condition.getType ( ) ) ) ) { com.intellij.psi.PsiAnnotation annotation = findIntDef ( condition ) ; if ( annotation != null ) { checkSwitch ( statement , annotation ) ; } } }
Source:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "stop()" ) ; if ( ( mContactChangeObserver ) == null ) { android.util.Log.i ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { unregisterReceiver ( mPbapReceiver ) ; getContentResolver ( ) . unregisterContentObserver ( mContactChangeObserver ) ; mContactChangeObserver = null ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Unable to unregister pbap receiver" , e ) ; } mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.SHUTDOWN ) . sendToTarget ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; return true ; }

Target:
private void loadAllContacts ( ) { if ( ( mThreadLoadContacts ) == null ) { java.lang.Runnable r = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.bluetooth.pbap.BluetoothPbapUtils.loadAllContacts ( mContext , mSessionStatusHandler ) ; mThreadLoadContacts = null ; } } ; mThreadLoadContacts = new java.lang.Thread ( r ) ; mThreadLoadContacts.start ( ) ; } }
Source:
public void testSetNetworkExtra ( ) { org.mockito.Mockito.when ( mWifiNative.setNetworkVariable ( org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyString ( ) , org.mockito.Mockito.anyString ( ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mWifiNative.setNetworkExtra ( com.android.server.wifi.WifiNativeTest.NETWORK_ID , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VARIABLE , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VALUES ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . setNetworkVariable ( com.android.server.wifi.WifiNativeTest.NETWORK_ID , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VARIABLE , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_SERIALIZED ) ; }

Target:
public void testSetupDriverForClientMode ( ) { android.net.wifi.IClientInterface clientInterface = org.mockito.Mockito.mock ( android.net.wifi.IClientInterface.class ) ; org.mockito.Mockito.when ( mWificondControl.setupDriverForClientMode ( ) ) . thenReturn ( clientInterface ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( clientInterface , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiVendorHal ) . startVendorHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( mWificondControl ) . setupDriverForClientMode ( ) ; }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthTcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
private void writeAnnotation ( @ javax.annotation.Nonnull org.objectweb.asm.tree.AnnotationNode anno , @ javax.annotation.Nonnull com.android.jill.frontend.java.RetentionPolicy retentionPolicy ) throws java.io.IOException { sourceInfoWriter.writeUnknwonDebugBegin ( ) ; writer.writeKeyword ( Token.ANNOTATION ) ; writer.writeOpen ( ) ; writer.writeRetentionPolicyEnum ( retentionPolicy ) ; writer.writeId ( anno.desc ) ; writeNameValuePair ( anno.values ) ; sourceInfoWriter.writeUnknownDebugEnd ( ) ; writer.writeClose ( ) ; }

Target:
private void writeAnnotation ( @ javax.annotation.Nonnull org.objectweb.asm.tree.AnnotationNode anno , @ javax.annotation.Nonnull com.android.jill.frontend.java.RetentionPolicy retentionPolicy ) throws java.io.IOException { sourceInfoWriter.writeUnknwonDebugBegin ( ) ; writer.writeKeyword ( Token.ANNOTATION ) ; writer.writeOpen ( ) ; writer.writeRetentionPolicyEnum ( retentionPolicy ) ; writer.writeId ( anno.desc ) ; writeNameValuePair ( anno.values ) ; writer.writeOpenNodeList ( ) ; writer.writeCloseNodeList ( ) ; sourceInfoWriter.writeUnknownDebugEnd ( ) ; writer.writeClose ( ) ; }
Source:
public boolean passwordUid ( java.lang.String password , int uid ) { try { mError = mBinder.password_uid ( password , uid ) ; return ( mError ) == ( 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 delKey ( java.lang.String key , int uid ) { return delete ( key , uid ) ; }