auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static final java.lang.String getBluetoothInputDevicePriorityKey ( java.lang.String address ) { return ( android.provider.Settings.Global.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX ) + ( address.toUpperCase ( ) ) ; }

Target:
public static final java.lang.String getBluetoothInputDevicePriorityKey ( java.lang.String address ) { return ( android.provider.Settings.Global.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX ) + ( address.toUpperCase ( java.util.Locale.ROOT ) ) ; }
Source:
public android.security.KeyStoreParameter build ( ) { return new android.security.KeyStoreParameter ( mFlags ) ; }

Target:
public android.security.KeyStoreParameter build ( ) { return new android.security.KeyStoreParameter ( mFlags , mKeyValidityStart , mKeyValidityForOriginationEnd , mKeyValidityForConsumptionEnd , mPurposes , mAlgorithm , mPadding , mDigest , mBlockMode , mMinSecondsBetweenOperations , mMaxUsesPerBoot , mUserAuthenticators , mUserAuthenticationValidityDurationSeconds ) ; }
Source:
public java.lang.String getRules ( ) { return tailoring.rules ; }

Target:
public java.lang.String getRules ( ) { return tailoring.getRules ( ) ; }
Source:
synchronized void nScriptGroupExecute ( int group ) { validate ( ) ; rsnScriptGroupExecute ( mContext , group ) ; }

Target:
synchronized void nScriptSetVarObj ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarObj ( mContext , id , slot , val ) ; }
Source:
static float $opt$ShortToFloat ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }

Target:
static float $opt$noinline$ShortToFloat ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }
Source:
private com.android.utils.Pair < com.android.sdklib.repository.descriptors.IdDisplay , java.lang.String > getSelectedTagAbi ( ) { com.android.sdklib.ISystemImage selected = getSelectedSysImg ( ) ; if ( selected != null ) { return com.android.utils.Pair.of ( selected.getTag ( ) , selected.getAbiType ( ) ) ; } return null ; }

Target:
public com.android.sdklib.internal.avd.AvdInfo getCreatedAvd ( ) { return getPresenter ( ) . getCreatedAvd ( ) ; }
Source:
public void setCallWaiting ( boolean enable , android.os.Message onComplete ) { mCM.setCallWaiting ( enable , CommandsInterface.SERVICE_CLASS_VOICE , onComplete ) ; }

Target:
public void setCallWaiting ( boolean enable , android.os.Message onComplete ) { mCi.setCallWaiting ( enable , CommandsInterface.SERVICE_CLASS_VOICE , onComplete ) ; }
Source:
public void referenceProductionCode ( ) { com.android.tests.Foo foo = new com.android.tests.Foo ( ) ; }

Target:
public void referenceProductionCode ( ) { com.android.tests.Foo foo = new com.android.tests.Foo ( ) ; assertEquals ( "production code" , foo.foo ( ) ) ; }
Source:
com.android.dialer.CallTypes callTypes ( ) { try { return com.android.dialer.CallTypes.parseFrom ( cursor.getBlob ( com.android.dialer.calllog.ui.CoalescedAnnotatedCallLogCursorLoader.CALL_TYPES ) ) ; } catch ( com.google.protobuf.InvalidProtocolBufferException e ) { throw com.android.dialer.common.Assert.createAssertionFailException ( "Couldn't parse call types" , e ) ; } }

Target:
int callType ( ) { return cursor.getInt ( com.android.dialer.calllog.ui.CoalescedAnnotatedCallLogCursorLoader.TYPE ) ; }
Source:
public int telephonyGetSubscriptionCarrierId ( ) { return mTelephonyManager.getSubscriptionCarrierId ( ) ; }

Target:
public void telephonySetSimStateForSlotId ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "slotId" ) java.lang.Integer slotId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "state" ) java.lang.Integer state ) { mTelephonyManager.setSimPowerStateForSlot ( slotId , state ) ; }
Source:
protected void cleanup ( ) { if ( com.android.bluetooth.mapclient.MapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MapClientService.TAG , "in Cleanup" ) ; } removeUncleanAccounts ( ) ; com.android.bluetooth.mapclient.MapClientService.clearMapClientService ( ) ; }

Target:
protected void cleanup ( ) { if ( com.android.bluetooth.mapclient.MapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MapClientService.TAG , "in Cleanup" ) ; } removeUncleanAccounts ( ) ; com.android.bluetooth.mapclient.MapClientService.setMapClientService ( null ) ; }
Source:
public java.lang.String getToolchainDirectory ( com.android.build.gradle.internal.core.Abi abi ) { return getToolchainDirectory ( toolchain , toolchainVersion , abi ) ; }

Target:
private static java.lang.String getToolchainPrefix ( com.android.build.gradle.internal.core.Toolchain toolchain , com.android.build.gradle.internal.core.Abi abi ) { if ( toolchain == ( com.android.build.gradle.internal.core.Toolchain.GCC ) ) { return abi.getGccToolchainPrefix ( ) ; } else { return "llvm" ; } }
Source:
public com.android.ims.ImsCallProfile createCallProfile ( int sessionId , int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . createCallProfile ( mSlotId , mSupportedFeature , sessionId , callServiceType , callType ) ; } }

Target:
public com.android.ims.ImsCallProfile createCallProfile ( int sessionId , int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . createCallProfile ( mSlotId , mSupportedFeature , sessionId , callServiceType , callType ) ; } }
Source:
public boolean isDocumented ( ) { return ( optionUsageRestrictions ( ) ) == ( com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.DOCUMENTED ) ; }

Target:
public boolean isHidden ( ) { com.google.common.collect.ImmutableList < com.google.devtools.common.options.proto.OptionFilters.OptionMetadataTag > tags = metadataTags ( ) ; return ( tags.contains ( OptionMetadataTag.HIDDEN ) ) || ( tags.contains ( OptionMetadataTag.INTERNAL ) ) ; }
Source:
native void rsnAllocationRead ( long con , long id , short [ ] d ) ;

Target:
native void rsnScriptForEach ( long con , long incCon , long id , int slot , long ain , long aout , boolean mUseInc ) ;
Source:
public static void main ( java.lang.String [ ] args ) { new android.icu.dev.test.format.MeasureUnitTest ( ) . run ( args ) ; }

Target:
public void run ( ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.Set < java.lang.String > measureUnitTypes = android.icu.util.MeasureUnit.getAvailableTypes ( ) ; }
Source:
public void requestScores ( android.net.NetworkKey [ ] networks ) throws android.os.RemoteException { if ( ( networks != null ) && ( ( networks.length ) > 0 ) ) { mHandler.obtainMessage ( android.net.NetworkRecommendationProvider.ServiceHandler.MSG_REQUEST_SCORES , networks ) . sendToTarget ( ) ; } }

Target:
public void run ( ) { onRequestScores ( networks ) ; }
Source:
public int generate ( java.lang.String name , int uid , int flags ) throws android.os.RemoteException ;

Target:
public int generate ( java.lang.String name , int uid , int keyType , int keySize , int flags , byte [ ] [ ] args ) throws android.os.RemoteException ;
Source:
public com.android.dx.io.EncodedValue readEncodedValue ( ) { int start = position ; new com.android.dx.io.EncodedValueReader ( this ) . readValue ( ) ; int end = position ; return new com.android.dx.io.EncodedValue ( java.util.Arrays.copyOfRange ( data , start , end ) ) ; }

Target:
public com.android.dx.io.EncodedValue readEncodedValue ( ) { int start = position ; new com.android.dx.io.EncodedValueReader ( this ) . skipValue ( ) ; int end = position ; return new com.android.dx.io.EncodedValue ( java.util.Arrays.copyOfRange ( data , start , end ) ) ; }
Source:
private dexfuzz.ExecutionResult pushToDevice ( java.lang.String command ) { return executeCommand ( ( ( device.getExecutionPushPrefix ( ) ) + command ) , false ) ; }

Target:
public void prepareProgramForExecution ( java.lang.String programName ) { if ( ! ( dexfuzz.Options.executeOnHost ) ) { device.pushProgramToDevice ( programName , testLocation ) ; } if ( needsCleanCodeCache ) { device.cleanCodeCache ( architecture , testLocation , programName ) ; } }
Source:
java.lang.String getOsLocation ( ) ;

Target:
java.io.OutputStream getOutputStream ( ) throws com.android.sdklib.io.StreamException ;
Source:
public void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mCarrierSignalAgentHandler.quit ( ) ; super . tearDown ( ) ; }
Source:
public void testDefaultConfiguration ( ) { javax.net.ssl.SSLServerSocketFactory socketFactory = ( ( javax.net.ssl.SSLServerSocketFactory ) ( javax.net.ssl.SSLServerSocketFactory.getDefault ( ) ) ) ; libcore.java.security.StandardNames.assertDefaultCipherSuites ( socketFactory.getDefaultCipherSuites ( ) ) ; libcore.java.security.StandardNames.assertSupportedCipherSuites ( socketFactory.getSupportedCipherSuites ( ) ) ; }

Target:
public void testDefaultConfiguration ( ) throws java.lang.Exception { libcore.javax.net.ssl.SSLDefaultConfigurationAsserts.assertSSLServerSocketFactory ( ( ( javax.net.ssl.SSLServerSocketFactory ) ( javax.net.ssl.SSLServerSocketFactory.getDefault ( ) ) ) ) ; }
Source:
public boolean isInterface ( ) { return ( ( myModifiers ) & ( org.jetbrains.asm4.Opcodes.ACC_INTERFACE ) ) > 0 ; }

Target:
public boolean isInterface ( ) { return ( ( myModifiers ) & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_INTERFACE ) ) > 0 ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "App" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textContains ( "App" ) ) . exists ( ) ; }
Source:
public com.android.internal.telephony.dataconnection.DataConnection getActiveDcByCid ( int cid ) { return mDcListActiveByCid.get ( cid ) ; }

Target:
public com.android.internal.telephony.dataconnection.DataConnection getActiveDcByCid ( int cid ) { synchronized ( mDcListAll ) { return mDcListActiveByCid.get ( cid ) ; } }
Source:
public void prepare ( ) { prepare ( null , null , null , null ) ; }

Target:
public void prepare ( ) { prepare ( java.util.Collections.< com.android.jack.dx.rop.cst.CstString > emptyList ( ) , java.util.Collections.< com.android.jack.dx.rop.cst.CstFieldRef > emptyList ( ) , java.util.Collections.< com.android.jack.dx.rop.cst.CstMethodRef > emptyList ( ) , java.util.Collections.< com.android.jack.dx.rop.cst.CstType > emptyList ( ) ) ; }
Source:
private void assertVerified ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( apkFilenameInResources , minSdkVersionOverride ) ) ; }

Target:
private ApkVerifier.Result verifyForMinSdkVersion ( java.lang.String apkFilenameInResources , int minSdkVersion ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { return verify ( apkFilenameInResources , minSdkVersion , null ) ; }
Source:
public void start ( ) { mBrowsePlayerInfoList.clear ( ) ; mPlayersChanged = false ; android.content.Intent intent = new android.content.Intent ( android.service.media.MediaBrowserService.SERVICE_INTERFACE ) ; mWaiting = mPackageManager.queryIntentServices ( intent , PackageManager.MATCH_ALL ) ; connectNextPlayer ( ) ; }

Target:
public void start ( ) { mBrowsePlayerInfoList.clear ( ) ; cleanup ( ) ; android.content.Intent intent = new android.content.Intent ( android.service.media.MediaBrowserService.SERVICE_INTERFACE ) ; mWaiting = mPackageManager.queryIntentServices ( intent , PackageManager.MATCH_ALL ) ; connectNextPlayer ( ) ; }
Source:
public static int $noinline$intToDoubleToInt ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( double ) ( value ) ) ) ; }

Target:
public static long $noinline$intShr28And15L ( int value ) { return ( value > > 28 ) & 15L ; }
Source:
public final void appendEncoded ( java.lang.StringBuilder builder , java.lang.String s ) { appendEncoded ( builder , s , Charsets.UTF_8 , false ) ; }

Target:
public final void appendEncoded ( java.lang.StringBuilder builder , java.lang.String s ) { appendEncoded ( builder , s , java.nio.charset.StandardCharsets.UTF_8 , false ) ; }
Source:
public void setCallState ( com.android.incallui.incall.protocol.PrimaryCallState primaryCallState ) { this . primaryCallState = primaryCallState ; updatePrimaryNameAndPhoto ( ) ; updateBottomRow ( ) ; updateTopRow ( ) ; }

Target:
public void setCallState ( com.android.incallui.incall.protocol.PrimaryCallState primaryCallState ) { this . primaryCallState = primaryCallState ; updatePrimaryNameAndPhoto ( ) ; updateBottomRow ( ) ; updateTopRow ( ) ; updateDeviceNumberRow ( ) ; }
Source:
public android.net.wifi.nan.LvBufferUtils.LvConstructor putString ( @ android.annotation.Nullable java.lang.String data ) { mTlvImpl.putString ( 0 , data ) ; return this ; }

Target:
public android.net.wifi.aware.LvBufferUtils.LvConstructor putString ( @ android.annotation.Nullable java.lang.String data ) { mTlvImpl.putString ( 0 , data ) ; return this ; }
Source:
public com.android.dx.merge.TypeList readTypeList ( int offset ) { if ( offset == 0 ) { return com.android.dx.merge.TypeList.EMPTY ; } return open ( offset ) . readTypeList ( ) ; }

Target:
public com.android.dex.TypeList readTypeList ( int offset ) { if ( offset == 0 ) { return TypeList.EMPTY ; } return open ( offset ) . readTypeList ( ) ; }
Source:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } return c.annotations ; }

Target:
public java.util.Collection < com.intellij.psi.PsiAnnotation > getAnnotations ( @ com.android.annotations.NonNull org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding cls ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } return c.psiAnnotations ; }
Source:
public boolean getDataEnabled ( ) { return getDataEnabled ( getSubId ( ) ) ; }

Target:
public boolean getDataEnabled ( ) { return isDataEnabled ( ) ; }
Source:
public java.lang.String getDisplayString ( ) { return "Explain Issue" ; }

Target:
public java.lang.String getDisplayString ( ) { return java.lang.String.format ( "Explain Issue (%1$s)" , mId ) ; }
Source:
public native void setBoolean ( java.lang.Object object , boolean value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public native void setBoolean ( java.lang.Object obj , boolean z ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
public void testNoDpiMix ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/frame.xml: Warning: The following images appear in both -nodpi and in a density folder: frame.png, frame.xml [IconNoDpi]\n" + ( ( ( " res/drawable-mdpi/frame.png: <No location-specific message\n" + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable/states.xml=>res/drawable-nodpi/frame.xml" ) ) ; }

Target:
public void testNoDpiMix ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/frame.xml: Warning: The following images appear in both -nodpi and in a density folder: frame.png, frame.xml [IconNoDpi]\n" + ( ( ( ( " res/drawable-mdpi/frame.png: <No location-specific message\n" + "res/drawable-nodpi/frame.xml: Warning: The following images appear both as density independent .xml files and as bitmap files: res/drawable-mdpi/frame.png, res/drawable-nodpi/frame.xml [IconXmlAndPng]\n" ) + " res/drawable-mdpi/frame.png: <No location-specific message\n" ) + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable/states.xml=>res/drawable-nodpi/frame.xml" ) ) ; }
Source:
public void simSmsStorageFull ( int var1 ) { }

Target:
public void simSmsStorageFull ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SIM_SMS_STORAGE_FULL ) ; if ( ( mRil.mIccSmsFullRegistrant ) != null ) { mRil.mIccSmsFullRegistrant.notifyRegistrant ( ) ; } }
Source:
public void restat ( java.lang.String path ) { native_restat ( path ) ; }

Target:
private static libcore.io.StructStatFs doStat ( java.lang.String path ) { try { return Libcore.os.statfs ( path ) ; } catch ( libcore.io.ErrnoException e ) { throw new java.lang.IllegalArgumentException ( ( "Invalid path: " + path ) , e ) ; } }
Source:
public void engineInit ( javax.net.ssl.KeyManager [ ] kms , javax.net.ssl.TrustManager [ ] tms , java.security.SecureRandom sr ) throws java.security.KeyManagementException { sslParameters = new org.conscrypt.SSLParametersImpl ( kms , tms , sr , clientSessionContext , serverSessionContext ) ; }

Target:
public void engineInit ( javax.net.ssl.KeyManager [ ] kms , javax.net.ssl.TrustManager [ ] tms , java.security.SecureRandom sr ) throws java.security.KeyManagementException { sslParameters = new org.conscrypt.SSLParametersImpl ( kms , tms , sr , clientSessionContext , serverSessionContext , algorithms ) ; }
Source:
public void loadViewHierarchy ( ) { com.android.hierarchyviewerlib.device.Window window = com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . getSelectedWindow ( ) ; if ( window != null ) { loadViewTreeData ( window ) ; } }

Target:
public void inspectScreenshot ( ) { com.android.hierarchyviewerlib.device.IHvDevice device = com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . getSelectedDevice ( ) ; if ( device != null ) { loadPixelPerfectData ( device ) ; } }
Source:
native void rsnAllocationData1D ( int con , int id , int off , int mip , int count , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationElementData1D ( long con , long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) ;
Source:
int doPreCopy ( ) { if ( isFwdLocked ( ) ) { if ( ! ( com.android.internal.content.PackageHelper.fixSdPermissions ( cid , getPackageUid ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_PACKAGE , 0 ) , com.android.server.pm.PackageManagerService.AsecInstallArgs.RES_FILE_NAME ) ) ) { return android.content.pm.PackageManager.INSTALL_FAILED_CONTAINER_ERROR ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }

Target:
int doPreCopy ( ) { if ( isFwdLocked ( ) ) { if ( ! ( com.android.internal.content.PackageHelper.fixSdPermissions ( cid , getPackageUid ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_PACKAGE , android.content.pm.PackageManager.MATCH_SYSTEM_ONLY , UserHandle.USER_SYSTEM ) , com.android.server.pm.PackageManagerService.AsecInstallArgs.RES_FILE_NAME ) ) ) { return android.content.pm.PackageManager.INSTALL_FAILED_CONTAINER_ERROR ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }
Source:
public void await ( java.util.concurrent.CountDownLatch latch ) { try { assertTrue ( latch.await ( jsr166.JSR166TestCase.LONG_DELAY_MS , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; } }

Target:
public void await ( java.util.concurrent.Semaphore semaphore ) { try { assertTrue ( semaphore.tryAcquire ( jsr166.JSR166TestCase.LONG_DELAY_MS , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; } }
Source:
public void test_F32_4_SCALE05_20_inSqure ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 4 , 0.5F , 2.0F ) ; checkError ( ) ; }

Target:
public void test_F32_4_SCALE05_20_inSqure ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 4 , 0.5F , 2.0F ) ; checkError ( ) ; }
Source:
protected synchronized void close ( ) throws java.io.IOException { guard.close ( ) ; libcore.io.IoBridge.closeSocket ( fd ) ; }

Target:
protected synchronized void close ( ) throws java.io.IOException { guard.close ( ) ; libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mHasLauncherApps = ( getDevice ( ) . getApiLevel ( ) ) >= 21 ; if ( mHasLauncherApps ) { installTestApps ( ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mHasLauncherApps = ( getDevice ( ) . getApiLevel ( ) ) >= 21 ; if ( mHasLauncherApps ) { installTestApps ( ) ; } mHasLiveTvFeature = hasDeviceFeature ( com.android.cts.devicepolicy.LauncherAppsSingleUserTest.FEATURE_LIVE_TV ) ; }
Source:
synchronized void nScriptSetVarI ( int id , int slot , int val ) { validate ( ) ; rsnScriptSetVarI ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }
Source:
public com.android.ims.ImsCallForwardInfo createFromParcel ( android.os.Parcel in ) { return new com.android.ims.ImsCallForwardInfo ( in ) ; }

Target:
public android.telephony.ims.ImsCallForwardInfo createFromParcel ( android.os.Parcel in ) { return new android.telephony.ims.ImsCallForwardInfo ( in ) ; }
Source:
public void supplyPuk2 ( java.lang.String puk2 , java.lang.String newPin2 , android.os.Message onComplete ) { mPhone.mCM.supplyIccPuk2 ( puk2 , newPin2 , mHandler.obtainMessage ( com.android.internal.telephony.IccCard.EVENT_PINPUK_DONE , onComplete ) ) ; }

Target:
public void supplyPuk ( java.lang.String puk , java.lang.String newPin , android.os.Message onComplete ) { mPhone.mCM.supplyIccPuk ( puk , newPin , onComplete ) ; }
Source:
public java.lang.String getLine1AlphaTag ( ) { return getLine1AlphaTagForSubscriber ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public int getLteOnCdmaMode ( ) { return getLteOnCdmaMode ( getSubId ( ) ) ; }
Source:
public void TestPropertySet ( ) { expect ( "a>A; \\p{Lu}>x; \\p{Any}>y;" , "abcDEF" , "Ayyxxx" ) ; expect ( "(.+)>'[' $1 ']';" , " a stitch \n in time \r saves 9" , "[ a stitch ]\n[ in time ]\r[ saves 9]" ) ; }

Target:
public void TestPropertySet ( ) { android.icu.dev.test.translit.TransliteratorTest.expect ( "a>A; \\p{Lu}>x; \\p{Any}>y;" , "abcDEF" , "Ayyxxx" ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( "(.+)>'[' $1 ']';" , " a stitch \n in time \r saves 9" , "[ a stitch ]\n[ in time ]\r[ saves 9]" ) ; }
Source:
public com.android.apksig.ApkSigner build ( ) { return new com.android.apksig.ApkSigner ( mSignerConfigs , mMinSdkVersion , mV1SigningEnabled , mV2SigningEnabled , mOtherSignersSignaturesPreserved , mCreatedBy , mSignerEngine , mInputApkFile , mInputApkDataSource , mOutputApkFile , mOutputApkDataSink , mOutputApkDataSource ) ; }

Target:
public com.android.apksig.ApkSigner build ( ) { return new com.android.apksig.ApkSigner ( mSignerConfigs , mMinSdkVersion , mV1SigningEnabled , mV2SigningEnabled , mDebuggableApkPermitted , mOtherSignersSignaturesPreserved , mCreatedBy , mSignerEngine , mInputApkFile , mInputApkDataSource , mOutputApkFile , mOutputApkDataSink , mOutputApkDataSource ) ; }
Source:
public void setEcjArguments ( @ javax.annotation.Nonnull java.util.List < java.lang.String > ecjArguments ) { this . ecjArguments = ecjArguments ; }

Target:
public void setResourceDirs ( @ javax.annotation.Nonnull java.util.List < java.io.File > resourceDirs ) { resImport = resourceDirs ; }
Source:
public void testWildcardMatchingEmptySubstring ( ) { assertTrue ( verifier.verifyHostName ( "imap.google.com" , "imap*.google.com" ) ) ; }

Target:
public void testWildcardMatchingEmptySubstring ( ) { assertTrue ( verifyWithDomainNamePattern ( "imap.google.com" , "imap*.google.com" ) ) ; }
Source:
public boolean hasTimeZone ( java.lang.String id ) throws java.io.IOException { return ( cache.get ( id ) ) != null ; }

Target:
public boolean hasTimeZone ( java.lang.String id ) throws java.io.IOException { checkNotClosed ( ) ; return ( cache.get ( id ) ) != null ; }
Source:
protected void checkResponseCode ( int responseCode ) throws java.io.IOException { android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequest.TAG , "checkResponseCode" ) ; }

Target:
protected void checkResponseCode ( int responseCode ) throws java.io.IOException { if ( com.android.bluetooth.pbapclient.BluetoothPbapRequest.DBG ) android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequest.TAG , "checkResponseCode" ) ; }
Source:
void onSaveInstanceState ( android.os.Bundle outState ) { outState.putInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION , currentActionIndex ) ; outState.putParcelable ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.EXTRA_CALL_INTENT_BUILDER , builder ) ; }

Target:
void onSaveInstanceState ( android.os.Bundle outState ) { outState.putInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION , currentActionIndex ) ; outState.putParcelable ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER , builder ) ; }
Source:
public Response.ErrorListener getErrorListener ( ) { return mErrorListener ; }

Target:
public Response.ErrorListener getErrorListener ( ) { synchronized ( mLock ) { return mErrorListener ; } }
Source:
public static native double hypot ( double x , double y ) ;

Target:
public static native double atan2 ( double y , double x ) ;
Source:
public long getPolicyWarningBytes ( android.net.NetworkTemplate template ) { return getPolicy ( template ) . warningBytes ; }

Target:
public int getPolicyCycleDay ( android.net.NetworkTemplate template ) { final android.net.NetworkPolicy policy = getPolicy ( template ) ; return policy != null ? policy.cycleDay : - 1 ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "UidTraffic{" + "mAppUid=" ) + ( mAppUid ) ) + ", mRxBytes=" ) + ( mRxBytes ) ) + ", mTxBytes=" ) + ( mTxBytes ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( "UidTraffic{mAppUid=" + ( mAppUid ) ) + ", mRxBytes=" ) + ( mRxBytes ) ) + ", mTxBytes=" ) + ( mTxBytes ) ) + '}' ; }
Source:
private android.security.net.config.NetworkSecurityConfig getEmptyConfig ( ) { return new android.security.net.config.NetworkSecurityConfig ( true , false , new android.security.net.config.PinSet ( new android.util.ArraySet < android.security.net.config.Pin > ( ) , ( - 1 ) ) , new java.util.ArrayList < android.security.net.config.CertificatesEntryRef > ( ) ) ; }

Target:
private android.security.net.config.NetworkSecurityConfig getSystemStoreConfig ( ) { return new android.security.net.config.NetworkSecurityConfig.Builder ( ) . addCertificatesEntryRef ( new android.security.net.config.CertificatesEntryRef ( android.security.net.config.SystemCertificateSource.getInstance ( ) , false ) ) . build ( ) ; }
Source:
private static void assertHasLabel ( libcore.icu.AlphabeticIndex ai , java.lang.String string , java.lang.String expectedLabel ) { ai.addLabels ( java.util.Locale.US ) ; int index = ai.getBucketIndex ( string ) ; java.lang.String label = ai.getBucketLabel ( index ) ; assertEquals ( expectedLabel , label ) ; }

Target:
private static void assertHasLabel ( libcore.icu.ImmutableIndex ii , java.lang.String string , java.lang.String expectedLabel ) { int index = ii.getBucketIndex ( string ) ; java.lang.String label = ii.getBucketLabel ( index ) ; assertEquals ( expectedLabel , label ) ; }
Source:
public static org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType getType ( final org.jetbrains.jps.builders.java.dependencyView.DependencyContext context , final org.jetbrains.asm4.Type t ) { return org.jetbrains.jps.builders.java.dependencyView.TypeRepr.getType ( context , context.get ( t.getDescriptor ( ) ) ) ; }

Target:
public static org.jetbrains.jps.builders.java.dependencyView.TypeRepr.AbstractType getType ( final org.jetbrains.jps.builders.java.dependencyView.DependencyContext context , final org.jetbrains.org.objectweb.asm.Type t ) { return org.jetbrains.jps.builders.java.dependencyView.TypeRepr.getType ( context , context.get ( t.getDescriptor ( ) ) ) ; }
Source:
synchronized void nScriptSetVarF ( int id , int slot , float val ) { validate ( ) ; rsnScriptSetVarF ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarD ( long id , int slot , double val ) { validate ( ) ; rsnScriptSetVarD ( mContext , id , slot , val ) ; }
Source:
public final int toFullTitle ( int c , android.icu.impl.UCaseProps.ContextIterator iter , java.lang.StringBuilder out , android.icu.util.ULocale locale , int [ ] locCache ) { return toUpperOrTitle ( c , iter , out , locale , locCache , false ) ; }

Target:
public final int toFullTitle ( int c , android.icu.impl.UCaseProps.ContextIterator iter , java.lang.Appendable out , int caseLocale ) { return toUpperOrTitle ( c , iter , out , caseLocale , false ) ; }
Source:
public void execute ( org.w3c.dom.Element element ) { renderStdOut ( element ) ; }

Target:
protected void registerTabs ( ) { addFailuresTab ( ) ; addTab ( "Tests" , new org.gradle.api.internal.ErroringAction < org.gradle.api.internal.html.SimpleHtmlWriter > ( ) { @ java.lang.Override public void doExecute ( org.gradle.api.internal.html.SimpleHtmlWriter writer ) throws java.io.IOException { renderTests ( writer ) ; } } ) ; addDeviceAndVariantTabs ( ) ; }
Source:
static final < K , V > java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] newArray ( int i ) { return new java.util.concurrent.ConcurrentHashMap.HashEntry [ i ] ; }

Target:
final void setNext ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > n ) { java.util.concurrent.ConcurrentHashMap.HashEntry.UNSAFE.putOrderedObject ( this , java.util.concurrent.ConcurrentHashMap.HashEntry.nextOffset , n ) ; }
Source:
public com.android.sdklib.internal.repository.DownloadCache getDownloadCache ( ) { if ( ( mDownloadCache ) == null ) { mDownloadCache = new com.android.sdklib.internal.repository.DownloadCache ( DownloadCache.Strategy.FRESH_CACHE ) ; } return mDownloadCache ; }

Target:
public com.android.sdklib.internal.repository.DownloadCache getDownloadCache ( ) { if ( ( mDownloadCache ) == null ) { mDownloadCache = new com.android.sdklib.internal.repository.DownloadCache ( ( mSettingsController.getSettings ( ) . getUseDownloadCache ( ) ? DownloadCache.Strategy.FRESH_CACHE : DownloadCache.Strategy.DIRECT ) ) ; } return mDownloadCache ; }
Source:
public android.telephony.ims.feature.RcsFeature onCreateRcsFeature ( int slotId ) { return null ; }

Target:
public android.telephony.ims.feature.RcsFeature createRcsFeature ( int slotId ) { return null ; }
Source:
public static short shortToCharToShort ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( char ) ( value ) ) ) ; }

Target:
public static short $noinline$shortToCharToShort ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( char ) ( value ) ) ) ; }
Source:
public java.lang.String toString ( ) { return getLogLine ( ) ; }

Target:
public boolean isSplitDensity ( ) { return mSplitDensity ; }
Source:
public boolean addPasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { return true ; }

Target:
public boolean addPasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; return mPasspointManager.addProvider ( config ) ; }
Source:
public java.util.Set < java.lang.String > getSupportedAbis ( ) { return null ; }

Target:
public java.util.Set < java.lang.String > getSupportedAbis ( ) { if ( ( mMergedNdkConfig ) != null ) { return mMergedNdkConfig.getAbiFilters ( ) ; } return null ; }
Source:
public void evaluateJavascript ( java.lang.String script , android.webkit.ValueCallback < java.lang.String > resultCallback ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "evaluateJavascript=" + script ) ) ; mProvider.evaluateJavaScript ( script , resultCallback ) ; }

Target:
public void evaluateJavascript ( java.lang.String script , android.webkit.ValueCallback < java.lang.String > resultCallback ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "evaluateJavascript=" + script ) ) ; mProvider.evaluateJavaScript ( script , resultCallback ) ; }
Source:
boolean isEmpty ( ) { return ( ( trackingDefault.isEmpty ( ) ) && ( listening.isEmpty ( ) ) ) && ( requested.isEmpty ( ) ) ; }

Target:
boolean hasNoCallbacks ( ) { return ( ( ( trackingDefault.isEmpty ( ) ) && ( listening.isEmpty ( ) ) ) && ( requested.isEmpty ( ) ) ) && ( legacyTypeMap.isEmpty ( ) ) ; }
Source:
public void upgradeToVideo ( ) { listener.onImpressionLoggingNeeded ( DialerImpression.Type.LIGHTBRINGER_UPGRADE_REQUESTED ) ; lightbringer.requestUpgrade ( call ) ; }

Target:
public void upgradeToVideo ( @ android.support.annotation.NonNull android.content.Context context ) { listener.onImpressionLoggingNeeded ( DialerImpression.Type.LIGHTBRINGER_UPGRADE_REQUESTED ) ; lightbringer.requestUpgrade ( context , call ) ; }
Source:
public void testExceptionContainsView ( ) { java.lang.String exceptionMessage = createException ( ) . getMessage ( ) ; org.hamcrest.MatcherAssert.assertThat ( ( "missing root element" + exceptionMessage ) , exceptionMessage , org.hamcrest.Matchers.containsString ( "{id=0," ) ) ; }

Target:
public void exceptionContainsView ( ) { java.lang.String exceptionMessage = createException ( ) . getMessage ( ) ; org.hamcrest.MatcherAssert.assertThat ( ( "missing root element" + exceptionMessage ) , exceptionMessage , org.hamcrest.Matchers.containsString ( "{id=0," ) ) ; }
Source:
public boolean isRttCall ( ) { return ( mRttMode ) == ( com.android.ims.ImsStreamMediaProfile.RTT_MODE_FULL ) ; }

Target:
public boolean isRttCall ( ) { return ( mRttMode ) == ( android.telephony.ims.ImsStreamMediaProfile.RTT_MODE_FULL ) ; }
Source:
public java.lang.String getFormat ( ) { return "PKCS#8" ; }

Target:
public java.lang.String getFormat ( ) { if ( key.isEngineBased ( ) ) { return null ; } return "PKCS#8" ; }
Source:
boolean isDirty ( android.content.Context appContext ) ;

Target:
com.google.common.util.concurrent.ListenableFuture < java.lang.Boolean > isDirty ( android.content.Context appContext ) ;
Source:
private static native void native_drawText ( int nativeCanvas , java.lang.String text , int start , int end , float x , float y , int flags , int paint ) ;

Target:
private static native void native_drawText ( long nativeCanvas , java.lang.String text , int start , int end , float x , float y , int flags , long nativePaint ) ;
Source:
public boolean isDocumented ( ) { return ( documentationLevel ( ) ) == ( com.google.devtools.common.options.OptionsParser.DocumentationLevel.DOCUMENTED ) ; }

Target:
public boolean isDocumented ( ) { return ( optionUsageRestrictions ( ) ) == ( com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.DOCUMENTED ) ; }
Source:
public com.android.builder.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.builder.ProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.SourceProvider sourceProvider ) { mFlavorConfigs.add ( productFlavor ) ; mFlavorSourceProviders.add ( sourceProvider ) ; mMergedFlavor = productFlavor.mergeOver ( mMergedFlavor ) ; return this ; }

Target:
public com.android.builder.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.builder.DefaultProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { mFlavorConfigs.add ( productFlavor ) ; mFlavorSourceProviders.add ( sourceProvider ) ; mMergedFlavor = productFlavor.mergeOver ( mMergedFlavor ) ; return this ; }
Source:
public int getUlf ( ) { return ( ( int ) ( java.lang.Math.abs ( ( ( mError ) / ( getUlp ( ) ) ) ) ) ) ; }

Target:
public int getUlf ( ) { return ( ( int ) ( ( ( mError ) / ( getUlp ( ) ) ) + 0.5 ) ) ; }
Source:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; this . digest = null ; } }

Target:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( file.getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; digest = null ; } }
Source:
static com.google.i18n.phonenumbers.PhoneNumberUtil initializePhoneUtilForTesting ( ) { com.google.i18n.phonenumbers.PhoneNumberUtil phoneUtil = new com.google.i18n.phonenumbers.PhoneNumberUtil ( new com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl ( com.google.i18n.phonenumbers.TestMetadataTestCase.TEST_META_DATA_FILE_PREFIX , PhoneNumberUtil.DEFAULT_METADATA_LOADER ) , com.google.i18n.phonenumbers.CountryCodeToRegionCodeMapForTesting.getCountryCodeToRegionCodeMap ( ) ) ; com.google.i18n.phonenumbers.PhoneNumberUtil.setInstance ( phoneUtil ) ; return phoneUtil ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; com.google.i18n.phonenumbers.PhoneNumberUtil.setInstance ( phoneUtil ) ; }
Source:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; assertFalse ( data.hasTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }

Target:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; assertFalse ( data.hasTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral enumLit ) { com.android.jack.ir.ast.JField field = enumLit.getFieldId ( ) . getField ( ) ; if ( field != null ) { this . accept ( field ) ; } super . endVisit ( enumLit ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral enumLit ) { com.android.jack.ir.ast.JField field = enumLit.getFieldId ( ) . getField ( ) ; if ( field != null ) { traceAnnotations ( field ) ; } }
Source:
public void addPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage newPackage ) { subPackages.add ( newPackage ) ; }

Target:
public void addPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage newPackage ) { addItemWithName ( newPackage ) ; subPackages.add ( newPackage ) ; }
Source:
public void deleteManualPreviews ( ) { disposePreviews ( ) ; selectMode ( RenderPreviewMode.NONE ) ; mCanvas.setFitScale ( true , true ) ; if ( ( mManualList ) != null ) { mManualList.delete ( ) ; } }

Target:
public boolean hasManualPreviews ( ) { assert ( mMode ) == ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewMode.CUSTOM ) ; return ( ( mManualList ) != null ) && ( ! ( mManualList.isEmpty ( ) ) ) ; }
Source:
public void test_CallbackHandler ( ) { tests.api.javax.security.auth.CallbackHandlerTest.CallbackHandlerImpl ch = new tests.api.javax.security.auth.CallbackHandlerTest.CallbackHandlerImpl ( ) ; assertFalse ( ch.called ) ; ch.handle ( null ) ; assertTrue ( ch.called ) ; }

Target:
public void test_CallbackHandler ( ) { org.apache.harmony.tests.javax.security.auth.callback.CallbackHandlerTest.CallbackHandlerImpl ch = new org.apache.harmony.tests.javax.security.auth.callback.CallbackHandlerTest.CallbackHandlerImpl ( ) ; assertFalse ( ch.called ) ; ch.handle ( null ) ; assertTrue ( ch.called ) ; }
Source:
public void turnOn ( ) { if ( mCallsManager.getCalls ( ) . isEmpty ( ) ) { com.android.server.telecom.Log.w ( this , "Asking to turn on prox sensor without a call? I don't think so." ) ; return ; } mTelecomWakeLock.acquire ( ) ; }

Target:
public void turnOn ( ) { if ( mCallsManager.getCalls ( ) . isEmpty ( ) ) { android.telecom.Log.w ( this , "Asking to turn on prox sensor without a call? I don't think so." ) ; return ; } mTelecomWakeLock.acquire ( ) ; }
Source:
public void testRequestAllocInvalidSpi ( ) throws java.lang.Exception { try { mIpSecManager.reserveSecurityParameterIndex ( IpSecTransform.DIRECTION_OUT , android.net.IpSecManagerTest.GOOGLE_DNS_4 , 0 ) ; org.junit.Assert.fail ( "Able to allocate invalid spi" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void testRequestAllocInvalidSpi ( ) throws java.lang.Exception { try { mIpSecManager.allocateSecurityParameterIndex ( IpSecTransform.DIRECTION_OUT , android.net.IpSecManagerTest.GOOGLE_DNS_4 , 0 ) ; org.junit.Assert.fail ( "Able to allocate invalid spi" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
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_NullKeystoreAlias_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , null , "RSA" , 1024 , 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 ) { } }
Source:
public void testUnusualPrefixes ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String input = "" + ( ( ( ( ( ( ( "<manifest\n" + " xmlns:x=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:y=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application x:label=\"@string/lib_name\" y:node=\"replace\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testUnusualPrefixes()" ) , input ) ; com.google.common.base.Optional < com.android.manifmerger.XmlElement > applicationOptional = xmlDocument.getRootNode ( ) . getNodeByTypeAndKey ( ManifestModel.NodeTypes.APPLICATION , null ) ; assertTrue ( applicationOptional.isPresent ( ) ) ; org.w3c.dom.Element application = applicationOptional.get ( ) . getXml ( ) ; assertEquals ( 2 , application.getAttributes ( ) . getLength ( ) ) ; org.w3c.dom.Node label = application.getAttributeNodeNS ( SdkConstants.ANDROID_URI , "label" ) ; assertEquals ( "x:label" , label.getNodeName ( ) ) ; org.w3c.dom.Node tools = application.getAttributeNodeNS ( SdkConstants.TOOLS_URI , "node" ) ; assertEquals ( "y:node" , tools.getNodeName ( ) ) ; assertEquals ( "replace" , tools.getNodeValue ( ) ) ; }

Target:
public void testUnusualPrefixes ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String input = "" + ( ( ( ( ( ( ( "<manifest\n" + " xmlns:x=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:y=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application x:label=\"@string/lib_name\" y:node=\"replace\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testUnusualPrefixes()" ) , input ) ; com.google.common.base.Optional < com.android.manifmerger.XmlElement > applicationOptional = xmlDocument.getRootNode ( ) . getNodeByTypeAndKey ( ManifestModel.NodeTypes.APPLICATION , null ) ; assertTrue ( applicationOptional.isPresent ( ) ) ; org.w3c.dom.Element application = applicationOptional.get ( ) . getXml ( ) ; assertEquals ( 2 , application.getAttributes ( ) . getLength ( ) ) ; org.w3c.dom.Node label = application.getAttributeNodeNS ( SdkConstants.ANDROID_URI , "label" ) ; assertEquals ( "x:label" , label.getNodeName ( ) ) ; org.w3c.dom.Node tools = application.getAttributeNodeNS ( SdkConstants.TOOLS_URI , NodeOperationType.NODE_LOCAL_NAME ) ; assertEquals ( "y:node" , tools.getNodeName ( ) ) ; assertEquals ( "replace" , tools.getNodeValue ( ) ) ; }
Source:
private static void test_diff_getInstanceVariable ( dalvik.system.DexClassLoaderTest.Configuration config ) throws java.lang.Exception { dalvik.system.DexClassLoaderTest.createInstanceAndCallStaticMethod ( config , "test.TestMethods" , "test_diff_getInstanceVariable" ) ; }

Target:
public void test_oneDex_constructor ( ) throws java.lang.Exception { createLoaderAndCallMethod ( "test.TestMethods" , "test_constructor" , dex1 ) ; }
Source:
public < T extends com.android.jack.api.JackConfig > boolean isConfigSupported ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { return com.android.jack.api.impl.JackProviderImpl.map.containsKey ( cls ) ; }

Target:
public < T extends com.android.jack.api.JackConfig > boolean isConfigSupported ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { return com.android.jack.api.impl.JackProviderImpl.impl.containsKey ( cls ) ; }
Source:
public javax.net.ssl.SSLSession getSession ( ) { if ( ( sslSession ) == null ) { try { waitForHandshake ( ) ; } catch ( java.io.IOException e ) { return org.conscrypt.SSLNullSession.getNullSession ( ) ; } } return sslSession ; }

Target:
public javax.net.ssl.SSLSession getSession ( ) { if ( ( sslSession ) == null ) { try { waitForHandshake ( ) ; } catch ( java.io.IOException e ) { return org.conscrypt.SSLNullSession.getNullSession ( ) ; } } return org.conscrypt.Platform.wrapSSLSession ( sslSession ) ; }
Source:
private void reset ( ) { dexMaker = new com.google.dexmaker.DexMaker ( ) ; dexMaker.declare ( com.google.dexmaker.DexMakerTest.GENERATED , "Generated.java" , java.lang.reflect.Modifier.PUBLIC , TypeId.OBJECT ) ; }

Target:
private void reset ( ) { dexMaker = new com.google.dexmaker.DexMaker ( ) ; dexMaker.declare ( com.google.dexmaker.DexMakerTest.GENERATED , "Generated.java" , java.lang.reflect.Modifier.PUBLIC , TypeId.OBJECT ) ; clearDataDirectory ( ) ; }
Source:
com.google.common.collect.ImmutableSet < K > createKeySet ( ) { return new com.google.common.collect.ImmutableMapKeySet < K , V > ( entrySet ( ) ) { @ java.lang.Override com.google.common.collect.ImmutableMap < K , V > map ( ) { return com.google.common.collect.ImmutableMap.this ; } } ; }

Target:
public boolean containsValue ( @ javax.annotation.Nullable java.lang.Object value ) { return values ( ) . contains ( value ) ; }
Source:
protected void resetDeviceIdleSettings ( ) throws java.lang.Exception { executeShellCommand ( "settings delete global device_idle_constants" ) ; }

Target:
protected void resetDeviceIdleSettings ( ) throws java.lang.Exception { executeShellCommand ( java.lang.String.format ( "settings delete global %s" , mDeviceIdleConstantsSetting ) ) ; }