auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void dumpMethodStats ( ) { java.lang.System.out.format ( "\nExclusive Inclusive Calls Method\n" ) ; for ( com.android.traceview.MethodData md : mSortedMethods ) { java.lang.System.out.format ( "%9d %9d %9s %s\n" , md.getElapsedExclusive ( ) , md.getElapsedInclusive ( ) , md.getCalls ( ) , md.getProfileName ( ) ) ; } }

Target:
private void dumpMethodStats ( ) { java.lang.System.out.print ( "\nMethod Stats\n" ) ; java.lang.System.out.print ( "Excl Cpu Incl Cpu Excl Real Incl Real Calls Method\n" ) ; for ( com.android.traceview.MethodData md : mSortedMethods ) { java.lang.System.out.format ( "%9d %9d %9s %s\n" , md.getElapsedExclusiveCpuTime ( ) , md.getElapsedInclusiveCpuTime ( ) , md.getElapsedExclusiveRealTime ( ) , md.getElapsedInclusiveRealTime ( ) , md.getCalls ( ) , md.getProfileName ( ) ) ; } }
Source:
public void destroy ( ) { validate ( ) ; nContextFinish ( ) ; nContextDeinitToClient ( mContext ) ; mMessageThread.mRun = false ; try { mMessageThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } nContextDestroy ( ) ; nDeviceDestroy ( mDev ) ; mDev = 0 ; }

Target:
private void helpDestroy ( ) { boolean shouldDestroy = false ; synchronized ( this ) { if ( ! ( mDestroyed ) ) { shouldDestroy = true ; mDestroyed = true ; } } if ( shouldDestroy ) { nContextFinish ( ) ; nContextDeinitToClient ( mContext ) ; mMessageThread.mRun = false ; try { mMessageThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } nContextDestroy ( ) ; nDeviceDestroy ( mDev ) ; mDev = 0 ; } }
Source:
private void onAudioStateChanged ( int state , byte [ ] address ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_AUDIO_STATE_CHANGED ) ; event.valueInt = state ; event.device = getDevice ( address ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onNetworkSignal ( int signal ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_NETWORK_SIGNAL ) ; event.valueInt = signal ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
void updateShowWallpaper ( boolean show ) { if ( show ) { mWindowLayoutParams.flags |= WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER ; } else { mWindowLayoutParams.flags &= ~ ( WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER ) ; } mViewManager.updateViewLayout ( mKeyguardHost , mWindowLayoutParams ) ; }

Target:
void updateShowWallpaper ( boolean show ) { if ( show ) { mWindowLayoutParams.flags |= WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER ; } else { mWindowLayoutParams.flags &= ~ ( WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER ) ; } mWindowLayoutParams.format = ( show ) ? android.graphics.PixelFormat.TRANSLUCENT : android.graphics.PixelFormat.OPAQUE ; mViewManager.updateViewLayout ( mKeyguardHost , mWindowLayoutParams ) ; }
Source:
public int flush ( android.hardware.camera2.utils.LongParcelable lastFrameNumber ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "flush called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot flush, device has been closed." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.ENODEV ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot flush, configuration change in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } } long lastFrame = mLegacyDevice.flush ( ) ; if ( lastFrameNumber != null ) { lastFrameNumber.setNumber ( lastFrame ) ; } return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }

Target:
public int flush ( android.hardware.camera2.utils.LongParcelable lastFrameNumber ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "flush called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot flush, device has been closed." ) ; return - ( android.system.OsConstants.ENODEV ) ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot flush, configuration change in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } } long lastFrame = mLegacyDevice.flush ( ) ; if ( lastFrameNumber != null ) { lastFrameNumber.setNumber ( lastFrame ) ; } return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }
Source:
public static void assertArrayEquals ( java.lang.String message , long [ ] expecteds , long [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , long [ ] expecteds , long [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
public void onClick ( android.view.View v ) { animateExpandNotificationsPanel ( ) ; }

Target:
private void checkUserAutohide ( android.view.View v , android.view.MotionEvent event ) { if ( ( ( ( ( ( mSystemUiVisibility ) & ( com.android.systemui.statusbar.phone.PhoneStatusBar.STATUS_OR_NAV_TRANSIENT ) ) != 0 ) && ( ( event.getAction ( ) ) == ( android.view.MotionEvent.ACTION_OUTSIDE ) ) ) && ( ( event.getX ( ) ) == 0 ) ) && ( ( event.getY ( ) ) == 0 ) ) { userAutohide ( ) ; } }
Source:
static com.android.internal.telephony.gsm.stk.IconLoader getInstance ( android.os.Handler caller , com.android.internal.telephony.gsm.SIMFileHandler fh ) { if ( ( com.android.internal.telephony.gsm.stk.IconLoader.sLoader ) != null ) { return com.android.internal.telephony.gsm.stk.IconLoader.sLoader ; } if ( fh != null ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "Stk Icon Loader" ) ; thread.start ( ) ; return new com.android.internal.telephony.gsm.stk.IconLoader ( thread.getLooper ( ) , fh ) ; } return null ; }

Target:
static com.android.internal.telephony.gsm.stk.IconLoader getInstance ( android.os.Handler caller , com.android.internal.telephony.IccFileHandler fh ) { if ( ( com.android.internal.telephony.gsm.stk.IconLoader.sLoader ) != null ) { return com.android.internal.telephony.gsm.stk.IconLoader.sLoader ; } if ( fh != null ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "Stk Icon Loader" ) ; thread.start ( ) ; return new com.android.internal.telephony.gsm.stk.IconLoader ( thread.getLooper ( ) , fh ) ; } return null ; }
Source:
private static android.net.wifi.IClientInterface setupDriverForClientMode ( android.net.wifi.IWificond wificond ) { if ( wificond == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to get reference to wificond" ) ; return null ; } android.net.wifi.IClientInterface clientInterface = null ; try { clientInterface = wificond.createClientInterface ( ) ; } catch ( android.os.RemoteException e1 ) { } if ( clientInterface == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Could not get IClientInterface instance from wificond" ) ; return null ; } return clientInterface ; }

Target:
private static android.net.wifi.IClientInterface setupDriverForClientMode ( android.net.wifi.IWificond wificond ) { if ( wificond == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to get reference to wificond" ) ; return null ; } android.net.wifi.IClientInterface clientInterface = null ; try { clientInterface = wificond.createClientInterface ( ) ; } catch ( android.os.RemoteException e1 ) { } if ( clientInterface == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Could not get IClientInterface instance from wificond" ) ; return null ; } else { android.os.Binder.allowBlocking ( clientInterface.asBinder ( ) ) ; } return clientInterface ; }
Source:
public void testVerify_Success ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; assertTrue ( "Signature should verify with same data" , mKeyStore.verify ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA , signature ) ) ; }

Target:
public void testVerify_Success ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; assertTrue ( "Signature should verify with same data" , mKeyStore.verify ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA , signature ) ) ; }
Source:
public static void assertArrayEquals ( java.lang.String message , char [ ] expecteds , char [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , java.lang.Object [ ] expecteds , java.lang.Object [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
protected com.android.ide.common.res2.AssetFile createFileAndItems ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.w3c.dom.Node fileNode ) { org.w3c.dom.Attr nameAttr = ( ( org.w3c.dom.Attr ) ( fileNode.getAttributes ( ) . getNamedItem ( com.android.ide.common.res2.ATTR_NAME ) ) ) ; if ( nameAttr == null ) { return null ; } com.android.ide.common.res2.AssetItem item = new com.android.ide.common.res2.AssetItem ( nameAttr.getValue ( ) ) ; return new com.android.ide.common.res2.AssetFile ( file , item ) ; }

Target:
protected com.android.ide.common.res2.AssetFile createFileAndItemsFromXml ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.w3c.dom.Node fileNode ) { org.w3c.dom.Attr nameAttr = ( ( org.w3c.dom.Attr ) ( fileNode.getAttributes ( ) . getNamedItem ( com.android.ide.common.res2.ATTR_NAME ) ) ) ; if ( nameAttr == null ) { return null ; } com.android.ide.common.res2.AssetItem item = new com.android.ide.common.res2.AssetItem ( nameAttr.getValue ( ) ) ; return new com.android.ide.common.res2.AssetFile ( file , item ) ; }
Source:
public boolean onPreferenceClick ( android.support.v7.preference.Preference preference ) { refreshTags ( true ) ; android.widget.Toast.makeText ( getContext ( ) , getContext ( ) . getString ( R.string.default_categories_restored ) , Toast.LENGTH_SHORT ) . show ( ) ; return true ; }

Target:
public boolean onPreferenceChange ( android.support.v7.preference.Preference preference , java.lang.Object newValue ) { android.content.ComponentName name = new android.content.ComponentName ( getContext ( ) , com.android.traceur.QsService.class ) ; getContext ( ) . getPackageManager ( ) . setComponentEnabledSetting ( name , ( ( ( java.lang.Boolean ) ( newValue ) ) ? android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED : android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) , PackageManager.DONT_KILL_APP ) ; return true ; }
Source:
public com.android.sched.vfs.InputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { com.android.sched.vfs.VFS vfs = new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.READ , change ) , com.android.sched.util.file.FileOrDirectory.Permission.READ ) ; return new com.android.sched.vfs.GenericInputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.util.codec.DirectoryInputVFSCodec withoutCache ( ) { directFSCodec.withoutCache ( ) ; return this ; }
Source:
private boolean scanWithParams ( java.lang.String freqList , java.lang.String hiddenNetworkIdList ) { java.lang.StringBuilder scanCommand = new java.lang.StringBuilder ( ) ; scanCommand.append ( "SCAN TYPE=ONLY" ) ; if ( freqList != null ) { scanCommand.append ( ( " freq=" + freqList ) ) ; } if ( hiddenNetworkIdList != null ) { scanCommand.append ( ( " scan_id=" + hiddenNetworkIdList ) ) ; } return doBooleanCommand ( scanCommand.toString ( ) ) ; }

Target:
private boolean scanWithParams ( java.lang.String freqList , java.lang.String hiddenNetworkSSIDList ) { java.lang.StringBuilder scanCommand = new java.lang.StringBuilder ( ) ; scanCommand.append ( "SCAN TYPE=ONLY" ) ; if ( freqList != null ) { scanCommand.append ( ( " freq=" + freqList ) ) ; } if ( hiddenNetworkSSIDList != null ) { scanCommand.append ( ( " ssid " + hiddenNetworkSSIDList ) ) ; } return doBooleanCommand ( scanCommand.toString ( ) ) ; }
Source:
public void testPullExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mCapabilities = android.telecom.Connection.CAPABILITY_CAN_PULL_CALL ; mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mConnectionId ) , org.mockito.Matchers.any ( ) ) ; }

Target:
public void testPullNonPullableExternalCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_IS_EXTERNAL_CALL ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mConnectionId ) , org.mockito.Matchers.any ( ) ) ; }
Source:
private boolean denyIfQueueLimitReached ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { if ( ( mPendingTrackerCount ) >= ( com.android.internal.telephony.SMSDispatcher.MO_MSG_QUEUE_LIMIT ) ) { try { if ( ( tracker.mSentIntent ) != null ) { tracker.mSentIntent.send ( android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED ) ; } } catch ( android.app.PendingIntent.CanceledException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , "failed to send back RESULT_ERROR_LIMIT_EXCEEDED" ) ; } return true ; } ( mPendingTrackerCount ) ++ ; return false ; }

Target:
private boolean denyIfQueueLimitReached ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { if ( ( mPendingTrackerCount ) >= ( com.android.internal.telephony.SMSDispatcher.MO_MSG_QUEUE_LIMIT ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , "Denied because queue limit reached" ) ; tracker.onFailed ( mContext , android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED , 0 ) ; return true ; } ( mPendingTrackerCount ) ++ ; return false ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; android.content.Context context = mock ( android.content.Context.class ) ; when ( context.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager ) ; doNothing ( ) . when ( mAlarmManager ) . setExact ( anyInt ( ) , anyLong ( ) , any ( java.lang.String.class ) , mListenerCaptor.capture ( ) , any ( android.os.Handler.class ) ) ; mMessage = new com.android.internal.util.WakeupMessage ( context , mHandler , com.android.internal.util.WakeupMessageTest.TEST_CMD_NAME , com.android.internal.util.WakeupMessageTest.TEST_CMD , com.android.internal.util.WakeupMessageTest.TEST_ARG1 , com.android.internal.util.WakeupMessageTest.TEST_ARG2 ) ; }

Target:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; android.content.Context context = mock ( android.content.Context.class ) ; when ( context.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager ) ; doNothing ( ) . when ( mAlarmManager ) . setExact ( anyInt ( ) , anyLong ( ) , any ( java.lang.String.class ) , mListenerCaptor.capture ( ) , any ( android.os.Handler.class ) ) ; mMessage = new com.android.internal.util.WakeupMessage ( context , mHandler , com.android.internal.util.WakeupMessageTest.TEST_CMD_NAME , com.android.internal.util.WakeupMessageTest.TEST_CMD , com.android.internal.util.WakeupMessageTest.TEST_ARG1 , com.android.internal.util.WakeupMessageTest.TEST_ARG2 , com.android.internal.util.WakeupMessageTest.TEST_OBJ ) ; }
Source:
public boolean startsWithPlaceholder ( int id ) { if ( ( placeholderIdsOrderedByOffset.length ) == 0 ) { return false ; } return ( ( placeholderIdsOrderedByOffset [ 0 ] ) == 0 ) && ( ( placeholderIdsOrderedByOffset [ 1 ] ) == id ) ; }

Target:
public boolean isAppendToInAnyIndexExcept ( java.lang.CharSequence appendTo , int exceptIndex ) { for ( int i = 0 ; i < ( values.length ) ; ++ i ) { if ( ( i != exceptIndex ) && ( ( values [ i ] ) == appendTo ) ) { return true ; } } return false ; }
Source:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testAesCbcHmacMd5Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.net.Socket socket ) throws java.security.cert.CertificateException { javax.net.ssl.SSLSession session = null ; javax.net.ssl.SSLParameters parameters = null ; if ( socket instanceof javax.net.ssl.SSLSocket ) { javax.net.ssl.SSLSocket sslSocket = ( ( javax.net.ssl.SSLSocket ) ( socket ) ) ; session = org.conscrypt.TrustManagerImpl.getHandshakeSessionOrThrow ( sslSocket ) ; parameters = sslSocket.getSSLParameters ( ) ; } checkTrusted ( chain , authType , session , parameters , false ) ; }

Target:
public java.util.List < java.security.cert.X509Certificate > checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String hostname ) throws java.security.cert.CertificateException { return checkTrusted ( chain , null , authType , hostname , false ) ; }
Source:
public void setMute ( boolean enableMute , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_MUTE , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + enableMute ) ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enableMute ? 1 : 0 ) ) ; send ( rr ) ; }

Target:
public void getSignalStrength ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_SIGNAL_STRENGTH , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getSignalStrength ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getSignalStrength" , e ) ; } } }
Source:
public void uninstallAllUserCaCerts ( @ android.annotation.Nullable android.content.ComponentName admin ) { throwIfParentInstance ( "uninstallAllUserCaCerts" ) ; if ( ( mService ) != null ) { try { mService.uninstallCaCerts ( admin , new com.android.org.conscrypt.TrustedCertificateStore ( ) . userAliases ( ) . toArray ( new java.lang.String [ 0 ] ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }

Target:
public void uninstallAllUserCaCerts ( @ android.annotation.Nullable android.content.ComponentName admin ) { throwIfParentInstance ( "uninstallAllUserCaCerts" ) ; if ( ( mService ) != null ) { try { mService.uninstallCaCerts ( admin , mContext.getPackageName ( ) , new com.android.org.conscrypt.TrustedCertificateStore ( ) . userAliases ( ) . toArray ( new java.lang.String [ 0 ] ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }
Source:
private boolean checkReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , message ) ; return true ; } catch ( java.lang.SecurityException e ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , message ) ; } return ( mAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , android.os.Binder.getCallingUid ( ) , callingPackage ) ) == ( android.app.AppOpsManager.MODE_ALLOWED ) ; }

Target:
private void enforcePrivilegedPermissionOrCarrierPrivilege ( int subId , java.lang.String message ) { int permissionResult = mContext.checkCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE ) ; if ( permissionResult == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return ; } if ( com.android.internal.telephony.PhoneSubInfoController.VDBG ) log ( "No read privileged phone permission, check carrier privilege next." ) ; com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfCarrierPrivilege ( subId , message ) ; }
Source:
public void postInvalidateDelayed ( long delayMilliseconds , int left , int top , int right , int bottom ) { if ( ( mAttachInfo ) != null ) { final android.view.View.AttachInfo.InvalidateInfo info = android.view.View.AttachInfo.InvalidateInfo.acquire ( ) ; info.target = this ; info.left = left ; info.top = top ; info.right = right ; info.bottom = bottom ; final android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = android.view.View.AttachInfo.INVALIDATE_RECT_MSG ; msg.obj = info ; mAttachInfo.mHandler.sendMessageDelayed ( msg , delayMilliseconds ) ; } }

Target:
public void postInvalidateDelayed ( long delayMilliseconds , int left , int top , int right , int bottom ) { android.view.View.AttachInfo attachInfo = mAttachInfo ; if ( attachInfo != null ) { final android.view.View.AttachInfo.InvalidateInfo info = android.view.View.AttachInfo.InvalidateInfo.acquire ( ) ; info.target = this ; info.left = left ; info.top = top ; info.right = right ; info.bottom = bottom ; final android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = android.view.View.AttachInfo.INVALIDATE_RECT_MSG ; msg.obj = info ; attachInfo.mHandler.sendMessageDelayed ( msg , delayMilliseconds ) ; } }
Source:
private com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode addUnknownAttribute ( java.lang.String xmlFullName , java.lang.String xmlAttrLocalName , java.lang.String xmlNsUri ) { com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor ( xmlAttrLocalName , xmlFullName , xmlNsUri , "Unknown XML attribute" , new com.android.ide.eclipse.adt.internal.resources.AttributeInfo ( xmlAttrLocalName , new com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo.Format [ ] { com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo.Format.STRING } ) ) ; com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiAttr = desc.createUiNode ( this ) ; uiAttr.setDirty ( true ) ; mUnknownUiAttributes.add ( uiAttr ) ; return uiAttr ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode addUnknownAttribute ( java.lang.String xmlFullName , java.lang.String xmlAttrLocalName , java.lang.String xmlNsUri ) { com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor desc = new com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor ( xmlAttrLocalName , xmlFullName , xmlNsUri , "Unknown XML attribute" , new com.android.ide.eclipse.adt.internal.resources.AttributeInfo ( xmlAttrLocalName , new com.android.ide.common.api.IAttributeInfo.Format [ ] { com.android.ide.common.api.IAttributeInfo.Format.STRING } ) ) ; com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiAttr = desc.createUiNode ( this ) ; uiAttr.setDirty ( true ) ; mUnknownUiAttributes.add ( uiAttr ) ; return uiAttr ; }
Source:
synchronized boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "disconnect(): device=" + device ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return disconnectNative ( ) ; }

Target:
public static synchronized com.android.bluetooth.hid.HidDeviceService getHidDeviceService ( ) { if ( ( com.android.bluetooth.hid.HidDeviceService.sHidDeviceService ) == null ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "getHidDeviceService(): service is NULL" ) ; return null ; } if ( ! ( com.android.bluetooth.hid.HidDeviceService.sHidDeviceService.isAvailable ( ) ) ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "getHidDeviceService(): service is not available" ) ; return null ; } return com.android.bluetooth.hid.HidDeviceService.sHidDeviceService ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_alloc s = new com.android.rs.test.ScriptC_alloc ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( s.get_aRaw ( ) ) ; s.invoke_alloc_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_alloc s = new com.android.rs.test.ScriptC_alloc ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( s.get_aRaw ( ) ) ; s.invoke_alloc_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public void test_setPositiveSuffixLjava_lang_String ( ) { java.text.DecimalFormat format = new java.text.DecimalFormat ( ) ; assertEquals ( "" , format.getPositiveSuffix ( ) ) ; }

Target:
public void test_setPositiveSuffixLjava_lang_String ( ) throws java.lang.Exception { java.text.DecimalFormat format = new java.text.DecimalFormat ( ) ; assertEquals ( "" , format.getPositiveSuffix ( ) ) ; format.setPositiveSuffix ( "PosSfx" ) ; assertEquals ( "PosSfx" , format.getPositiveSuffix ( ) ) ; assertTrue ( ( ( format.parse ( "123.45PosSfx" ) . doubleValue ( ) ) == 123.45 ) ) ; format.setPositiveSuffix ( "" ) ; assertEquals ( "" , format.getPositiveSuffix ( ) ) ; format.setPositiveSuffix ( null ) ; assertNull ( format.getPositiveSuffix ( ) ) ; }
Source:
public void testRevokeAffectsWholeGroup23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part1" ) ; } catch ( java.lang.AssertionError expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part2" ) ; }

Target:
public void testRequestNonRuntimePermission23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRequestNonRuntimePermission" ) ; }
Source:
public java.lang.Object getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , com.android.ide.common.rendering.api.ResourceReference viewRef , com.android.ide.eclipse.adt.internal.editors.layout.ViewAttribute viewAttribute , java.lang.Object defaultValue ) { if ( ( viewAttribute == ( ViewAttribute.TEXT ) ) && ( ( ( ( java.lang.String ) ( defaultValue ) ) . length ( ) ) == 0 ) ) { return ( ( viewRef.getName ( ) ) + " " ) + typePosition ; } return null ; }

Target:
public java.lang.Object getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , int fullChildPosition , int typeChildPosition , com.android.ide.common.rendering.api.ResourceReference viewRef , com.android.ide.eclipse.adt.internal.editors.layout.ViewAttribute viewAttribute , java.lang.Object defaultValue ) { if ( ( viewAttribute == ( ViewAttribute.TEXT ) ) && ( ( ( ( java.lang.String ) ( defaultValue ) ) . length ( ) ) == 0 ) ) { return ( ( viewRef.getName ( ) ) + " " ) + typePosition ; } return null ; }
Source:
public void testInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_IMPLICIT ) ) ) ; }

Target:
public void testInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_IMPLICIT ) ) ) ; }
Source:
com.android.layoutlib.api.ILayoutResult computeLayout ( com.android.layoutlib.api.IXmlPullParser layoutDescription , java.lang.Object projectKey , int screenWidth , int screenHeight , boolean renderFullSize , int density , float xdpi , float ydpi , java.lang.String themeName , boolean isProjectTheme , java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.layoutlib.api.IResourceValue > > projectResources , java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.layoutlib.api.IResourceValue > > frameworkResources , com.android.layoutlib.api.IProjectCallback projectCallback , com.android.layoutlib.api.ILayoutLog logger ) ;

Target:
com.android.layoutlib.api.ILayoutScene startLayout ( com.android.layoutlib.api.IXmlPullParser layoutDescription , java.lang.Object projectKey , int screenWidth , int screenHeight , boolean renderFullSize , int density , float xdpi , float ydpi , java.lang.String themeName , boolean isProjectTheme , java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.layoutlib.api.IResourceValue > > projectResources , java.util.Map < java.lang.String , java.util.Map < java.lang.String , com.android.layoutlib.api.IResourceValue > > frameworkResources , com.android.layoutlib.api.IProjectCallback projectCallback , com.android.layoutlib.api.ILayoutLog logger ) ;
Source:
private void handleWnmFrame ( java.lang.String eventStr , java.lang.String iface ) { try { com.android.server.wifi.hotspot2.WnmData wnmData = com.android.server.wifi.hotspot2.WnmData.buildWnmData ( eventStr ) ; sendMessage ( iface , com.android.server.wifi.WifiMonitor.HS20_REMEDIATION_EVENT , wnmData ) ; } catch ( java.io.IOException | java.lang.NumberFormatException e ) { android.util.Log.w ( com.android.server.wifi.WifiMonitor.TAG , ( ( "Bad WNM event: '" + eventStr ) + "'" ) ) ; } }

Target:
public void broadcastWnmEvent ( java.lang.String iface , com.android.server.wifi.hotspot2.WnmData wnmData ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.HS20_REMEDIATION_EVENT , wnmData ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; addPreferencesFromResource ( R.xml.testing_settings ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; addPreferencesFromResource ( R.xml.testing_settings ) ; if ( ( android.os.UserHandle.myUserId ( ) ) != ( android.os.UserHandle.USER_OWNER ) ) { android.preference.PreferenceScreen preferenceScreen = ( ( android.preference.PreferenceScreen ) ( findPreference ( "radio_info_settings" ) ) ) ; getPreferenceScreen ( ) . removePreference ( preferenceScreen ) ; } }
Source:
private static boolean isActivity ( com.android.ide.eclipse.adt.internal.editors.Hyperlinks.XmlContext context ) { org.w3c.dom.Attr attribute = context.getAttribute ( ) ; java.lang.String tagName = context.getElement ( ) . getTagName ( ) ; if ( ( ( com.android.sdklib.xml.AndroidManifest.NODE_ACTIVITY.equals ( tagName ) ) && ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_NAME.equals ( attribute.getLocalName ( ) ) ) ) && ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI.equals ( attribute.getNamespaceURI ( ) ) ) ) { return true ; } return false ; }

Target:
private static boolean isActivity ( com.android.ide.eclipse.adt.internal.editors.Hyperlinks.XmlContext context ) { org.w3c.dom.Attr attribute = context.getAttribute ( ) ; java.lang.String tagName = context.getElement ( ) . getTagName ( ) ; if ( ( ( com.android.sdklib.xml.AndroidManifest.NODE_ACTIVITY.equals ( tagName ) ) && ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_NAME.equals ( attribute.getLocalName ( ) ) ) ) && ( com.android.util.XmlUtils.ANDROID_URI.equals ( attribute.getNamespaceURI ( ) ) ) ) { return true ; } return false ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { try { java.lang.Class < ? > a = java.lang.Class.forName ( "A" ) ; } catch ( java.lang.VerifyError e ) { java.lang.System.out.println ( "passed A" ) ; } try { java.lang.Class < ? > a = java.lang.Class.forName ( "B" ) ; } catch ( java.lang.VerifyError e ) { java.lang.System.out.println ( "passed B" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.test ( "A" ) ; Main.test ( "B" ) ; Main.test ( "C" ) ; }
Source:
public void getSmdsAddress ( java.lang.String cardId , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.String > callback ) { try { getIEuiccCardController ( ) . getSmdsAddress ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetSmdsAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , java.lang.String address ) { callback.onComplete ( resultCode , address ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getSmdsAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void requestSmdsAddress ( java.lang.String cardId , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.String > callback ) { try { getIEuiccCardController ( ) . getSmdsAddress ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetSmdsAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , java.lang.String address ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , address ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getSmdsAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void lookupTimeZonesByCountry_structuresAreImmutable ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones>\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; java.util.List < android.icu.util.TimeZone > gbList = finder.lookupTimeZonesByCountry ( "gb" ) ; org.junit.Assert.assertEquals ( 1 , gbList.size ( ) ) ; libcore.util.TimeZoneFinderTest.assertImmutableList ( gbList ) ; assertImmutableTimeZone ( gbList.get ( 0 ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "unknown" ) ) ; }

Target:
public void xmlParsing_missingIanaVersionAttribute ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones>\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; libcore.util.TimeZoneFinderTest.assertZonesEqual ( libcore.util.TimeZoneFinderTest.zones ( "Europe/London" ) , finder.lookupTimeZonesByCountry ( "gb" ) ) ; org.junit.Assert.assertNull ( finder.getIanaVersion ( ) ) ; }
Source:
public static void createjar ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File inputFiles ) { java.lang.String [ ] args = new java.lang.String [ ] { "jar" , "cf" , jarfile.getAbsolutePath ( ) , "-C" , inputFiles.getAbsolutePath ( ) , "." } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jar exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occured while running jar command" , e ) ; } }

Target:
public static void createjar ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File inputFiles ) { java.lang.String [ ] args = new java.lang.String [ ] { "jar" , "cf" , jarfile.getAbsolutePath ( ) , "-C" , inputFiles.getAbsolutePath ( ) , "." } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jar exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running jar command" , e ) ; } }
Source:
public boolean isSyntheticSwitchMapField ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { java.lang.String fieldName = field.getName ( ) ; int modifier = field.getModifier ( ) ; return ( ( ( ( fieldName.endsWith ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) && ( com.android.jack.ir.ast.JModifier.isSynthetic ( modifier ) ) ) && ( com.android.jack.ir.ast.JModifier.isPrivate ( modifier ) ) ) && ( com.android.jack.ir.ast.JModifier.isStatic ( modifier ) ) ) && ( field.getType ( ) . isSameType ( getPrimitiveIntType ( ) . getArray ( ) ) ) ; }

Target:
public boolean isSyntheticSwitchMapField ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { java.lang.String fieldName = field.getName ( ) ; int modifier = field.getModifier ( ) ; return ( ( ( ( fieldName.endsWith ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) && ( com.android.jack.ir.ast.JModifier.isSynthetic ( modifier ) ) ) && ( com.android.jack.ir.ast.JModifier.isPrivate ( modifier ) ) ) && ( com.android.jack.ir.ast.JModifier.isStatic ( modifier ) ) ) && ( field.getType ( ) . isSameType ( JPrimitiveTypeEnum.INT.getType ( ) . getArray ( ) ) ) ; }
Source:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( ( classNode.name.indexOf ( '$' ) ) != ( - 1 ) ) && ( ( ( classNode.access ) & ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) == 0 ) ) { return ; } if ( com.android.tools.lint.checks.ViewConstructorDetector.isViewClass ( context , classNode ) ) { com.android.tools.lint.checks.ViewConstructorDetector.checkConstructors ( context , classNode ) ; } }

Target:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode ) { if ( ( ( classNode.name.indexOf ( '$' ) ) != ( - 1 ) ) && ( ( ( classNode.access ) & ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) == 0 ) ) { return ; } if ( ( ( classNode.access ) & ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) ) != 0 ) { return ; } if ( com.android.tools.lint.checks.ViewConstructorDetector.isViewClass ( context , classNode ) ) { com.android.tools.lint.checks.ViewConstructorDetector.checkConstructors ( context , classNode ) ; } }
Source:
private boolean shouldTurnOffDormancyUpdate ( ) { return ( mIsPowerSaveOn ) || ( ( ( ! ( mIsCharging ) ) && ( ! ( mIsTetheringOn ) ) ) && ( ! ( mIsScreenOn ) ) ) ; }

Target:
private boolean shouldTurnOffFullNetworkUpdate ( ) { if ( mIsPowerSaveOn ) { return true ; } if ( ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( mIsTetheringOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_FULL_NETWORK_STATE ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }
Source:
public static android.util.Pair < java.lang.String , java.lang.Long > getPrimaryStoragePathAndSize ( ) { return android.util.Pair.create ( null , android.os.FileUtils.roundStorageSize ( android.os.Environment.getDataDirectory ( ) . getTotalSpace ( ) ) ) ; }

Target:
public static android.util.Pair < java.lang.String , java.lang.Long > getPrimaryStoragePathAndSize ( ) { return android.util.Pair.create ( null , android.os.FileUtils.roundStorageSize ( ( ( android.os.Environment.getDataDirectory ( ) . getTotalSpace ( ) ) + ( android.os.Environment.getRootDirectory ( ) . getTotalSpace ( ) ) ) ) ) ; }
Source:
public void onBootPhase ( int phase ) { if ( phase == ( com.android.server.SystemService.PHASE_SYSTEM_SERVICES_READY ) ) { android.util.Log.i ( com.android.server.wifi.RttService.TAG , ( "Registering " + ( android.content.Context.WIFI_RTT_SERVICE ) ) ) ; if ( ( mImpl ) == null ) { mImpl = new com.android.server.wifi.RttService.RttServiceImpl ( getContext ( ) , mHandlerThread.getLooper ( ) ) ; } mImpl.startService ( ) ; } }

Target:
public void onStart ( ) { mImpl = new com.android.server.wifi.RttService.RttServiceImpl ( getContext ( ) , mHandlerThread.getLooper ( ) , com.android.server.wifi.WifiInjector.getInstance ( ) ) ; android.util.Log.i ( com.android.server.wifi.RttService.TAG , ( "Starting " + ( android.content.Context.WIFI_RTT_SERVICE ) ) ) ; publishBinderService ( Context.WIFI_RTT_SERVICE , mImpl ) ; }
Source:
public int getBatteryLevel ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getBatteryLevel(): not allowed for non-active user" ) ; return - 1 ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return - 1 ; return service.getBatteryLevel ( device ) ; }

Target:
public int getBatteryLevel ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getBatteryLevel(): not allowed for non-active user" ) ; return android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN ; return service.getBatteryLevel ( device ) ; }