auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public IBase.Foo [ ] someMethodWithFooVectors ( android.hardware.tests.baz.V1_0.IBase [ ] fooInput ) { android.util.Log.d ( com.android.commands.hidl_test_java.HidlTestJava.TAG , ( "Baz someMethodWithFooVectors " + ( com.android.commands.hidl_test_java.HidlTestJava.toString ( fooInput ) ) ) ) ; android.hardware.tests.baz.V1_0.IBase [ ] fooOutput = new android.hardware.tests.baz.V1_0.IBase.Foo [ 2 ] ; fooOutput [ 0 ] = fooInput [ 1 ] ; fooOutput [ 1 ] = fooInput [ 0 ] ; return fooOutput ; }

Target:
public java.util.ArrayList < java.lang.Boolean > someBoolVectorMethod ( java.util.ArrayList < java.lang.Boolean > x ) { android.util.Log.d ( com.android.commands.hidl_test_java.HidlTestJava.TAG , ( ( "Baz someBoolVectorMethod(" + ( com.android.commands.hidl_test_java.HidlTestJava.booleanVecToString ( x ) ) ) + ")" ) ) ; java.util.ArrayList < java.lang.Boolean > out = new java.util.ArrayList < java.lang.Boolean > ( ) ; for ( int i = 0 ; i < ( x.size ( ) ) ; ++ i ) { out.add ( ( ! ( x.get ( i ) ) ) ) ; } return out ; }
Source:
public boolean pingSupplicant ( ) { enforceAccessPermission ( ) ; mLog.trace ( "pingSupplicant uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncPingSupplicant ( mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return false ; } }

Target:
public boolean addOrUpdatePasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; mLog.trace ( "addorUpdatePasspointConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ! ( mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_wifi_hotspot2_enabled ) ) ) { throw new java.lang.UnsupportedOperationException ( "Passpoint not enabled" ) ; } return mWifiStateMachine.syncAddOrUpdatePasspointConfig ( mWifiStateMachineChannel , config ) ; }
Source:
private void savePreferences ( ) { org.eclipse.core.runtime.preferences.IEclipsePreferences prefs = new org.eclipse.core.runtime.preferences.InstanceScope ( ) . getNode ( GlTracePlugin.PLUGIN_ID ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_APPNAME , mActivityToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_TRACEFILE , mTraceFilePath ) ; try { prefs.flush ( ) ; } catch ( org.osgi.service.prefs.BackingStoreException e ) { } }

Target:
private void savePreferences ( ) { org.eclipse.core.runtime.preferences.IEclipsePreferences prefs = new org.eclipse.core.runtime.preferences.InstanceScope ( ) . getNode ( GlTracePlugin.PLUGIN_ID ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_APPNAME , mActivityToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_TRACEFILE , mTraceFilePath ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_DEVICE , mSelectedDevice ) ; try { prefs.flush ( ) ; } catch ( org.osgi.service.prefs.BackingStoreException e ) { } }
Source:
public static java.lang.String getJunitJarLocation ( ) throws java.io.IOException { org.osgi.framework.Bundle bundle = org.eclipse.core.runtime.Platform.getBundle ( "org.junit" ) ; if ( bundle == null ) { throw new java.io.IOException ( "Cannot find org.junit bundle" ) ; } java.net.URL jarUrl = bundle.getEntry ( ( ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) + ( com.android.ide.eclipse.adt.internal.launch.JUnitLaunchConfigDelegate.JUNIT_JAR ) ) ) ; return org.eclipse.core.runtime.FileLocator.resolve ( jarUrl ) . getFile ( ) ; }

Target:
public static java.lang.String getJunitJarLocation ( ) throws java.io.IOException { org.osgi.framework.Bundle bundle = org.eclipse.core.runtime.Platform.getBundle ( "org.junit" ) ; if ( bundle == null ) { throw new java.io.IOException ( "Cannot find org.junit bundle" ) ; } java.net.URL jarUrl = bundle.getEntry ( ( ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) + ( com.android.ide.eclipse.adt.internal.launch.JUnitLaunchConfigDelegate.JUNIT_JAR ) ) ) ; return org.eclipse.core.runtime.FileLocator.resolve ( jarUrl ) . getFile ( ) ; }
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
public android.telephony.ims.aidl.IImsRegistration getImsRegistration ( int slotIndex , int feature ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getImsRegistration ( slotIndex , feature ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsRegistration, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
private void handleSuccessfulIpConfiguration ( ) { mLastSignalLevel = - 1 ; com.android.server.wifi.WifiConfiguration c = getCurrentWifiConfiguration ( ) ; if ( c != null ) { c.numConnectionFailures = 0 ; } if ( c != null ) { com.android.server.wifi.ScanResult result = getCurrentScanResult ( ) ; if ( result == null ) { loge ( ( "WifiStateMachine: handleSuccessfulIpConfiguration and no scan results" + ( c.configKey ( ) ) ) ) ; } else { result.numIpConfigFailures = 0 ; mWifiNative.clearBlacklist ( ) ; } } }

Target:
android.net.wifi.ScanResult getCurrentScanResult ( ) { android.net.wifi.WifiConfiguration config = getCurrentWifiConfiguration ( ) ; if ( config == null ) { return null ; } java.lang.String BSSID = mWifiInfo.getBSSID ( ) ; if ( BSSID == null ) { BSSID = mTargetRoamBSSID ; } com.android.server.wifi.ScanDetailCache scanDetailCache = mWifiConfigManager.getScanDetailCacheForNetwork ( config.networkId ) ; if ( scanDetailCache == null ) { return null ; } return scanDetailCache.get ( BSSID ) ; }
Source:
public android.renderscript.cts.Floaty divide ( android.renderscript.cts.Floaty a ) { float num = java.lang.Math.abs ( mValue ) ; float den = java.lang.Math.abs ( a.mValue ) ; mError = ( ( num * ( a.mError ) ) + ( den * ( mError ) ) ) / ( den * ( den - ( a.mError ) ) ) ; mValue /= a.mValue ; return this ; }

Target:
public android.renderscript.cts.Floaty multiply ( android.renderscript.cts.Floaty a ) { mError = ( ( java.lang.Math.abs ( mValue ) ) * ( a.mError ) ) + ( ( java.lang.Math.abs ( a.mValue ) ) * ( mError ) ) ; mValue *= a.mValue ; return this ; }
Source:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
private static java.lang.String readFile ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file ) { java.io.InputStream contents = null ; try { contents = file.getFile ( ) . getContents ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.readFile ( new java.io.InputStreamReader ( contents ) ) ; } catch ( com.android.sdklib.io.StreamException e ) { } finally { try { if ( contents != null ) { contents.close ( ) ; } } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Can't read layout file" ) ; } } return null ; }

Target:
private static java.lang.String getMapKey ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile resourceFile ) { com.android.sdklib.io.IAbstractFile file = resourceFile.getFile ( ) ; java.lang.String name = file.getName ( ) ; java.lang.String folderName = file.getParentFolder ( ) . getName ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.getMapKey ( folderName , name ) ; }
Source:
public void testParseDisplayingUnhandledMessages ( ) { java.lang.String output = " **--- HELLO WORLD ---**" ; java.util.List < com.android.ide.common.blame.output.GradleMessage > gradleMessages = parser.parseToolOutput ( output ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( 1 , gradleMessages.size ( ) ) ; com.android.ide.common.blame.output.GradleMessage message = gradleMessages.get ( 0 ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( output , message.getText ( ) ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( GradleMessage.Kind.SIMPLE , message.getKind ( ) ) ; }

Target:
public void testParseDisplayingUnhandledMessages ( ) { java.lang.String output = " **--- HELLO WORLD ---**" ; java.util.List < com.android.ide.common.blame.Message > gradleMessages = parser.parseToolOutput ( output ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( 1 , gradleMessages.size ( ) ) ; com.android.ide.common.blame.Message message = gradleMessages.get ( 0 ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( output , message.getText ( ) ) ; com.android.ide.common.blame.parser.AaptOutputParserTest.assertEquals ( Message.Kind.SIMPLE , message.getKind ( ) ) ; }
Source:
private void onGetReport ( byte [ ] address , byte [ ] report , int rpt_size ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothInputDevice.EXTRA_REPORT , report ) ; data.putInt ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rpt_size ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void onGetReport ( byte [ ] address , byte [ ] report , int rptSize ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothInputDevice.EXTRA_REPORT , report ) ; data.putInt ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rptSize ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { if ( ( intent == null ) || ( ! ( com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.ACTION_PLAY_ALERT_REMINDER.equals ( intent.getAction ( ) ) ) ) ) { stopSelf ( ) ; return START_NOT_STICKY ; } com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.log ( "playing alert reminder" ) ; playAlertReminderSound ( ) ; if ( com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.queueAlertReminder ( this , false ) ) { return START_STICKY ; } else { com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.log ( "no reminders queued" ) ; stopSelf ( ) ; return START_NOT_STICKY ; } }

Target:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { if ( ( intent == null ) || ( ! ( com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.ACTION_PLAY_ALERT_REMINDER.equals ( intent.getAction ( ) ) ) ) ) { stopSelf ( ) ; return START_NOT_STICKY ; } com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.log ( "playing alert reminder" ) ; playAlertReminderSound ( intent.getBooleanExtra ( com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.ALERT_REMINDER_VIBRATE_EXTRA , true ) ) ; if ( com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.queueAlertReminder ( this , false ) ) { return START_STICKY ; } else { com.android.cellbroadcastreceiver.CellBroadcastAlertReminder.log ( "no reminders queued" ) ; stopSelf ( ) ; return START_NOT_STICKY ; } }
Source:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withEffectiveVisibility ( Visibility.VISIBLE ) , android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA ( org.hamcrest.Matchers.anyOf ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.ScrollView.class ) , android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.HorizontalScrollView.class ) ) ) ) ; }

Target:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withEffectiveVisibility ( Visibility.VISIBLE ) , android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA ( org.hamcrest.Matchers.anyOf ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.ScrollView.class ) , android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.HorizontalScrollView.class ) , android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.ListView.class ) ) ) ) ; }
Source:
protected void postCreate ( ) { com.android.sdkuilib.internal.tasks.ProgressViewFactory factory = new com.android.sdkuilib.internal.tasks.ProgressViewFactory ( ) ; factory.setProgressView ( new com.android.sdkuilib.internal.tasks.ProgressView ( mStatusText , mProgressBar , null , mUpdaterData.getSdkLog ( ) ) ) ; mUpdaterData.setTaskFactory ( factory ) ; setupSources ( ) ; initializeSettings ( ) ; if ( mUpdaterData.checkIfInitFailed ( ) ) { close ( ) ; return ; } mUpdaterData.broadcastOnSdkLoaded ( ) ; mPackageMananger = new com.android.sdkuilib.internal.repository.PackageManager ( mUpdaterData ) { @ java.lang.Override public void updatePackageTable ( ) { } } ; }

Target:
protected void postCreate ( ) { com.android.sdkuilib.internal.tasks.ProgressViewFactory factory = new com.android.sdkuilib.internal.tasks.ProgressViewFactory ( ) ; factory.setProgressView ( new com.android.sdkuilib.internal.tasks.ProgressView ( mStatusText , mProgressBar , null , mUpdaterData.getSdkLog ( ) ) ) ; mUpdaterData.setTaskFactory ( factory ) ; setupSources ( ) ; initializeSettings ( ) ; if ( mUpdaterData.checkIfInitFailed ( ) ) { close ( ) ; return ; } mUpdaterData.broadcastOnSdkLoaded ( ) ; mPackageMananger = new com.android.sdkuilib.internal.repository.PackageLoader ( mUpdaterData ) ; }
Source:
public int computeHorizontalScrollRange ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { int ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer call ( ) { return computeHorizontalScrollRange ( ) ; } } ) ; return ret ; } return mAwContents.computeHorizontalScrollRange ( ) ; }

Target:
public void setLayerType ( final int layerType , final android.graphics.Paint paint ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { org.chromium.base.ThreadUtils.postOnUiThread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setLayerType ( layerType , paint ) ; } } ) ; return ; } mAwContents.setLayerType ( layerType , paint ) ; }
Source:
public void addProviderWithInvalidCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FQDN ; config.homeSp.friendlyName = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FRIENDLY_NAME ; config.credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; config.credential.realm = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_REALM ; config.credential.caCertificate = com.android.server.wifi.FakeKeys.CA_CERT0 ; config.credential.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; config.credential.userCredential.username = "username" ; config.credential.userCredential.password = "password" ; config.credential.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TLS ; config.credential.userCredential.nonEapInnerMethod = "MS-CHAP" ; org.junit.Assert.assertFalse ( mManager.addOrUpdateProvider ( config ) ) ; }

Target:
private android.net.wifi.hotspot2.PasspointConfiguration createTestConfigWithSimCredential ( ) { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; android.net.wifi.hotspot2.pps.HomeSP homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; homeSp.setFqdn ( com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FQDN ) ; homeSp.setFriendlyName ( com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FRIENDLY_NAME ) ; config.setHomeSp ( homeSp ) ; android.net.wifi.hotspot2.pps.Credential credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; credential.setRealm ( com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_REALM ) ; android.net.wifi.hotspot2.pps.Credential.SimCredential simCredential = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; simCredential.setImsi ( com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_IMSI ) ; simCredential.setEapType ( EAPConstants.EAP_SIM ) ; credential.setSimCredential ( simCredential ) ; config.setCredential ( credential ) ; return config ; }
Source:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; boolean result = false ; if ( ( mService ) != null ) { try { result = mService.reportError ( device , error ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.reportError ( device , error ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = mPrimaryUserId ; installAppAsUser ( com.android.cts.devicepolicy.DEVICE_ADMIN_APK , mUserId ) ; setProfileOwnerOrFail ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = mPrimaryUserId ; installAppAsUser ( com.android.cts.devicepolicy.DEVICE_ADMIN_APK , mUserId ) ; if ( ! ( setProfileOwner ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ) { removeAdmin ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.DEVICE_ADMIN_PKG ) ; fail ( "Failed to set profile owner" ) ; } } }
Source:
public void remove ( @ javax.annotation.Nonnegative int index ) { index ++ ; plan.remove ( index ) ; currentTagValidityIdx = index - 1 ; constraintTagValidityIdx = index ; }

Target:
public void remove ( @ javax.annotation.Nonnegative int index ) { index ++ ; @ java.lang.SuppressWarnings ( value = "unchecked" ) com.android.sched.scheduler.PlanConstructor < T > . DecoratedRunner dr = ( ( com.android.sched.scheduler.PlanConstructor < T > . DecoratedRunner ) ( plan.remove ( index ) ) ) ; currentTagValidityIdx = java.lang.Math.min ( ( index - 1 ) , currentTagValidityIdx ) ; constraintTagValidityIdx = java.lang.Math.max ( index , constraintTagValidityIdx ) ; missingProductions.addAll ( dr.getRunner ( ) . getProductions ( ) ) ; }
Source:
void onUssdFinishedError ( ) { if ( ( mState ) == ( State.PENDING ) ) { mState = State.FAILED ; mMessage = mContext.getText ( com.android.internal.R.string.mmiError ) ; mPhone.onMMIDone ( this ) ; } }

Target:
void onUssdFinishedError ( ) { if ( ( mState ) == ( State.PENDING ) ) { mState = State.FAILED ; mMessage = mContext.getText ( com.android.internal.R.string.mmiError ) ; android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhoneMmiCode.LOG_TAG , ( "onUssdFinishedError: mmi=" + ( this ) ) ) ; mPhone.onMMIDone ( this ) ; } }
Source:
public void cellInfoList ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_0.CellInfo > records ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < android.telephony.CellInfo > response = com.android.internal.telephony.RIL.responseCellInfoList ( records ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_CELL_INFO_LIST , response ) ; mRil.mRilCellInfoListRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }

Target:
public void cellInfoList ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_0.CellInfo > records ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < android.telephony.CellInfo > response = com.android.internal.telephony.RIL.convertHalCellInfoList ( records ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_CELL_INFO_LIST , response ) ; mRil.mRilCellInfoListRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
public void hangupWaitingOrBackground ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilHangup ( mInstanceId , rr.mSerial , ( - 1 ) ) ; send ( rr ) ; }

Target:
public void setPreferredVoicePrivacy ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE , result , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; send ( rr ) ; }
Source:
private void writeLength ( int length , com.android.bluetooth.sap.CodedOutputStreamMicro out ) throws java.io.IOException { byte [ ] dataLength = new byte [ 4 ] ; dataLength [ 0 ] = dataLength [ 1 ] = 0 ; dataLength [ 2 ] = ( ( byte ) ( ( length > > 8 ) & 255 ) ) ; dataLength [ 3 ] = ( ( byte ) ( length & 255 ) ) ; out.writeRawBytes ( dataLength ) ; }

Target:
private void writeLength ( int length , com.google.protobuf.micro.CodedOutputStreamMicro out ) throws java.io.IOException { byte [ ] dataLength = new byte [ 4 ] ; dataLength [ 0 ] = dataLength [ 1 ] = 0 ; dataLength [ 2 ] = ( ( byte ) ( ( length > > 8 ) & 255 ) ) ; dataLength [ 3 ] = ( ( byte ) ( length & 255 ) ) ; out.writeRawBytes ( dataLength ) ; }
Source:
private void dumpJava ( java.io.FileDescriptor fd ) { com.android.bluetooth.btservice.BluetoothProto.BluetoothLog log = new com.android.bluetooth.btservice.BluetoothProto.BluetoothLog ( ) ; for ( com.android.bluetooth.btservice.ProfileService profile : mProfiles ) { profile.dumpProto ( log ) ; } try { java.io.FileOutputStream protoOut = new java.io.FileOutputStream ( fd ) ; protoOut.write ( log.toByteArray ( ) ) ; protoOut.close ( ) ; } catch ( java.io.IOException e ) { errorLog ( "Unable to write Java protobuf to file descriptor." ) ; } }

Target:
private void dumpJava ( java.io.FileDescriptor fd ) { com.android.bluetooth.btservice.BluetoothProto.BluetoothLog log = new com.android.bluetooth.btservice.BluetoothProto.BluetoothLog ( ) ; for ( com.android.bluetooth.btservice.ProfileService profile : mProfiles ) { profile.dumpProto ( log ) ; } try { java.io.FileOutputStream protoOut = new java.io.FileOutputStream ( fd ) ; java.lang.String protoOutString = android.util.Base64.encodeToString ( log.toByteArray ( ) , Base64.DEFAULT ) ; protoOut.write ( protoOutString.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ; protoOut.close ( ) ; } catch ( java.io.IOException e ) { errorLog ( "Unable to write Java protobuf to file descriptor." ) ; } }
Source:
public static int compare ( java.lang.String lhs , java.lang.String rhs ) { com.android.tv.data.ChannelNumber lhsNumber = com.android.tv.data.ChannelNumber.parseChannelNumber ( lhs ) ; com.android.tv.data.ChannelNumber rhsNumber = com.android.tv.data.ChannelNumber.parseChannelNumber ( rhs ) ; if ( ( lhsNumber == null ) && ( rhsNumber == null ) ) { return 0 ; } else if ( lhsNumber == null ) { return - 1 ; } else if ( ( lhsNumber != null ) && ( rhsNumber == null ) ) { return 1 ; } return lhsNumber.compareTo ( rhsNumber ) ; }

Target:
public static int compare ( java.lang.String lhs , java.lang.String rhs ) { com.android.tv.data.ChannelNumber lhsNumber = com.android.tv.data.ChannelNumber.parseChannelNumber ( lhs ) ; com.android.tv.data.ChannelNumber rhsNumber = com.android.tv.data.ChannelNumber.parseChannelNumber ( rhs ) ; if ( ( lhsNumber == null ) && ( rhsNumber == null ) ) { return com.android.tv.util.StringUtils.compare ( lhs , rhs ) ; } else if ( lhsNumber == null ) { return - 1 ; } else if ( rhsNumber == null ) { return 1 ; } return lhsNumber.compareTo ( rhsNumber ) ; }
Source:
public void listen ( ) { com.android.phone.vvm.VvmSimStateTracker.getTelephonyManager ( mContext , mPhoneAccountHandle ) . listen ( this , PhoneStateListener.LISTEN_SERVICE_STATE ) ; }

Target:
public void listen ( ) { android.telephony.TelephonyManager telephonyManager = com.android.phone.vvm.VvmSimStateTracker.getTelephonyManager ( mContext , mPhoneAccountHandle ) ; if ( telephonyManager == null ) { com.android.phone.vvm.omtp.VvmLog.e ( com.android.phone.vvm.VvmSimStateTracker.TAG , ( "Cannot create TelephonyManager from " + ( mPhoneAccountHandle ) ) ) ; return ; } telephonyManager.listen ( this , PhoneStateListener.LISTEN_SERVICE_STATE ) ; }
Source:
protected void deleteFile ( java.io.File dir ) { if ( dir.isDirectory ( ) ) { for ( java.io.File f : dir.listFiles ( ) ) { deleteFile ( f ) ; } } else if ( dir.isFile ( ) ) { assertTrue ( dir.getPath ( ) , dir.delete ( ) ) ; } }

Target:
public com.android.testutils.SdkTestCase.TestFile copy ( @ com.android.annotations.NonNull java.lang.String relativePath ) { java.lang.String targetPath = relativePath ; int replaceIndex = relativePath.indexOf ( "=>" ) ; if ( replaceIndex != ( - 1 ) ) { targetPath = relativePath.substring ( ( replaceIndex + ( "=>" . length ( ) ) ) ) ; relativePath = relativePath.substring ( 0 , replaceIndex ) ; } sourceRelativePath = relativePath ; targetRelativePath = targetPath ; return this ; }
Source:
static void addNewIncomingCall ( @ android.support.annotation.NonNull android.content.Context context ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorVoiceCall.addNewIncomingCall" ) ; java.lang.String callerId = "+44 (0) 20 7031 3000" ; com.android.dialer.simulator.impl.SimulatorConnectionService.addNewIncomingCall ( context , new android.os.Bundle ( ) , callerId ) ; }

Target:
static android.view.ActionProvider getActionProvider ( @ android.support.annotation.NonNull android.content.Context context ) { return new com.android.dialer.simulator.impl.SimulatorSubMenu ( context ) . addItem ( "Incoming call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( false ) ) . addItem ( "Outgoing call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewOutgoingCall ( ) ) . addItem ( "Spam call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( true ) ) ; }
Source:
private void send ( com.android.internal.telephony.RILRequest rr ) { android.os.Message msg ; msg = mSender.obtainMessage ( com.android.internal.telephony.RIL.EVENT_SEND , rr ) ; acquireWakeLock ( ) ; msg.sendToTarget ( ) ; }

Target:
private void send ( com.android.internal.telephony.RILRequest rr ) { android.os.Message msg ; if ( ( mSocket ) == null ) { rr.onError ( com.android.internal.telephony.RADIO_NOT_AVAILABLE , null ) ; rr.release ( ) ; return ; } msg = mSender.obtainMessage ( com.android.internal.telephony.RIL.EVENT_SEND , rr ) ; acquireWakeLock ( ) ; msg.sendToTarget ( ) ; }
Source:
public void testSubList1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.subList ( ( - 1 ) , 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAddAll1_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.addAll ( ( - 1 ) , new java.util.LinkedList ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
private int calculateMaximumPossibleSize ( final int totalLen , final int trailingLen ) { if ( ( ( encrypting ) && ( ( modeBlockSize ) > 1 ) ) && ( ( padding ) != ( org.apache.harmony.xnet.provider.jsse.OpenSSLCipher.Padding.NOPADDING ) ) ) { return ( totalLen - trailingLen ) + ( modeBlockSize ) ; } else { return totalLen ; } }

Target:
private int getUpdateOutputSize ( int inputLen ) { if ( encrypting ) { return ( inputLen + ( modeBlockSize ) ) - 1 ; } else if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { return inputLen + ( modeBlockSize ) ; } }
Source:
private void fillCombo ( org.eclipse.swt.widgets.Combo combo , com.android.sdklib.resources.ResourceEnum [ ] resEnums ) { for ( com.android.sdklib.resources.ResourceEnum resEnum : resEnums ) { if ( ( ( ( mMode ) == ( com.android.ide.eclipse.adt.internal.ui.ConfigurationSelector.SelectorMode.DEFAULT ) ) || ( resEnum.isValidValueForDevice ( ) ) ) && ( ( resEnum.isFakeValue ( ) ) == false ) ) { combo.add ( resEnum.getShortDisplayValue ( ) ) ; } } }

Target:
private void fillCombo ( org.eclipse.swt.widgets.Combo combo , com.android.resources.ResourceEnum [ ] resEnums ) { for ( com.android.resources.ResourceEnum resEnum : resEnums ) { if ( ( ( ( mMode ) == ( com.android.ide.eclipse.adt.internal.ui.ConfigurationSelector.SelectorMode.DEFAULT ) ) || ( resEnum.isValidValueForDevice ( ) ) ) && ( ( resEnum.isFakeValue ( ) ) == false ) ) { combo.add ( resEnum.getShortDisplayValue ( ) ) ; } } }
Source:
public void registerPage ( java.lang.String title , java.lang.Class < ? extends org.eclipse.swt.widgets.Composite > pageClass ) { if ( ( mExtraPages ) == null ) { mExtraPages = new java.util.ArrayList < java.lang.Object [ ] > ( ) ; } mExtraPages.add ( new java.lang.Object [ ] { title , pageClass } ) ; }

Target:
public void registerPage ( java.lang.Class < ? extends com.android.sdkuilib.internal.repository.UpdaterPage > pageClass , com.android.sdkuilib.internal.repository.UpdaterPage.Purpose purpose ) { if ( ( mExtraPages ) == null ) { mExtraPages = new java.util.ArrayList < com.android.util.Pair < java.lang.Class < ? extends com.android.sdkuilib.internal.repository.UpdaterPage > , com.android.sdkuilib.internal.repository.UpdaterPage.Purpose > > ( ) ; } com.android.util.Pair < ? , com.android.sdkuilib.internal.repository.UpdaterPage.Purpose > value = com.android.util.Pair.of ( pageClass , purpose ) ; mExtraPages.add ( ( ( com.android.util.Pair < java.lang.Class < ? extends com.android.sdkuilib.internal.repository.UpdaterPage > , com.android.sdkuilib.internal.repository.UpdaterPage.Purpose > ) ( value ) ) ) ; }
Source:
private static java.lang.String getMapKey ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile resourceFile ) { com.android.io.IAbstractFile file = resourceFile.getFile ( ) ; java.lang.String name = file.getName ( ) ; java.lang.String folderName = file.getParentFolder ( ) . getName ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.getMapKey ( folderName , name ) ; }

Target:
private static java.lang.String getMapKey ( com.android.ide.common.resources.ResourceFile resourceFile ) { com.android.io.IAbstractFile file = resourceFile.getFile ( ) ; java.lang.String name = file.getName ( ) ; java.lang.String folderName = file.getParentFolder ( ) . getName ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.getMapKey ( folderName , name ) ; }
Source:
public void setUiTTYMode ( int slotId , int featureType , int sessionId , int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.setUiTTYMode ( sessionId , uiTtyMode , onComplete ) ; } } }

Target:
public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getMultiEndpointInterface ( ) ; } } return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.String uptime = getDevice ( ) . executeShellCommand ( "cat /proc/uptime" ) ; kernelStartTime = ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) - ( java.lang.Integer.parseInt ( uptime.substring ( 0 , uptime.indexOf ( '.' ) ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.String cmdOut = getDevice ( ) . executeShellCommand ( "dumpsys meminfo" ) ; long uptime = ( java.lang.Long.parseLong ( cmdOut.substring ( ( ( cmdOut.indexOf ( "Uptime: " ) ) + 8 ) , ( ( cmdOut.indexOf ( "Realtime: " ) ) - 1 ) ) ) ) / 1000 ; kernelStartTime = ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) - uptime ; }
Source:
public void testPackageSubstitution_noDot ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( "ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr ) ) ; org.mockito.Mockito.verify ( mAttr ) . setValue ( "com.foo.bar.ActivityOne" ) ; }

Target:
public void testPackageSubstitution_noDot ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( "ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr , new com.android.manifmerger.AttributeModel ( "ActivityOne" , true , null , null ) ) ) ; org.mockito.Mockito.verify ( mAttr ) . setValue ( "com.foo.bar.ActivityOne" ) ; }
Source:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.InstallException { try { executeShellCommand ( ( "rm " + remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } }

Target:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.InstallException { try { executeShellCommand ( java.lang.String.format ( "rm \"%1$s\"" , remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } }
Source:
private boolean loadData ( java.lang.String path ) { try { mappedFile = libcore.io.MemoryMappedFile.mmapRO ( path ) ; } catch ( android.system.ErrnoException errnoException ) { return false ; } try { readHeader ( ) ; return true ; } catch ( java.lang.Exception ex ) { close ( ) ; java.lang.System.logE ( ( ( "tzdata file \"" + path ) + "\" was present but invalid!" ) , ex ) ; return false ; } }

Target:
private boolean loadData ( java.lang.String path ) { try { mappedFile = libcore.io.MemoryMappedFile.mmapRO ( path ) ; } catch ( android.system.ErrnoException errnoException ) { return false ; } try { readHeader ( ) ; return true ; } catch ( java.lang.Exception ex ) { close ( ) ; java.lang.System.logE ( ( ( ( ( libcore.util.ZoneInfoDB.TZDATA_FILE ) + " file \"" ) + path ) + "\" was present but invalid!" ) , ex ) ; return false ; } }
Source:
private boolean next ( ) { if ( ( res ) != null ) { return true ; } else { sun.misc.URLClassPath.Loader loader ; while ( ( loader = getLoader ( ( ( index ) ++ ) ) ) != null ) { res = loader.getResource ( name , check ) ; if ( ( res ) != null ) { return true ; } } return false ; } }

Target:
private boolean next ( ) { if ( ( res ) != null ) { return true ; } else { sun.misc.URLClassPath.Loader loader ; while ( ( loader = getNextLoader ( cache , ( ( index ) ++ ) ) ) != null ) { res = loader.getResource ( name , check ) ; if ( ( res ) != null ) { return true ; } } return false ; } }
Source:
public void analyze ( @ javax.annotation.Nonnull java.io.File jackCoverageDescriptionFile ) throws java.io.IOException { if ( ! ( jackCoverageDescriptionFile.exists ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "File " + jackCoverageDescriptionFile ) + " does not exist." ) ) ; } com.google.gson.stream.JsonReader jsonReader = new com.google.gson.stream.JsonReader ( new java.io.InputStreamReader ( new java.io.FileInputStream ( jackCoverageDescriptionFile ) ) ) ; try { readClasses ( jsonReader ) ; } finally { jsonReader.close ( ) ; } }

Target:
private void readMetadata ( @ javax.annotation.Nonnull com.google.gson.stream.JsonReader jsonReader ) throws java.io.IOException { jsonReader.beginObject ( ) ; java.lang.String version = null ; while ( jsonReader.hasNext ( ) ) { java.lang.String attributeName = jsonReader.nextName ( ) ; if ( attributeName.equals ( com.android.jack.tools.jacoco.JackCoverageAnalyzer.JSON_VERSION_ATTRIBUTE ) ) { version = jsonReader.nextString ( ) ; } else if ( attributeName.equals ( com.android.jack.tools.jacoco.JackCoverageAnalyzer.JSON_DATA_ATTRIBUTE ) ) { checkVersion ( version ) ; readClasses ( jsonReader ) ; } else { jsonReader.skipValue ( ) ; } } jsonReader.endObject ( ) ; }
Source:
private static void addSourceLevel ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.SourceLevel level , @ javax.annotation.Nonnull java.util.List < java.lang.String > args ) { args.add ( "-source" ) ; switch ( level ) { case JAVA_6 : args.add ( "1.6" ) ; break ; case JAVA_7 : args.add ( "1.7" ) ; break ; case JAVA_8 : args.add ( "1.8" ) ; break ; default : throw new java.lang.AssertionError ( ( ( "Unkown level: '" + ( level.toString ( ) ) ) + "'" ) ) ; } }

Target:
private static void addSourceLevel ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.SourceLevel level , @ javax.annotation.Nonnull java.util.List < java.lang.String > commandLine ) { commandLine.add ( "-source" ) ; switch ( level ) { case JAVA_6 : commandLine.add ( "1.6" ) ; break ; case JAVA_7 : commandLine.add ( "1.7" ) ; break ; case JAVA_8 : commandLine.add ( "1.8" ) ; break ; default : throw new java.lang.AssertionError ( ( ( "Unkown level: '" + ( level.toString ( ) ) ) + "'" ) ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; com.android.tests.libstest.app.App.handleTextView ( this ) ; com.android.tests.libstest.lib1.Lib1.handleTextView ( this ) ; com.android.tests.libstest.lib2.Lib2.handleTextView ( this ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; com.android.tests.libstest.app.App.handleTextView ( this ) ; com.android.tests.libstest.lib1.Lib1.handleTextView ( this ) ; com.android.tests.libstest.lib2.Lib2.handleTextView ( this ) ; com.android.tests.libstest.lib2.Lib2b.handleTextView ( this ) ; com.android.tests.libstest.app.LibApp.handleTextView ( this ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { BadFinalizer bf = new BadFinalizer ( ) ; java.lang.System.out.println ( "Constructed object." ) ; bf = null ; java.lang.System.out.println ( "Nulled. Requestion gc." ) ; java.lang.System.gc ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { BadFinalizer.snooze ( 4000 ) ; java.lang.System.out.println ( "Requesting another GC." ) ; java.lang.System.gc ( ) ; } java.lang.System.out.println ( "Done waiting." ) ; java.lang.System.exit ( 0 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { BadFinalizer bf = new BadFinalizer ( ) ; java.lang.System.out.println ( "Constructed object." ) ; bf = null ; java.lang.System.out.println ( "Nulled. Requestion gc." ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { BadFinalizer.snooze ( 4000 ) ; java.lang.System.out.println ( "Requesting another GC." ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; } java.lang.System.out.println ( "Done waiting." ) ; java.lang.System.exit ( 0 ) ; }
Source:
public void bouncyCastle ( ) throws java.lang.Exception { java.io.File bouncyCastleJack = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "bouncyjack" , ".jack" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.addToClasspath ( com.android.jack.toolchain.ToolchainTest.corePath ) . srcToLib ( bouncyCastleJack , true , com.android.jack.toolchain.ToolchainTest.BOUNCY_SOURCELIST ) ; java.io.File bouncyCastleOutFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.libToExe ( bouncyCastleJack , bouncyCastleOutFolder , false ) ; }

Target:
public void bouncyCastle ( ) throws java.lang.Exception { java.io.File bouncyCastleJack = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "bouncyjack" , ".jack" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.addToClasspath ( com.android.jack.toolchain.ToolchainTest.coreOut ) . srcToLib ( bouncyCastleJack , true , com.android.jack.toolchain.ToolchainTest.BOUNCY_SOURCELIST ) ; java.io.File bouncyCastleOutFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.libToExe ( bouncyCastleJack , bouncyCastleOutFolder , false ) ; }
Source:
public void forceUpdateIfaces ( ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { updateIfaces ( ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
public long getNetworkTotalBytes ( android.net.NetworkTemplate template , long start , long end ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; return internalGetSummaryForNetwork ( template , NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN , start , end , NetworkStatsAccess.Level.DEVICE , android.os.Binder.getCallingUid ( ) ) . getTotalBytes ( ) ; }
Source:
public boolean canBeForceHidden ( com.android.internal.policy.impl.WindowState win , android.view.WindowManager.LayoutParams attrs ) { return ( ( ( attrs.type ) != ( WindowManager.LayoutParams.TYPE_STATUS_BAR ) ) && ( ( attrs.type ) != ( WindowManager.LayoutParams.TYPE_NAVIGATION_BAR ) ) ) && ( ( attrs.type ) != ( WindowManager.LayoutParams.TYPE_WALLPAPER ) ) ; }

Target:
public boolean canMagnifyWindowLw ( android.view.WindowManager.LayoutParams attrs ) { switch ( attrs.type ) { case WindowManager.LayoutParams.TYPE_INPUT_METHOD : case WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG : case WindowManager.LayoutParams.TYPE_NAVIGATION_BAR : case WindowManager.LayoutParams.TYPE_MAGNIFICATION_OVERLAY : { return false ; } } return true ; }
Source:
public void markNewCallsAsOld ( ) { if ( ! ( com.android.dialer.util.PermissionsUtil.hasPhonePermissions ( mContext ) ) ) { return ; } java.lang.StringBuilder where = new java.lang.StringBuilder ( ) ; where.append ( Calls.NEW ) ; where.append ( " = 1" ) ; android.content.ContentValues values = new android.content.ContentValues ( 1 ) ; values.put ( Calls.NEW , "0" ) ; startUpdate ( com.android.dialer.database.CallLogQueryHandler.UPDATE_MARK_AS_OLD_TOKEN , null , com.android.dialer.telecom.TelecomUtil.getCallLogUri ( mContext ) , values , where.toString ( ) , null ) ; }

Target:
private java.lang.String getUnreadMissedCallsQuery ( ) { return ( ( ( ( ( ( ( android.provider.CallLog.Calls.IS_READ ) + " = 0 OR " ) + ( android.provider.CallLog.Calls.IS_READ ) ) + " IS NULL" ) + " AND " ) + ( android.provider.CallLog.Calls.TYPE ) ) + " = " ) + ( android.provider.CallLog.Calls.MISSED_TYPE ) ; }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_PLATFORMS ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORMS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }
Source:
public static void e ( java.lang.Object objectPrefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.ERROR ) { android.util.Log.e ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) , tr ) ; } }

Target:
public static void e ( java.lang.String prefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.ERROR ) { android.util.Slog.e ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( prefix , format , args ) , tr ) ; } }