auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private int mapInstallerResultToApiCode ( int installerResult ) { switch ( installerResult ) { case libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_SUCCESS : return android.app.timezone.Callback.SUCCESS ; case libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE : return android.app.timezone.Callback.ERROR_INSTALL_BAD_DISTRO_STRUCTURE ; case libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD : return android.app.timezone.Callback.ERROR_INSTALL_RULES_TOO_OLD ; case libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION : return android.app.timezone.Callback.ERROR_INSTALL_BAD_DISTRO_FORMAT_VERSION ; case libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_FAIL_VALIDATION_ERROR : return android.app.timezone.Callback.ERROR_INSTALL_VALIDATION_ERROR ; default : return android.app.timezone.Callback.ERROR_UNKNOWN_FAILURE ; } }

Target:
private int mapInstallerResultToApiCode ( int installerResult ) { switch ( installerResult ) { case com.android.timezone.distro.installer.TimeZoneDistroInstaller.INSTALL_SUCCESS : return android.app.timezone.Callback.SUCCESS ; case com.android.timezone.distro.installer.TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE : return android.app.timezone.Callback.ERROR_INSTALL_BAD_DISTRO_STRUCTURE ; case com.android.timezone.distro.installer.TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD : return android.app.timezone.Callback.ERROR_INSTALL_RULES_TOO_OLD ; case com.android.timezone.distro.installer.TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION : return android.app.timezone.Callback.ERROR_INSTALL_BAD_DISTRO_FORMAT_VERSION ; case com.android.timezone.distro.installer.TimeZoneDistroInstaller.INSTALL_FAIL_VALIDATION_ERROR : return android.app.timezone.Callback.ERROR_INSTALL_VALIDATION_ERROR ; default : return android.app.timezone.Callback.ERROR_UNKNOWN_FAILURE ; } }
Source:
public void setUp ( ) { oldPolicy = dalvik.system.BlockGuard.getThreadPolicy ( ) ; dalvik.system.BlockGuard.setThreadPolicy ( recorder ) ; }

Target:
public void setUp ( ) { recorder.setChecks ( java.util.EnumSet.allOf ( dalvik.system.BlockGuardTest.RecordingPolicy.Check.class ) ) ; oldPolicy = dalvik.system.BlockGuard.getThreadPolicy ( ) ; dalvik.system.BlockGuard.setThreadPolicy ( recorder ) ; }
Source:
private int checkInterval ( ) { return ( mInterval ) >= 10 ? SUCCESS : ERROR_INVALID_INTERVAL ; }

Target:
private int checkInterval ( ) { return ( mInterval ) >= ( MIN_INTERVAL ) ? SUCCESS : ERROR_INVALID_INTERVAL ; }
Source:
public void trackingDisabled_intentHelperNotUsed ( ) { configureTrackingDisabled ( ) ; mPackageTracker.start ( ) ; mFakeIntentHelper.assertNotInitialized ( ) ; mFakeIntentHelper.assertReliabilityTriggeringDisabled ( ) ; }

Target:
public void trackingDisabled_intentHelperNotUsed ( ) { configureTrackingDisabled ( ) ; mPackageTracker.start ( ) ; mFakeIntentHelper.assertNotInitialized ( ) ; mFakeIntentHelper.assertReliabilityTriggerNotScheduled ( ) ; }
Source:
public boolean addLinkAddress ( android.net.LinkAddress address ) { if ( ( address != null ) && ( ! ( mLinkAddresses.contains ( address ) ) ) ) { mLinkAddresses.add ( address ) ; return true ; } return false ; }

Target:
public boolean removeLinkAddress ( android.net.LinkAddress toRemove ) { int i = findLinkAddressIndex ( toRemove ) ; if ( i >= 0 ) { mLinkAddresses.remove ( i ) ; return true ; } return false ; }
Source:
private void revalidateSizes ( ) { myTextAnnotationGutters = new java.util.ArrayList < com.intellij.openapi.editor.impl.TextAnnotationGutterProvider > ( ) ; myTextAnnotationGutterSizes = new com.intellij.openapi.editor.impl.TIntArrayList ( ) ; updateSize ( ) ; }

Target:
private void revalidateSizes ( ) { myTextAnnotationGutters = new java.util.ArrayList < com.intellij.openapi.editor.impl.TextAnnotationGutterProvider > ( ) ; myTextAnnotationGutterSizes = new gnu.trove.TIntArrayList ( ) ; updateSize ( ) ; }
Source:
public void onComplete ( int resultCode , java.lang.String address ) { callback.onComplete ( resultCode , address ) ; }

Target:
public void onComplete ( int resultCode , java.lang.String address ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , address ) ) ; }
Source:
public void addMethodAnnotations ( com.android.dx.rop.cst.CstMethodRef method , com.android.dx.rop.annotation.Annotations annotations ) { annotationsDirectory.addMethodAnnotations ( method , annotations ) ; }

Target:
public void addParameterAnnotations ( com.android.dx.rop.cst.CstMethodRef method , com.android.dx.rop.annotation.AnnotationsList list , com.android.dx.dex.file.DexFile dexFile ) { annotationsDirectory.addParameterAnnotations ( method , list , dexFile ) ; }
Source:
public long readLong ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_LONG ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; return com.android.dx.util.EncodedValueUtils.readSignedLong ( in , arg ) ; }

Target:
public long readLong ( ) { checkType ( com.android.dex.EncodedValueReader.ENCODED_LONG ) ; type = com.android.dex.EncodedValueReader.MUST_READ ; return com.android.dex.EncodedValueCodec.readSignedLong ( in , arg ) ; }
Source:
private native void nativeClearFocus ( int x , int y ) ;

Target:
private native void nativeTextInputMotionUp ( int x , int y ) ;
Source:
public int compare ( com.android.tools.perflib.heap.Instance a , com.android.tools.perflib.heap.Instance b ) { return java.lang.Long.compare ( a.getId ( ) , b.getId ( ) ) ; }

Target:
public int compare ( com.android.ahat.heapdump.AhatInstance a , com.android.ahat.heapdump.AhatInstance b ) { return java.lang.Long.compare ( a.getId ( ) , b.getId ( ) ) ; }
Source:
public static void computeExp ( android.renderscript.cts.TestExp.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 16 ; args.out = ( ( float ) ( java.lang.StrictMath.exp ( args.in ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsShortInt args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertShortToInt ( args.inV ) ; }
Source:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.callintent.CallIntentBuilder.forVoicemail ( phoneAccountHandle , CallInitiationType.Type.CALL_LOG ) . build ( ) ; }

Target:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.precall.PreCall.getIntent ( context , com.android.dialer.callintent.CallIntentBuilder.forVoicemail ( phoneAccountHandle , CallInitiationType.Type.CALL_LOG ) ) ; }
Source:
public com.android.builder.model.AndroidProject getGradleProjectModel ( ) { return com.android.tools.lint.checks.PrivateResourceDetectorTest.createMockProject ( Version.ANDROID_GRADLE_PLUGIN_VERSION , Version.BUILDER_MODEL_API_VERSION ) ; }

Target:
public com.android.builder.model.AndroidProject getGradleProjectModel ( ) { return com.android.tools.lint.checks.PrivateResourceDetectorTest.createMockProject ( "1.3.0-alpha2" , 3 ) ; }
Source:
static java.lang.String getCompanionClassName ( java.lang.String interfaceName ) { return interfaceName + ( com.google.devtools.build.android.desugar.InterfaceDesugaring.COMPANION_SUFFIX ) ; }

Target:
static java.lang.String getCompanionClassName ( java.lang.String interfaceName ) { return interfaceName + ( DependencyCollector.INTERFACE_COMPANION_SUFFIX ) ; }
Source:
public static boolean NotEqualBoolVsIntConst ( boolean arg ) { return ( arg ? 0 : 1 ) == 2 ; }

Target:
public static boolean $noinline$NotEqualBoolVsIntConst ( boolean arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg ? 0 : 1 ) == 2 ; }
Source:
public final native java.lang.Object compareAndExchangeAcquire ( java.lang.Object ... args ) ;

Target:
public final native boolean compareAndSet ( java.lang.Object ... args ) ;
Source:
private void gotoIdleAndNotifyDataConnection ( java.lang.String reason ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( ( "gotoIdleAndNotifyDataConnection: reason=" + reason ) ) ; notifyDataConnection ( reason ) ; }

Target:
private void onDataServiceBindingChanged ( boolean bound ) { if ( bound ) { mDcc.start ( ) ; } else { mDcc.dispose ( ) ; } }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { return scope.getGlobalScope ( ) . getExtension ( ) . getAaptOptions ( ) . getUseNewCruncher ( ) ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { return extension.getAaptOptions ( ) . getUseNewCruncher ( ) ; }
Source:
public boolean isNewerOrEqualsThan ( @ javax.annotation.Nonnull com.android.sched.util.Version other ) throws com.android.sched.util.UncomparableVersion { return ( compareTo ( other ) ) >= 0 ; }

Target:
public boolean isNewerOrEqualThan ( @ javax.annotation.Nonnull com.android.sched.util.Version other ) throws com.android.sched.util.UncomparableVersion { return ( compareTo ( other ) ) >= 0 ; }
Source:
public void setOutgoingCallerIdDisplay ( int commandInterfaceCLIRMode , android.os.Message onComplete ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "setOutgoingCallerIdDisplay: not possible in CDMA" ) ; }

Target:
public void setOutgoingCallerIdDisplay ( int commandInterfaceCLIRMode , android.os.Message onComplete ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "setOutgoingCallerIdDisplay: not possible in CDMA" ) ; }
Source:
public java.lang.String getPath ( ) { return baseVFS.getPath ( ) ; }

Target:
public java.lang.String getPath ( ) { return vfs.getPath ( ) ; }
Source:
public void setLine1Number ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { mIccRecords.setMsisdnNumber ( alphaTag , number , onComplete ) ; }

Target:
public void setLine1Number ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { r.setMsisdnNumber ( alphaTag , number , onComplete ) ; } }
Source:
public void run ( ) { mTextView.setKeyListener ( qwertyKeyListener ) ; mTextView.requestFocus ( ) ; }

Target:
public void run ( ) { mTextView.setKeyListener ( android.text.method.DigitsKeyListener.getInstance ( "" ) ) ; mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.setError ( errorText ) ; mTextView.requestFocus ( ) ; }
Source:
private void readAlarmDataset ( java.io.BufferedReader br ) throws java.io.IOException { updateDataSet ( com.android.ddmuilib.SysinfoPanel.BugReportParser.readAlarmDataset ( br ) ) ; }

Target:
private void clearDataSet ( ) { mLabel.setText ( "" ) ; mDataset.clear ( ) ; }
Source:
private void notifyConflictStateChange ( boolean conflict , com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.DvrScheduleManager.OnConflictStateChangeListener l : mOnConflictStateChangeListeners ) { l.onConflictStateChange ( conflict , scheduledRecordings ) ; } }

Target:
private void notifyConflictStateChange ( boolean conflict , com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.DvrScheduleManager.OnConflictStateChangeListener l : mOnConflictStateChangeListeners ) { l.onConflictStateChange ( conflict , scheduledRecordings ) ; } }
Source:
public com.android.jack.dx.rop.cst.CstString getDescriptor ( ) { return descriptor ; }

Target:
public com.android.jack.dx.rop.cst.CstString getDescriptor ( ) { return new com.android.jack.dx.rop.cst.CstString ( com.android.jack.dx.rop.type.Type.ReplaceClosureFromDescriptor ( descriptor.getString ( ) ) ) ; }
Source:
protected void iterate ( ) { com.ibm.icu.impl.ICUService.Factory f = new com.ibm.icu.dev.test.util.ICUServiceThreadTest.TestFactory ( com.ibm.icu.dev.test.util.ICUServiceThreadTest.getCLV ( ) ) ; service.registerFactory ( f ) ; log.logln ( f.toString ( ) ) ; }

Target:
protected void iterate ( ) { com.ibm.icu.impl.ICUService.Factory f = new com.ibm.icu.dev.test.util.ICUServiceThreadTest.TestFactory ( com.ibm.icu.dev.test.util.ICUServiceThreadTest.getCLV ( ) ) ; service.registerFactory ( f ) ; com.ibm.icu.dev.test.TestFmwk.logln ( f.toString ( ) ) ; }
Source:
public void testCrossUserAttempt ( ) { notifyDexLoad ( mBarUser1 , mBarUser0.getSecondaryDexPaths ( ) , mUser1 ) ; org.junit.Assert.assertNull ( getPackageUseInfo ( mBarUser1 ) ) ; }

Target:
public void testCrossUserAttempt ( ) { notifyDexLoad ( mBarUser1 , mBarUser0.getSecondaryDexPaths ( ) , mUser1 ) ; assertNoUseInfo ( mBarUser1 ) ; }
Source:
public void sendOemRilRequestStringsResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < java.lang.String > var2 ) { }

Target:
public void sendOemRilRequestStringsResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < java.lang.String > strings ) { responseStringArrayList ( responseInfo , strings ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback ) { requestNetwork ( request , networkCallback , 0 , inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler ) { int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; requestNetwork ( request , networkCallback , 0 , legacyType , cbHandler ) ; }
Source:
public java.lang.String getName ( ) { return productFlavor.getName ( ) ; }

Target:
public java.lang.String getName ( ) { return productFlavor.getName ( ) . equals ( "defaultConfig" ) ? com.android.builder.core.BuilderConstants.MAIN : productFlavor.getName ( ) ; }
Source:
public static void deleteIfExists ( com.google.gct.intellij.endpoints.util.PsiDirectory parent , java.lang.String dirName ) { final com.google.gct.intellij.endpoints.util.PsiDirectory existingDir = parent.findSubdirectory ( dirName ) ; if ( existingDir != null ) { existingDir.delete ( ) ; } }

Target:
public static void deleteIfExists ( com.google.gct.idea.appengine.util.PsiDirectory parent , java.lang.String dirName ) { final com.google.gct.idea.appengine.util.PsiDirectory existingDir = parent.findSubdirectory ( dirName ) ; if ( existingDir != null ) { existingDir.delete ( ) ; } }
Source:
public void testLibraries ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "bytecode/classpath-lib=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>libs/library.jar" ) ) ; }

Target:
public void testLibraries ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "bytecode/classpath-lib=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>libs/library.jar" ) ) ; }
Source:
public void onAnswer ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onAnswer" ) ; setActive ( ) ; }

Target:
public void onHold ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onHold" ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.HOLD ) ) ; }
Source:
private void updateUsagesOfDefinitions ( @ javax.annotation.Nonnull com.android.jack.analysis.DefinitionMarker oldDefOfaAndNewDefOfb , @ javax.annotation.Nonnull com.android.jack.analysis.DefinitionMarker oldDefOfb ) { oldDefOfaAndNewDefOfb.removeAllUses ( ) ; for ( com.android.jack.ir.ast.JVariableRef useOfOldDefOfb : oldDefOfb.getUses ( ) ) { oldDefOfaAndNewDefOfb.addUse ( useOfOldDefOfb ) ; } }

Target:
private void updateDefUsesAndUseDefsChains ( @ javax.annotation.Nonnull com.android.jack.analysis.DefinitionMarker defToUpdate , @ javax.annotation.Nonnull com.android.jack.analysis.DefinitionMarker defUseByUpdate ) { defToUpdate.removeAllUses ( ) ; for ( com.android.jack.ir.ast.JVariableRef useOfRemoveDef : defUseByUpdate.getUses ( ) ) { defToUpdate.addUse ( useOfRemoveDef ) ; } }
Source:
public void disableSafeMediaVolume ( ) { synchronized ( mSafeMediaVolumeState ) { setSafeMediaVolumeEnabled ( false ) ; if ( ( mPendingVolumeCommand ) != null ) { onSetStreamVolume ( mPendingVolumeCommand.mStreamType , mPendingVolumeCommand.mIndex , mPendingVolumeCommand.mFlags , mPendingVolumeCommand.mDevice ) ; mPendingVolumeCommand = null ; } } }

Target:
public void disableSafeMediaVolume ( ) { enforceSelfOrSystemUI ( "disable the safe media volume" ) ; synchronized ( mSafeMediaVolumeState ) { setSafeMediaVolumeEnabled ( false ) ; if ( ( mPendingVolumeCommand ) != null ) { onSetStreamVolume ( mPendingVolumeCommand.mStreamType , mPendingVolumeCommand.mIndex , mPendingVolumeCommand.mFlags , mPendingVolumeCommand.mDevice ) ; mPendingVolumeCommand = null ; } } }
Source:
static float $opt$CharToFloat ( char a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }

Target:
static float $opt$noinline$CharToFloat ( char a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }
Source:
private boolean getWifiWakeupEnabledSetting ( ) { return ( Settings.Global.getInt ( mContentResolver , Settings.Global.WIFI_WAKEUP_ENABLED , 0 ) ) == 1 ; }

Target:
public void onChange ( boolean selfChange ) { mWifiWakeupEnabled = ( Settings.Global.getInt ( mContentResolver , Settings.Global.WIFI_WAKEUP_ENABLED , 0 ) ) == 1 ; mAirplaneModeEnabled = ( Settings.Global.getInt ( mContentResolver , Settings.Global.AIRPLANE_MODE_ON , 0 ) ) == 1 ; }
Source:
public void callSessionUpdateFailed ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionUpdateFailed ( imsReasonInfo ) ; }

Target:
public void callSessionResumeReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionResumeReceived ( imsCallProfile ) ; }
Source:
public static boolean EqualBoolVsIntConst ( boolean arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg ? 0 : 1 ) != 2 ; }

Target:
public static boolean $noinline$EqualBoolVsIntConst ( boolean arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg ? 0 : 1 ) != 2 ; }
Source:
public static long OrLongInt ( ) { long lhs = Main.$inline$long ( 10L ) ; int rhs = Main.$inline$int ( 3 ) ; return lhs | rhs ; }

Target:
public static long OrIntLong ( ) { int lhs = 10 ; long rhs = 3 ; return lhs | rhs ; }
Source:
public java.util.List < java.lang.String > getCarrierPackageNamesForIntent ( android.content.pm.PackageManager packageManager , android.content.Intent intent ) { return ( mCarrierPrivilegeRules ) == null ? null : mCarrierPrivilegeRules.getCarrierPackageNamesForIntent ( packageManager , intent ) ; }

Target:
private com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules getCarrierPrivilegeRules ( ) { synchronized ( mLock ) { return mCarrierPrivilegeRules ; } }
Source:
public void setup ( ) { put ( "SecureRandom.SecureRandom1" , libcore.java.security.ProviderTest.SecureRandom1.class . getName ( ) ) ; put ( "SecureRandom.SecureRandom2" , libcore.java.security.ProviderTest.SecureRandom2.class . getName ( ) ) ; put ( "SecureRandom.SecureRandom3" , libcore.java.security.ProviderTest.SecureRandom3.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Signature.NEWALG" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Alg.Alias.Signature.OID.1.2.9999.9999.9999" , "NEWALG" ) ; }
Source:
private boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { if ( ! ( node.containsMarker ( com.android.jack.shrob.obfuscation.KeepNameMarker.class ) ) ) { return ( node.addMarkerIfAbsent ( new com.android.jack.shrob.obfuscation.KeepNameMarker ( ) ) ) == null ; } else { return false ; } }

Target:
private boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { if ( ! ( node.containsMarker ( com.android.jack.shrob.obfuscation.KeepNameMarker.class ) ) ) { return ( node.addMarkerIfAbsent ( KeepNameMarker.INSTANCE ) ) == null ; } else { return false ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mGrouping = new android.test.suitebuilder.TestGrouping ( TestGrouping.SORT_BY_SIMPLE_NAME ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mGrouping = new android.test.suitebuilder.TestGrouping ( TestGrouping.SORT_BY_SIMPLE_NAME , getClass ( ) . getClassLoader ( ) ) ; }
Source:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testProject , experimentalMode , ( useExperimentalGradleVersion ? com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_EXP_TEST_VERSION : com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_TEST_VERSION ) , captureStdOut , captureStdErr , sdkDir , ndkDir , heapSize ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testProject , experimentalMode , ( useExperimentalGradleVersion ? com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_EXP_TEST_VERSION : com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_TEST_VERSION ) , captureStdOut , captureStdErr , sdkDir , ndkDir , gradleProperties , heapSize ) ; }
Source:
public native double getDouble$ ( long address ) ;

Target:
public native double getDouble ( long address ) ;
Source:
public synchronized void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onPlaybackStateChanged: state " + ( state.toString ( ) ) ) ) ; updateCurrentMediaState ( false ) ; }

Target:
public synchronized void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onPlaybackStateChanged: state " + ( state.toString ( ) ) ) ) ; scheduleMediaUpdate ( ) ; }
Source:
public void requestIsimAuthentication ( java.lang.String nonce , android.os.Message response ) { }

Target:
public void registerForPhysicalChannelConfiguration ( android.os.Handler h , int what , java.lang.Object obj ) { }
Source:
public void testNPE1 ( ) { dot.junit.opcodes.array_length.d.T_array_length_1 t = new dot.junit.opcodes.array_length.d.T_array_length_1 ( ) ; try { t.run ( null ) ; fail ( "NPE expected" ) ; } catch ( java.lang.NullPointerException npe ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.array_length.d.T_array_length_2" , java.lang.VerifyError.class ) ; }
Source:
public void copyTo ( byte [ ] d ) { validateIsInt8 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d ) ; }

Target:
public void copyTo ( byte [ ] d ) { validateIsInt8 ( ) ; copyTo ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void buildPatchFile ( java.io.File olderDir , java.io.File newerDir , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { doBuildPatchFile ( getFile ( olderDir ) , getFile ( newerDir ) , patchOutput ) ; }

Target:
public void buildPatchFile ( java.io.File toDir , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { doBuildPatchFile ( getFile ( toDir ) , new com.intellij.updater.MultiZipFile.OutputStream ( patchOutput ) ) ; }
Source:
public java.lang.String toString ( ) { return getName ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( mFileName ) != null ) { return getName ( ) ; } else { return ( "InMemoryDexFile[cookie=" + ( java.util.Arrays.toString ( ( ( long [ ] ) ( mCookie ) ) ) ) ) + "]" ; } }
Source:
public void testQuickFix_withUppercaseLetters ( ) { com.google.gct.intellij.endpoints.validation.ApiNameInspection.MyQuickFix localQuickFix = new com.google.gct.intellij.endpoints.validation.ApiNameInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; junit.framework.Assert.assertEquals ( "foo" , localQuickFix.getNameSuggestions ( "Foo" ) ) ; junit.framework.Assert.assertEquals ( "fOO" , localQuickFix.getNameSuggestions ( "FOO" ) ) ; }

Target:
public void testQuickFix_withUppercaseLetters ( ) { com.google.gct.idea.appengine.validation.ApiNameInspection.MyQuickFix localQuickFix = new com.google.gct.idea.appengine.validation.ApiNameInspection ( ) . new com.google.gct.idea.appengine.validation.MyQuickFix ( ) ; junit.framework.Assert.assertEquals ( "foo" , localQuickFix.getNameSuggestions ( "Foo" ) ) ; junit.framework.Assert.assertEquals ( "fOO" , localQuickFix.getNameSuggestions ( "FOO" ) ) ; }
Source:
public void addU64 ( android.support.v8.renderscript.Long3 v ) { mN.addU64 ( new android.support.v8.renderscript.Long3 ( v.x , v.y , v.z ) ) ; }

Target:
public void addU64 ( android.support.v8.renderscript.Long3 v ) { mN.addU64 ( new android.support.v8.renderscript.Long3 ( v.x , v.y , v.z ) ) ; mPos += 24 ; }
Source:
public TestCaseBuilder addCanvasClientWithoutUsingPicture ( java.lang.String debugString , android.uirendering.cts.testinfrastructure.CanvasClient canvasClient ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addCanvasClient ( java.lang.String debugString , android.uirendering.cts.testinfrastructure.CanvasClient canvasClient , boolean useHardware ) { return addCanvasClientInternal ( debugString , canvasClient , useHardware , false ) . addCanvasClientInternal ( debugString , canvasClient , useHardware , true ) ; }
Source:
void timeoutUserSwitch ( com.android.server.am.UserState uss , int oldUserId , int newUserId ) { synchronized ( this ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "User switch timeout: from " + oldUserId ) + " to " ) + newUserId ) ) ; sendContinueUserSwitchLocked ( uss , oldUserId , newUserId ) ; } }

Target:
public void notifyStartingWindowDrawn ( ) { synchronized ( this ) { mStackSupervisor.mActivityMetricsLogger.notifyStartingWindowDrawn ( ) ; } }
Source:
public void registerForSuppServiceNotification ( android.os.Handler h , int what , java.lang.Object obj ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method registerForSuppServiceNotification is NOT supported in CDMA!" ) ; }

Target:
public boolean handleInCallMmiCommands ( java.lang.String dialString ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method handleInCallMmiCommands is NOT supported in CDMA!" ) ; return false ; }
Source:
public void addManifestPlaceHolders ( @ com.android.annotations.NonNull java.util.Map < java.lang.String , java.lang.Object > manifestPlaceholders ) { mManifestPlaceholders.putAll ( manifestPlaceholders ) ; }

Target:
public void addManifestPlaceholders ( @ com.android.annotations.NonNull java.util.Map < java.lang.String , java.lang.Object > manifestPlaceholders ) { mManifestPlaceholders.putAll ( manifestPlaceholders ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { sortPackages ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { sortPackages ( true ) ; expandInitial ( mCategories ) ; }
Source:
protected java.util.Properties createProps ( ) { java.util.Properties props = super . createProps ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , "3.0.1" ) ; return props ; }

Target:
protected java.util.Properties createExpectedProps ( ) { java.util.Properties props = super . createExpectedProps ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , "3.0.1" ) ; return props ; }
Source:
public void checkValidity ( ) { if ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) ) { throw new com.android.jack.ir.InternalCompilerException ( this , "Invalid parent" ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }
Source:
public void showSoftInputFromInputMethod ( android.os.IBinder token , int flags ) { try { mService.showMySoftInput ( token , flags ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void showSoftInputFromInputMethod ( android.os.IBinder token , int flags ) { try { mService.showMySoftInput ( token , flags ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void testAltWithFlags ( ) { boolean isCompiled = false ; try { java.util.regex.Pattern pat = java.util.regex.Pattern.compile ( "|(?i-xi)|()" ) ; isCompiled = true ; } catch ( java.util.regex.PatternSyntaxException e ) { java.lang.System.out.println ( e ) ; } assertTrue ( isCompiled ) ; }

Target:
public void testCommentsInPattern ( ) { java.util.regex.Pattern p = java.util.regex.Pattern.compile ( "ab# this is a comment\ncd" , java.util.regex.Pattern.COMMENTS ) ; assertTrue ( p.matcher ( "abcd" ) . matches ( ) ) ; }
Source:
public com.google.common.collect.Multiset.Entry < E > pollLastEntry ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
int distinctElements ( ) { return elementSet ( ) . size ( ) ; }
Source:
public static android.telephony.mbms.DownloadRequest copy ( android.telephony.mbms.DownloadRequest other ) { return new android.telephony.mbms.DownloadRequest ( other ) ; }

Target:
public static android.telephony.mbms.DownloadRequest.Builder fromDownloadRequest ( android.telephony.mbms.DownloadRequest other ) { android.telephony.mbms.DownloadRequest.Builder result = new android.telephony.mbms.DownloadRequest.Builder ( other.sourceUri , other.destinationUri ) . setServiceId ( other.fileServiceId ) . setSubscriptionId ( other.subscriptionId ) ; result.appIntent = other.serializedResultIntentForApp ; return result ; }
Source:
public void enqueue ( com.google.mockwebserver.MockResponse response ) { responseQueue.add ( response.clone ( ) ) ; }

Target:
public void enqueue ( com.google.mockwebserver.BaseMockResponse < ? > response ) { if ( response instanceof com.google.mockwebserver.MockResponse ) { responseQueue.add ( ( ( com.google.mockwebserver.MockResponse ) ( response ) ) . clone ( ) ) ; } else { responseQueue.add ( response ) ; } }
Source:
private com.android.dialer.lightbringer.Lightbringer getLightbringer ( ) { return com.android.dialer.lightbringer.LightbringerComponent.get ( mActivity ) . getLightbringer ( ) ; }

Target:
private com.android.dialer.duo.Duo getDuo ( ) { return com.android.dialer.duo.DuoComponent.get ( mActivity ) . getDuo ( ) ; }
Source:
public java.lang.String getLabel ( ) { return mKey.toString ( ) ; }

Target:
public java.lang.Integer getKey ( ) { return mKey ; }
Source:
public void onRenderingTargetPostChange ( com.android.sdklib.IAndroidTarget target ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTargetData ( target ) ; updateCapabilities ( targetData ) ; mPalette.reloadPalette ( target ) ; }

Target:
public com.android.ide.common.resources.ResourceRepository getFrameworkResources ( ) { return getFrameworkResources ( getRenderingTarget ( ) ) ; }
Source:
public static int SubNeg2 ( int arg1 , int arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int temp = - arg1 ; return ( temp - arg2 ) | ( temp - arg2 ) ; }

Target:
public static int $noinline$SubNeg2 ( int arg1 , int arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int temp = - arg1 ; return ( temp - arg2 ) | ( temp - arg2 ) ; }
Source:
private static native java.lang.String [ ] getBootClassPathEntries ( ) ;

Target:
private static native java.lang.String getBootClassPathResource ( java.lang.String name , int index ) ;
Source:
static double $opt$ByteToDouble ( byte a ) { return ( ( double ) ( a ) ) ; }

Target:
static float $opt$ByteToFloat ( byte a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }
Source:
private java.lang.String getAppInstructionSet ( android.content.pm.ApplicationInfo info ) { java.lang.String instructionSet = com.android.server.pm.PackageManagerService.getPreferredInstructionSet ( ) ; if ( ( info.requiredCpuAbi ) != null ) { instructionSet = dalvik.system.VMRuntime.getInstructionSet ( info.requiredCpuAbi ) ; } return instructionSet ; }

Target:
private java.lang.String getAppInstructionSet ( android.content.pm.ApplicationInfo info ) { java.lang.String instructionSet = com.android.server.pm.PackageManagerService.getPreferredInstructionSet ( ) ; if ( ( info.cpuAbi ) != null ) { instructionSet = dalvik.system.VMRuntime.getInstructionSet ( info.cpuAbi ) ; } return instructionSet ; }
Source:
public void addProfile ( com.android.bluetooth.btservice.ProfileService profile ) { android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.AdapterService.MESSAGE_PROFILE_SERVICE_REGISTERED , profile ) ; mHandler.sendMessage ( m ) ; }

Target:
public void addProfile ( com.android.bluetooth.btservice.ProfileService profile ) { synchronized ( mProfiles ) { if ( ! ( mProfiles.contains ( profile ) ) ) { mProfiles.add ( profile ) ; } } }
Source:
static void someStaticMethod ( java.lang.Iterable < ? > it ) { it.iterator ( ) ; }

Target:
static void $noinline$someStaticMethod ( java.lang.Iterable < ? > it ) { it.iterator ( ) ; if ( Main.doThrow ) { throw new java.lang.Error ( "" ) ; } }
Source:
public void onHostCardEmulationData ( byte [ ] data ) { mHostEmulationManager.onHostEmulationData ( data ) ; }

Target:
public void onHostCardEmulationData ( int technology , byte [ ] data ) { if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationData ( data ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationData ( data ) ; } }
Source:
public void testMagneticField ( ) throws java.lang.Throwable { sensorTestHelper ( Sensor.TYPE_MAGNETIC_FIELD ) ; }

Target:
public void testMagneticField_fastest ( ) throws java.lang.Throwable { runSensorTest ( Sensor.TYPE_MAGNETIC_FIELD , SensorManager.SENSOR_DELAY_FASTEST , android.hardware.cts.SingleSensorTests.BATCHING_OFF ) ; }
Source:
public void disconnected ( ) { mSrcContext = null ; mSrcHandler = null ; mSrcMessenger = null ; mDstMessenger = null ; mConnection = null ; }

Target:
public void disconnected ( ) { mSrcContext = null ; mSrcHandler = null ; mSrcMessenger = null ; mDstMessenger = null ; mDeathMonitor = null ; mConnection = null ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( mTransportType , mDomain , mRegState , mAccessNetworkTechnology , mReasonForDenial , mEmergencyOnly , mAvailableServices , mCellIdentity ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( mTransportType , mDomain , mRegState , mAccessNetworkTechnology , mReasonForDenial , mEmergencyOnly , mAvailableServices , mCellIdentity , mVoiceSpecificStates , mDataSpecificStates ) ; }
Source:
synchronized void nScriptGroupSetInput ( int group , int kernel , int alloc ) { validate ( ) ; rsnScriptGroupSetInput ( mContext , group , kernel , alloc ) ; }

Target:
synchronized long nScriptIntrinsicCreate ( int id , long eid ) { validate ( ) ; return rsnScriptIntrinsicCreate ( mContext , id , eid ) ; }
Source:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.SpecificKeyTypes2.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , libcore.javax.crypto.MockKey2.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.SpecificKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , libcore.javax.crypto.MockKey.class . getName ( ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { new vogar.target.TestRunner ( new java.util.ArrayList < > ( java.util.Arrays.asList ( args ) ) ) . run ( ) ; java.lang.System.exit ( 0 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { new vogar.target.TestRunner ( vogar.target.TestRunner.loadProperties ( ) , new java.util.ArrayList < > ( java.util.Arrays.asList ( args ) ) ) . run ( ) ; java.lang.System.exit ( 0 ) ; }
Source:
public void reset ( ) { index = 0 ; resetLimitCounter ( ) ; resetCounter ( ) ; }

Target:
public void reset ( ) { index = 0 ; resetLimitCounter ( ) ; resetCounter ( ) ; generateKeyStream ( keyStream ) ; }
Source:
public void wakingUp ( ) { this . wakingUp ( ) ; }

Target:
public void onWakefulnessChanged ( int wakefulness ) { this . onWakefulnessChanged ( wakefulness ) ; }
Source:
public boolean hasResourcesOfType ( @ com.android.annotations.NonNull com.android.resources.ResourceType type ) { return ( mPublicResourceMap.get ( type ) . size ( ) ) > 0 ; }

Target:
public boolean hasResourcesOfType ( @ com.android.annotations.NonNull com.android.resources.ResourceType type ) { return ! ( mPublicResourceMap.get ( type ) . isEmpty ( ) ) ; }
Source:
public void onCurrentPositionChanged ( ) { if ( ( mTimeShiftManager.isAvailable ( ) ) && ( isShown ( ) ) ) { initializeTimeline ( ) ; updateControls ( ) ; } }

Target:
public void onRecordTimeRangeChanged ( ) { if ( mTimeShiftManager.isAvailable ( ) ) { updateControls ( false ) ; } }
Source:
public static long XorIntLong ( ) { int lhs = Main.$inline$int ( 10 ) ; long rhs = Main.$inline$long ( 3L ) ; return lhs ^ rhs ; }

Target:
public static long XorLongInt ( ) { long lhs = 10 ; int rhs = 3 ; return lhs ^ rhs ; }
Source:
public com.android.ims.internal.IImsCallSession createCallSessionInterface ( android.telephony.ims.ImsCallProfile profile ) throws android.os.RemoteException { return mCompatFeature.createCallSession ( mSessionId , profile ) ; }

Target:
public void disableIms ( ) throws android.os.RemoteException { mCompatFeature.turnOffIms ( ) ; }
Source:
com.android.jack.ir.ast.JAbstractMethodBody loadBody ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException ;

Target:
com.android.jack.ir.ast.JAbstractMethodBody loadBody ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceMethodLoader loader ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException ;
Source:
public static java.lang.RuntimeException wrap ( java.io.IOException e ) { throw new java.lang.IllegalStateException ( ( ( android.util.ExceptionUtils.PREFIX_IO ) + ( e.getMessage ( ) ) ) ) ; }

Target:
public static java.lang.RuntimeException wrap ( java.io.IOException e ) { throw new android.os.ParcelableException ( e ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mDeviceStateMonitor = null ; mDeviceStateMonitorTestHandler.quitSafely ( ) ; super . tearDown ( ) ; }
Source:
public java.lang.String getSubscriberId ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getIMSI ( ) : "" ; }

Target:
public java.lang.String getSubscriberId ( ) { return ( mSimRecords ) != null ? mSimRecords.getIMSI ( ) : "" ; }
Source:
public synchronized void destroy ( ) { if ( mDestroyed ) { throw new android.renderscript.RSInvalidStateException ( "Object already destroyed." ) ; } mDestroyed = true ; mRS.nObjDestroy ( mID ) ; }

Target:
protected void finalize ( ) throws java.lang.Throwable { helpDestroy ( ) ; super . finalize ( ) ; }
Source:
public static native void SSL_CTX_free ( int ssl_ctx ) ;

Target:
public static native long PEM_read_bio_X509_CRL ( long bioCtx ) ;
Source:
public com.google.common.collect.Multiset.Entry < E > firstEntry ( ) { return forwardMultiset ( ) . lastEntry ( ) ; }

Target:
public E pollFirst ( ) { return com.google.common.collect.SortedMultisets.getElementOrNull ( multiset ( ) . pollFirstEntry ( ) ) ; }
Source:
private java.util.concurrent.Future < java.lang.Void > expectPolicyDataEnable ( int type , boolean enabled ) throws java.lang.Exception { return null ; }

Target:
private java.util.concurrent.Future < java.lang.Void > verifyPolicyDataEnable ( int type , boolean enabled ) throws java.lang.Exception { return null ; }
Source:
protected java.lang.String formatValue ( @ javax.annotation.Nonnull com.android.sched.util.file.StreamFile stream ) { if ( stream.isStandard ( ) ) { return com.android.sched.util.codec.StreamCodec.STANDARD_IO_NAME ; } else { return stream.getPath ( ) ; } }

Target:
protected java.lang.String formatValue ( @ javax.annotation.Nonnull com.android.sched.util.file.AbstractStreamFile stream ) { if ( stream.isStandard ( ) ) { return com.android.sched.util.codec.StreamCodec.STANDARD_IO_NAME ; } else { return stream.getPath ( ) ; } }
Source:
public void testConstructor_NullKeystoreAlias_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when keystoreAlias is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullEndDate_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , null , 0 ) ; fail ( "Should throw IllegalArgumentException when keystoreAlias is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
private void sendBluetoothCancelIntentAndUpdateState ( ) { android.content.Intent cancelIntent = new android.content.Intent ( com.android.nfc.beam.BeamTransferManager.ACTION_STOP_BLUETOOTH_TRANSFER ) ; cancelIntent.putExtra ( BeamStatusReceiver.EXTRA_TRANSFER_ID , mBluetoothTransferId ) ; mContext.sendBroadcast ( cancelIntent ) ; updateStateAndNotification ( com.android.nfc.beam.BeamTransferManager.STATE_CANCELLED ) ; }

Target:
private void sendBluetoothCancelIntentAndUpdateState ( ) { android.content.Intent cancelIntent = new android.content.Intent ( com.android.nfc.beam.BeamTransferManager.ACTION_STOP_BLUETOOTH_TRANSFER ) ; cancelIntent.setPackage ( com.android.nfc.beam.BeamTransferManager.BLUETOOTH_PACKAGE ) ; cancelIntent.putExtra ( BeamStatusReceiver.EXTRA_TRANSFER_ID , mBluetoothTransferId ) ; mContext.sendBroadcast ( cancelIntent ) ; updateStateAndNotification ( com.android.nfc.beam.BeamTransferManager.STATE_CANCELLED ) ; }
Source:
public void testTlvItInvalidSizeT1L3 ( ) { final byte [ ] dummy = new byte [ ] { 0 , 1 , 2 } ; final int dummyLength = 3 ; android.net.wifi.nan.TlvBufferUtils.TlvIterable tlvIt10 = new android.net.wifi.nan.TlvBufferUtils.TlvIterable ( 1 , 3 , dummy ) ; }

Target:
public void testTlvItInvalidSizeT1L3 ( ) { final byte [ ] dummy = new byte [ ] { 0 , 1 , 2 } ; final int dummyLength = 3 ; android.net.wifi.aware.TlvBufferUtils.TlvIterable tlvIt10 = new android.net.wifi.aware.TlvBufferUtils.TlvIterable ( 1 , 3 , dummy ) ; }
Source:
native void rsnScriptInvokeV ( long con , long id , int slot , byte [ ] params ) ;

Target:
native long rsnScriptFieldIDCreate ( long con , long sid , int slot , boolean mUseInc ) ;
Source:
private static < T > T checkNonNullArgument ( T arg , java.lang.String format , java.lang.Object ... messageParams ) { com.google.common.base.Preconditions.checkArgument ( ( arg != null ) , format , messageParams ) ; return arg ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.google.common.reflect.TypeResolver.TypeVariableKey ) { com.google.common.reflect.TypeResolver.TypeVariableKey that = ( ( com.google.common.reflect.TypeResolver.TypeVariableKey ) ( obj ) ) ; return equalsTypeVariable ( that.var ) ; } else { return false ; } }
Source:
public boolean hasBranch ( ) { return ( ( bitField0_ ) & 2 ) == 2 ; }

Target:
public boolean hasResultPath ( ) { return ( ( bitField0_ ) & 2 ) == 2 ; }
Source:
public byte get ( long index ) { long page = index / ( myPageSize ) ; int offset = ( ( int ) ( index % ( myPageSize ) ) ) ; return getBuffer ( page , false ) . get ( offset ) ; }

Target:
public byte get ( long index ) { long page = index / ( myPageSize ) ; int offset = ( ( int ) ( index % ( myPageSize ) ) ) ; return getReadOnlyBuffer ( page ) . get ( offset ) ; }
Source:
private static boolean checkHardwareTypeSkipTest ( java.lang.String hardwareTypeString ) { return ( hardwareTypeString.contains ( "android.hardware.type.watch" ) ) || ( hardwareTypeString.contains ( "android.hardware.type.television" ) ) ; }

Target:
private static boolean checkHardwareTypeSkipTest ( java.lang.String hardwareTypeString ) { return ( ( hardwareTypeString.contains ( "android.hardware.type.watch" ) ) || ( hardwareTypeString.contains ( "android.hardware.type.television" ) ) ) || ( android.theme.cts.ThemeHostTest.mVrHeadset ) ; }
Source:
public void onCallAudioStateChanged ( android.telecom.CallAudioState audioState ) { android.util.Log.i ( android.telecom.cts.TAG , ( "onCallAudioStateChanged, audioState: " + audioState ) ) ; mOnCallAudioStateChangedCounter.invoke ( audioState ) ; }

Target:
public void onCallAudioStateChanged ( android.telecom.CallAudioState audioState ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , ( "onCallAudioStateChanged, audioState: " + audioState ) ) ; mOnCallAudioStateChangedCounter.invoke ( audioState ) ; }
Source:
public int run ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.Nonnull java.lang.String [ ] mainClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) throws com.android.jack.test.runner.RuntimeRunnerException { return runOnDevice ( options , mainClasses , classpathFiles ) ; }

Target:
public int runJUnit ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.Nonnull java.lang.String jUnitRunnerName , @ javax.annotation.Nonnull java.lang.String [ ] jUnitTestClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) throws com.android.jack.test.runner.RuntimeRunnerException { return runJunitOnDevice ( options , jUnitRunnerName , jUnitTestClasses , classpathFiles ) ; }
Source:
public void test_F32_4_SCALE10_10_inRectangle ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.FLOAT_32 , 4 , 1.0F , 1.0F ) ; checkError ( ) ; }

Target:
public void test_F32_4_SCALE10_10_inRectangle ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.FLOAT_32 , 4 , 1.0F , 1.0F ) ; checkError ( ) ; }
Source:
public void testHandleBom ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "res/values-de/strings.xml" ) ) ; }

Target:
public void testHandleBom ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "res/values-de/strings.xml=>res/values/strings.xml" ) ) ; }
Source:
boolean isDeviceProvisioned ( ) { return ( Settings.Secure.getInt ( mContext.getContentResolver ( ) , Settings.Secure.DEVICE_PROVISIONED , 0 ) ) != 0 ; }

Target:
boolean isDeviceProvisioned ( ) { if ( ! ( android.os.SystemProperties.getBoolean ( "ro.requires_provisioning" , false ) ) ) { return true ; } return ( Settings.Secure.getInt ( mContext.getContentResolver ( ) , Settings.Secure.DEVICE_PROVISIONED , 0 ) ) != 0 ; }