auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static final int getContinuationPoint ( final java.lang.String [ ] keys , final java.lang.String key ) { final int index ; if ( key == null ) { index = 0 ; } else { final int insertPoint = java.util.Arrays.binarySearch ( keys , key ) ; if ( insertPoint < 0 ) { index = - insertPoint ; } else { index = insertPoint + 1 ; } } return index ; }

Target:
public int getFlagsForUid ( int uid ) { synchronized ( mPackages ) { java.lang.Object obj = mSettings.getUserIdLPr ( android.os.UserHandle.getAppId ( uid ) ) ; if ( obj instanceof com.android.server.pm.SharedUserSetting ) { final com.android.server.pm.SharedUserSetting sus = ( ( com.android.server.pm.SharedUserSetting ) ( obj ) ) ; return sus.pkgFlags ; } else if ( obj instanceof com.android.server.pm.PackageSetting ) { final com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( obj ) ) ; return ps.pkgFlags ; } } return 0 ; }
Source:
public void srcToLib ( @ javax.annotation.Nonnull java.io.File out , boolean zipFiles , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { setIncrementalFolder ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; super . srcToLib ( out , zipFiles , sources ) ; touchSourceFile ( sources ) ; super . srcToLib ( out , zipFiles , sources ) ; }

Target:
public void srcToLib ( @ javax.annotation.Nonnull java.io.File out , boolean zipFiles , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { setIncrementalFolder ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; super . srcToLib ( out , zipFiles , sources ) ; java.lang.Thread.sleep ( 1000 ) ; touchSourceFile ( sources ) ; super . srcToLib ( out , zipFiles , sources ) ; }
Source:
public void callBackFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.app.calllog.MissedCallNotifier.cancelSingleMissedCallNotification ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.MISSED_CALL_NOTIFICATION ) ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }

Target:
public void callBackFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.notification.missedcalls.MissedCallNotificationCanceller.cancelSingle ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.MISSED_CALL_NOTIFICATION ) ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }
Source:
void continueUserSwitch ( com.android.server.am.UserState uss , int oldUserId , int newUserId ) { completeSwitchAndInitialize ( uss , newUserId , false , true ) ; }

Target:
public boolean moveTopActivityToPinnedStack ( int stackId , android.graphics.Rect bounds ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "moveTopActivityToPinnedStack()" ) ; synchronized ( this ) { if ( ! ( mSupportsPictureInPicture ) ) { throw new java.lang.IllegalStateException ( ( "moveTopActivityToPinnedStack:" + "Device doesn't support picture-in-pciture mode" ) ) ; } long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mStackSupervisor.moveTopStackActivityToPinnedStackLocked ( stackId , bounds ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public java.util.Set < java.io.File > getCompileClasspath ( ) { java.util.Set < java.io.File > classpath = com.google.common.collect.Sets.newHashSet ( ) ; for ( com.android.builder.AndroidDependency lib : mFlatLibraries ) { classpath.add ( lib.getJarFile ( ) ) ; for ( com.android.builder.JarDependency jarDependency : lib.getLocalDependencies ( ) ) { classpath.add ( jarDependency.getJarFile ( ) ) ; } } for ( com.android.builder.JarDependency jar : mJars ) { if ( jar.isCompiled ( ) ) { classpath.add ( jar.getJarFile ( ) ) ; } } return classpath ; }

Target:
public java.util.Set < java.io.File > getCompileClasspath ( ) { java.util.Set < java.io.File > classpath = com.google.common.collect.Sets.newHashSet ( ) ; for ( com.android.builder.dependency.AndroidDependency lib : mFlatLibraries ) { classpath.add ( lib.getJarFile ( ) ) ; for ( com.android.builder.dependency.JarDependency jarDependency : lib.getLocalDependencies ( ) ) { classpath.add ( jarDependency.getJarFile ( ) ) ; } } for ( com.android.builder.dependency.JarDependency jar : mJars ) { if ( jar.isCompiled ( ) ) { classpath.add ( jar.getJarFile ( ) ) ; } } return classpath ; }
Source:
private void writeObject ( java.io.ObjectOutputStream stream ) throws java.io.IOException { stream.defaultWriteObject ( ) ; ensureReadParams ( ) ; stream.writeObject ( new java.math.BigInteger ( g ) ) ; stream.writeObject ( new java.math.BigInteger ( p ) ) ; stream.writeObject ( new java.math.BigInteger ( y ) ) ; }

Target:
private java.lang.Object readResolve ( ) { return new org.conscrypt.OpenSSLDHPublicKey ( new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_DH ( p.toByteArray ( ) , g.toByteArray ( ) , y.toByteArray ( ) , null ) ) ) ; }
Source:
public final com.android.server.am.WaitResult startActivityAndWait ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , java.lang.String profileFile , android.os.ParcelFileDescriptor profileFd , android.os.Bundle options ) { enforceNotIsolatedCaller ( "startActivityAndWait" ) ; com.android.server.am.WaitResult res = new com.android.server.am.WaitResult ( ) ; int userId = android.os.Binder.getOrigCallingUser ( ) ; mMainStack.startActivityMayWait ( caller , ( - 1 ) , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , profileFile , profileFd , res , null , options , userId ) ; return res ; }

Target:
public final int startActivities ( android.app.IApplicationThread caller , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options , int userId ) { enforceNotIsolatedCaller ( "startActivities" ) ; userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , true , "startActivity" , null ) ; int ret = mMainStack.startActivities ( caller , ( - 1 ) , intents , resolvedTypes , resultTo , options , userId ) ; return ret ; }
Source:
private void startDuoCall ( android.content.Context context , android.content.Intent intent ) { com.android.dialer.common.LogUtil.enterBlock ( "PlaceDuoCallReceiver.startDuoCall" ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.duo.PlaceDuoCallReceiver.EXTRA_PHONE_NUMBER ) ) ; java.lang.String phoneNumber = intent.getStringExtra ( com.android.dialer.duo.PlaceDuoCallReceiver.EXTRA_PHONE_NUMBER ) ; com.android.dialer.duo.Duo duo = com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) ; activity.startActivityForResult ( duo.getIntent ( context , phoneNumber ) , ActivityRequestCodes.DIALTACTS_DUO ) ; }

Target:
private void startDuoCall ( android.content.Context context , android.content.Intent intent ) { com.android.dialer.common.LogUtil.enterBlock ( "PlaceDuoCallReceiver.startDuoCall" ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.duo.PlaceDuoCallReceiver.EXTRA_PHONE_NUMBER ) ) ; java.lang.String phoneNumber = intent.getStringExtra ( com.android.dialer.duo.PlaceDuoCallReceiver.EXTRA_PHONE_NUMBER ) ; com.android.dialer.duo.Duo duo = com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) ; activity.startActivityForResult ( duo.getCallIntent ( phoneNumber ) . orNull ( ) , ActivityRequestCodes.DIALTACTS_DUO ) ; }
Source:
public void verifyCommandSelectTrack ( ) { mTvView.selectTrack ( TvTrackInfo.TYPE_AUDIO , "dummyTrackId" ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mSetStreamVolumeCount ) > 0 ) ; } } . run ( ) ; }

Target:
public void verifyCommandSelectTrack ( ) { resetCounts ( ) ; verifyCallbackTracksChanged ( ) ; mTvView.selectTrack ( android.media.tv.cts.TvInputServiceTest.mDummyTrack.getType ( ) , android.media.tv.cts.TvInputServiceTest.mDummyTrack.getId ( ) ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mSelectTrackCount ) > 0 ) ; } } . run ( ) ; }
Source:
public void onItemSelected ( android.widget.AdapterView < ? > parent , android.view.View view , int pos , long id ) { changeTest ( IPTestListJB.TestName.values ( ) [ pos ] ) ; }

Target:
public void run ( ) { while ( mRun ) { java.lang.Thread.yield ( ) ; synchronized ( this ) { long t = java.lang.System.currentTimeMillis ( ) ; if ( t > ( mNextSleep ) ) { try { this . wait ( ) ; } catch ( java.lang.InterruptedException e ) { } } } } }
Source:
public final void scheduleCreateService ( android.os.IBinder token , android.content.pm.ServiceInfo info , android.content.res.CompatibilityInfo compatInfo ) { android.app.ActivityThread.CreateServiceData s = new android.app.ActivityThread.CreateServiceData ( ) ; s.token = token ; s.info = info ; s.compatInfo = compatInfo ; queueOrSendMessage ( android.app.ActivityThread.H.CREATE_SERVICE , s ) ; }

Target:
public final void scheduleCreateService ( android.os.IBinder token , android.content.pm.ServiceInfo info , android.content.res.CompatibilityInfo compatInfo , int processState ) { updateProcessState ( processState , false ) ; android.app.ActivityThread.CreateServiceData s = new android.app.ActivityThread.CreateServiceData ( ) ; s.token = token ; s.info = info ; s.compatInfo = compatInfo ; sendMessage ( android.app.ActivityThread.H.CREATE_SERVICE , s ) ; }
Source:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }

Target:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myWarnings = com.intellij.updater.Patch.readMap ( in ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }
Source:
public void testCameraAppDisabled ( ) throws java.lang.Exception { final android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; enableSampleDeviceAdmin ( ) ; if ( verifyCameraAppDisabled ( ) ) { setCameraEnabled ( true ) ; } org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( false ) ; gotoCameraApp ( ) ; new com.android.devtools.systemimage.uitest.watchers.CameraAccessPermissionsWatcher ( device ) . checkForCondition ( ) ; org.junit.Assert.assertTrue ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( true ) ; org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; }

Target:
private boolean verifyCameraAppDisabled ( ) { return ( device.hasObject ( android.support.test.uiautomator.By.textContains ( "Camera has been disabled because of security policies" ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( "Can't connect to the camera." ) ) ) ; }
Source:
public java.lang.String get ( int index ) { com.android.jack.dx.io.DexBuffer.checkBounds ( index , tableOfContents.stringIds.size ) ; return open ( ( ( tableOfContents.stringIds.off ) + ( index * ( com.android.jack.dx.dex.SizeOf.STRING_ID_ITEM ) ) ) ) . readString ( ) ; }

Target:
private java.util.List < java.lang.String > readStrings ( ) { com.android.jack.dx.io.DexBuffer.Section strings = open ( tableOfContents.stringIds.off ) ; java.lang.String [ ] result = new java.lang.String [ tableOfContents.stringIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.stringIds.size ) ; ++ i ) { result [ i ] = strings.readString ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
protected void checkToolchainIsNotJillBased ( ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 1 ) ; excludeList.add ( com.android.jack.test.toolchain.LegacyJillToolchain.class ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.IToolchain.class , excludeList ) ; }

Target:
protected void checkToolchainIsNotJillBased ( ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 1 ) ; excludeList.add ( com.android.jack.test.toolchain.JillBasedToolchain.class ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.IToolchain.class , excludeList ) ; }
Source:
public boolean isConnected ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { return false ; } try { return ( android.bluetooth.BluetoothDevice.sService.getConnectionState ( this ) ) != ( android.bluetooth.BluetoothDevice.CONNECTION_STATE_DISCONNECTED ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; return false ; } }

Target:
public int getBondState ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get bond state" ) ; return android.bluetooth.BluetoothDevice.BOND_NONE ; } try { return service.getBondState ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.BOND_NONE ; }
Source:
public void deviceAttached ( android.hardware.usb.UsbDevice device ) { android.content.Intent intent = new android.content.Intent ( android.hardware.usb.UsbManager.ACTION_USB_DEVICE_ATTACHED ) ; intent.putExtra ( UsbManager.EXTRA_DEVICE , device ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; java.util.ArrayList < android.content.pm.ResolveInfo > matches ; java.lang.String defaultPackage ; synchronized ( mLock ) { matches = getDeviceMatchesLocked ( device , intent ) ; defaultPackage = mDevicePreferenceMap.get ( new com.android.server.usb.UsbSettingsManager.DeviceFilter ( device ) ) ; } resolveActivity ( intent , matches , defaultPackage , device , null ) ; }

Target:
public void deviceAttached ( android.hardware.usb.UsbDevice device ) { android.content.Intent intent = new android.content.Intent ( android.hardware.usb.UsbManager.ACTION_USB_DEVICE_ATTACHED ) ; intent.putExtra ( UsbManager.EXTRA_DEVICE , device ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; java.util.ArrayList < android.content.pm.ResolveInfo > matches ; java.lang.String defaultPackage ; synchronized ( mLock ) { matches = getDeviceMatchesLocked ( device , intent ) ; defaultPackage = mDevicePreferenceMap.get ( new com.android.server.usb.UsbSettingsManager.DeviceFilter ( device ) ) ; } mContext.sendBroadcast ( intent ) ; resolveActivity ( intent , matches , defaultPackage , device , null ) ; }
Source:
public android.net.Uri getPlaybackUri ( ) throws android.telephony.mbms.MbmsException { try { return mService.getPlaybackUri ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling getPlaybackUri: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }

Target:
public android.net.Uri getPlaybackUri ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { return mService.getPlaybackUri ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.DeadObjectException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling getPlaybackUri: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }
Source:
public void resetHotlist ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( ( com.android.server.wifi.WifiNative.sHotlistCmdId ) != 0 ) { com.android.server.wifi.WifiNative.resetHotlistNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sHotlistCmdId ) ; com.android.server.wifi.WifiNative.sHotlistCmdId = 0 ; com.android.server.wifi.WifiNative.sHotlistEventHandler = null ; } } } }

Target:
public void resetHotlist ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "resetHotlist not supported" ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( ( com.android.server.wifi.WifiNative.sHotlistCmdId ) != 0 ) { com.android.server.wifi.WifiNative.resetHotlistNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sHotlistCmdId ) ; com.android.server.wifi.WifiNative.sHotlistCmdId = 0 ; com.android.server.wifi.WifiNative.sHotlistEventHandler = null ; } } } } }
Source:
public android.icu.util.TimeZone lookupTimeZoneByCountryAndOffset ( java.lang.String countryIso , int offsetMillis , boolean isDst , long whenMillis , android.icu.util.TimeZone bias ) { libcore.util.CountryTimeZones countryTimeZones = lookupCountryTimeZones ( countryIso ) ; if ( countryTimeZones == null ) { return null ; } return countryTimeZones.lookupByOffsetWithBias ( offsetMillis , isDst , whenMillis , bias ) ; }

Target:
public android.icu.util.TimeZone lookupTimeZoneByCountryAndOffset ( java.lang.String countryIso , int offsetMillis , boolean isDst , long whenMillis , android.icu.util.TimeZone bias ) { libcore.util.CountryTimeZones countryTimeZones = lookupCountryTimeZones ( countryIso ) ; if ( countryTimeZones == null ) { return null ; } libcore.util.CountryTimeZones.OffsetResult offsetResult = countryTimeZones.lookupByOffsetWithBias ( offsetMillis , isDst , whenMillis , bias ) ; return offsetResult != null ? offsetResult.mTimeZone : null ; }
Source:
public static java.util.Map < java.lang.String , com.android.builder.model.NativeToolchain > createNativeToolchainModelMap ( @ com.android.annotations.NonNull com.android.build.gradle.internal.NdkHandler ndkHandler ) { java.util.Map < java.lang.String , com.android.builder.model.NativeToolchain > toolchains = com.google.common.collect.Maps.newHashMap ( ) ; for ( java.lang.String abi : ndkHandler.getSupportedAbis ( ) ) { toolchains.put ( abi , new com.android.build.gradle.internal.model.NativeToolchainImpl ( ( ( ( ndkHandler.getToolchainName ( ) ) + "-" ) + abi ) , ndkHandler.getCCompiler ( abi ) , ndkHandler.getCppCompiler ( abi ) ) ) ; } return toolchains ; }

Target:
public static java.util.Map < com.android.build.gradle.internal.core.Abi , com.android.builder.model.NativeToolchain > createNativeToolchainModelMap ( @ com.android.annotations.NonNull com.android.build.gradle.internal.NdkHandler ndkHandler ) { java.util.Map < com.android.build.gradle.internal.core.Abi , com.android.builder.model.NativeToolchain > toolchains = com.google.common.collect.Maps.newHashMap ( ) ; for ( com.android.build.gradle.internal.core.Abi abi : ndkHandler.getSupportedAbis ( ) ) { toolchains.put ( abi , new com.android.build.gradle.internal.model.NativeToolchainImpl ( ( ( ( ndkHandler.getToolchain ( ) . getName ( ) ) + "-" ) + ( abi.getName ( ) ) ) , ndkHandler.getCCompiler ( abi ) , ndkHandler.getCppCompiler ( abi ) ) ) ; } return toolchains ; }
Source:
public void testCaseSensitivity ( ) { com.android.ddmuilib.logcat.LogCatMessage msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "Sample message" ) ; assertEquals ( false , search ( "Message" , msg ) ) ; assertEquals ( true , search ( "sample" , msg ) ) ; }

Target:
public void testCaseSensitivity ( ) { com.android.ddmlib.logcat.LogCatMessage msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "Sample message" ) ; assertEquals ( false , search ( "Message" , msg ) ) ; assertEquals ( true , search ( "sample" , msg ) ) ; }
Source:
private android.net.LinkAddress passThroughParcel ( android.net.LinkAddress l ) { android.os.Parcel p = android.os.Parcel.obtain ( ) ; android.net.LinkAddress l2 = null ; try { l.writeToParcel ( p , 0 ) ; p.setDataPosition ( 0 ) ; l2 = LinkAddress.CREATOR.createFromParcel ( p ) ; } finally { p.recycle ( ) ; } assertNotNull ( l2 ) ; return l2 ; }

Target:
private android.net.LinkAddress passThroughParcel ( android.net.LinkAddress l ) { android.os.Parcel p = android.os.Parcel.obtain ( ) ; android.net.LinkAddress l2 = null ; try { l.writeToParcel ( p , 0 ) ; p.setDataPosition ( 0 ) ; l2 = LinkAddress.CREATOR.createFromParcel ( p ) ; } finally { p.recycle ( ) ; } org.junit.Assert.assertNotNull ( l2 ) ; return l2 ; }
Source:
public java.io.InputStream openRead ( ) throws java.io.FileNotFoundException { return new java.io.FileInputStream ( file ) ; }

Target:
public java.io.InputStream openRead ( ) throws com.android.sched.util.file.WrongPermissionException { try { return new com.android.sched.util.file.InputStreamFile ( file.getPath ( ) , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) . getInputStream ( ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { throw new java.lang.AssertionError ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( ) ; } catch ( com.android.sched.util.file.CannotSetPermissionException e ) { throw new java.lang.AssertionError ( ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }

Target:
private void setUserMobileDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setUserMobileDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setUserDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setUserDataEnabled" , e ) ; } }
Source:
public void onViewDetachedFromWindow ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( ( ( "onViewDetachedFromWindow: " + view ) + " mServedView=" ) + ( mServedView ) ) + " hasWindowFocus=" ) + ( view.hasWindowFocus ( ) ) ) ) ; if ( ( ( mServedView ) == view ) && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } }

Target:
public void focusOut ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( "focusOut: view=" + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( view ) ) ) + " mServedView=" ) + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( mServedView ) ) ) ) ; if ( ( mServedView ) != view ) { if ( false && ( view.hasWindowFocus ( ) ) ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } } }
Source:
protected java.io.File runTasksOnProject ( java.lang.String name , java.lang.String gradleVersion , java.lang.String ... tasks ) { java.io.File project = new java.io.File ( testDir , name ) ; java.io.File buildGradle = new java.io.File ( project , "build.gradle" ) ; assertTrue ( ( "Missing file: " + buildGradle ) , buildGradle.isFile ( ) ) ; runGradleTasks ( sdkDir , ndkDir , gradleVersion , project , tasks ) ; return project ; }

Target:
protected java.io.File runTasksOnProject ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String gradleVersion , @ com.android.annotations.NonNull java.util.List < java.lang.String > arguments , @ com.android.annotations.NonNull java.lang.String ... tasks ) { java.io.File project = new java.io.File ( testDir , name ) ; java.io.File buildGradle = new java.io.File ( project , "build.gradle" ) ; assertTrue ( ( "Missing file: " + buildGradle ) , buildGradle.isFile ( ) ) ; runGradleTasks ( sdkDir , ndkDir , gradleVersion , project , arguments , tasks ) ; return project ; }
Source:
public void writeSleb128 ( int i ) { try { com.android.dx.util.Leb128Utils.writeSignedLeb128 ( this , i ) ; ensureCapacity ( 0 ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new com.android.dx.util.DexException ( ( ( ( "Section limit " + ( limit ) ) + " exceeded by " ) + ( name ) ) ) ; } }

Target:
public void writeSleb128 ( int i ) { try { com.android.dex.Leb128.writeSignedLeb128 ( this , i ) ; ensureCapacity ( 0 ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new com.android.dex.DexException ( ( ( ( "Section limit " + ( limit ) ) + " exceeded by " ) + ( name ) ) ) ; } }
Source:
protected static java.io.File getMergedBlobFolder ( java.io.File folder ) throws java.io.IOException { java.io.File originalMerger = new java.io.File ( folder , DataMerger.FN_MERGER_XML ) ; java.lang.String content = com.google.common.io.Files.toString ( originalMerger , com.google.common.base.Charsets.UTF_8 ) ; content = content.replaceAll ( "\\$TOP\\$" , java.util.regex.Matcher.quoteReplacement ( folder.getAbsolutePath ( ) ) ) . replaceAll ( "\\$SEP\\$" , java.util.regex.Matcher.quoteReplacement ( java.io.File.separator ) ) ; java.io.File tempFolder = com.google.common.io.Files.createTempDir ( ) ; com.google.common.io.Files.write ( content , new java.io.File ( tempFolder , DataMerger.FN_MERGER_XML ) , com.google.common.base.Charsets.UTF_8 ) ; return tempFolder ; }

Target:
protected static java.io.File getMergedBlobFolder ( @ com.android.annotations.NonNull java.io.File folder ) throws java.io.IOException { java.io.File originalMerger = new java.io.File ( folder , DataMerger.FN_MERGER_XML ) ; return com.android.ide.common.res2.BaseTestCase.getMergedBlobFolder ( folder , originalMerger ) ; }
Source:
public void test_bind_failure ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.bind ( channel1Address ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { dc.close ( ) ; } }

Target:
public void test_bind_failure ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.socket ( ) . bind ( channel1Address ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { dc.close ( ) ; } }
Source:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsn ( number , metadata , numberFormat , null ) ; }

Target:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.String carrierCode ) { java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > intlNumberFormats = metadata.intlNumberFormats ( ) ; java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > availableFormats = ( ( ( intlNumberFormats.size ( ) ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormats ( ) : metadata.intlNumberFormats ( ) ; com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }
Source:
void finishInstrumentationLocked ( com.android.server.am.ProcessRecord app , int resultCode , android.os.Bundle results ) { if ( ( app.instrumentationWatcher ) != null ) { try { app.instrumentationWatcher.instrumentationFinished ( app.instrumentationClass , resultCode , results ) ; } catch ( android.os.RemoteException e ) { } } app.instrumentationWatcher = null ; app.instrumentationClass = null ; app.instrumentationInfo = null ; app.instrumentationProfileFile = null ; app.instrumentationArguments = null ; forceStopPackageLocked ( app.processName , ( - 1 ) , false , false , true , true , app.userId ) ; }

Target:
void finishInstrumentationLocked ( com.android.server.am.ProcessRecord app , int resultCode , android.os.Bundle results ) { if ( ( app.instrumentationWatcher ) != null ) { try { app.instrumentationWatcher.instrumentationFinished ( app.instrumentationClass , resultCode , results ) ; } catch ( android.os.RemoteException e ) { } } app.instrumentationWatcher = null ; app.instrumentationClass = null ; app.instrumentationInfo = null ; app.instrumentationProfileFile = null ; app.instrumentationArguments = null ; forceStopPackageLocked ( app.info.packageName , ( - 1 ) , false , false , true , true , app.userId ) ; }
Source:
public void mouseUp ( org.eclipse.swt.events.MouseEvent e ) { if ( ( mCurrentGesture ) == null ) { mCanvas.getSelectionManager ( ) . select ( e ) ; } finishGesture ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) , false ) ; mCanvas.redraw ( ) ; }

Target:
public void mouseMove ( org.eclipse.swt.events.MouseEvent e ) { mLastMouseX = e.x ; mLastMouseY = e.y ; mLastStateMask = e.stateMask ; if ( ( ( e.stateMask ) & ( org.eclipse.swt.SWT.BUTTON_MASK ) ) != 0 ) { if ( ( mCurrentGesture ) != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint controlPoint = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) ; updateMouse ( controlPoint , e ) ; mCanvas.redraw ( ) ; } } else { updateCursor ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) ) ; mCanvas.hover ( e ) ; } }
Source:
public final char char_literal ( ) throws org.jf.smali.RecognitionException { char value = 0 ; org.antlr.runtime.tree.CommonTree CHAR_LITERAL210 = null ; try { { CHAR_LITERAL210 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.CHAR_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_CHAR_LITERAL_in_char_literal3528 ) ) ) ; value = ( CHAR_LITERAL210 != null ? CHAR_LITERAL210.getText ( ) : null ) . charAt ( 1 ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final char char_literal ( ) throws org.jf.smali.RecognitionException { char value = 0 ; org.antlr.runtime.tree.CommonTree CHAR_LITERAL215 = null ; try { { CHAR_LITERAL215 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.CHAR_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_CHAR_LITERAL_in_char_literal3585 ) ) ) ; value = ( CHAR_LITERAL215 != null ? CHAR_LITERAL215.getText ( ) : null ) . charAt ( 1 ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private void rewind ( byte [ ] address , int keyState ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_REWIND , keyState , 0 ) ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( "BdAddress" , address ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( android.text.format.DateFormat.format ( "MM-dd HH:mm:ss" , mTimeSent ) ) ; sb.append ( ( " " + ( mEvent.toString ( ) ) ) ) ; if ( ( mPackage ) == null ) { sb.append ( " (undispatched)" ) ; } else { sb.append ( ( " to " + ( mPackage ) ) ) ; sb.append ( ( ( " in " + ( ( mTimeProcessed ) - ( mTimeSent ) ) ) + "ms" ) ) ; } return sb.toString ( ) ; }
Source:
public void iccOpenLogicalChannel ( java.lang.String AID , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIM_OPEN_CHANNEL , response ) ; rr.mParcel.writeString ( AID ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
void processRequestAck ( int serial ) { com.android.internal.telephony.RILRequest rr ; synchronized ( mRequestList ) { rr = mRequestList.get ( serial ) ; } if ( rr == null ) { android.telephony.Rlog.w ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( ( "processRequestAck: Unexpected solicited ack response! " + "serial: " ) + serial ) ) ; } else { decrementWakeLock ( rr ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + " Ack < " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } } }
Source:
public void copyFromUnchecked ( float [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFromUnchecked ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
private android.graphics.Bitmap getBadgedWifiBitmap ( int badgeEnum , int rssi ) { android.graphics.drawable.LayerDrawable layerDrawable = new android.graphics.drawable.LayerDrawable ( new android.graphics.drawable.Drawable [ ] { mContext.getDrawable ( com.android.networkrecommendation.WifiNotificationHelper.WIFI_PIE_FOR_BADGING [ rssi ] ) , mContext.getDrawable ( getWifiBadgeResourceForEnum ( badgeEnum ) ) } ) ; layerDrawable.setTint ( mContext.getColor ( R.color.color_tint ) ) ; android.content.res.Resources resources = mContext.getResources ( ) ; return com.android.internal.util.ImageUtils.buildScaledBitmap ( layerDrawable , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_width ) , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_height ) ) ; }

Target:
private android.graphics.Bitmap getBadgedWifiBitmap ( int badgeEnum , int rssi ) { int signalLevel = android.net.wifi.WifiManager.calculateSignalLevel ( rssi , 5 ) ; android.graphics.drawable.LayerDrawable layerDrawable = new android.graphics.drawable.LayerDrawable ( new android.graphics.drawable.Drawable [ ] { mContext.getDrawable ( com.android.networkrecommendation.WifiNotificationHelper.WIFI_PIE_FOR_BADGING [ signalLevel ] ) , mContext.getDrawable ( getWifiBadgeResourceForEnum ( badgeEnum ) ) } ) ; layerDrawable.setTint ( mContext.getColor ( R.color.color_tint ) ) ; android.content.res.Resources resources = mContext.getResources ( ) ; return com.android.networkrecommendation.ImageUtils.buildScaledBitmap ( layerDrawable , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_width ) , resources.getDimensionPixelSize ( android.R.dimen.notification_large_icon_height ) ) ; }
Source:
public void playSoundEffectVolume ( int effectType , float volume ) { android.media.AudioService.sendMsg ( mAudioHandler , android.media.AudioService.MSG_PLAY_SOUND_EFFECT , android.media.AudioService.SENDMSG_QUEUE , effectType , ( ( int ) ( volume * 1000 ) ) , null , 0 ) ; }

Target:
public void playSoundEffectVolume ( int effectType , float volume ) { if ( ( effectType >= ( AudioManager.NUM_SOUND_EFFECTS ) ) || ( effectType < 0 ) ) { android.util.Log.w ( android.media.AudioService.TAG , ( ( "AudioService effectType value " + effectType ) + " out of range" ) ) ; return ; } android.media.AudioService.sendMsg ( mAudioHandler , android.media.AudioService.MSG_PLAY_SOUND_EFFECT , android.media.AudioService.SENDMSG_QUEUE , effectType , ( ( int ) ( volume * 1000 ) ) , null , 0 ) ; }
Source:
private void maybeAddDeprecationWarning ( java.lang.reflect.Field field ) { com.google.devtools.common.options.Option option = field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; java.lang.String warning = option.deprecationWarning ( ) ; if ( ( ! ( warning.equals ( "" ) ) ) || ( ( field.getAnnotation ( java.lang.Deprecated.class ) ) != null ) ) { warnings.add ( ( ( ( "Option '" + ( option.name ( ) ) ) + "' is deprecated" ) + ( warning.equals ( "" ) ? "" : ": " + warning ) ) ) ; } }

Target:
private void maybeAddDeprecationWarning ( java.lang.reflect.Field field ) { com.google.devtools.common.options.Option option = field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; java.lang.String warning = option.deprecationWarning ( ) ; if ( ( ! ( warning.isEmpty ( ) ) ) || ( ( field.getAnnotation ( java.lang.Deprecated.class ) ) != null ) ) { addDeprecationWarning ( option.name ( ) , warning ) ; } }
Source:
public void createUnitTestVariantTasks ( @ com.android.annotations.NonNull com.android.build.gradle.internal.TaskFactory tasks , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.TestVariantData variantData ) { variantData.assembleVariantTask.dependsOn ( createMockableJar ) ; com.android.build.gradle.internal.scope.VariantScope variantScope = variantData.getScope ( ) ; createPreBuildTasks ( tasks , variantScope ) ; createProcessJavaResTask ( tasks , variantScope ) ; createCompileAnchorTask ( tasks , variantScope ) ; com.android.build.gradle.internal.scope.AndroidTask < org.gradle.api.tasks.compile.JavaCompile > javacTask = createJavacTask ( tasks , variantScope ) ; com.android.build.gradle.internal.TaskManager.setJavaCompilerTask ( javacTask , tasks , variantScope ) ; createUnitTestTask ( tasks , variantData ) ; variantData.assembleVariantTask.setGroup ( null ) ; }

Target:
public void createUnitTestVariantTasks ( @ com.android.annotations.NonNull com.android.build.gradle.internal.TaskFactory tasks , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.TestVariantData variantData ) { variantData.assembleVariantTask.dependsOn ( createMockableJar ) ; com.android.build.gradle.internal.scope.VariantScope variantScope = variantData.getScope ( ) ; createPreBuildTasks ( variantScope ) ; createProcessJavaResTasks ( tasks , variantScope ) ; createCompileAnchorTask ( tasks , variantScope ) ; com.android.build.gradle.internal.scope.AndroidTask < org.gradle.api.tasks.compile.JavaCompile > javacTask = createJavacTask ( tasks , variantScope ) ; com.android.build.gradle.internal.TaskManager.setJavaCompilerTask ( javacTask , tasks , variantScope ) ; createUnitTestTask ( tasks , variantData ) ; variantData.assembleVariantTask.setGroup ( null ) ; }
Source:
private void writeBtHciSnoopLogOptions ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; adapter.configHciSnoopLog ( mBtHciSnoopLog.isChecked ( ) ) ; Settings.Secure.putInt ( getActivity ( ) . getContentResolver ( ) , Settings.Secure.BLUETOOTH_HCI_LOG , ( mBtHciSnoopLog.isChecked ( ) ? 1 : 0 ) ) ; }

Target:
private void writeBluetoothEnableInbandRingingOptions ( ) { if ( ( mBluetoothEnableInbandRinging ) != null ) { android.os.SystemProperties.set ( com.android.settings.DevelopmentSettings.BLUETOOTH_ENABLE_INBAND_RINGING_PROPERTY , ( mBluetoothEnableInbandRinging.isChecked ( ) ? "true" : "false" ) ) ; } }
Source:
public java.lang.String getInstrumentationRunner ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( ( mType ) == ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { config = getTestedConfig ( ) ; } java.lang.String runner = config.mMergedFlavor.getTestInstrumentationRunner ( ) ; return runner != null ? runner : com.android.builder.core.VariantConfiguration.DEFAULT_TEST_RUNNER ; }

Target:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { if ( versionName == null ) { if ( ! ( mType.isForTesting ( ) ) ) { versionName = getVersionNameFromManifest ( ) ; } else { versionName = "" ; } } versionName = versionName + versionSuffix ; } return versionName ; }
Source:
public com.android.sdklib.devices.Software deepCopy ( ) { com.android.sdklib.devices.Software s = new com.android.sdklib.devices.Software ( ) ; s.setMinSdkLevel ( getMinSdkLevel ( ) ) ; s.setMaxSdkLevel ( getMaxSdkLevel ( ) ) ; s.setLiveWallpaperSupport ( hasLiveWallpaperSupport ( ) ) ; s.addAllBluetoothProfiles ( getBluetoothProfiles ( ) ) ; s.setGlVersion ( getGlVersion ( ) ) ; s.addAllGlExtensions ( getGlExtensions ( ) ) ; return s ; }

Target:
public com.android.sdklib.devices.Software deepCopy ( ) { com.android.sdklib.devices.Software s = new com.android.sdklib.devices.Software ( ) ; s.setMinSdkLevel ( getMinSdkLevel ( ) ) ; s.setMaxSdkLevel ( getMaxSdkLevel ( ) ) ; s.setLiveWallpaperSupport ( hasLiveWallpaperSupport ( ) ) ; s.addAllBluetoothProfiles ( getBluetoothProfiles ( ) ) ; s.setGlVersion ( getGlVersion ( ) ) ; s.addAllGlExtensions ( getGlExtensions ( ) ) ; s.setStatusBar ( hasStatusBar ( ) ) ; return s ; }
Source:
private void addImsServiceFeature ( android.util.Pair < java.lang.Integer , java.lang.Integer > featurePair ) throws android.os.RemoteException { if ( ( ( mIImsServiceController ) == null ) || ( ( mCallbacks ) == null ) ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeature called with null values." ) ; return ; } mIImsServiceController.createImsFeature ( featurePair.first , featurePair.second ) ; mCallbacks.imsServiceFeatureCreated ( featurePair.first , featurePair.second , this ) ; sendImsFeatureCreatedCallback ( featurePair.first , featurePair.second ) ; }

Target:
private void addImsServiceFeature ( android.util.Pair < java.lang.Integer , java.lang.Integer > featurePair ) throws android.os.RemoteException { if ( ( ( mIImsServiceController ) == null ) || ( ( mCallbacks ) == null ) ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeature called with null values." ) ; return ; } com.android.internal.telephony.ims.ImsServiceController.ImsFeatureStatusCallback c = new com.android.internal.telephony.ims.ImsServiceController.ImsFeatureStatusCallback ( featurePair.first , featurePair.second ) ; mFeatureStatusCallbacks.add ( c ) ; mIImsServiceController.createImsFeature ( featurePair.first , featurePair.second , c.getCallback ( ) ) ; mCallbacks.imsServiceFeatureCreated ( featurePair.first , featurePair.second , this ) ; sendImsFeatureCreatedCallback ( featurePair.first , featurePair.second ) ; }
Source:
void expect ( char c ) { if ( ( symbol ) == c ) { scanSymbol ( ) ; } else { throw new java.lang.reflect.GenericSignatureFormatError ( ) ; } }

Target:
void scanSymbol ( ) { if ( ! ( eof ) ) { if ( ( pos ) < ( buffer.length ) ) { symbol = buffer [ pos ] ; ( pos ) ++ ; } else { symbol = 0 ; eof = true ; } } else { throw new java.lang.reflect.GenericSignatureFormatError ( ) ; } }
Source:
public void test_setNegativeSuffixLjava_lang_String ( ) throws java.lang.Exception { java.text.DecimalFormat format = new java.text.DecimalFormat ( ) ; assertEquals ( "" , format.getNegativeSuffix ( ) ) ; format.setNegativeSuffix ( "NegSfx" ) ; assertEquals ( "NegSfx" , format.getNegativeSuffix ( ) ) ; assertTrue ( ( ( format.parse ( "123.45NegPfx" ) . doubleValue ( ) ) == 123.45 ) ) ; format.setNegativeSuffix ( "" ) ; assertEquals ( "" , format.getNegativeSuffix ( ) ) ; format.setNegativeSuffix ( null ) ; assertNull ( format.getNegativeSuffix ( ) ) ; }

Target:
public void test_setNegativeSuffix ( ) throws java.lang.Exception { java.text.DecimalFormat format = new java.text.DecimalFormat ( ) ; assertEquals ( "" , format.getNegativeSuffix ( ) ) ; format.setNegativeSuffix ( "NegSfx" ) ; assertEquals ( "NegSfx" , format.getNegativeSuffix ( ) ) ; assertTrue ( ( ( format.parse ( "123.45NegPfx" ) . doubleValue ( ) ) == 123.45 ) ) ; format.setNegativeSuffix ( "" ) ; assertEquals ( "" , format.getNegativeSuffix ( ) ) ; format.setNegativeSuffix ( null ) ; assertNull ( format.getNegativeSuffix ( ) ) ; }