auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static java.util.Collection < java.lang.reflect.Field > getAllAnnotatedFields ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsData ( com.google.common.collect.ImmutableList.< java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > of ( optionsClass ) ) ; return data.getFieldsForClass ( optionsClass ) ; }

Target:
static java.util.Collection < java.lang.reflect.Field > getAllAnnotatedFields ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( com.google.common.collect.ImmutableList.< java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > of ( optionsClass ) ) ; return data.getFieldsForClass ( optionsClass ) ; }
Source:
public long elapsedMillis ( ) { return elapsedTime ( java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public static com.google.common.base.Stopwatch createStarted ( ) { return new com.google.common.base.Stopwatch ( ) . start ( ) ; }
Source:
public static com.android.ddmlib.Log.LogLevel getByLetterString ( java.lang.String letter ) { if ( ( letter.length ( ) ) > 0 ) { return com.android.ddmlib.Log.LogLevel.getByLetter ( letter.charAt ( 0 ) ) ; } return null ; }

Target:
public static com.android.ddmlib.Log.LogLevel getByLetterString ( java.lang.String letter ) { if ( ! ( letter.isEmpty ( ) ) ) { return com.android.ddmlib.Log.LogLevel.getByLetter ( letter.charAt ( 0 ) ) ; } return null ; }
Source:
public void test_plus_longTemporalUnit_positiveMonths ( ) { java.time.LocalDate t = TEST_2007_07_15.plus ( 7 , java.time.temporal.ChronoUnit.MONTHS ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 2 , 15 ) ) ; }

Target:
public void test_plus_longTemporalUnit_positiveMonths ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.plus ( 7 , java.time.temporal.ChronoUnit.MONTHS ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 2 , 15 ) ) ; }
Source:
void addScanEvent ( com.android.bluetooth.btservice.BluetoothProto.ScanEvent event ) { synchronized ( mScanEvents ) { if ( ( mScanEvents.size ( ) ) == ( com.android.bluetooth.gatt.GattService.NUM_SCAN_EVENTS_KEPT ) ) { mScanEvents.remove ( 0 ) ; } mScanEvents.add ( event ) ; } }

Target:
void addScanEvent ( com.android.bluetooth.BluetoothMetricsProto.ScanEvent event ) { synchronized ( mScanEvents ) { if ( ( mScanEvents.size ( ) ) == ( com.android.bluetooth.gatt.GattService.NUM_SCAN_EVENTS_KEPT ) ) { mScanEvents.remove ( 0 ) ; } mScanEvents.add ( event ) ; } }
Source:
private static java.lang.String getPrimaryInstructionSet ( android.content.pm.ApplicationInfo info ) { if ( ( info.primaryCpuAbi ) == null ) { return com.android.server.pm.PackageManagerService.getPreferredInstructionSet ( ) ; } return dalvik.system.VMRuntime.getInstructionSet ( info.primaryCpuAbi ) ; }

Target:
private static java.lang.String getPrimaryInstructionSet ( android.content.pm.ApplicationInfo info ) { if ( ( info.primaryCpuAbi ) == null ) { return com.android.server.pm.InstructionSets.getPreferredInstructionSet ( ) ; } return dalvik.system.VMRuntime.getInstructionSet ( info.primaryCpuAbi ) ; }
Source:
public static float $noinline$floatAddSubSimplifyArg1 ( float x , float y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } float sum = x + y ; return sum - x ; }

Target:
public static float $noinline$floatAddSubSimplifyArg2 ( float x , float y ) { float sum = x + y ; return sum - y ; }
Source:
public void onNewIntent ( android.content.Intent intent ) { super . onNewIntent ( intent ) ; setUpUi ( intent ) ; }

Target:
protected void onResume ( ) { super . onResume ( ) ; setNextLayout ( ) ; }
Source:
public void testIsSupported_NotSupported ( ) { assertFalse ( java.nio.charset.Charset.isSupported ( "impossible" ) ) ; }

Target:
public void test_SCSU_replacement_character ( ) throws java.lang.Exception { assertDecodes ( java.nio.charset.Charset.forName ( "SCSU" ) , "�" , 14 , 255 ) ; assertEncodes ( java.nio.charset.Charset.forName ( "SCSU" ) , "�" , 14 , 255 ) ; }
Source:
int getMessageType ( ) { return mEnvelope.messageType ; }

Target:
int getMessageType ( ) { if ( ( mEnvelope.serviceCategory ) != 0 ) { return com.android.internal.telephony.cdma.sms.SmsEnvelope.MESSAGE_TYPE_BROADCAST ; } else { return com.android.internal.telephony.cdma.sms.SmsEnvelope.MESSAGE_TYPE_POINT_TO_POINT ; } }
Source:
public java.lang.String apply ( com.android.jack.library.InputLibrary library ) { return library.getLocation ( ) . getDescription ( ) ; }

Target:
public java.lang.String apply ( com.android.jack.library.InputLibrary library ) { return ( "\"" + ( library.getLocation ( ) . getDescription ( ) ) ) + "\"" ; }
Source:
public static native int EVP_AEAD_CTX_seal ( org.conscrypt.NativeRef.EVP_AEAD_CTX ctx , byte [ ] out , int outOffset , byte [ ] nonce , byte [ ] in , int inOffset , int inLength , byte [ ] ad ) throws javax.crypto.BadPaddingException ;

Target:
public static native int EVP_AEAD_CTX_seal ( long evpAead , byte [ ] key , int tagLengthInBytes , byte [ ] out , int outOffset , byte [ ] nonce , byte [ ] in , int inOffset , int inLength , byte [ ] ad ) throws javax.crypto.BadPaddingException ;
Source:
public int getInputMethodWindowVisibleHeight ( ) { synchronized ( mH ) { try { return mService.getInputMethodWindowVisibleHeight ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return 0 ; } } }

Target:
public void clearLastInputMethodWindowForTransition ( final android.os.IBinder token ) { synchronized ( mH ) { try { mService.clearLastInputMethodWindowForTransition ( token ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public void handleEvent ( org.eclipse.swt.widgets.Event event ) { if ( ! ( mInternalProjectNameUpdate ) ) { mProjectNameModifiedByUser = true ; } updateLocationPathField ( null ) ; }

Target:
public void handleEvent ( org.eclipse.swt.widgets.Event event ) { onProjectFieldModified ( ) ; }
Source:
public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; }

Target:
public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; }
Source:
protected void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mFindSuidFilesTask ) != null ) { mFindSuidFilesTask.cancel ( true ) ; } }

Target:
protected void onDestroy ( ) { android.util.Log.e ( "Suid" , "onDestroy" ) ; super . onDestroy ( ) ; if ( ( mFindSuidFilesTask ) != null ) { mFindSuidFilesTask.cancel ( true ) ; } }
Source:
public void testTlvInvalidSizeT3L1 ( ) { android.net.wifi.nan.TlvBufferUtils.TlvConstructor tlv10 = new android.net.wifi.nan.TlvBufferUtils.TlvConstructor ( 3 , 1 ) ; }

Target:
public void testTlvInvalidSizeT3L1 ( ) { android.net.wifi.aware.TlvBufferUtils.TlvConstructor tlv10 = new android.net.wifi.aware.TlvBufferUtils.TlvConstructor ( 3 , 1 ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { try { if ( ! ( mTerminated ) ) { mCloseGuard.warnIfOpen ( ) ; disconnect ( ) ; } } finally { super . finalize ( ) ; } }

Target:
protected void finalize ( ) throws java.lang.Throwable { try { if ( ! ( mTerminated ) ) { mCloseGuard.warnIfOpen ( ) ; destroy ( ) ; } } finally { super . finalize ( ) ; } }
Source:
public void onPause ( ) { mIm.registerInputDeviceListener ( this , null ) ; }

Target:
public void onResume ( ) { mIm.registerInputDeviceListener ( this , null ) ; }
Source:
public static android.bluetooth.BluetoothDevice getRemoteDevice ( ) { return com.android.bluetooth.map.BluetoothMapService.mRemoteDevice ; }

Target:
public static android.bluetooth.BluetoothDevice getRemoteDevice ( ) { return com.android.bluetooth.map.BluetoothMapService.sRemoteDevice ; }
Source:
public boolean onPreDraw ( ) { if ( ! ( shouldAdjustKeySizes ( ) ) ) { return true ; } adjustKeySizes ( ) ; return false ; }

Target:
public boolean onPreDraw ( ) { if ( ! ( shouldAdjustKeySizes ( ) ) ) { return true ; } adjustKeySizes ( ) ; getViewTreeObserver ( ) . removeOnPreDrawListener ( this ) ; return false ; }
Source:
public static float ReturnFloat33 ( ) { int imm = 33 ; return ( ( float ) ( imm ) ) ; }

Target:
public static float ReturnFloat34 ( ) { long imm = Main.$inline$long ( 34L ) ; return ( ( float ) ( imm ) ) ; }
Source:
protected byte [ ] engineDoFinal ( ) { final org.conscrypt.OpenSSLDigestContext ctxLocal = ctx ; final byte [ ] output = org.conscrypt.NativeCrypto.EVP_DigestSignFinal ( ctxLocal ) ; resetContext ( ) ; return output ; }

Target:
protected byte [ ] engineDoFinal ( ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; final byte [ ] output = org.conscrypt.NativeCrypto.EVP_DigestSignFinal ( ctxLocal ) ; resetContext ( ) ; return output ; }
Source:
public void testVFE14 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_7 ( ) . run ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodError t ) { } }

Target:
public void testE5 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_12" , java.lang.UnsatisfiedLinkError.class , new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; }
Source:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return null ; }

Target:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { return null ; }
Source:
public void onDialpadShown ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onDialpadShown" ) ; getDialpadFragment ( ) . slideUp ( true ) ; hideBottomNav ( ) ; }

Target:
public void onDialpadShown ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onDialpadShown" ) ; dialpadFragment.slideUp ( true ) ; hideBottomNav ( ) ; }
Source:
int testThisWithStaticCall ( ) { return Main.doStaticNativeCallRef ( ) ; }

Target:
int $noinline$testThisWithStaticCall ( ) { return Main.doStaticNativeCallRef ( ) ; }
Source:
public void copyTo ( short [ ] d ) { validateIsInt16 ( ) ; copyTo ( d , Element.DataType.SIGNED_16 , d.length ) ; }

Target:
public void copyTo ( short [ ] d ) { validateIsInt16OrFloat16 ( ) ; copyTo ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public int telephonyGetSubscriptionCarrierId ( ) { return mTelephonyManager.getSubscriptionCarrierId ( ) ; }

Target:
public void telephonySetSimPowerState ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "state" ) java.lang.Integer state ) { mTelephonyManager.setSimPowerState ( state ) ; }
Source:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }

Target:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetTimeZone ( curCon , script , timeZone , mUseInc ) ; }
Source:
public void testGetActivityThemes4 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " package=\'com.android.unittest\'>\n" + " <application\n" ) + " android:label=\'@string/app_name\'\n" ) + " android:name=\'.app.TestApp\' android:icon=\'@drawable/app_icon\'>\n" ) + "\n" ) + " <activity\n" ) + " android:name=\'.prefs.PrefsActivity\'\n" ) + " android:label=\'@string/prefs_title\' />\n" ) + "\n" ) + " <activity\n" ) + " android:name=\'.app.IntroActivity\'\n" ) + " android:label=\'@string/intro_title\'\n" ) + " android:theme=\'@android:style/Theme.Dialog\' />\n" ) + " </application>\n" ) + " <uses-sdk android:minSdkVersion=\'3\' android:targetSdkVersion=\'4\'/>\n" ) + "</manifest>\n" ) + "" ) ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenSize.XLARGE ) ) ) ; java.util.Map < java.lang.String , java.lang.String > map = info.getActivityThemes ( ) ; assertEquals ( map.toString ( ) , 1 , map.size ( ) ) ; assertNull ( map.get ( "com.android.unittest.prefs.PrefsActivity" ) ) ; assertEquals ( "@android:style/Theme.Dialog" , map.get ( "com.android.unittest.app.IntroActivity" ) ) ; }

Target:
public void testGetActivityThemes4 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " package=\'com.android.unittest\'>\n" + " <application\n" ) + " android:label=\'@string/app_name\'\n" ) + " android:name=\'.app.TestApp\' android:icon=\'@drawable/app_icon\'>\n" ) + "\n" ) + " <activity\n" ) + " android:name=\'.prefs.PrefsActivity\'\n" ) + " android:label=\'@string/prefs_title\' />\n" ) + "\n" ) + " <activity\n" ) + " android:name=\'.app.IntroActivity\'\n" ) + " android:label=\'@string/intro_title\'\n" ) + " android:theme=\'@android:style/Theme.Dialog\' />\n" ) + " </application>\n" ) + " <uses-sdk android:minSdkVersion=\'3\' android:targetSdkVersion=\'4\'/>\n" ) + "</manifest>\n" ) + "" ) ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenLayoutSize.XLARGE ) ) ) ; java.util.Map < java.lang.String , java.lang.String > map = info.getActivityThemes ( ) ; assertEquals ( map.toString ( ) , 1 , map.size ( ) ) ; assertNull ( map.get ( "com.android.unittest.prefs.PrefsActivity" ) ) ; assertEquals ( "@android:style/Theme.Dialog" , map.get ( "com.android.unittest.app.IntroActivity" ) ) ; }
Source:
void conferenceWith ( com.android.server.telecom.Call otherCall ) { if ( ( mConnectionService ) == null ) { com.android.server.telecom.Log.w ( this , "conference requested on a call without a connection service." ) ; } else { com.android.server.telecom.Log.event ( this , Log.Events.CONFERENCE_WITH , otherCall ) ; mConnectionService.conference ( this , otherCall ) ; } }

Target:
void unhold ( ) { com.android.internal.util.Preconditions.checkNotNull ( mConnectionService ) ; if ( ( mState ) == ( CallState.ON_HOLD ) ) { mConnectionService.unhold ( this ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_UNHOLD ) ; } }
Source:
public boolean setConfiguration ( java.lang.String folderName ) { java.lang.String [ ] folderSegments = folderName.split ( FolderConfiguration.QUALIFIER_SEP ) ; return setConfiguration ( folderSegments ) ; }

Target:
public boolean setConfiguration ( java.lang.String folderName ) { java.lang.String [ ] folderSegments = folderName.split ( AndroidConstants.RES_QUALIFIER_SEP ) ; return setConfiguration ( folderSegments ) ; }
Source:
public int getCompilerReleaseCode ( ) { return 2 ; }

Target:
public int getCompilerReleaseCode ( ) { return com.android.jack.Jack.getVersion ( ) . getReleaseCode ( ) ; }
Source:
synchronized void nAllocationRead ( int id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized long nAllocationGetType ( long id ) { validate ( ) ; return rsnAllocationGetType ( mContext , id ) ; }
Source:
public void testCustomNamespace ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/namespace2.xml:8: Error: Attribute is missing the Android namespace prefix [MissingPrefix]\n" + ( ( ( " customprefix:orientation=\"vertical\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/namespace2.xml" ) ) ; }

Target:
public void testCustomNamespace ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/namespace2.xml:9: Error: Attribute is missing the Android namespace prefix [MissingPrefix]\n" + ( ( " orientation=\"true\">\n" + " ~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintFiles ( "res/layout/namespace2.xml" ) ) ; }
Source:
public void requestR1ANQPElementsWithRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1_ANQP_WITH_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_SCAN_DETAIL , true , false ) ) ; }

Target:
public void requestR1ANQPElementsWithRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1_ANQP_WITH_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_ANQP_KEY , true , false ) ) ; }
Source:
public void setBasename ( java.lang.String baseName ) { java.lang.System.out.println ( ( "WARNNG: Using deprecated 'basename' attribute in ApkBuilderTask." + "Use 'apkFilename' (path) instead." ) ) ; mBaseName = baseName ; }

Target:
public void setBasename ( java.lang.String baseName ) { java.lang.System.out.println ( ( "WARNNG: Using deprecated 'basename' attribute in ApkBuilderTask." + "Use 'apkfilepath' (path) instead." ) ) ; mBaseName = baseName ; }
Source:
public void aname ( char [ ] buff , int offset , int length ) throws org.xml.sax.SAXException { if ( ( theNewElement ) == null ) return ; theAttributeName = makeName ( buff , offset , length ) . toLowerCase ( ) ; }

Target:
public void aname ( char [ ] buff , int offset , int length ) throws org.xml.sax.SAXException { if ( ( theNewElement ) == null ) return ; theAttributeName = makeName ( buff , offset , length ) . toLowerCase ( java.util.Locale.ROOT ) ; }
Source:
public java.util.regex.Matcher region ( int start , int end ) { return reset ( input , start , end ) ; }

Target:
public java.util.regex.Matcher region ( int start , int end ) { return reset ( originalInput , start , end ) ; }
Source:
public void dumpProto ( com.android.bluetooth.btservice.BluetoothProto.BluetoothLog proto ) { synchronized ( mScanEvents ) { for ( com.android.bluetooth.btservice.BluetoothProto.ScanEvent event : mScanEvents ) { proto.addScanEvent ( event ) ; } } }

Target:
public void dumpProto ( com.android.bluetooth.BluetoothMetricsProto.BluetoothLog.Builder builder ) { synchronized ( mScanEvents ) { builder.addAllScanEvent ( mScanEvents ) ; } }
Source:
public void capabilitiesStatusChanged ( android.telephony.ims.internal.Capabilities c ) { notifyCapabilitiesStatusChanged ( c ) ; }

Target:
public void capabilitiesStatusChanged ( android.telephony.ims.Capabilities c ) { notifyCapabilitiesStatusChanged ( c ) ; }
Source:
public boolean isValid ( ) { return ( ( mName ) != null ) && ( ( mType ) != null ) ; }

Target:
public boolean isValidForUi ( ) { return ( mType ) != ( com.android.sdklib.internal.avd.HardwareProperties.ValueType.STRING ) ; }
Source:
public synchronized void clearBackingStore ( ) { getImageCacheService ( ) . clear ( ) ; mImageCacheService = null ; }

Target:
public synchronized void clearBackingStore ( ) { if ( ( mImageCacheService ) == null ) { com.android.mms.util.CacheManager.clear ( mContext ) ; } else { getImageCacheService ( ) . clear ( ) ; mImageCacheService = null ; } }
Source:
public static float FloatDivision ( ) { float a ; float b ; float c ; a = 8.0F ; b = 2.5F ; c = a / b ; return c ; }

Target:
public static float FloatMultiplication ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 7.0F ) ; b = Main.$inline$float ( 3.0F ) ; c = a * b ; return c ; }
Source:
private void cacheMethod ( @ javax.annotation.Nonnull java.lang.String key , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { assert ! ( methods.containsKey ( key ) ) ; methods.put ( key , method ) ; }

Target:
private void cacheMethod ( @ javax.annotation.Nonnull com.android.jack.ir.impl.ReferenceMapper.SignatureKey key , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { assert ! ( methods.containsKey ( key ) ) ; methods.put ( key , method ) ; }
Source:
public void postInvalidateOnAnimation ( android.view.View view , int left , int top , int right , int bottom ) { view.invalidate ( left , top , right , bottom ) ; }

Target:
public void postInvalidateOnAnimation ( android.view.View view , int left , int top , int right , int bottom ) { view.postInvalidate ( left , top , right , bottom ) ; }
Source:
public boolean perform ( ) { try { java.lang.Thread.sleep ( 100 ) ; } catch ( java.lang.InterruptedException ignored ) { } return true ; }

Target:
public boolean perform ( ) { try { java.lang.Thread.sleep ( Main.Sleep.SLEEP_TIME ) ; } catch ( java.lang.InterruptedException ignored ) { } return true ; }
Source:
int checkCallingPermission ( java.lang.String permission ) { return checkPermission ( permission , android.os.Binder.getCallingPid ( ) , android.os.UserId.getAppId ( android.os.Binder.getCallingUid ( ) ) ) ; }

Target:
int checkCallingPermission ( java.lang.String permission ) { return checkPermission ( permission , android.os.Binder.getCallingPid ( ) , android.os.UserHandle.getAppId ( android.os.Binder.getCallingUid ( ) ) ) ; }
Source:
public java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > getAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotationType ) { loader.ensureAnnotation ( this , annotationType ) ; return annotations.getAnnotation ( annotationType ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > getAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationType annotationType ) { loader.ensureAnnotation ( this , annotationType ) ; return annotations.getAnnotation ( annotationType ) ; }
Source:
protected void addRevocablePermissions ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > result ) { left.addRevocablePermissions ( result ) ; right.addRevocablePermissions ( result ) ; }

Target:
protected void addRevocablePermissions ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > result , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder revocable ) { left.addRevocablePermissions ( result , revocable ) ; right.addRevocablePermissions ( result , revocable ) ; }
Source:
public static int ShlIntLong ( ) { int lhs = 1 ; long rhs = 2 ; return lhs << rhs ; }

Target:
public static long ShlLongInt ( ) { long lhs = Main.$inline$long ( 3L ) ; int rhs = Main.$inline$int ( 2 ) ; return lhs << rhs ; }
Source:
public void addProfile ( com.android.bluetooth.btservice.ProfileService profile ) { synchronized ( mProfiles ) { mProfiles.add ( profile ) ; } }

Target:
public void addProfile ( com.android.bluetooth.btservice.ProfileService profile ) { synchronized ( mProfiles ) { if ( ! ( mProfiles.contains ( profile ) ) ) { mProfiles.add ( profile ) ; } } }
Source:
public java.lang.String [ ] getIsimImpu ( ) { mContext.enforceCallingOrSelfPermission ( com.android.internal.telephony.PhoneSubInfo.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.ims.IsimRecords isim = mPhone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpu ( ) ; } else { return null ; } }

Target:
public java.lang.String [ ] getIsimImpu ( ) { mContext.enforceCallingOrSelfPermission ( com.android.internal.telephony.PhoneSubInfo.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = mPhone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpu ( ) ; } else { return null ; } }
Source:
public java.util.List < android.telephony.TelephonyHistogram > getTelephonyHistograms ( ) { enforceModifyPermissionOrCarrierPrivilege ( getDefaultSubscription ( ) ) ; return com.android.internal.telephony.RIL.getTelephonyRILTimingHistograms ( ) ; }

Target:
public boolean switchSlots ( int [ ] physicalSlots ) { enforceModifyPermission ( ) ; return ( ( java.lang.Boolean ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_SWITCH_SLOTS , physicalSlots ) ) ) ; }
Source:
private static void loge ( java.lang.String msg ) { android.util.Log.e ( com.android.cellbroadcastreceiver.CellBroadcastOtherChannelsManager.TAG , msg ) ; }

Target:
private static void loge ( java.lang.String msg ) { android.util.Log.e ( com.android.cellbroadcastreceiver.CellBroadcastChannelManager.TAG , msg ) ; }
Source:
public int getStrength ( ) { int value = icuColl.getStrength ( ) ; return value == java.text.com.ibm.icu.text.Collator ? java.text.Collator.IDENTICAL : value ; }

Target:
public int getStrength ( ) { return strength_ICU_Java ( icuColl.getStrength ( ) ) ; }
Source:
public android.net.IpSecTransform.Builder setUnderlyingNetwork ( android.net.Network net ) { mConfig.network = net ; return this ; }

Target:
public android.net.IpSecTransform.Builder setUnderlyingNetwork ( android.net.Network net ) { mConfig.setNetwork ( net ) ; return this ; }
Source:
public static java.security.Provider getProvider ( java.lang.String name ) { if ( name == null ) { return null ; } return org.apache.harmony.security.fortress.Services.providersNames.get ( name ) ; }

Target:
public static java.security.Provider getProvider ( java.lang.String name ) { if ( name == null ) { return null ; } synchronized ( org.apache.harmony.security.fortress.Services.providers ) { return org.apache.harmony.security.fortress.Services.providersNames.get ( name ) ; } }
Source:
private void queueOrSendMessage ( int what , java.lang.Object obj , int arg1 ) { queueOrSendMessage ( what , obj , arg1 , 0 ) ; }

Target:
private void sendMessage ( int what , java.lang.Object obj ) { sendMessage ( what , obj , 0 , 0 , false ) ; }
Source:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object o ) { return multimap ( ) . containsValue ( o ) ; }

Target:
void removeValuesForKey ( java.lang.Object key ) { multimap.keySet ( ) . remove ( key ) ; }
Source:
private int getWifiBadgeResourceForEnum ( int badgeEnum ) { switch ( badgeEnum ) { case android.net.ScoredNetwork.BADGING_SD : return com.android.internal.R.drawable.ic_signal_wifi_badged_sd ; case android.net.ScoredNetwork.BADGING_HD : return com.android.internal.R.drawable.ic_signal_wifi_badged_hd ; case android.net.ScoredNetwork.BADGING_4K : return com.android.internal.R.drawable.ic_signal_wifi_badged_4k ; default : throw new java.lang.IllegalArgumentException ( ( "No badge resource for enum :" + badgeEnum ) ) ; } }

Target:
private int getWifiBadgeResourceForEnum ( int badgeEnum ) { switch ( badgeEnum ) { case android.net.ScoredNetwork.BADGING_SD : return R.drawable.ic_signal_wifi_badged_sd ; case android.net.ScoredNetwork.BADGING_HD : return R.drawable.ic_signal_wifi_badged_hd ; case android.net.ScoredNetwork.BADGING_4K : return R.drawable.ic_signal_wifi_badged_4k ; default : throw new java.lang.IllegalArgumentException ( ( "No badge resource for enum :" + badgeEnum ) ) ; } }
Source:
public final native void addCallbackBuffer ( byte [ ] callbackBuffer ) ;

Target:
public final void addCallbackBuffer ( byte [ ] callbackBuffer ) { _addCallbackBuffer ( callbackBuffer , android.hardware.Camera.CAMERA_MSG_PREVIEW_FRAME ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mTestImsService = new android.telephony.ims.TestImsService ( ) ; mTestImsServiceBinder = ( ( com.android.ims.internal.IImsServiceController ) ( mTestImsService.onBind ( new android.content.Intent ( com.android.internal.telephony.ims.ImsResolver.SERVICE_INTERFACE ) ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mTestImsService = new android.telephony.ims.TestImsService ( mMockContext ) ; mTestImsServiceBinder = ( ( com.android.ims.internal.IImsServiceController ) ( mTestImsService.onBind ( new android.content.Intent ( com.android.internal.telephony.ims.ImsResolver.SERVICE_INTERFACE ) ) ) ) ; }
Source:
public void removeWindowLw ( android.view.WindowManagerPolicy.WindowState win ) { if ( ( mStatusBar ) == win ) { mStatusBar = null ; } else if ( ( mKeyguard ) == win ) { mKeyguard = null ; } }

Target:
public void removeWindowLw ( com.android.internal.policy.impl.WindowState win ) { if ( ( mStatusBar ) == win ) { mStatusBar = null ; } else if ( ( mKeyguard ) == win ) { mKeyguard = null ; } else { mStatusBarPanels.remove ( win ) ; } }
Source:
synchronized void nAllocationSyncAll ( int alloc , int src ) { validate ( ) ; rsnAllocationSyncAll ( mContext , alloc , src ) ; }

Target:
synchronized void nAllocationCopyToBitmap ( long alloc , android.graphics.Bitmap bmp ) { validate ( ) ; rsnAllocationCopyToBitmap ( mContext , alloc , bmp ) ; }
Source:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.encapType = android.net.IpSecTransform.ENCAP_ESPINUDP ; mConfig.encapLocalPortResourceId = localSocket.getResourceId ( ) ; mConfig.encapRemotePort = remotePort ; return this ; }

Target:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.setEncapType ( android.net.IpSecTransform.ENCAP_ESPINUDP ) ; mConfig.setEncapSocketResourceId ( localSocket.getResourceId ( ) ) ; mConfig.setEncapRemotePort ( remotePort ) ; return this ; }
Source:
public static void console ( ) { com.android.monkeyrunner.ScriptRunner.initPython ( ) ; org.python.util.InteractiveConsole python = new org.python.util.JLineConsole ( ) ; python.interact ( ) ; }

Target:
public static void console ( java.lang.String executablePath ) { com.android.monkeyrunner.ScriptRunner.initPython ( executablePath ) ; org.python.util.InteractiveConsole python = new org.python.util.JLineConsole ( ) ; python.interact ( ) ; }
Source:
public synchronized int read ( byte [ ] target , int offset , int length ) throws java.io.IOException { java.nio.ByteBuffer buffer = java.nio.ByteBuffer.wrap ( target , offset , length ) ; java.nio.channels.Channels.checkBlocking ( channel ) ; return channel.read ( buffer ) ; }

Target:
public synchronized int read ( byte [ ] target , int byteOffset , int byteCount ) throws java.io.IOException { java.nio.ByteBuffer buffer = java.nio.ByteBuffer.wrap ( target , byteOffset , byteCount ) ; java.nio.channels.Channels.checkBlocking ( channel ) ; return channel.read ( buffer ) ; }
Source:
public void run ( ) { com.android.hierarchyviewer.HierarchyViewerApplication.getApp ( ) . close ( ) ; }

Target:
public void run ( ) { com.android.hierarchyviewer.HierarchyViewerApplication.getMainWindow ( ) . close ( ) ; }
Source:
private static native int configureNeighborDiscoveryOffload ( int iface , boolean enabled ) ;

Target:
public boolean configureNeighborDiscoveryOffload ( boolean enabled ) { return mWifiVendorHal.configureNeighborDiscoveryOffload ( enabled ) ; }
Source:
public void run ( ) { java.lang.System.out.println ( ( "running " + ( ( Main.MyThread.mCount ) ++ ) ) ) ; }

Target:
public void run ( ) { synchronized ( Main.MyThread.class ) { ++ ( Main.MyThread.mCount ) ; } }
Source:
public void onSupplementaryServiceIndication ( com.android.ims.ImsSsData ssData ) { if ( ( mSsIndicationRegistrant ) != null ) { mSsIndicationRegistrant.notifyResult ( ssData ) ; } }

Target:
public void onSupplementaryServiceIndication ( android.telephony.ims.ImsSsData ssData ) { if ( ( mSsIndicationRegistrant ) != null ) { mSsIndicationRegistrant.notifyResult ( ssData ) ; } }
Source:
void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) ;

Target:
void setLogicalToPhysicalSlotMapping ( int [ ] physicalSlots , android.os.Message result ) ;
Source:
protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = programs ; onProgramsUpdated ( ) ; }

Target:
protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = ( programs == null ) ? java.util.Collections.EMPTY_LIST : programs ; onProgramsUpdated ( ) ; }
Source:
public void addWindowChangeListener ( com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener l ) { if ( ( mViewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( l , mDevice ) ; } }

Target:
public void addWindowChangeListener ( com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener l ) { if ( ( ( mViewServerInfo ) != null ) && ( ( mViewServerInfo.protocolVersion ) >= 3 ) ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( l , mDevice ) ; } }
Source:
private static android.net.Uri getContactUri ( android.database.Cursor cursor ) { long contactId = cursor.getLong ( ContactsCursorLoader.CONTACT_ID ) ; java.lang.String lookupKey = cursor.getString ( ContactsCursorLoader.CONTACT_LOOKUP_KEY ) ; return android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) ; }

Target:
private static long getContactId ( android.database.Cursor cursor ) { return cursor.getLong ( ContactsCursorLoader.CONTACT_ID ) ; }
Source:
public java.lang.String getDescription ( ) { if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "Test build for the %s%s build" , getFlavoredName ( true ) , getCapitalizedBuildTypeName ( ) ) ; } else { return java.lang.String.format ( "Test build for the %s build" , getCapitalizedBuildTypeName ( ) ) ; } }

Target:
public java.lang.String getDescription ( ) { if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "Test build for the %s%s build" , getCapitalizedFlavorName ( ) , getCapitalizedBuildTypeName ( ) ) ; } else { return java.lang.String.format ( "Test build for the %s build" , getCapitalizedBuildTypeName ( ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef varRef ) { com.android.jack.ir.ast.JExpression exprToUse = getCapturedVar ( varRef.getTarget ( ) ) ; if ( exprToUse != null ) { tr.append ( new com.android.jack.transformations.request.Replace ( varRef , exprToUse ) ) ; } return super . visit ( varRef ) ; }

Target:
public com.android.jack.ir.ast.JFieldRef getInnerPath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression capturedVar , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass innerClass , @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression instance ) { assert captureVar2InnerPath.containsKey ( capturedVar ) ; com.android.jack.ir.ast.JField innerField = captureVar2InnerPath.get ( capturedVar ) ; return new com.android.jack.ir.ast.JFieldRef ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , instance , innerField.getId ( ) , innerClass ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "AD: %1$s, RS: %2$s, SS: %3$s, NS: %4$s, LS: %5$s" , mAnyDensity , mResizeable , mSmallScreens , mNormalScreens , mLargeScreens ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%1$s|%2$s|%3$s|%4$s|%5$s" , mAnyDensity , mResizeable , mSmallScreens , mNormalScreens , mLargeScreens ) ; }
Source:
public final native byte [ ] readInt8Vector ( ) ;

Target:
private final native byte [ ] readInt8VectorAsArray ( ) ;
Source:
public java.util.Map < java.lang.String , com.android.ide.common.rendering.api.AttrResourceValue > getAllAttributes ( ) { return mAttrMap ; }

Target:
public java.util.List < com.android.ide.common.rendering.api.AttrResourceValue > getAllAttributes ( ) { return mAttrs ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName ) { return null ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String attrName ) { return null ; }
Source:
public static boolean shouldShowProgressTimestamps ( ) { return java.lang.Boolean.getBoolean ( com.google.gct.testing.GoogleCloudTestingUtils.SHOW_GOOGLE_CLOUD_TESTING_TIMESTAMPS ) ; }

Target:
public static boolean shouldShowProgressTimestamps ( ) { return java.lang.Boolean.getBoolean ( com.google.gct.testing.CloudTestingUtils.SHOW_GOOGLE_CLOUD_TESTING_TIMESTAMPS ) ; }
Source:
protected java.util.Properties createProps ( ) { java.util.Properties props = super . createProps ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , "3" ) ; return props ; }

Target:
protected java.util.Properties createProps ( ) { java.util.Properties props = super . createProps ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , "3.0.1" ) ; return props ; }
Source:
public native int getInt ( java.lang.Object object ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
private native int getInt ( java.lang.Object object , boolean accessible ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
public void enter ( ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; mTetherController.notifyInterfaceStateChange ( mIfaceName , this , IControlsTethering.STATE_UNAVAILABLE , mLastError ) ; }

Target:
public void enter ( ) { if ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.DBG ) android.util.Log.d ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Local hotspot " + ( mIfaceName ) ) ) ; sendInterfaceState ( IControlsTethering.STATE_LOCAL_HOTSPOT ) ; }
Source:
static double $opt$LongToDouble ( long a ) { return ( ( double ) ( a ) ) ; }

Target:
static double $opt$ByteToDouble ( byte a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { setSortColumn ( classCol , SortMode.CLASS ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { mAllocationViewer.refresh ( ) ; }
Source:
public void testInitialize ( ) { if ( skipTest ( ) ) return ; android.util.Log.i ( com.android.bluetooth.mapclient.MapClientTest.TAG , "testInitialize, test passed" ) ; }

Target:
public void testInitialize ( ) { org.junit.Assert.assertNotNull ( com.android.bluetooth.mapclient.MapClientService.getMapClientService ( ) ) ; }
Source:
java.lang.String getDescription ( ) ;

Target:
boolean isManifestEntryRequired ( ) ;
Source:
public void test005 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST005 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void test005 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST005 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addProperty ( CodeItemBuilder.DEX_OPTIMIZE.getName ( ) , "true" ) . compileAndRunTest ( ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { refreshTags ( ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { refreshTags ( ) ; refreshApps ( ) ; }
Source:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( myChecksum ) != ( myPatch.digestFile ( toFile ) ) ; }

Target:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( myChecksum ) != ( myPatch.digestFile ( toFile , myPatch.isNormalized ( ) ) ) ; }
Source:
public void onSaveInstanceState ( final android.os.Bundle outState ) { outState.putByteArray ( ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN , mToken ) ; outState.putBoolean ( com.android.settings.fingerprint.FingerprintSettings.FingerprintSettingsFragment.KEY_LAUNCHED_CONFIRM , mLaunchedConfirm ) ; }

Target:
public void onSaveInstanceState ( final android.os.Bundle outState ) { outState.putByteArray ( ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN , mToken ) ; outState.putBoolean ( com.android.settings.fingerprint.FingerprintSettings.FingerprintSettingsFragment.KEY_LAUNCHED_CONFIRM , mLaunchedConfirm ) ; outState.putSerializable ( "mFingerprintsRenaming" , mFingerprintsRenaming ) ; }
Source:
public void scanAvailableAsecs ( ) { updateExternalMediaStatusInner ( true , false , false ) ; }

Target:
public void scanAvailableAsecs ( ) { updateExternalMediaStatusInner ( true , false , false ) ; if ( mShouldRestoreconData ) { com.android.server.pm.SELinuxMMAC.setRestoreconDone ( ) ; mShouldRestoreconData = false ; } }
Source:
public long getSeen ( ) { long seen = 0 ; for ( android.net.wifi.ScanResult result : mScanResultCache.snapshot ( ) . values ( ) ) { if ( ( result.timestamp ) > seen ) { seen = result.timestamp ; } } return seen ; }

Target:
public long getSeen ( ) { evictOldScanResults ( ) ; long seen = 0 ; for ( android.net.wifi.ScanResult result : mScanResultCache.values ( ) ) { if ( ( result.timestamp ) > seen ) { seen = result.timestamp ; } } return seen ; }
Source:
public void mouseUp ( org.eclipse.swt.events.MouseEvent e ) { handleMouseEvent ( e ) ; }

Target:
public void mouseDown ( org.eclipse.swt.events.MouseEvent e ) { handleMouseEvent ( e ) ; }
Source:
private int getUnknownSourcesSettings ( ) { return android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.INSTALL_NON_MARKET_APPS , ( - 1 ) ) ; }

Target:
private int getUnknownSourcesSettings ( ) { return android.provider.Settings.Secure.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Secure.INSTALL_NON_MARKET_APPS , ( - 1 ) ) ; }
Source:
public void test_twoJar_diff_getResourceAsStream ( ) throws java.lang.Exception { dalvik.system.DexClassLoaderTest.createInstanceAndCallStaticMethod ( dalvik.system.DexClassLoaderTest.Configuration.TWO_JAR , "test.TestMethods" , "test_diff_getResourceAsStream" ) ; }

Target:
public void test_twoJar_diff_getResourceAsStream ( ) throws java.lang.Exception { createLoaderAndCallMethod ( "test.TestMethods" , "test_diff_getResourceAsStream" , jar1 , jar2 ) ; }
Source:
public void test_with_TemporalField_long_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.with ( java.time.temporal.ChronoField.YEAR , 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }

Target:
public void test_withYear_int_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.withYear ( 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }
Source:
public com.android.sched.vfs.OutputVFile createOutputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return new com.android.sched.vfs.zip.OutputZipVFile ( zos , new java.util.zip.ZipEntry ( path.getPathAsString ( getSeparator ( ) ) ) , zipFile , this ) ; }

Target:
public com.android.sched.vfs.OutputVFile createOutputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return new com.android.sched.vfs.OutputZipVFile ( zos , new java.util.zip.ZipEntry ( path.getPathAsString ( getSeparator ( ) ) ) , zipFile , this ) ; }
Source:
public com.google.common.hash.Hasher putString ( java.lang.CharSequence charSequence , java.nio.charset.Charset charset ) { return putBytes ( charSequence.toString ( ) . getBytes ( charset ) ) ; }

Target:
protected void update ( byte [ ] b ) { checkNotDone ( ) ; digest.update ( b ) ; }
Source:
public final void testEquals_Null ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( 1 , 2 ) ; assertFalse ( p.equals ( null ) ) ; }

Target:
public final void testEquals_Null ( ) { com.android.ide.common.api.Point p = new com.android.ide.common.api.Point ( 1 , 2 ) ; assertFalse ( p.equals ( null ) ) ; }
Source:
com.android.build.gradle.internal.model.DefaultAndroidProject addBuildType ( @ com.android.annotations.NonNull com.android.build.gradle.model.BuildTypeContainer buildTypeContainer ) { buildTypes.put ( buildTypeContainer.getBuildType ( ) . getName ( ) , buildTypeContainer ) ; return this ; }

Target:
com.android.build.gradle.internal.model.DefaultAndroidProject addBuildType ( @ com.android.annotations.NonNull com.android.builder.model.BuildTypeContainer buildTypeContainer ) { buildTypes.put ( buildTypeContainer.getBuildType ( ) . getName ( ) , buildTypeContainer ) ; return this ; }
Source:
public void registerPage ( java.lang.String title , java.lang.Class < ? extends org.eclipse.swt.widgets.Composite > pageClass ) { mWindow.registerPage ( title , pageClass ) ; }

Target:
public void registerPage ( java.lang.Class < ? extends com.android.sdkuilib.internal.repository.UpdaterPage > pageClass , com.android.sdkuilib.internal.repository.UpdaterPage.Purpose purpose ) { mWindow.registerPage ( pageClass , purpose ) ; }
Source:
public void validatePolicyWithInvalidPolicyUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.policyUpdate = new android.net.wifi.hotspot2.pps.UpdateParameter ( ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithInvalidPolicyUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.setPolicyUpdate ( new android.net.wifi.hotspot2.pps.UpdateParameter ( ) ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
public void testVP8EncodeDecodeVideoFromBufferToSurfaceQCIF ( ) throws java.lang.Throwable { setParameters ( 176 , 144 , 1000000 , android.media.cts.EncodeDecodeTest.MIME_TYPE_VP8 ) ; android.media.cts.EncodeDecodeTest.BufferToSurfaceWrapper.runTest ( this ) ; }

Target:
public void testVP8EncodeDecodeVideoFromBufferToBuffer720p ( ) throws java.lang.Exception { setParameters ( 1280 , 720 , 6000000 , android.media.cts.EncodeDecodeTest.MIME_TYPE_VP8 , true , false ) ; encodeDecodeVideoFromBuffer ( false ) ; }
Source:
protected com.android.sdklib.internal.repository.ArchiveInstaller createArchiveInstaler ( ) { return new com.android.sdklib.internal.repository.ArchiveInstaller ( ) ; }

Target:
protected com.android.sdklib.internal.repository.archives.ArchiveInstaller createArchiveInstaler ( ) { return new com.android.sdklib.internal.repository.archives.ArchiveInstaller ( ) ; }
Source:
public static void write ( byte [ ] from , java.io.File to ) throws java.io.IOException { com.google.common.io.ByteStreams.write ( from , com.google.common.io.Files.newOutputStreamSupplier ( to ) ) ; }

Target:
public static void write ( byte [ ] from , java.io.File to ) throws java.io.IOException { com.google.common.io.Files.asByteSink ( to ) . write ( from ) ; }
Source:
protected static com.android.sched.vfs.InputVFile getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { try { assert ( com.android.jack.experimental.incremental.JackIncremental.incrementalOutputLibrary ) != null ; return com.android.jack.experimental.incremental.JackIncremental.incrementalOutputLibrary.getFile ( FileType.JAYCE , new com.android.sched.vfs.VPath ( typeName , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
protected static com.android.sched.vfs.InputVFile getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { try { assert ( com.android.jack.experimental.incremental.JackIncremental.incrementalInputLibrary ) != null ; return com.android.jack.experimental.incremental.JackIncremental.incrementalInputLibrary.getFile ( FileType.JAYCE , new com.android.sched.vfs.VPath ( typeName , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { throw new java.lang.AssertionError ( e ) ; } }