auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onTargetLoaded ( com.android.sdklib.IAndroidTarget target ) { org.eclipse.core.resources.IProject project = getProject ( ) ; if ( ( target != null ) && ( target.equals ( com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTarget ( project ) ) ) ) { updateEditor ( ) ; } }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getFrameworkResources ( com.android.sdklib.IAndroidTarget target ) { if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTargetData ( target ) ; if ( data != null ) { return data.getFrameworkResources ( ) ; } } return null ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { addInternalName ( owner ) ; addMethodDesc ( desc ) ; }

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { addInternalName ( owner ) ; addMethodDesc ( desc ) ; }
Source:
synchronized void addResult ( ) { if ( ! ( lastScans.isEmpty ( ) ) ) ( lastScans.get ( ( ( lastScans.size ( ) ) - 1 ) ) . results ) ++ ; ( results ) ++ ; }

Target:
synchronized void addResult ( int scannerId ) { com.android.bluetooth.gatt.AppScanStats.LastScan scan = getScanFromScannerId ( scannerId ) ; if ( scan != null ) { ( scan.results ) ++ ; } ( results ) ++ ; }
Source:
private int getPhoneTypeFromNetworkType ( ) { return getPhoneTypeFromNetworkType ( android.telephony.TelephonyManager.getDefaultPhone ( ) ) ; }

Target:
public java.lang.String getNetworkOperatorName ( ) { return getNetworkOperatorName ( getSubId ( ) ) ; }
Source:
public void setCdmaSubscriptionSource ( int cdmaSubscriptionType , android.os.Message response ) { android.util.Log.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; unimplemented ( response ) ; }

Target:
public void setCdmaSubscriptionSource ( int cdmaSubscriptionType , android.os.Message response ) { android.telephony.Rlog.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; unimplemented ( response ) ; }
Source:
protected void leaveGroup ( java.net.SocketAddress arg0 , java.net.NetworkInterface arg1 ) throws java.io.IOException { }

Target:
protected void joinGroup ( java.net.SocketAddress addr , java.net.NetworkInterface netInterface ) throws java.io.IOException { }
Source:
public java.lang.invoke.MethodHandle asFixedArity ( ) { assert ! ( isVarargsCollector ( ) ) ; return this ; }

Target:
public java.lang.invoke.MethodHandle asVarargsCollector ( java.lang.Class < ? > arrayType ) { arrayType.getClass ( ) ; boolean lastMatch = asCollectorChecks ( arrayType , 0 ) ; if ( ( isVarargsCollector ( ) ) && lastMatch ) return this ; return new java.lang.invoke.Transformers.VarargsCollector ( this ) ; }
Source:
public static int $noinline$intSubAddSimplifyLeft ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sub = x - y ; return sub + y ; }

Target:
public static float $noinline$floatSubAddSimplifyLeft ( float x , float y ) { float sub = x - y ; return sub + y ; }
Source:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { com.android.sdkuilib.internal.repository.sdkman2.ShellSizeAndPos.saveSizeAndPos ( mShell , com.android.sdkuilib.internal.repository.sdkman2.AvdManagerWindowImpl1.SIZE_POS_PREFIX ) ; onAndroidSdkUpdaterDispose ( ) ; }

Target:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { com.android.sdkuilib.internal.repository.sdkman2.ShellSizeAndPos.saveSizeAndPos ( mShell , com.android.sdkuilib.internal.repository.sdkman2.AvdManagerWindowImpl1.SIZE_POS_PREFIX ) ; onAndroidSdkUpdaterDispose ( ) ; mAvdPage.dispose ( ) ; }
Source:
public void visitMultiANewArrayInsn ( java.lang.String desc , int dims ) { printer.visitMultiANewArrayInsn ( desc , dims ) ; printTypeOfOperandStack ( ) ; super . visitMultiANewArrayInsn ( desc , dims ) ; }

Target:
public void visitLookupSwitchInsn ( org.objectweb.asm.Label dflt , int [ ] keys , org.objectweb.asm.Label [ ] labels ) { printer.visitLookupSwitchInsn ( dflt , keys , labels ) ; printTypeOfOperandStackTop ( ) ; super . visitLookupSwitchInsn ( dflt , keys , labels ) ; }
Source:
public com.google.common.collect.SortedMultiset < E > tailMultiset ( E fromElement , com.google.common.collect.BoundType boundType ) { return forwardMultiset ( ) . headMultiset ( fromElement , boundType ) . descendingMultiset ( ) ; }

Target:
public java.util.NavigableSet < E > tailSet ( E fromElement , boolean inclusive ) { return new com.google.common.collect.SortedMultisets.NavigableElementSet < E > ( multiset ( ) . tailMultiset ( fromElement , com.google.common.collect.BoundType.forBoolean ( inclusive ) ) ) ; }
Source:
public void testVFE10 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_18 ( ) . run ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected NoSuchMethodError or verification exception" ) ; } catch ( java.lang.NoSuchMethodError t ) { } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE10 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_18 ( ) . run ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }
Source:
public android.net.wifi.WifiConfiguration getWifiApConfiguration ( ) { enforceAccessPermission ( ) ; return mWifiStateMachine.syncGetWifiApConfiguration ( ) ; }

Target:
public android.net.wifi.WifiConfiguration getWifiApConfiguration ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getWifiApConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; return mWifiStateMachine.syncGetWifiApConfiguration ( ) ; }
Source:
public java.lang.String getPhoneName ( ) { return "GSM" ; }

Target:
public PhoneConstants.State getState ( ) { return mCT.mState ; }
Source:
public boolean isConfigured ( ) { return ( ( ( mEventTypes ) != 0 ) && ( ( mFeedbackType ) != 0 ) ) && ( ( mService ) != null ) ; }

Target:
public boolean canReceiveEvents ( ) { return ( ( ( mEventTypes ) != 0 ) && ( ( mFeedbackType ) != 0 ) ) && ( ( mService ) != null ) ; }
Source:
public void test_joinAnySource_nullNetworkInterface ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }

Target:
public void test_joinAnySource_nullGroupAddress ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = libcore.java.nio.channels.DatagramChannelMulticastTest.createReceiverChannel ( ) ; try { dc.join ( null , ipv4networkInterface ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }
Source:
public void turnOffIms ( int sessionId ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; getServiceInterface ( mBinder ) . turnOffIms ( mSlotId , mSupportedFeature , sessionId ) ; } }

Target:
public com.android.ims.internal.IImsEcbm getEcbmInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getEcbmInterface ( mSlotId , mSupportedFeature ) ; } }
Source:
public void testInstall_withMissingDistroVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withMissingDistroVersionFile ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public android.os.Bundle confirmCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public android.os.Bundle confirmCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }
Source:
public com.android.layoutlib.api.SceneResult animate ( int object , int animation , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return new com.android.layoutlib.api.SceneResult ( com.android.layoutlib.api.SceneResult.LayoutStatus.NOT_IMPLEMENTED ) ; }

Target:
public com.android.layoutlib.api.SceneResult animate ( java.lang.Object targetObject , java.lang.String animationName , boolean isFrameworkAnimation , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
public void onResume ( ) { super . onResume ( ) ; if ( ! ( mUnavailable ) ) { initPreferences ( ) ; } }

Target:
public void onStart ( ) { super . onStart ( ) ; if ( ! ( mUnavailable ) ) { getActivity ( ) . registerReceiver ( mReceiver , new android.content.IntentFilter ( android.net.wifi.WifiManager.WIFI_STATE_CHANGED_ACTION ) ) ; initPreferences ( ) ; } }
Source:
private void printAllocationSite ( com.android.ahat.Doc doc , com.android.tools.perflib.heap.Instance inst ) { doc.section ( "Allocation Site" ) ; com.android.ahat.Site site = mSnapshot.getSiteForInstance ( inst ) ; com.android.ahat.SitePrinter.printSite ( doc , mSnapshot , site ) ; }

Target:
private void printAllocationSite ( com.android.ahat.Doc doc , com.android.ahat.Query query , com.android.tools.perflib.heap.Instance inst ) { doc.section ( "Allocation Site" ) ; com.android.ahat.Site site = mSnapshot.getSiteForInstance ( inst ) ; com.android.ahat.SitePrinter.printSite ( mSnapshot , doc , query , com.android.ahat.ObjectHandler.ALLOCATION_SITE_ID , site ) ; }
Source:
public java.lang.String format ( double quantity , com.ibm.icu.text.NumberFormat numberFormat , com.ibm.icu.text.PluralRules pluralRules ) { java.lang.String formatStr = numberFormat.format ( quantity ) ; java.lang.String variant = computeVariant ( quantity , numberFormat , pluralRules ) ; return getByVariant ( variant ) . format ( formatStr ) ; }

Target:
public java.lang.String format ( double quantity , com.ibm.icu.text.NumberFormat numberFormat , com.ibm.icu.text.PluralRules pluralRules ) { java.lang.String formatStr = numberFormat.format ( quantity ) ; java.lang.String variant = pluralRules.select ( quantity , numberFormat ) ; return getByVariant ( variant ) . format ( formatStr ) ; }
Source:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > allAsList ( com.google.common.util.concurrent.ListenableFuture < ? extends V > ... futures ) { return new com.google.common.util.concurrent.Futures.ListFuture < V > ( com.google.common.collect.ImmutableList.copyOf ( futures ) , true , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < V > com.google.common.util.concurrent.ListenableFuture < java.util.List < V > > allAsList ( com.google.common.util.concurrent.ListenableFuture < ? extends V > ... futures ) { return com.google.common.util.concurrent.Futures.listFuture ( com.google.common.collect.ImmutableList.copyOf ( futures ) , true , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; }
Source:
protected void setUpMeteredNetwork ( ) throws java.lang.Exception { setMeteredNetwork ( ) ; }

Target:
protected boolean setUpActiveNetworkMeteringState ( ) throws java.lang.Exception { return setMeteredNetwork ( ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { addCodeUsage ( methodCall.getReceiverType ( ) ) ; return super . visit ( methodCall ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBody x ) { super . endVisit ( x ) ; inBody = false ; }
Source:
public boolean isPageComplete ( ) { if ( ! ( mShown ) ) { return false ; } return super . isPageComplete ( ) ; }

Target:
public boolean isPageComplete ( ) { if ( ( ! ( mShown ) ) && ( mValues.createActivity ) ) { return false ; } return super . isPageComplete ( ) ; }
Source:
public long length ( ) throws java.io.IOException { try { return Libcore.os.fstat ( fd ) . st_size ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public long length ( ) throws java.io.IOException { try { return Libcore.os.fstat ( fd ) . st_size ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public abstract java.io.OutputStream newFileOutputStream ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.FileNotFoundException ;

Target:
java.util.Properties loadProperties ( @ com.android.annotations.NonNull java.io.File file ) ;
Source:
public int getCarrierPrivilegeStatus ( android.content.pm.PackageInfo packageInfo ) { com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules carrierPrivilegeRules = getCarrierPrivilegeRules ( ) ; return carrierPrivilegeRules == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : carrierPrivilegeRules.getCarrierPrivilegeStatus ( packageInfo ) ; }

Target:
public int getCarrierPrivilegeStatus ( android.content.pm.PackageManager packageManager , java.lang.String packageName ) { if ( ( mUiccProfile ) != null ) { return mUiccProfile.getCarrierPrivilegeStatus ( packageManager , packageName ) ; } else { return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED ; } }
Source:
public void testRunEnded ( long elapsedTime ) { mTestTime = elapsedTime ; }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > resultBundle ) { mTestTime = elapsedTime ; mResultBundle = resultBundle ; }
Source:
public static com.android.tv.dvr.ScheduledRecording normalizePriority ( com.android.tv.dvr.ScheduledRecording orig ) { return com.android.tv.dvr.ScheduledRecording.buildFrom ( orig ) . setPriority ( orig.getId ( ) ) . build ( ) ; }

Target:
public static com.android.tv.dvr.data.ScheduledRecording normalizePriority ( com.android.tv.dvr.data.ScheduledRecording orig ) { return com.android.tv.dvr.data.ScheduledRecording.buildFrom ( orig ) . setPriority ( orig.getId ( ) ) . build ( ) ; }
Source:
private void registerListeners ( ) { mRingtonePref.setOnPreferenceChangeListener ( this ) ; }

Target:
private void registerListeners ( ) { mRingtonePref.setOnPreferenceChangeListener ( this ) ; final android.content.IntentFilter intentFilter = new android.content.IntentFilter ( com.android.internal.telephony.TelephonyIntents.ACTION_SIM_STATE_CHANGED ) ; registerReceiver ( mReceiver , intentFilter ) ; }
Source:
private static boolean verifyMagic ( byte [ ] magic ) { return ( java.util.Arrays.equals ( magic , com.android.dexdeps.DexData.HeaderItem.DEX_FILE_MAGIC_v035 ) ) || ( java.util.Arrays.equals ( magic , com.android.dexdeps.DexData.HeaderItem.DEX_FILE_MAGIC_v037 ) ) ; }

Target:
private static boolean verifyMagic ( byte [ ] magic ) { return ( ( java.util.Arrays.equals ( magic , com.android.dexdeps.DexData.HeaderItem.DEX_FILE_MAGIC_v035 ) ) || ( java.util.Arrays.equals ( magic , com.android.dexdeps.DexData.HeaderItem.DEX_FILE_MAGIC_v037 ) ) ) || ( java.util.Arrays.equals ( magic , com.android.dexdeps.DexData.HeaderItem.DEX_FILE_MAGIC_v038 ) ) ; }
Source:
public void onBootPhase ( int phase ) { if ( phase == ( SystemService.PHASE_ACTIVITY_MANAGER_READY ) ) { mMountService.systemReady ( ) ; } }

Target:
public void onBootPhase ( int phase ) { if ( phase == ( SystemService.PHASE_ACTIVITY_MANAGER_READY ) ) { mMountService.systemReady ( ) ; } else if ( phase == ( SystemService.PHASE_BOOT_COMPLETED ) ) { mMountService.bootCompleted ( ) ; } }
Source:
public void enter ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "entering Idle state" ) ; sendMessageDelayed ( com.android.internal.telephony.InboundSmsHandler.EVENT_RELEASE_WAKELOCK , com.android.internal.telephony.InboundSmsHandler.WAKELOCK_TIMEOUT ) ; }

Target:
public void enter ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "entering Idle state" ) ; sendMessageDelayed ( com.android.internal.telephony.InboundSmsHandler.EVENT_RELEASE_WAKELOCK , getWakeLockTimeout ( ) ) ; }
Source:
public com.android.ahat.heapdump.Value get ( int index ) { return com.android.ahat.heapdump.Value.pack ( values [ index ] ) ; }

Target:
public com.android.ahat.heapdump.Value get ( int index ) { return com.android.ahat.heapdump.Value.pack ( shorts [ index ] ) ; }
Source:
public abstract com.android.dialer.main.Main getMain ( ) ;

Target:
public abstract com.android.dialer.calllog.config.CallLogConfig callLogConfig ( ) ;
Source:
public void onCallDestroyed ( android.telecom.Call call ) { android.util.Log.i ( android.telecom.cts.TAG , ( "onCallDestroyed, Call: " + call ) ) ; }

Target:
public void onCallDestroyed ( android.telecom.Call call ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , ( "onCallDestroyed, Call: " + call ) ) ; }
Source:
public boolean parse3339 ( java.lang.String s ) { if ( s == null ) { throw new java.lang.NullPointerException ( "time string is null" ) ; } if ( nativeParse3339 ( s ) ) { timezone = android.text.format.Time.TIMEZONE_UTC ; return true ; } return false ; }

Target:
public boolean parse3339 ( java.lang.String s ) { if ( s == null ) { throw new java.lang.NullPointerException ( "time string is null" ) ; } if ( parse3339Internal ( s ) ) { timezone = android.text.format.Time.TIMEZONE_UTC ; return true ; } return false ; }
Source:
public void onFileServicesUpdated ( java.util.List < android.telephony.mbms.FileServiceInfo > services ) { try { callback.onFileServicesUpdated ( services ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }

Target:
public void onMiddlewareReady ( ) { try { callback.onMiddlewareReady ( ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }
Source:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testApp ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testApp , captureStdOut ) ; }
Source:
private void assertFailureStackContainsThisClass ( java.lang.Throwable e ) { assertTrue ( com.google.common.base.Throwables.getStackTraceAsString ( e ) . contains ( getClass ( ) . getSimpleName ( ) . toString ( ) ) ) ; }

Target:
protected boolean matchesSafely ( java.lang.Throwable e ) { return com.google.common.base.Throwables.getStackTraceAsString ( e ) . contains ( android.support.test.espresso.base.DefaultFailureHandlerTest.class . getSimpleName ( ) . toString ( ) ) ; }
Source:
final com.android.server.WindowManagerService.WindowState windowForClientLocked ( com.android.server.WindowManagerService.Session session , android.view.IWindow client ) { return windowForClientLocked ( session , client.asBinder ( ) ) ; }

Target:
final com.android.server.WindowManagerService.WindowState windowForClientLocked ( com.android.server.WindowManagerService.Session session , android.view.IWindow client , boolean throwOnError ) { return windowForClientLocked ( session , client.asBinder ( ) , throwOnError ) ; }
Source:
public static com.android.resources.ResourceType [ ] getRelatedResourceTypes ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folderType ) { com.android.resources.ResourceType [ ] array = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.mFolderToTypeMap.get ( folderType ) ; if ( array != null ) { return array ; } return new com.android.resources.ResourceType [ 0 ] ; }

Target:
public static com.android.resources.ResourceType [ ] getRelatedResourceTypes ( com.android.resources.ResourceFolderType folderType ) { com.android.resources.ResourceType [ ] array = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.mFolderToTypeMap.get ( folderType ) ; if ( array != null ) { return array ; } return new com.android.resources.ResourceType [ 0 ] ; }
Source:
public java.lang.String getTargetHash ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( getAndroidVersion ( ) ) ; }

Target:
public com.android.sdklib.repository.descriptors.IPkgDesc getDesc ( ) { return mDesc ; }
Source:
long getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVFile file ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
long getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVFile file ) { return workVFS.getLastModified ( file ) ; }
Source:
private static boolean checkCompliance ( java.lang.String optionValue ) { for ( java.lang.String s : com.android.ide.eclipse.adt.AndroidConstants.COMPILER_COMPLIANCE ) { if ( ( s != null ) && ( s.equals ( optionValue ) ) ) { return true ; } } return false ; }

Target:
private static boolean checkCompliance ( java.lang.String optionValue ) { for ( java.lang.String s : com.android.ide.eclipse.adt.AdtConstants.COMPILER_COMPLIANCE ) { if ( ( s != null ) && ( s.equals ( optionValue ) ) ) { return true ; } } return false ; }
Source:
public void testPressure_fastest_batching ( ) throws java.lang.Throwable { runBatchingSensorTest ( Sensor.TYPE_PRESSURE , android.hardware.cts.SensorBatchingTests.RATE_FASTEST , android.hardware.cts.SensorBatchingTests.BATCHING_10S ) ; }

Target:
public void testGyroscope_50hz_flush ( ) throws java.lang.Throwable { runFlushSensorTest ( Sensor.TYPE_GYROSCOPE , android.hardware.cts.SensorBatchingTests.RATE_50HZ , android.hardware.cts.SensorBatchingTests.BATCHING_PERIOD ) ; }
Source:
public void mousePressed ( java.awt.event.MouseEvent event ) { currentButton = ( event.isShiftDown ( ) ) ? java.awt.event.MouseEvent.BUTTON3 : event.getButton ( ) ; paint ( event.getX ( ) , event.getY ( ) , currentButton ) ; }

Target:
public void mouseDragged ( java.awt.event.MouseEvent event ) { if ( ! ( checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ) ) { paint ( event.getX ( ) , event.getY ( ) , currentButton ) ; } }
Source:
public final void setPriority ( int streamID , int priority ) { }

Target:
public final void setRate ( int streamID , float rate ) { }
Source:
public static boolean $noinline$NotEqualBoolVsIntConst ( boolean arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg ? 0 : 1 ) == 2 ; }

Target:
public static boolean $noinline$NotEqualBoolVsIntConst ( boolean arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg ? Main.$inline$ReturnArg ( 0 ) : Main.$inline$ReturnArg ( 1 ) ) == 2 ; }
Source:
public void test_Any_Lower ( ) throws java.lang.Exception { libcore.icu.Transliterator t = new libcore.icu.Transliterator ( "Any-Lower" ) ; assertEquals ( "hello world!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; }

Target:
public void test_Any_Lower ( ) throws java.lang.Exception { android.icu.text.Transliterator t = android.icu.text.Transliterator.getInstance ( "Any-Lower" ) ; assertEquals ( "hello world!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; }
Source:
public java.util.Collection < java.lang.String > getNewNames ( ) { return newMethodSignatures.values ( ) ; }

Target:
public java.util.Collection < com.android.jack.shrob.obfuscation.key.MethodKey > getNewKeys ( ) { return newMethodKeys.values ( ) ; }
Source:
public void setsockoptGroupSourceReq ( java.io.FileDescriptor fd , int level , int option , android.system.StructGroupSourceReq value ) throws android.system.ErrnoException { os.setsockoptGroupSourceReq ( fd , level , option , value ) ; }

Target:
public android.system.StructRlimit getrlimit ( int resource ) throws android.system.ErrnoException { return os.getrlimit ( resource ) ; }
Source:
protected void onPause ( ) { super . onPause ( ) ; activePeer.onActivityPause ( ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( this ) . unregisterReceiver ( showBlockReportSpamDialogReceiver ) ; }

Target:
protected void onPause ( ) { super . onPause ( ) ; activePeer.onActivityPause ( ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( this ) . unregisterReceiver ( showBlockReportSpamDialogReceiver ) ; android.support.v4.content.LocalBroadcastManager.getInstance ( this ) . unregisterReceiver ( placeDuoCallReceiver ) ; }
Source:
public java.io.File generate ( org.eclipse.jdt.core.dom.CompilationUnit cu ) { return null ; }

Target:
public java.io.File generate ( org.eclipse.jdt.core.dom.CompilationUnit cu , java.io.File inputFile ) { return null ; }
Source:
public void validateConfigWithoutSubscriptionUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.subscriptionUpdate = null ; org.junit.Assert.assertTrue ( config.validate ( ) ) ; }

Target:
public void validateConfigWithoutSubscriptionUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.setSubscriptionUpdate ( null ) ; org.junit.Assert.assertTrue ( config.validate ( ) ) ; }
Source:
static final int getKeyLength ( int x ) { return ( x > > 29 ) & 3 ; }

Target:
public static final int keyToLength ( int key ) { return ( ( key & - 16777216 ) > > 24 ) + 1 ; }
Source:
private static boolean isBootImageOnDisk ( ) { for ( java.lang.String instructionSet : com.android.server.pm.PackageManagerService.getAllDexCodeInstructionSets ( ) ) { if ( ! ( dalvik.system.VMRuntime.isBootClassPathOnDisk ( instructionSet ) ) ) { return false ; } } return true ; }

Target:
private static boolean isBootImageOnDisk ( ) { for ( java.lang.String instructionSet : com.android.server.pm.InstructionSets.getAllDexCodeInstructionSets ( ) ) { if ( ! ( dalvik.system.VMRuntime.isBootClassPathOnDisk ( instructionSet ) ) ) { return false ; } } return true ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { mAlloc_RGBA_1D.destroy ( ) ; mAlloc_RGBA_2D.destroy ( ) ; mScript.destroy ( ) ; super . tearDown ( ) ; }
Source:
private byte [ ] getProgram ( android.net.apf.ApfTest.MockIpManagerCallback cb , android.net.apf.ApfFilter filter , android.net.LinkProperties lp ) { cb.resetApfProgramWait ( ) ; filter.setLinkProperties ( lp ) ; return cb.getApfProgram ( ) ; }

Target:
private byte [ ] getProgram ( android.net.apf.ApfTest.MockIpClientCallback cb , android.net.apf.ApfFilter filter , android.net.LinkProperties lp ) { cb.resetApfProgramWait ( ) ; filter.setLinkProperties ( lp ) ; return cb.getApfProgram ( ) ; }
Source:
public final void testRectRect ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r2 = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( r ) ; assertNotSame ( r2 , r ) ; assertEquals ( r2 , r ) ; }

Target:
public final void testRectRect ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.common.api.Rect r2 = new com.android.ide.common.api.Rect ( r ) ; assertNotSame ( r2 , r ) ; assertEquals ( r2 , r ) ; }
Source:
public void testSave_afterRotation ( ) throws java.lang.Exception { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; try { saveTest ( true ) ; } finally { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; } }

Target:
public void testSave_afterRotation ( ) throws java.lang.Exception { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; try { saveTest ( true ) ; } finally { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; cleanUpAfterScreenOrientationIsBackToPortrait ( ) ; } }
Source:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , callDetailsEntries , contact , canReportCallerId ) ; }

Target:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , callDetailsEntries , contact , canReportCallerId , canSupportAssistedDialing ) ; }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { android.util.Log.d ( com.android.providers.telephony.SmsProviderTestable.TAG , "InMemorySmsProviderDbHelper onCreate creating the sms tables" ) ; db.execSQL ( MmsSmsDatabaseHelper.CREATE_SMS_TABLE_STRING ) ; db.execSQL ( MmsSmsDatabaseHelper.CREATE_ATTACHMENTS_TABLE_STRING ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { android.util.Log.d ( com.android.providers.telephony.SmsProviderTestable.TAG , "InMemorySmsProviderDbHelper onCreate creating the sms tables" ) ; db.execSQL ( MmsSmsDatabaseHelper.CREATE_SMS_TABLE_STRING ) ; db.execSQL ( MmsSmsDatabaseHelper.CREATE_RAW_TABLE_STRING ) ; db.execSQL ( MmsSmsDatabaseHelper.CREATE_ATTACHMENTS_TABLE_STRING ) ; }
Source:
public boolean hasNextLine ( ) { saveCurrentStatus ( ) ; java.lang.String result = findWithinHorizon ( java.util.Scanner.LINE_PATTERN , 0 ) ; recoverPreviousStatus ( ) ; return result != null ; }

Target:
public boolean hasNextLine ( ) { prepareForScan ( ) ; java.lang.String result = findWithinHorizon ( java.util.Scanner.LINE_PATTERN , 0 ) ; recoverPreviousStatus ( ) ; return result != null ; }
Source:
protected void onPreExecute ( ) { mBitmap = getBitmap ( ) ; mReferenceBitmap = android.holo.cts.BitmapAssets.getBitmap ( getApplicationContext ( ) , mBitmapName ) ; mSame = mBitmap.sameAs ( mReferenceBitmap ) ; }

Target:
protected void onPreExecute ( ) { mBitmap = getBitmap ( ) ; mReferenceBitmap = android.holo.cts.BitmapAssets.getBitmap ( getApplicationContext ( ) , mBitmapName ) ; final int threshold = 1 ; mSame = compareTo ( mBitmap , mReferenceBitmap , threshold ) ; }
Source:
public java.lang.String toString ( ) { return ( ( "ID: " + ( getID ( ) ) ) + " desc: " ) + ( mItem ) ; }

Target:
public java.lang.String toString ( ) { if ( com.android.bluetooth.avrcpcontroller.BrowseTree.VDBG ) { return ( ( "ID: " + ( getID ( ) ) ) + " desc: " ) + ( mItem ) ; } else { return "ID: " + ( getID ( ) ) ; } }
Source:
public void loggedRun ( ) { synchronized ( mTelecomLock ) { if ( mIsPending ) { com.android.server.telecom.Log.i ( this , "Call filtering has timed out." ) ; com.android.server.telecom.Log.event ( mCall , Log.Events.FILTERING_TIMED_OUT ) ; mListener.onCallFilteringComplete ( mCall , mResult ) ; mIsPending = false ; } } }

Target:
public void loggedRun ( ) { synchronized ( mTelecomLock ) { if ( mIsPending ) { android.telecom.Log.i ( this , "Call filtering has timed out." ) ; android.telecom.Log.addEvent ( mCall , LogUtils.Events.FILTERING_TIMED_OUT ) ; mListener.onCallFilteringComplete ( mCall , mResult ) ; mIsPending = false ; } } }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( org.chromium.base.SystemMessageHandler.DELAYED_SCHEDULED_WORK ) ) { mDelayedScheduledTimeTicks = 0 ; } nativeDoRunLoopOnce ( mMessagePumpDelegateNative , mDelayedScheduledTimeTicks ) ; }

Target:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( org.chromium.base.SystemMessageHandler.DELAYED_SCHEDULED_WORK ) ) { mDelayedScheduledTimeTicks = 0 ; } nativeDoRunLoopOnce ( mMessagePumpDelegateNative , mMessagePumpNative , mDelayedScheduledTimeTicks ) ; }
Source:
public void testVFE7 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_9" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1" , java.lang.ArrayIndexOutOfBoundsException.class , new boolean [ 2 ] , ( - 1 ) ) ; }
Source:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { vfs.delete ( file ) ; digests.remove ( file.getPath ( ) ) ; }

Target:
synchronized void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { vfs.delete ( file ) ; digests.remove ( file.getPath ( ) ) ; digest = null ; }
Source:
public java.lang.String telephonyGetLine1NumberForSubscription ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subId" ) java.lang.Integer subId ) { return mTelephonyManager.getLine1NumberForSubscriber ( subId ) ; }

Target:
public java.lang.String telephonyGetLine1NumberForSubscription ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subId" ) java.lang.Integer subId ) { return mTelephonyManager.getLine1Number ( subId ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { newOrEdit ( false ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { on_UserButtonDelete_widgetSelected ( e ) ; }
Source:
java.lang.Iterable < java.io.File > getCompileClasspath ( ) ;

Target:
java.io.File getManifestFile ( ) ;
Source:
public static void setSyncAutomatically ( android.accounts.Account account , java.lang.String authority , boolean sync ) { try { android.content.ContentResolver.getContentService ( ) . setSyncAutomatically ( account , authority , sync ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public static void setSyncAutomaticallyAsUser ( android.accounts.Account account , java.lang.String authority , boolean sync , int userId ) { try { android.content.ContentResolver.getContentService ( ) . setSyncAutomaticallyAsUser ( account , authority , sync , userId ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsIntIntIntInt args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.min ( args.inMaxValue , java.lang.StrictMath.max ( args.inValue , args.inMinValue ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsIntFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.convertIntToFloat ( args.inV ) , 1 , 1 ) ; }
Source:
void setVideoState ( java.lang.String callId , int videoState ) { android.telecom.Log.v ( this , "setVideoState: %d" , videoState ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setVideoState ( callId , videoState ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void setCallerDisplayName ( java.lang.String callId , java.lang.String callerDisplayName , int presentation ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setCallerDisplayName ( callId , callerDisplayName , presentation , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public void answer ( android.net.wifi.WifiScanner.ScanSettings settings , android.net.wifi.WifiScanner.ScanListener listener , android.os.WorkSource workSource ) throws java.lang.Exception { assertEquals ( settings.band , WifiScanner.WIFI_BAND_5_GHZ_WITH_DFS ) ; assertNull ( settings.channels ) ; }

Target:
public void answer ( android.net.wifi.WifiScanner.ScanSettings settings , android.net.wifi.WifiScanner.ScanListener listener , android.os.WorkSource workSource ) throws java.lang.Exception { assertEquals ( settings.band , WifiScanner.WIFI_BAND_BOTH_WITH_DFS ) ; assertNull ( settings.channels ) ; }
Source:
public void shutdown ( ) { }

Target:
public void shutdown ( ) { mContentResolver.unregisterContentObserver ( mContactsStatusReceiver ) ; }
Source:
static void asBytes ( long [ ] x , byte [ ] z ) { org.bouncycastle.crypto.util.Pack.longToBigEndian ( x , z , 0 ) ; }

Target:
static void asBytes ( long [ ] x , byte [ ] z ) { org.bouncycastle.util.Pack.longToBigEndian ( x , z , 0 ) ; }
Source:
public java.lang.String getProperty ( java.lang.String name ) { return null ; }

Target:
public android.telephony.ims.ImsVideoCallProvider getImsVideoCallProvider ( ) { return null ; }
Source:
public boolean isGetChannelsForBandSupported ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.isGetChannelsForBandSupportedNative ( ) ; } else { return false ; } } }

Target:
public boolean isGetChannelsForBandSupported ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.isGetChannelsForBandSupported ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.isGetChannelsForBandSupportedNative ( ) ; } else { return false ; } } } }
Source:
public com.android.jack.test.toolchain.JackScriptToolchain build ( ) { return new com.android.jack.test.toolchain.JackScriptToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) ) ; }

Target:
public com.android.jack.test.toolchain.JackApiV02IncrementalToolchain build ( ) { java.io.File jackPrebuilt = ( com.android.jack.test.toolchain.AbstractTestTools.isPrebuiltAvailable ( "jack" ) ) ? com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) : null ; return new com.android.jack.test.toolchain.JackApiV02IncrementalToolchain ( jackPrebuilt ) ; }
Source:
public java.lang.Object getViewKey ( ) { return mDescriptor ; }

Target:
public java.lang.Object getViewCookie ( ) { return mDescriptor ; }
Source:
public void testAllOfMatcherForMailToScheme ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) android.net.Uri schemeUri = android.net.Uri.parse ( "mailto:nobody@google.com" ) ; org.hamcrest.Matcher < android.net.Uri > allOfMatcher = org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasScheme ( org.hamcrest.CoreMatchers.equalTo ( "mailto" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "mailto" ) , org.hamcrest.CoreMatchers.equalTo ( "nobody@google.com" ) ) ) ; assertTrue ( "AllOf matcher for MailTo Scheme didn't match" , allOfMatcher.matches ( schemeUri ) ) ; }

Target:
public void allOfMatcherForMailToScheme ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) android.net.Uri schemeUri = android.net.Uri.parse ( "mailto:nobody@google.com" ) ; org.hamcrest.Matcher < android.net.Uri > allOfMatcher = org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasScheme ( org.hamcrest.CoreMatchers.equalTo ( "mailto" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "mailto" ) , org.hamcrest.CoreMatchers.equalTo ( "nobody@google.com" ) ) ) ; org.junit.Assert.assertTrue ( "AllOf matcher for MailTo Scheme didn't match" , allOfMatcher.matches ( schemeUri ) ) ; }
Source:
native long rsnScriptFieldIDCreate ( long con , long sid , int slot ) ;

Target:
native long rsnScriptInvokeIDCreate ( long con , long sid , int slot ) ;
Source:
public com.android.sdkuilib.ui.GridLayoutBuilder vSpacing ( int v ) { com.android.sdkuilib.ui.GridLayoutBuilder.mGL.verticalSpacing = v ; return this ; }

Target:
public com.android.sdkuilib.ui.GridLayoutBuilder vSpacing ( int v ) { mGL.verticalSpacing = v ; return this ; }
Source:
private static boolean isSecureRandomType ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) { com.android.tools.lint.client.api.JavaParser.TypeDescriptor type = com.android.tools.lint.detector.api.TypeEvaluator.evaluate ( context , node ) ; return ( type != null ) && ( type.matchesName ( com.android.tools.lint.checks.SecureRandomDetector.JAVA_SECURITY_SECURE_RANDOM ) ) ; }

Target:
private static boolean isSecureRandomType ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiElement node ) { com.intellij.psi.PsiType type = com.android.tools.lint.detector.api.TypeEvaluator.evaluate ( context , node ) ; return ( type != null ) && ( com.android.tools.lint.checks.SecureRandomDetector.JAVA_SECURITY_SECURE_RANDOM.equals ( type.getCanonicalText ( ) ) ) ; }
Source:
public final byte [ ] wrap ( java.security.Key key ) throws java.security.InvalidKeyException , javax.crypto.IllegalBlockSizeException { if ( ( mode ) != ( javax.crypto.Cipher.WRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineWrap ( key ) ; }

Target:
public final byte [ ] wrap ( java.security.Key key ) throws java.security.InvalidKeyException , javax.crypto.IllegalBlockSizeException { if ( ( mode ) != ( javax.crypto.Cipher.WRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ) ; } return getSpi ( ) . engineWrap ( key ) ; }
Source:
public com.android.internal.telephony.Connection dial ( java.lang.String dialString , int videoState ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , videoState , null , null ) ; }

Target:
public static com.android.internal.telephony.imsphone.ImsPhone.ImsDialArgs.Builder from ( com.android.internal.telephony.imsphone.ImsPhone.ImsDialArgs dialArgs ) { return new com.android.internal.telephony.imsphone.ImsPhone.ImsDialArgs.Builder ( ) . setUusInfo ( dialArgs.uusInfo ) . setVideoState ( dialArgs.videoState ) . setIntentExtras ( dialArgs.intentExtras ) . setRttTextStream ( dialArgs.rttTextStream ) . setClirMode ( dialArgs.clirMode ) ; }
Source:
public static long getTotalTxPackets ( ) { return android.net.TrafficStats.nativeGetTotalStat ( android.net.TrafficStats.TYPE_TX_PACKETS ) ; }

Target:
public static long getLoopbackTxPackets ( ) { try { return android.net.TrafficStats.getStatsService ( ) . getIfaceStats ( android.net.TrafficStats.LOOPBACK_IFACE , android.net.TrafficStats.TYPE_TX_PACKETS ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.io.File getDexOutputFolder ( ) { return new java.io.File ( ( ( ( ( ( getGlobalScope ( ) . getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/dex/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }

Target:
public org.gradle.api.file.FileCollection getJavaClasspath ( ) { return getGlobalScope ( ) . getProject ( ) . files ( getGlobalScope ( ) . getAndroidBuilder ( ) . getCompileClasspath ( getVariantData ( ) . getVariantConfiguration ( ) ) ) ; }
Source:
protected boolean needsCustomHandling ( @ com.android.annotations.NonNull java.lang.String dataItemKey ) { return dataItemKey.startsWith ( "declare-styleable/" ) ; }

Target:
protected boolean requiresMerge ( @ com.android.annotations.NonNull java.lang.String dataItemKey ) { return dataItemKey.startsWith ( "declare-styleable/" ) ; }
Source:
private void printTypeOfOperandStackTop ( ) { printer.print ( ( ( " |__STACK: " + ( inference.getOperandStackAsString ( ) ) ) + "\n" ) ) ; }

Target:
private void printTypeOfOperandStack ( ) { printer.print ( ( ( " |__STACK: " + ( inference.getOperandStackAsString ( ) ) ) + "\n" ) ) ; printer.print ( ( ( " |__LOCAL: " + ( inference.getLocalsAsString ( ) ) ) + "\n" ) ) ; }
Source:
public void testFailed ( com.android.ddmlib.testrunner.ITestRunListener.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) ;

Target:
public void testAssumptionFailure ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) ;
Source:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "MediaController metadata changed" ) ; updateCurrentMediaState ( ) ; }

Target:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onMetadataChanged" ) ; updateCurrentMediaState ( ) ; }
Source:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findVerticalPatch ( int x , int y ) { if ( x < ( ( image.getWidth ( ) ) / 2 ) ) { return getVerticalPatchLeft ( y ) ; } else { return getVerticalPaddingRight ( y ) ; } }

Target:
public void componentResized ( java.awt.event.ComponentEvent e ) { hoverHighlightRegions.clear ( ) ; updateSize ( ) ; repaint ( ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] getInnerElements ( ) { if ( ( mCachedElements ) == null ) { mCachedElements = mElements.toArray ( new com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ mElements.size ( ) ] ) ; } return mCachedElements ; }

Target:
public com.android.ide.common.api.IDragElement [ ] getInnerElements ( ) { if ( ( mCachedElements ) == null ) { mCachedElements = mElements.toArray ( new com.android.ide.common.api.IDragElement [ mElements.size ( ) ] ) ; } return mCachedElements ; }
Source:
public void onConnectionCapabilitiesChanged ( android.telecom.Connection c , int connectionCapabilities ) { android.telecom.Log.d ( this , "onCallCapabilitiesChanged: Connection: %s, callCapabilities: %s" , c , connectionCapabilities ) ; int capabilites = this . getConnectionCapabilities ( ) ; setConnectionCapabilities ( applyHostCapabilities ( capabilites , connectionCapabilities ) ) ; }

Target:
public void onConnectionPropertiesChanged ( android.telecom.Connection c , int connectionProperties ) { android.telecom.Log.d ( this , ( "onConnectionPropertiesChanged: Connection: %s," + " connectionProperties: %s" ) , c , connectionProperties ) ; int properties = this . getConnectionProperties ( ) ; setConnectionProperties ( applyHostProperties ( properties , connectionProperties ) ) ; }
Source:
public com.android.sched.util.location.Location getLocation ( @ javax.annotation.Nonnull com.android.sched.util.config.id.KeyId < ? , ? > keyId ) { return locationsByKeyId.get ( keyId ) ; }

Target:
public com.android.sched.util.location.Location getLocation ( @ javax.annotation.Nonnull com.android.sched.util.config.id.KeyId < ? , ? > keyId ) { com.android.sched.util.location.Location location = locationsByKeyId.get ( keyId ) ; return location == null ? com.android.sched.util.location.NoLocation.getInstance ( ) : location ; }
Source:
private void requestInputMethod ( android.app.Dialog dialog ) { android.view.Window window = dialog.getWindow ( ) ; window.setSoftInputMode ( ( ( WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE ) | ( WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE ) ) ) ; }

Target:
private void requestInputMethod ( android.app.Dialog dialog ) { android.view.Window window = dialog.getWindow ( ) ; window.setSoftInputMode ( ( ( WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE ) | ( WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN ) ) ) ; }
Source:
void onHangupLocal ( ) { mCause = DisconnectCause.LOCAL ; mPreciseCause = 0 ; }

Target:
void onHangupLocal ( ) { mCause = android.telephony.DisconnectCause.LOCAL ; mPreciseCause = 0 ; }