auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testPrivateConstructorReference ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( GWT_LAMBDA_TEST_19 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void testPrivateConstructorReference ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( GWT_LAMBDA_TEST_19 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyBasedToolchain.class ) . compileAndRunTest ( ) ; }
Source:
static java.lang.String getName ( org.w3c.dom.Node node ) { org.w3c.dom.Attr attribute = ( ( org.w3c.dom.Attr ) ( node.getAttributes ( ) . getNamedItemNS ( null , com.android.builder.resources.ATTR_NAME ) ) ) ; if ( attribute != null ) { return attribute.getValue ( ) ; } return null ; }

Target:
static java.lang.String getName ( org.w3c.dom.Node node ) { org.w3c.dom.Attr attribute = ( ( org.w3c.dom.Attr ) ( node.getAttributes ( ) . getNamedItemNS ( null , com.android.SdkConstants.ATTR_NAME ) ) ) ; if ( attribute != null ) { return attribute.getValue ( ) ; } return null ; }
Source:
public void testRunEnded ( long elapsedTime ) ;

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) ;
Source:
public int compare ( org.eclipse.jdt.core.dom.ASTNode o1 , org.eclipse.jdt.core.dom.ASTNode o2 ) { return java.lang.Integer.compare ( o1.getStartPosition ( ) , o2.getStartPosition ( ) ) ; }

Target:
void info ( org.eclipse.jdt.core.dom.ASTNode node , java.lang.String message ) ;
Source:
protected void setTargetLayer ( com.android.rs.test.LayerInfo layerInfo ) { scriptC.invoke_SetTargetLayer ( layerInfo.frontDepth , layerInfo.backDepth ) ; }

Target:
protected void setTargetLayer ( com.android.rs.refocus.LayerInfo layerInfo ) { scriptC.invoke_SetTargetLayer ( layerInfo.frontDepth , layerInfo.backDepth ) ; }
Source:
public void test_F32_2_SCALE10_10_inSqure ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 2 , 1.0F , 1.0F ) ; checkError ( ) ; }

Target:
public void test_F32_2_SCALE10_10_inSquare ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 2 , 1.0F , 1.0F ) ; checkError ( ) ; }
Source:
private void displayAvdList ( ) { try { com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; displayAvdList ( avdManager ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
protected com.android.sdklib.internal.avd.AvdManager getAvdManager ( ) throws com.android.prefs.AndroidLocation.AndroidLocationException { if ( ( mAvdManager ) == null ) { mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; } return mAvdManager ; }
Source:
public static long LongSubtraction ( ) { long a ; long b ; long c ; a = 6L ; b = 2L ; c = a - b ; return c ; }

Target:
public static float FloatSubtraction ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 6.0F ) ; b = Main.$inline$float ( 2.0F ) ; c = a - b ; return c ; }
Source:
public static com.google.devtools.build.android.desugar.LambdaInfo create ( java.lang.String factoryMethodDesc , org.objectweb.asm.Handle methodReference , org.objectweb.asm.Handle bridgeMethod ) { return new com.google.devtools.build.android.desugar.AutoValue_LambdaInfo ( factoryMethodDesc , methodReference , bridgeMethod ) ; }

Target:
public static com.google.devtools.build.android.desugar.LambdaInfo create ( java.lang.String desiredInternalName , java.lang.String factoryMethodDesc , org.objectweb.asm.Handle methodReference , org.objectweb.asm.Handle bridgeMethod ) { return new com.google.devtools.build.android.desugar.AutoValue_LambdaInfo ( desiredInternalName , factoryMethodDesc , methodReference , bridgeMethod ) ; }
Source:
public void testVFE9 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aput_byte.d.T_aput_byte_8" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_byte.d.T_aput_byte_1" , java.lang.ArrayIndexOutOfBoundsException.class , new byte [ 2 ] , 2 , ( ( byte ) ( 100 ) ) ) ; }
Source:
public void selectionChanged ( org.eclipse.jface.viewers.SelectionChangedEvent event ) { com.android.ddmlib.ThreadInfo selectedThread = getThreadSelection ( event.getSelection ( ) ) ; updateThreadStackTrace ( selectedThread ) ; }

Target:
public void selectionChanged ( org.eclipse.jface.viewers.SelectionChangedEvent event ) { requestThreadStackTrace ( getThreadSelection ( event.getSelection ( ) ) ) ; }
Source:
public void run ( ) { mFrameLayout.setForeground ( foreground ) ; mFrameLayout.setForegroundGravity ( Gravity.CENTER ) ; }

Target:
public void run ( ) { mFrameLayout.setForeground ( foreground ) ; mFrameLayout.setForegroundGravity ( Gravity.CENTER ) ; drawWaiter.registerDrawCompleteCallback ( mFrameLayout ) ; }
Source:
public void testFind_offUiThread ( ) { android.support.test.espresso.ViewFinder finder = new android.support.test.espresso.base.ViewFinderImpl ( org.hamcrest.Matchers.sameInstance ( nestedChild ) , testViewProvider ) ; try { finder.getView ( ) ; fail ( "not on main thread, should die." ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void getView_multiple ( ) { android.support.test.espresso.ViewFinder finder = new android.support.test.espresso.base.ViewFinderImpl ( org.hamcrest.Matchers.notNullValue ( android.view.View.class ) , testViewProvider ) ; expectedException.expect ( android.support.test.espresso.AmbiguousViewMatcherException.class ) ; finder.getView ( ) ; }
Source:
private boolean waitForFinalization ( java.lang.Object object ) { sleepFor ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingStartedNanos , java.lang.Daemons.MAX_FINALIZE_NANOS ) ; return object != ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ) ; }

Target:
private boolean waitForFinalization ( ) { long startTime = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingStartedNanos ; sleepFor ( startTime , java.lang.Daemons.MAX_FINALIZE_NANOS ) ; return ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ) == null ) || ( ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingStartedNanos ) != startTime ) ; }
Source:
com.google.doclava.ClassInfo [ ] all ( ) { return mCache.values ( ) . toArray ( new com.google.doclava.ClassInfo [ mCache.size ( ) ] ) ; }

Target:
java.util.Collection < ? > all ( ) { return mCache.values ( ) ; }
Source:
public boolean onKey ( android.content.DialogInterface dialog , int keyCode , android.view.KeyEvent keyEvent ) { mHandler.removeCallbacks ( mAutoDismisser ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dvr.ui.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; return false ; }

Target:
public void onStart ( ) { super . onStart ( ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dialog.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; }
Source:
public void testRunEnded ( long elapsedTime ) { }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > resultBundle ) { }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFloatLiteral expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JFloatLiteral other = otherOrMe ( expr ) ; ensure ( ( ( expr.getValue ( ) ) == ( other.getValue ( ) ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JByteLiteral expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JByteLiteral other = otherOrMe ( expr ) ; ensure ( ( ( expr.getValue ( ) ) == ( other.getValue ( ) ) ) ) ; }
Source:
public boolean mkdir ( ) { try { Libcore.os.mkdir ( path , java.io.S_IRWXU ) ; return true ; } catch ( libcore.io.ErrnoException errnoException ) { return false ; } }

Target:
public boolean mkdir ( ) { try { mkdirErrno ( ) ; return true ; } catch ( libcore.io.ErrnoException errnoException ) { return false ; } }
Source:
public final android.os.ParcelFileDescriptor readFileDescriptor ( ) { java.io.FileDescriptor fd = android.os.Parcel.nativeReadFileDescriptor ( mNativePtr ) ; return fd != null ? new android.os.ParcelFileDescriptor ( fd ) : null ; }

Target:
public final android.os.IBinder readStrongBinder ( ) { return android.os.Parcel.nativeReadStrongBinder ( mNativePtr ) ; }
Source:
public void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { extraGeneratedSourceFolders.addAll ( generatedSourceFolders ) ; }

Target:
public void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } extraGeneratedSourceFolders.addAll ( generatedSourceFolders ) ; }
Source:
void unSetOnUnsolOemHookRaw ( android.os.Handler h ) ;

Target:
void registerForModemReset ( android.os.Handler h , int what , java.lang.Object obj ) ;
Source:
public int getLocalPort ( ) { return serverSocket.getLocalPort ( ) ; }

Target:
public int getLocalPort ( ) { return address.getPort ( ) ; }
Source:
public boolean isVoicemailTranscriptionEnabled ( ) { return ( ( Build.VERSION.SDK_INT ) >= ( Build.VERSION_CODES.O ) ) && ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getBoolean ( "voicemail_transcription_enabled" , false ) ) ; }

Target:
public boolean isVoicemailTranscriptionAvailable ( ) { return ( ( Build.VERSION.SDK_INT ) >= ( Build.VERSION_CODES.O ) ) && ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getBoolean ( "voicemail_transcription_available" , false ) ) ; }
Source:
android.graphics.Bitmap takeScreenshot ( android.graphics.Point point ) ;

Target:
android.graphics.Bitmap takeScreenshot ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestPositionInfo params ) ;
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { mHasNativeMethods |= ( access & ( org.objectweb.asm.Opcodes.ACC_NATIVE ) ) != 0 ; return null ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( access & ( org.objectweb.asm.Opcodes.ACC_NATIVE ) ) != 0 ) { setHasNativeMethods ( true , name ) ; } return null ; }
Source:
private static java.io.File createTemporaryZipFile ( ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; return result ; }

Target:
private java.io.File createTemporaryZipFile ( ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; temporaryFiles.add ( result ) ; return result ; }
Source:
public void testSimpleManifestMerger ( ) throws java.io.IOException { java.io.File project = new java.io.File ( testDir , "simpleManifestMergingTask" ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , "manifestMerger" ) ; }

Target:
public void testSimpleManifestMerger ( ) throws java.io.IOException { java.io.File project = new java.io.File ( manualDir , "simpleManifestMergingTask" ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , "manifestMerger" ) ; }
Source:
public java.lang.String toString ( ) { return org.conscrypt.NativeCrypto.EVP_PKEY_print_private ( key.getNativeRef ( ) ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( "OpenSSLECPrivateKey{" ) ; sb.append ( "params={" ) ; sb.append ( org.conscrypt.NativeCrypto.EVP_PKEY_print_params ( key.getNativeRef ( ) ) ) ; sb.append ( "}}" ) ; return sb.toString ( ) ; }
Source:
public void testRequestOnlyIfCachedWithNoResponseCached ( ) throws java.io.IOException { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.addRequestProperty ( "Cache-Control" , "only-if-cached" ) ; assertBadGateway ( connection ) ; }

Target:
public void testRequestOnlyIfCachedWithNoResponseCached ( ) throws java.io.IOException { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.addRequestProperty ( "Cache-Control" , "only-if-cached" ) ; assertGatewayTimeout ( connection ) ; }
Source:
private void reset ( ) { org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctx.getContext ( ) , evp_md , macKey.getPkeyContext ( ) ) ; }

Target:
private void reset ( ) { final org.conscrypt.OpenSSLKey macKey = this . macKey ; if ( macKey == null ) { return ; } org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctx.getContext ( ) , evp_md , macKey.getPkeyContext ( ) ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { validateIsFloat32 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
private void copyTo ( java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , array , dt ) ; }
Source:
public void testStageInstallWithErrorCode_unsuccessfulFirstUpdate_olderVersionThanSystem ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.OLDER_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_unsuccessfulFirstUpdate_olderVersionThanSystem ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.OLDER_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void pushFile ( final java.lang.String localFilePath , final java.lang.String destFilePath ) throws java.io.IOException { com.android.ddmlib.SyncService.SyncResult result = mDevice.getSyncService ( ) . pushFile ( localFilePath , destFilePath , new android.content.pm.PackageManagerHostTestUtils.NullSyncProgressMonitor ( ) ) ; assertEquals ( SyncService.RESULT_OK , result.getCode ( ) ) ; }

Target:
public void pushFile ( final java.lang.String localFilePath , final java.lang.String destFilePath ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.SyncException , com.android.ddmlib.TimeoutException , java.io.IOException { mDevice.getSyncService ( ) . pushFile ( localFilePath , destFilePath , new android.content.pm.PackageManagerHostTestUtils.NullSyncProgressMonitor ( ) ) ; }
Source:
protected void launchActivityOnDisplay ( java.lang.String targetActivityName , int displayId , java.lang.String ... keyValuePairs ) throws java.lang.Exception { launchActivityOnDisplayNoWait ( targetActivityName , displayId , keyValuePairs ) ; }

Target:
protected void launchActivityOnDisplay ( java.lang.String targetActivityName , int displayId ) throws java.lang.Exception { executeShellCommand ( android.server.cts.ActivityManagerTestBase.getAmStartCmd ( targetActivityName , displayId ) ) ; mAmWmState.waitForValidState ( mDevice , targetActivityName ) ; }
Source:
private java.lang.Object getObject ( android.os.Message msg , java.lang.Class c ) { return msg.getData ( ) . getParcelable ( c.getSimpleName ( ) ) ; }

Target:
private < T > T getObject ( android.os.Message msg , java.lang.Class < T > c ) { return ( ( T ) ( msg.getData ( ) . getParcelable ( c.getSimpleName ( ) ) ) ) ; }
Source:
private native void gattClientScanFilterParamAddNative ( int client_if , int filt_index , int feat_seln , int list_logic_type , int filt_logic_type , int rssi_high_thres , int rssi_low_thres , int dely_mode , int found_timeout , int lost_timeout , int found_timeout_cnt ) ;

Target:
private native void gattClientScanFilterParamAddNative ( com.android.bluetooth.gatt.FilterParams FiltValue ) ;
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAbsentArrayDimension x ) { return visit ( ( ( com.android.jack.ir.ast.JLiteral ) ( x ) ) ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAbsentArrayDimension absentArrayDimension ) { return visit ( ( ( com.android.jack.ir.ast.JLiteral ) ( absentArrayDimension ) ) ) ; }
Source:
public static int $noinline$byteToDoubleToInt ( byte value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( double ) ( value ) ) ) ; }

Target:
public static short $noinline$byteToDoubleToShort ( byte value ) { return ( ( short ) ( ( double ) ( value ) ) ) ; }
Source:
public void testCodecEarlyEOSHEVC ( ) throws java.lang.Exception { testCodecEarlyEOS ( R.raw.video_1280x720_mp4_hevc_1150kbps_30fps_aac_stereo_128kbps_48000hz , 120 ) ; }

Target:
public void testCodecEarlyEOSHEVC ( ) throws java.lang.Exception { testCodecEarlyEOS ( R.raw.video_480x360_mp4_hevc_650kbps_30fps_aac_stereo_128kbps_48000hz , 120 ) ; }
Source:
public static long BoolCond_LongVarVar ( boolean cond , long x , long y ) { return cond ? x : y ; }

Target:
public static long BoolCond_LongVarVar ( boolean cond , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return cond ? x : y ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( item.getSelection ( ) ) { choices.getCallback ( ) . action ( choices , id , null ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( item.getSelection ( ) ) { choices.getCallback ( ) . action ( choices , id , null ) ; updateSelection ( ) ; } }
Source:
public void run ( ) { getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }

Target:
public void run ( ) { int width = android.widget.cts.WidgetTestUtils.convertDipToPixels ( getActivity ( ) , android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE ) ; getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( width , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }
Source:
private TestCaseBuilder addCanvasClientInternal ( java.lang.String debugString , android.uirendering.cts.testinfrastructure.CanvasClient canvasClient , boolean useHardware , boolean usePicture ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addCanvasClient ( java.lang.String debugString , android.uirendering.cts.testinfrastructure.CanvasClient canvasClient ) { return addCanvasClient ( debugString , canvasClient , false ) . addCanvasClient ( debugString , canvasClient , true ) ; }
Source:
public com.android.jack.ir.ast.JAnnotation getAnnotation ( @ javax.annotation.Nonnull java.lang.String signature ) { return getNonArrayType ( signature , annotationAdapter ) ; }

Target:
public com.android.jack.ir.ast.JAnnotationType getAnnotationType ( @ javax.annotation.Nonnull java.lang.String signature ) { return getNonArrayType ( signature , annotationAdapter ) ; }
Source:
public void testStageInstallWithErrorCode_successfulFirstUpdate ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertInstallDistroStaged ( distro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_successfulFirstUpdate ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertInstallDistroStaged ( distro ) ; assertNoInstalledDistro ( ) ; }
Source:
public boolean getScanCapabilities ( com.android.server.wifi.WifiNative.ScanCapabilities capabilities ) { return mWifiVendorHal.getScanCapabilities ( capabilities ) ; }

Target:
public boolean getBgScanCapabilities ( com.android.server.wifi.WifiNative.ScanCapabilities capabilities ) { return mWifiVendorHal.getBgScanCapabilities ( capabilities ) ; }
Source:
private java.lang.String getCpuAbi2 ( ) { return android.os.SystemProperties.get ( "ro.product.cpu.abi2" ) ; }

Target:
private java.lang.String getCpuAbi2 ( ) { return android.os.SystemProperties.get ( android.os.cts.BuildTest.RO_PRODUCT_CPU_ABI2 , null ) ; }
Source:
public void testSetDecimalFormatSymbolsAsNull ( ) { java.text.DecimalFormat format = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( ) ) ) ; format.setDecimalFormatSymbols ( null ) ; }

Target:
public void test_setDecimalFormatSymbolsAsNull ( ) { java.text.DecimalFormat format = ( ( java.text.DecimalFormat ) ( java.text.NumberFormat.getInstance ( ) ) ) ; format.setDecimalFormatSymbols ( null ) ; }
Source:
public java.util.Set < java.lang.String > getCriticalExtensions ( ) { if ( ( critical ) == null ) { makeOidsLists ( ) ; } return critical ; }

Target:
public java.util.Set < java.lang.String > getCriticalExtensions ( ) { java.util.Set < java.lang.String > resultCritical = critical ; if ( resultCritical == null ) { makeOidsLists ( ) ; resultCritical = critical ; } return resultCritical ; }
Source:
public boolean p2pGroupAdd ( int netId ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupAdd ( netId , true ) ; } else { return doBooleanCommand ( ( "P2P_GROUP_ADD persistent=" + netId ) ) ; } }

Target:
public boolean p2pGroupAdd ( int netId ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupAdd ( netId , true ) ; } else { return doBooleanCommand ( ( "P2P_GROUP_ADD persistent=" + netId ) ) ; } }
Source:
public void onBootPhase ( int phase ) { if ( phase == ( SystemService.PHASE_SYSTEM_SERVICES_READY ) ) { android.util.Log.d ( com.android.server.ContextHubSystemService.TAG , "onBootPhase: PHASE_SYSTEM_SERVICES_READY" ) ; publishBinderService ( ContextHubService.CONTEXTHUB_SERVICE , mContextHubService ) ; } }

Target:
public void onBootPhase ( int phase ) { if ( phase == ( SystemService.PHASE_SYSTEM_SERVICES_READY ) ) { android.util.Log.d ( com.android.server.ContextHubSystemService.TAG , "onBootPhase: PHASE_SYSTEM_SERVICES_READY" ) ; publishBinderService ( Context.CONTEXTHUB_SERVICE , mContextHubService ) ; } }
Source:
void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { currentActionIndex = savedInstanceState.getInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION ) ; builder = savedInstanceState.getParcelable ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.EXTRA_CALL_INTENT_BUILDER ) ; }

Target:
void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { currentActionIndex = savedInstanceState.getInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION ) ; builder = savedInstanceState.getParcelable ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER ) ; }
Source:
public void testGetNewValue ( ) { assertEquals ( "merge" , com.android.tools.lint.checks.WrongCaseDetector.getNewValue ( "Invalid tag <Merge>; should be <merge>" ) ) ; }

Target:
public void testGetOldValue ( ) { assertEquals ( "Merge" , com.android.tools.lint.checks.WrongCaseDetector.getOldValue ( "Invalid tag `<Merge>`; should be `<merge>`" , com.android.tools.lint.detector.api.TextFormat.RAW ) ) ; assertEquals ( "Merge" , com.android.tools.lint.checks.WrongCaseDetector.getOldValue ( "Invalid tag <Merge>; should be <merge>" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }
Source:
public boolean hasCarrierPrivilegeRules ( ) { return ( ( mCarrierPrivilegeRules ) != null ) && ( mCarrierPrivilegeRules.hasCarrierPrivilegeRules ( ) ) ; }

Target:
public boolean hasCarrierPrivilegeRules ( ) { com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules carrierPrivilegeRules = getCarrierPrivilegeRules ( ) ; return ( carrierPrivilegeRules != null ) && ( carrierPrivilegeRules.hasCarrierPrivilegeRules ( ) ) ; }
Source:
private void noresultCase ( java.lang.String file ) { android.util.Log.v ( "Layout test:" , ( file + " no expected result" ) ) ; mResultRecorder.noresult ( file ) ; }

Target:
private void noResultCase ( java.lang.String file ) { android.util.Log.v ( "Layout test:" , ( file + " no expected result" ) ) ; mResultRecorder.noResult ( file ) ; }
Source:
private native void gattClientGetDescriptorNative ( int conn_id , int service_type , int service_id_inst_id , long service_id_uuid_lsb , long service_id_uuid_msb , int char_id_inst_id , long char_id_uuid_lsb , long char_id_uuid_msb , int descr_id_inst_id , long descr_id_uuid_lsb , long descr_id_uuid_msb ) ;

Target:
private native void gattClientGetGattDbNative ( int conn_id ) ;
Source:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , libcore.util.MutableLong inOffset , long byteCount ) throws libcore.io.ErrnoException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }

Target:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }
Source:
public static void computeFmin ( android.renderscript.cts.TestFmin.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.min ( args.inX , args.inY ) ; }

Target:
public static void computeNextafter ( android.renderscript.cts.TestNextafter.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Math.nextAfter ( args.inX , args.inY ) , 0 , 0 ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Point getBottomRight ( ) { return new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( ( ( x ) + ( ( w ) > 0 ? w : 0 ) ) , ( ( y ) + ( ( h ) > 0 ? h : 0 ) ) ) ; }

Target:
public com.android.ide.common.api.Point getBottomRight ( ) { return new com.android.ide.common.api.Point ( ( ( x ) + ( ( w ) > 0 ? w : 0 ) ) , ( ( y ) + ( ( h ) > 0 ? h : 0 ) ) ) ; }
Source:
public void resetDownloadKnowledge ( java.lang.String appName , android.telephony.mbms.DownloadRequest downloadRequest ) throws android.os.RemoteException { }

Target:
public android.telephony.mbms.DownloadStatus getDownloadStatus ( android.telephony.mbms.DownloadRequest downloadRequest ) throws android.os.RemoteException { return null ; }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { android.util.Log.d ( com.android.providers.telephony.TelephonyProviderTestable.TAG , "InMemoryTelephonyProviderDbHelper onCreate creating the carriers table" ) ; db.execSQL ( com.android.providers.telephony.CREATE_CARRIERS_TABLE_STRING ) ; android.util.Log.d ( com.android.providers.telephony.TelephonyProviderTestable.TAG , "InMemoryTelephonyProviderDbHelper onCreate creating the siminfo table" ) ; db.execSQL ( com.android.providers.telephony.CREATE_SIMINFO_TABLE_STRING ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { android.util.Log.d ( com.android.providers.telephony.TelephonyProviderTestable.TAG , "InMemoryTelephonyProviderDbHelper onCreate creating the carriers table" ) ; db.execSQL ( getStringForCarrierTableCreation ( "carriers" ) ) ; android.util.Log.d ( com.android.providers.telephony.TelephonyProviderTestable.TAG , "InMemoryTelephonyProviderDbHelper onCreate creating the siminfo table" ) ; db.execSQL ( com.android.providers.telephony.CREATE_SIMINFO_TABLE_STRING ) ; }
Source:
void setInternetAccessState ( boolean enabled ) { com.android.server.wifi.WifiConfiguration config = getCurrentWifiConfiguration ( ) ; if ( config != null ) { config.noInternetAccess = enabled ; } }

Target:
public void enableWifiConnectivityManager ( boolean enabled ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_ENABLE_WIFI_CONNECTIVITY_MANAGER , ( enabled ? 1 : 0 ) ) ; }
Source:
private static com.android.build.gradle.internal.ExtraModelInfo.ModelQueryMode computeModelQueryMode ( @ com.android.annotations.NonNull org.gradle.api.Project project ) { if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY_ADVANCED ) ) { return com.android.build.gradle.internal.ExtraModelInfo.ModelQueryMode.IDE_ADVANCED ; } if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY ) ) { return com.android.build.gradle.internal.ExtraModelInfo.ModelQueryMode.IDE ; } return com.android.build.gradle.internal.ExtraModelInfo.ModelQueryMode.STANDARD ; }

Target:
private static com.android.build.gradle.internal.EvaluationMode computeModelQueryMode ( @ com.android.annotations.NonNull org.gradle.api.Project project ) { if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY_ADVANCED ) ) { return EvaluationMode.IDE ; } if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY ) ) { return EvaluationMode.IDE_LEGACY ; } return EvaluationMode.STANDARD ; }
Source:
public void onIntrData ( android.bluetooth.BluetoothDevice device , byte reportId , byte [ ] data ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( ( ( "onIntrData: device=" + device ) + " reportId=" ) + reportId ) ) ; }

Target:
public void onInterruptData ( android.bluetooth.BluetoothDevice device , byte reportId , byte [ ] data ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( ( ( "onInterruptData: device=" + device ) + " reportId=" ) + reportId ) ) ; }
Source:
public void test_minus_longTemporalUnit_timeNotAllowed ( ) { TEST_2007_07_15.minus ( 7 , java.time.temporal.ChronoUnit.HOURS ) ; }

Target:
public void test_minus_Period_timeNotAllowed ( ) { test.java.time.MockSimplePeriod period = test.java.time.MockSimplePeriod.of ( 7 , java.time.temporal.ChronoUnit.HOURS ) ; tck.java.time.TCKLocalDate.TEST_2007_07_15.minus ( period ) ; }
Source:
java.util.logging.Logger demandLogger ( java.lang.String name , java.lang.String resourceBundleName ) { return java.util.logging.LogManager.manager.demandLogger ( name , resourceBundleName , null ) ; }

Target:
final boolean requiresDefaultLoggers ( ) { final boolean requiresDefaultLoggers = ( getOwner ( ) ) == ( java.util.logging.LogManager.manager ) ; if ( requiresDefaultLoggers ) { getOwner ( ) . ensureLogManagerInitialized ( ) ; } return requiresDefaultLoggers ; }
Source:
public void setImages ( org.eclipse.swt.graphics.Image fileImage , org.eclipse.swt.graphics.Image folderImage , org.eclipse.swt.graphics.Image packageImage , org.eclipse.swt.graphics.Image otherImage ) { mFileImage = fileImage ; mFolderImage = folderImage ; mPackageImage = packageImage ; mOtherImage = otherImage ; }

Target:
public void setCustomImages ( org.eclipse.swt.graphics.Image fileImage , org.eclipse.swt.graphics.Image folderImage , org.eclipse.swt.graphics.Image packageImage , org.eclipse.swt.graphics.Image otherImage ) { mFileImage = fileImage ; mFolderImage = folderImage ; mPackageImage = packageImage ; mOtherImage = otherImage ; }
Source:
public void installPackages ( java.util.List < java.lang.String > apkFilePaths , int timeOutInMs , boolean reinstall , java.lang.String ... extraArgs ) throws com.android.ddmlib.InstallException ;

Target:
public void installPackages ( java.util.List < java.lang.String > apkFilePaths , int timeOutInMs , boolean reinstall , @ com.android.annotations.NonNull java.util.Collection < java.lang.String > extraArgs ) throws com.android.ddmlib.InstallException ;
Source:
public boolean getBooleanAttribute ( android.icu.text.DateFormat.BooleanAttribute key ) { return booleanAttributes.contains ( key ) ; }

Target:
public boolean getBooleanAttribute ( android.icu.text.DateFormat.BooleanAttribute key ) { if ( key == ( android.icu.text.DateFormat.BooleanAttribute.PARSE_PARTIAL_MATCH ) ) { key = android.icu.text.DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH ; } return booleanAttributes.contains ( key ) ; }
Source:
public java.lang.String apply ( @ com.android.annotations.Nullable com.android.build.gradle.managed.ManagedString managedString ) { return managedString == null ? null : managedString.getValue ( ) ; }

Target:
public java.util.List < java.lang.String > getLdLibs ( ) { return ndkConfig.getLdLibs ( ) ; }
Source:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { return com.google.common.collect.Iterators.< java.lang.Object > forArray ( java.lang.Long.valueOf ( number ) , java.lang.Long.valueOf ( size ) ) ; }

Target:
public long getSize ( ) { return size ; }
Source:
public void validateConfigWithoutHomeSp ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.homeSp = null ; org.junit.Assert.assertFalse ( config.validate ( ) ) ; }

Target:
public void verifyParcelWithoutPolicy ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.setPolicy ( null ) ; android.net.wifi.hotspot2.PasspointConfigurationTest.verifyParcel ( config ) ; }
Source:
public static boolean isNetworkTypeValid ( int networkType ) { return ( networkType >= 0 ) && ( networkType <= ( android.net.ConnectivityManager.MAX_NETWORK_TYPE ) ) ; }

Target:
public static boolean isNetworkTypeValid ( int networkType ) { return ( ( android.net.ConnectivityManager.MIN_NETWORK_TYPE ) <= networkType ) && ( networkType <= ( android.net.ConnectivityManager.MAX_NETWORK_TYPE ) ) ; }
Source:
public static int AndAllOnes ( int arg ) { return arg & ( - 1 ) ; }

Target:
public static int $noinline$AndAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg & ( - 1 ) ; }
Source:
java.lang.Class < ? > source ( ) default javax.lang.model.type.NullType.class ;

Target:
java.lang.Class < ? > source ( ) default java.lang.Void.class ;
Source:
public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; }

Target:
public void run ( ) { onFocusChanged ( focused , direction , previouslyFocusedRect ) ; }
Source:
public void onDetach ( ) { if ( ( mChannelScanTask ) != null ) { mChannelScanTask.stopScan ( ) ; } super . onDetach ( ) ; }

Target:
public void onPause ( ) { android.util.Log.d ( com.android.tv.tuner.setup.ScanFragment.TAG , "onPause" ) ; if ( ( mChannelScanTask ) != null ) { android.util.Log.w ( com.android.tv.tuner.setup.ScanFragment.TAG , "The activity went to the background. Stopping channel scan." ) ; mChannelScanTask.stopScan ( ) ; } super . onPause ( ) ; }
Source:
public static void setUpClass ( ) { com.android.jack.inner.InnerTests.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; }

Target:
public void test027 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST027 ) . compileAndRunTest ( ) ; }
Source:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > successfulAsList ( com.google.common.util.concurrent.ListenableFuture < ? extends V > ... futures ) { return new com.google.common.util.concurrent.Futures.ListFuture < V > ( com.google.common.collect.ImmutableList.copyOf ( futures ) , false , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > allAsList ( java.lang.Iterable < ? extends com.google.common.util.concurrent.ListenableFuture < ? extends V > > futures ) { return com.google.common.util.concurrent.Futures.listFuture ( com.google.common.collect.ImmutableList.copyOf ( futures ) , true , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; }
Source:
public void expectMessage ( java.lang.String substring ) { expectMessage ( org.hamcrest.CoreMatchers.containsString ( substring ) ) ; }

Target:
public void expectMessage ( org.hamcrest.Matcher < java.lang.String > matcher ) { expect ( hasMessage ( matcher ) ) ; }
Source:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.Nullable java.io.File testedApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int timeout , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.api.TestException , java.lang.InterruptedException ;

Target:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.Nullable java.io.File testedApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int maxThreads , int timeout , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.api.TestException , java.lang.InterruptedException ;
Source:
private boolean isSimPinSecure ( ) { final com.android.internal.telephony.SimCard.State simState = mUpdateMonitor.getSimState ( ) ; return ( ( simState == ( SimCard.State.PIN_REQUIRED ) ) || ( simState == ( SimCard.State.PUK_REQUIRED ) ) ) || ( simState == ( SimCard.State.ABSENT ) ) ; }

Target:
private boolean isSimPinSecure ( ) { final com.android.internal.telephony.IccCard.State simState = mUpdateMonitor.getSimState ( ) ; return ( ( simState == ( IccCard.State.PIN_REQUIRED ) ) || ( simState == ( IccCard.State.PUK_REQUIRED ) ) ) || ( simState == ( IccCard.State.ABSENT ) ) ; }
Source:
public int getSelectedConfigurationId ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return - 1 ; } return selection.getHash ( ) ; }

Target:
public int getSelectedConfigurationId ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return - 1 ; } return selection.getId ( ) ; }
Source:
public static native void SSL_CTX_disable_npn ( int sslCtxNativePointer ) ;

Target:
public static native long create_BIO_OutputStream ( java.io.OutputStream os ) ;
Source:
public com.google.common.base.Objects.ToStringHelper addValue ( int value ) { addHolder ( ) . builder.append ( value ) ; return this ; }

Target:
private com.google.common.base.Objects.ToStringHelper.ValueHolder addHolder ( ) { com.google.common.base.Objects.ToStringHelper.ValueHolder valueHolder = new com.google.common.base.Objects.ToStringHelper.ValueHolder ( ) ; holderTail = holderTail.next = valueHolder ; return valueHolder ; }
Source:
private long getCtx ( ) { if ( ( ctx ) == 0 ) { ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_DigestInit ( evp_md ) ; } return ctx ; }

Target:
private long getCtx ( ) { if ( ( ctx ) == 0 ) { ctx = com.android.org.conscrypt.NativeCrypto.EVP_DigestInit ( evp_md ) ; } return ctx ; }
Source:
public static void resetSettings ( ) { android.autofillservice.cts.Helper.runShellCommand ( "settings delete secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; }

Target:
public static void resetSettings ( ) { if ( ! ( android.autofillservice.cts.Helper.hasAutofillFeature ( ) ) ) return ; android.autofillservice.cts.Helper.runShellCommand ( "settings delete secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; }
Source:
public native int umask ( int mask ) ;

Target:
public int umask ( int mask ) { if ( ( mask & 511 ) != mask ) { throw new java.lang.IllegalArgumentException ( ( "Invalid umask: " + mask ) ) ; } return umaskImpl ( mask ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > any ( java.lang.Class < T > type ) { return org.hamcrest.core.IsAnything.any ( type ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > isA ( java.lang.Class < T > type ) { return org.hamcrest.core.Is.< T > isA ( type ) ; }
Source:
protected void finalize ( ) { native_finalize ( ) ; }

Target:
public void restat ( java.lang.String path ) { mStat = android.os.StatFs.doStat ( path ) ; }
Source:
public void testEnglishRegionAndValuesAsEnglish2 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values/strings.xml:5: Error: \"other\" is not translated in \"de-DE\" (German: Germany) [MissingTranslation]\n" + " <string name=\"other\">other</string>\n" ) + " ~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "locale33845/res/values/strings4.xml=>res/values/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-de-rDE/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-en-rGB/strings.xml" ) ) ; }

Target:
public void testEnglishRegionAndValuesAsEnglish2 ( ) throws java.lang.Exception { TranslationDetector.sCompleteRegions = false ; assertEquals ( ( "" + ( ( ( "res/values/strings.xml:5: Error: \"other\" is not translated in \"de-DE\" (German: Germany) [MissingTranslation]\n" + " <string name=\"other\">other</string>\n" ) + " ~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "locale33845/res/values/strings4.xml=>res/values/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-de-rDE/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-en-rGB/strings.xml" ) ) ; }
Source:
public com.android.jack.dx.rop.cst.CstType getCstType ( @ javax.annotation.Nonnegative int index ) { com.android.jack.dx.rop.cst.CstType cstType = types [ index ] ; assert cstType != null ; return cstType ; }

Target:
public com.android.jack.dx.rop.type.Type getType ( @ javax.annotation.Nonnegative int index ) { com.android.jack.dx.rop.type.Type cstType = types [ index ] ; assert cstType != null ; return cstType ; }
Source:
public void addI16 ( android.support.v8.renderscript.Short2 v ) { mN.addI16 ( new android.support.v8.renderscript.Short2 ( v.x , v.y ) ) ; }

Target:
public void addI16 ( android.support.v8.renderscript.Short2 v ) { mN.addI16 ( new android.support.v8.renderscript.Short2 ( v.x , v.y ) ) ; mPos += 4 ; }
Source:
public android.telephony.ims.feature.MMTelFeature onCreateMMTelImsFeature ( int slotId ) { return null ; }

Target:
public final void onUpdateSupportedImsFeatures ( android.telephony.ims.stub.ImsFeatureConfiguration c ) throws android.os.RemoteException { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Framework is not ready" ) ; } mListener.onUpdateSupportedImsFeatures ( c ) ; }
Source:
public boolean supports64Bits ( ) { java.lang.String targetString = getNdkConfig ( ) . getCompileSdkVersion ( ) . replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }

Target:
public boolean supports64Bits ( ) { java.lang.String targetString = compileSdkVersion.replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }
Source:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { loglocal ( ( "iccCloseLogicalChannel: " + channel ) ) ; mCi.iccCloseLogicalChannel ( channel , obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_CLOSE_LOGICAL_CHANNEL_DONE , response ) ) ; }

Target:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { loglocal ( ( "iccCloseLogicalChannel: " + channel ) ) ; mCi.iccCloseLogicalChannel ( channel , mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_CLOSE_LOGICAL_CHANNEL_DONE , response ) ) ; }
Source:
public int getUtf8Size ( ) { return bytes.size ( ) ; }

Target:
public com.android.jack.dx.util.ByteArray getBytes ( ) { if ( ( bytes ) == null ) { bytes = new com.android.jack.dx.util.ByteArray ( com.android.jack.dx.rop.cst.CstString.stringToUtf8Bytes ( string , getUtf8Size ( ) ) ) ; } return bytes ; }
Source:
public java.lang.String getPath ( ) { if ( ( mTargetHashProvider ) != null ) { return mTargetHashProvider.getTargetHash ( ) ; } return mAddonPath ; }

Target:
public java.lang.String getVendorId ( ) { if ( ( mTargetHashProvider ) != null ) { return mTargetHashProvider.getVendorId ( ) ; } return mAddonVendor ; }
Source:
public void testAutofillCallbackDisabled ( ) throws java.lang.Exception { disableService ( ) ; final android.autofillservice.cts.MyAutofillCallback callback = mActivity.registerCallback ( ) ; focusToUsername ( ) ; callback.assertUiUnavailableEvent ( mActivity.mCustomView , mActivity.mUsername.text.id ) ; }

Target:
public void testAutofillCallbackDisabled ( ) throws java.lang.Throwable { disableService ( ) ; final android.autofillservice.cts.MyAutofillCallback callback = mActivity.registerCallback ( ) ; focusToUsernameExpectNoWindowEvent ( ) ; callback.assertUiUnavailableEvent ( mActivity.mCustomView , mActivity.mUsername.text.id ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < com.android.dialer.phonelookup.PhoneLookupInfo > lookup ( @ android.support.annotation.NonNull android.telecom.Call call ) { return backgroundExecutorService.submit ( PhoneLookupInfo :: getDefaultInstance ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < com.android.dialer.phonelookup.PhoneLookupInfo > lookup ( android.telecom.Call call ) { return backgroundExecutorService.submit ( ( ) -> lookupInternal ( call ) ) ; }
Source:
public static void computeAsinpi ( android.renderscript.cts.TestAsinpi.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( ( java.lang.StrictMath.asin ( args.in ) ) / ( java.lang.StrictMath.PI ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.convertFloatToFloat ( args.inV ) , 0 , 0 ) ; }