auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void deleteActivityContainer ( android.app.IActivityContainer container ) throws android.os.RemoteException { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "deleteActivityContainer()" ) ; synchronized ( this ) { mStackSupervisor.deleteActivityContainer ( container ) ; } }

Target:
public android.app.IActivityContainer createStackOnDisplay ( int displayId ) throws android.os.RemoteException { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "createStackOnDisplay()" ) ; synchronized ( this ) { final int stackId = mStackSupervisor.getNextStackId ( ) ; final com.android.server.am.ActivityStack stack = mStackSupervisor.createStackOnDisplay ( stackId , displayId , true ) ; if ( stack == null ) { return null ; } return stack.mActivityContainer ; } }
Source:
public void restrictedStateChanged ( int indicationType , int var2 ) { }

Target:
public void restrictedStateChanged ( int indicationType , int state ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogvRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESTRICTED_STATE_CHANGED , state ) ; if ( ( mRil.mRestrictedStateRegistrant ) != null ) { mRil.mRestrictedStateRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , state , null ) ) ; } }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
private static dalvik.system.DexFile loadDexFile ( java.io.File file , java.io.File optimizedDirectory , java.lang.ClassLoader loader ) throws java.io.IOException { if ( optimizedDirectory == null ) { return new dalvik.system.DexFile ( file , loader ) ; } else { java.lang.String optimizedPath = dalvik.system.DexPathList.optimizedPathFor ( file , optimizedDirectory ) ; return dalvik.system.DexFile.loadDex ( file.getPath ( ) , optimizedPath , 0 , loader ) ; } }

Target:
private static dalvik.system.DexFile loadDexFile ( java.io.File file , java.io.File optimizedDirectory , java.lang.ClassLoader loader , dalvik.system.DexPathList.Element [ ] elements ) throws java.io.IOException { if ( optimizedDirectory == null ) { return new dalvik.system.DexFile ( file , loader , elements ) ; } else { java.lang.String optimizedPath = dalvik.system.DexPathList.optimizedPathFor ( file , optimizedDirectory ) ; return dalvik.system.DexFile.loadDex ( file.getPath ( ) , optimizedPath , 0 , loader , elements ) ; } }
Source:
public void testSatisfiedNetworkRequestDoesNotTriggerOnUnavailable ( ) { android.net.NetworkRequest nr = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) . build ( ) ; final com.android.server.ConnectivityServiceTest.TestNetworkCallback networkCallback = new com.android.server.ConnectivityServiceTest.TestNetworkCallback ( ) ; mCm.requestNetwork ( nr , networkCallback , 10 ) ; mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; mWiFiNetworkAgent.connect ( false ) ; networkCallback.expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , mWiFiNetworkAgent ) ; com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; networkCallback.assertNoCallback ( ) ; }

Target:
public void assertEventuallyTrue ( java.util.function.BooleanSupplier fn , long maxWaitingTimeMs ) { long start = android.os.SystemClock.elapsedRealtime ( ) ; while ( ( android.os.SystemClock.elapsedRealtime ( ) ) <= ( start + maxWaitingTimeMs ) ) { if ( fn.getAsBoolean ( ) ) { return ; } com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; } assertTrue ( fn.getAsBoolean ( ) ) ; }
Source:
public void TestFixedDecimalSuperscript ( ) { com.ibm.icu.util.ULocale en = new com.ibm.icu.util.ULocale ( "en" ) ; com.ibm.icu.text.DecimalFormat decfmt = ( ( com.ibm.icu.text.DecimalFormat ) ( com.ibm.icu.text.NumberFormat.getInstance ( en ) ) ) ; java.text.AttributedCharacterIterator iterator = decfmt.formatToCharacterIterator ( 123456.0 ) ; com.ibm.icu.text.ScientificFormatHelper helper = com.ibm.icu.text.ScientificFormatHelper.getInstance ( decfmt.getDecimalFormatSymbols ( ) ) ; try { helper.toSuperscriptExponentDigits ( iterator ) ; fail ( "expected illegal argument exception" ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void TestFixedDecimalSuperscript ( ) { com.ibm.icu.util.ULocale en = new com.ibm.icu.util.ULocale ( "en" ) ; com.ibm.icu.text.DecimalFormat decfmt = ( ( com.ibm.icu.text.DecimalFormat ) ( com.ibm.icu.text.NumberFormat.getInstance ( en ) ) ) ; java.text.AttributedCharacterIterator iterator = decfmt.formatToCharacterIterator ( 123456.0 ) ; com.ibm.icu.text.ScientificFormatHelper helper = com.ibm.icu.text.ScientificFormatHelper.getInstance ( decfmt.getDecimalFormatSymbols ( ) ) ; assertEquals ( "" , "123,456" , helper.toSuperscriptExponentDigits ( iterator ) ) ; }
Source:
private static boolean isUpAndHasAddresses ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( iface.isUp ( ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }

Target:
private static boolean willWorkForMulticast ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( ( ( iface.isUp ( ) ) && ( ! ( iface.isLoopback ( ) ) ) ) && ( iface.supportsMulticast ( ) ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }
Source:
private static void assertDefaultPhoneAccountHandleEquals ( com.android.server.telecom.PhoneAccountRegistrar.DefaultPhoneAccountHandle a , com.android.server.telecom.PhoneAccountRegistrar.DefaultPhoneAccountHandle b ) { if ( a != b ) { if ( ( a != null ) && ( b != null ) ) { assertEquals ( a.userHandle , b.userHandle ) ; com.android.server.telecom.tests.PhoneAccountRegistrarTest.assertPhoneAccountHandleEquals ( a.phoneAccountHandle , b.phoneAccountHandle ) ; } else { fail ( ( ( ( "Default phone account handles are not equal: " + a ) + ", " ) + b ) ) ; } } }

Target:
private static void assertDefaultPhoneAccountHandleEquals ( com.android.server.telecom.PhoneAccountRegistrar.DefaultPhoneAccountHandle a , com.android.server.telecom.PhoneAccountRegistrar.DefaultPhoneAccountHandle b ) { if ( a != b ) { if ( ( a != null ) && ( b != null ) ) { org.junit.Assert.assertEquals ( a.userHandle , b.userHandle ) ; com.android.server.telecom.tests.PhoneAccountRegistrarTest.assertPhoneAccountHandleEquals ( a.phoneAccountHandle , b.phoneAccountHandle ) ; } else { org.junit.Assert.fail ( ( ( ( "Default phone account handles are not equal: " + a ) + ", " ) + b ) ) ; } } }
Source:
public static com.android.jack.dx.rop.code.SourcePosition getSourcePosition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode stmt ) { if ( ( stmt.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return com.android.jack.dx.rop.code.SourcePosition.NO_INFO ; } int startLine = stmt.getSourceInfo ( ) . getStartLine ( ) ; return new com.android.jack.dx.rop.code.SourcePosition ( new com.android.jack.dx.rop.cst.CstString ( stmt.getSourceInfo ( ) . getFileName ( ) ) , ( - 1 ) , ( startLine == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN_LINE_NUMBER ) ? - 1 : startLine ) ) ; }

Target:
public static com.android.jack.dx.rop.code.SourcePosition getSourcePosition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode stmt ) { return com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( stmt.getSourceInfo ( ) ) ; }
Source:
public static org.apache.harmony.security.provider.cert.X509CertPathImpl getInstance ( byte [ ] in ) throws java.security.cert.CertificateException { try { return ( ( org.apache.harmony.security.provider.cert.X509CertPathImpl ) ( org.apache.harmony.security.provider.cert.X509CertPathImpl.ASN1.decode ( in ) ) ) ; } catch ( java.io.IOException e ) { throw new java.security.cert.CertificateException ( ( "Incorrect encoded form: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public static org.apache.harmony.security.provider.cert.X509CertPathImpl getInstance ( byte [ ] in ) throws java.security.cert.CertificateException { try { return ( ( org.apache.harmony.security.provider.cert.X509CertPathImpl ) ( org.apache.harmony.security.provider.cert.X509CertPathImpl.ASN1.decode ( in ) ) ) ; } catch ( java.io.IOException e ) { throw new java.security.cert.CertificateException ( "Failed to decode CertPath" , e ) ; } }
Source:
protected void removeFile ( com.android.resources.ResourceType type , com.android.ide.common.resources.ResourceFile file ) { java.util.List < com.android.ide.common.resources.ResourceItem > list = mResourceMap.get ( type ) ; if ( list != null ) { for ( int i = 0 ; i < ( list.size ( ) ) ; i ++ ) { com.android.ide.common.resources.ResourceItem item = list.get ( i ) ; item.removeFile ( file ) ; } } }

Target:
protected void removeFile ( com.android.resources.ResourceType type , com.android.ide.common.resources.ResourceFile file ) { java.util.Map < java.lang.String , com.android.ide.common.resources.ResourceItem > map = mResourceMap.get ( type ) ; if ( map != null ) { java.util.Collection < com.android.ide.common.resources.ResourceItem > values = map.values ( ) ; for ( com.android.ide.common.resources.ResourceItem item : values ) { item.removeFile ( file ) ; } } }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) 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_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesGcm96Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
public void onChange ( ) { if ( ( ( getActivity ( ) ) != null ) && ( isAdded ( ) ) ) { getLoaderManager ( ) . restartLoader ( 0 , null , this ) ; } }

Target:
public void onChange ( ) { if ( ( ( ( getActivity ( ) ) != null ) && ( isAdded ( ) ) ) && ( com.android.dialer.util.PermissionsUtil.hasContactsReadPermissions ( getContext ( ) ) ) ) { getLoaderManager ( ) . restartLoader ( 0 , null , this ) ; } }
Source:
public void testHasValue ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; android.os.Bundle value = new android.os.Bundle ( ) ; value.putString ( "hello" , "world" ) ; bundle.putBundle ( "key" , value ) ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( "world" ) ) . matches ( bundle ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( org.hamcrest.Matchers.equalTo ( "world" ) ) ) . matches ( bundle ) ) ; }

Target:
public void hasValueTesting ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; android.os.Bundle value = new android.os.Bundle ( ) ; value.putString ( "hello" , "world" ) ; bundle.putBundle ( "key" , value ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( "world" ) ) . matches ( bundle ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( org.hamcrest.Matchers.equalTo ( "world" ) ) ) . matches ( bundle ) ) ; }
Source:
public void testSwitchTimezone0 ( ) throws java.lang.Exception { final java.lang.String timeZone = "America/Los_Angeles" ; android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; t.parse ( "20061005T120000" ) ; t.switchTimezone ( timeZone ) ; assertEquals ( timeZone , t.timezone ) ; }

Target:
public void testParse ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; t.parse ( "20061005T120000" ) ; android.text.format.Time expected = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; android.text.format.cts.TimeTest.Fields.set ( expected , 2006 , 9 , 5 , 12 , 0 , 0 , ( - 1 ) , 0 , 0 , 0 ) ; android.text.format.cts.TimeTest.Fields.assertTimeEquals ( expected , t ) ; }
Source:
private static void validateManifestAttribute ( com.android.manifmerger.MergingReport.Builder mergingReport , com.android.manifmerger.XmlElement manifest , com.android.manifmerger.XmlDocument.Type fileType ) { org.w3c.dom.Attr attributeNode = manifest.getXml ( ) . getAttributeNode ( AndroidManifest.ATTRIBUTE_PACKAGE ) ; if ( ( attributeNode == null ) && ( fileType != ( XmlDocument.Type.OVERLAY ) ) ) { manifest.addMessage ( mergingReport , ( fileType == ( XmlDocument.Type.MAIN ) ? ERROR : WARNING ) , java.lang.String.format ( "Missing 'package' declaration in manifest at %1$s" , manifest.printPosition ( ) ) ) ; } }

Target:
private static void validateManifestAttribute ( com.android.manifmerger.MergingReport.Builder mergingReport , com.android.manifmerger.XmlElement manifest , com.android.manifmerger.XmlDocument.Type fileType ) { org.w3c.dom.Attr attributeNode = manifest.getXml ( ) . getAttributeNode ( AndroidManifest.ATTRIBUTE_PACKAGE ) ; if ( ( attributeNode == null ) && ( fileType != ( XmlDocument.Type.OVERLAY ) ) ) { manifest.addMessage ( mergingReport , ( fileType == ( XmlDocument.Type.MAIN ) ? Severity.ERROR : Severity.WARNING ) , java.lang.String.format ( "Missing 'package' declaration in manifest at %1$s" , manifest.printPosition ( ) ) ) ; } }
Source:
public android.os.ParcelUuid [ ] getUuids ( ) { if ( ( ( android.bluetooth.BluetoothDevice.sService ) == null ) || ( ( isBluetoothEnabled ( ) ) == false ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get remote device Uuids" ) ; return null ; } try { return android.bluetooth.BluetoothDevice.sService.getRemoteUuids ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }

Target:
public boolean fetchUuidsWithSdp ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( ( service == null ) || ( ! ( isBluetoothEnabled ( ) ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot fetchUuidsWithSdp" ) ; return false ; } try { return service.fetchRemoteUuids ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void testAndroidStrings ( ) { assertEquals ( mAppTextView1.getText ( ) , "SUCCESS-APP" ) ; assertEquals ( mLib1TextView1.getText ( ) , "SUCCESS-LIB1" ) ; assertEquals ( mLib2TextView1.getText ( ) , "SUCCESS-LIB2" ) ; }

Target:
public void testAndroidStrings ( ) { assertEquals ( mAppTextView1.getText ( ) , "SUCCESS-APP" ) ; assertEquals ( mLib1TextView1.getText ( ) , "SUCCESS-LIB1" ) ; assertEquals ( mLib2TextView1.getText ( ) , "SUCCESS-LIB2" ) ; assertEquals ( mLib2bTextView1.getText ( ) , "SUCCESS-LIB2b" ) ; assertEquals ( mLibappTextView1.getText ( ) , "SUCCESS-LIBAPP" ) ; }
Source:
synchronized boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp()" ) ; } if ( config == null ) { android.util.Log.w ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp: failed. The config in parameter should not be null" ) ; return false ; } if ( ( ( mAppConfig ) == null ) || ( ! ( config.equals ( mAppConfig ) ) ) ) { android.util.Log.w ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp: failed. The app configuration does not match the record" ) ; return false ; } return unregisterAppNative ( ) ; }

Target:
synchronized boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp()" ) ; } if ( config == null ) { android.util.Log.w ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp: failed. The config in parameter should not be null" ) ; return false ; } if ( ( ( mAppConfig ) == null ) || ( ! ( config.equals ( mAppConfig ) ) ) ) { android.util.Log.w ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp: failed. The app configuration does not match the record" ) ; return false ; } return mHidDeviceNativeInterface.unregisterApp ( ) ; }
Source:
private static org.w3c.dom.Document checkDocument ( @ com.android.annotations.NonNull java.lang.String xml , boolean namespaceAware ) { javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance ( ) ; org.xml.sax.InputSource is = new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) ; factory.setNamespaceAware ( namespaceAware ) ; factory.setValidating ( false ) ; try { javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; return builder.parse ( is ) ; } catch ( org.xml.sax.SAXException sax ) { com.android.build.gradle.tasks.annotations.Extractor.warning ( sax.toString ( ) ) ; } catch ( java.lang.Exception e ) { } return null ; }

Target:
private static org.w3c.dom.Document checkDocument ( @ com.android.annotations.NonNull java.lang.String xml , boolean namespaceAware ) { try { return com.android.utils.XmlUtils.parseDocument ( xml , namespaceAware ) ; } catch ( org.xml.sax.SAXException sax ) { com.android.build.gradle.tasks.annotations.Extractor.warning ( sax.toString ( ) ) ; } catch ( java.lang.Exception e ) { } return null ; }
Source:
public void adjustLabel ( com.android.sdklib.internal.repository.sources.SdkSource source ) { if ( ( ( getLabel ( ) ) == null ) || ( getLabel ( ) . startsWith ( "http" ) ) ) { setLabel ( ( source == ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource.UNKNOWN_SOURCE ) ? "Local Packages" : source.toString ( ) ) ) ; } }

Target:
public void adjustLabel ( com.android.sdklib.internal.repository.sources.SdkSource source ) { if ( ( ( getLabel ( ) ) == null ) || ( getLabel ( ) . startsWith ( "http" ) ) ) { setLabel ( ( source == ( com.android.sdkuilib.internal.repository.core.PkgCategorySource.UNKNOWN_SOURCE ) ? "Local Packages" : source.toString ( ) ) ) ; } }
Source:
public void copyFromUnchecked ( byte [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFromUnchecked ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void testGetMaximumTimeToLock ( ) { mDevicePolicyManager.setMaximumTimeToLock ( mComponent , 3000 ) ; assertEquals ( 3000 , mDevicePolicyManager.getMaximumTimeToLock ( mComponent ) ) ; mDevicePolicyManager.setMaximumTimeToLock ( mComponent , 5000 ) ; assertEquals ( 5000 , mDevicePolicyManager.getMaximumTimeToLock ( mComponent ) ) ; }

Target:
public void testGetMaximumTimeToLock ( ) { long originalTimeout = mDevicePolicyManager.getMaximumTimeToLock ( mComponent ) ; mDevicePolicyManager.setMaximumTimeToLock ( mComponent , 3000 ) ; assertEquals ( 3000 , mDevicePolicyManager.getMaximumTimeToLock ( mComponent ) ) ; mDevicePolicyManager.setMaximumTimeToLock ( mComponent , 5000 ) ; assertEquals ( 5000 , mDevicePolicyManager.getMaximumTimeToLock ( mComponent ) ) ; mDevicePolicyManager.setMaximumTimeToLock ( mComponent , originalTimeout ) ; }
Source:
private static java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transformsForGlFrontFace ( com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg ) { int mode = msg.getArgs ( 0 ) . getIntValue ( 0 ) ; com.android.ide.eclipse.gltrace.state.transforms.IStateTransform transform = new com.android.ide.eclipse.gltrace.state.transforms.PropertyChangeTransform ( com.android.ide.eclipse.gltrace.state.transforms.GLPropertyAccessor.makeAccessor ( msg.getContextId ( ) , GLStateType.RASTERIZATION_STATE , GLStateType.FRONT_FACE ) , com.android.ide.eclipse.gldebugger.GLEnum.valueOf ( mode ) ) ; return java.util.Collections.singletonList ( transform ) ; }

Target:
private static java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transformsForGlFrontFace ( com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg ) { int mode = msg.getArgs ( 0 ) . getIntValue ( 0 ) ; com.android.ide.eclipse.gltrace.state.transforms.IStateTransform transform = new com.android.ide.eclipse.gltrace.state.transforms.PropertyChangeTransform ( com.android.ide.eclipse.gltrace.state.transforms.GLPropertyAccessor.makeAccessor ( msg.getContextId ( ) , GLStateType.RASTERIZATION_STATE , GLStateType.FRONT_FACE ) , com.android.ide.eclipse.gltrace.GLEnum.valueOf ( mode ) ) ; return java.util.Collections.singletonList ( transform ) ; }
Source:
public synchronized int bindServer ( ) { int port = getSyncPortNumber ( ) ; try { logWriter.println ( ( "[SYNC] Binding socket on port: " + port ) ) ; serverSocket = new java.net.ServerSocket ( port ) ; port = serverSocket.getLocalPort ( ) ; logWriter.println ( ( "[SYNC] Bound socket on port: " + port ) ) ; return port ; } catch ( java.io.IOException e ) { throw new org.apache.harmony.jpda.tests.framework.TestErrorException ( "[SYNC] Exception in binding for socket sync connection" , e ) ; } }

Target:
public synchronized int bindServer ( ) { java.net.InetSocketAddress serverAddress = getSyncServerAddress ( ) ; try { logWriter.println ( ( "[SYNC] Binding socket on: " + serverAddress ) ) ; serverSocket = new java.net.ServerSocket ( serverAddress.getPort ( ) , 0 , serverAddress.getAddress ( ) ) ; logWriter.println ( ( "[SYNC] Bound socket on: " + serverAddress ) ) ; return serverAddress.getPort ( ) ; } catch ( java.io.IOException e ) { throw new org.apache.harmony.jpda.tests.framework.TestErrorException ( "[SYNC] Exception in binding for socket sync connection" , e ) ; } }
Source:
public void handleMessage ( android.os.Message msg ) { com.android.settings.deviceinfo.Status status = mStatus.get ( ) ; if ( status == null ) { return ; } switch ( msg.what ) { case com.android.settings.deviceinfo.Status.EVENT_SIGNAL_STRENGTH_CHANGED : status.updateSignalStrength ( ) ; break ; case com.android.settings.deviceinfo.Status.EVENT_SERVICE_STATE_CHANGED : android.telephony.ServiceState serviceState = status.mPhoneStateReceiver.getServiceState ( ) ; status.updateServiceState ( serviceState ) ; break ; case com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS : status.updateTimes ( ) ; sendEmptyMessageDelayed ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS , 1000 ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { com.android.settings.deviceinfo.Status status = mStatus.get ( ) ; if ( status == null ) { return ; } switch ( msg.what ) { case com.android.settings.deviceinfo.Status.EVENT_SIGNAL_STRENGTH_CHANGED : status.updateSignalStrength ( ) ; break ; case com.android.settings.deviceinfo.Status.EVENT_SERVICE_STATE_CHANGED : android.telephony.ServiceState serviceState = status.mPhoneStateReceiver.getServiceState ( ) ; status.updateServiceState ( serviceState ) ; break ; case com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS : status.updateTimes ( ) ; sendEmptyMessageDelayed ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS , 1000 ) ; break ; case com.android.settings.deviceinfo.Status.EVENT_UPDATE_CONNECTIVITY : status.updateConnectivity ( ) ; break ; } }
Source:
public void onProfileServiceStateChanged ( java.lang.String serviceName , int state ) { android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.AdapterService.MESSAGE_PROFILE_SERVICE_STATE_CHANGED ) ; m.obj = serviceName ; m.arg1 = state ; mHandler.sendMessage ( m ) ; }

Target:
public void onProfileServiceStateChanged ( com.android.bluetooth.btservice.ProfileService profile , int state ) { if ( ( state != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) && ( state != ( android.bluetooth.BluetoothAdapter.STATE_OFF ) ) ) { throw new java.lang.IllegalArgumentException ( android.bluetooth.BluetoothAdapter.nameForState ( state ) ) ; } android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.AdapterService.MESSAGE_PROFILE_SERVICE_STATE_CHANGED ) ; m.obj = profile ; m.arg1 = state ; mHandler.sendMessage ( m ) ; }
Source:
public void dispose ( ) { if ( mDbg ) log ( ( "[IccCard] Disposing card type " + ( is3gpp ? "3gpp" : "3gpp2" ) ) ) ; mPhone.mCM.unregisterForIccStatusChanged ( mHandler ) ; mPhone.mCM.unregisterForOffOrNotAvailable ( mHandler ) ; mPhone.mCM.unregisterForOn ( mHandler ) ; mCatService.dispose ( ) ; mCdmaSSM.dispose ( mHandler ) ; mIccRecords.dispose ( ) ; mIccFileHandler.dispose ( ) ; }

Target:
public void dispose ( ) { if ( mDbg ) log ( ( "Disposing card type " + ( is3gpp ? "3gpp" : "3gpp2" ) ) ) ; mPhone.mCM.unregisterForIccStatusChanged ( mHandler ) ; mPhone.mCM.unregisterForOffOrNotAvailable ( mHandler ) ; mPhone.mCM.unregisterForOn ( mHandler ) ; mCatService.dispose ( ) ; mCdmaSSM.dispose ( mHandler ) ; mIccRecords.dispose ( ) ; mIccFileHandler.dispose ( ) ; }
Source:
public Debug.MemoryInfo dumpMemInfo ( java.io.FileDescriptor fd , boolean checkin , boolean all , java.lang.String [ ] args ) { java.io.FileOutputStream fout = new java.io.FileOutputStream ( fd ) ; java.io.PrintWriter pw = new java.io.PrintWriter ( fout ) ; try { return dumpMemInfo ( pw , checkin , all ) ; } finally { pw.flush ( ) ; } }

Target:
public void dumpMemInfo ( java.io.FileDescriptor fd , android.os.Debug.MemoryInfo mem , boolean checkin , boolean dumpFullInfo , boolean dumpDalvik , java.lang.String [ ] args ) { java.io.FileOutputStream fout = new java.io.FileOutputStream ( fd ) ; java.io.PrintWriter pw = new com.android.internal.util.FastPrintWriter ( fout ) ; try { dumpMemInfo ( pw , mem , checkin , dumpFullInfo , dumpDalvik ) ; } finally { pw.flush ( ) ; } }
Source:
public void testFilterByTagRegex ( ) { com.android.ddmuilib.logcat.LogCatFilter filter = new com.android.ddmuilib.logcat.LogCatFilter ( "" , "tag.*" , "" , "" , "" , com.android.ddmlib.Log.LogLevel.VERBOSE ) ; com.android.ddmuilib.logcat.LogCatMessage msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "tag123" , "" , "" ) ; assertEquals ( true , filter.matches ( msg ) ) ; msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "ta123" , "" , "" ) ; assertEquals ( false , filter.matches ( msg ) ) ; }

Target:
public void testFilterByTagRegex ( ) { com.android.ddmuilib.logcat.LogCatFilter filter = new com.android.ddmuilib.logcat.LogCatFilter ( "" , "tag.*" , "" , "" , "" , com.android.ddmlib.Log.LogLevel.VERBOSE ) ; com.android.ddmlib.logcat.LogCatMessage msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "tag123" , "" , "" ) ; assertEquals ( true , filter.matches ( msg ) ) ; msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "ta123" , "" , "" ) ; assertEquals ( false , filter.matches ( msg ) ) ; }
Source:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder _addProjectResourceFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources.class . getDeclaredMethod ( "add" , com.android.resources.ResourceFolderType.class , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }

Target:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder _addProjectResourceFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository.class . getDeclaredMethod ( "add" , com.android.resources.ResourceFolderType.class , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }
Source:
public void onResume ( ) { super . onResume ( ) ; startTimeOut ( ) ; }

Target:
public void onResume ( ) { super . onResume ( ) ; if ( ( ( ! ( mTextMsg.responseNeeded ) ) && ( ( com.android.stk.StkApp.calculateDurationInMilis ( mTextMsg.duration ) ) == 0 ) ) && ( mTextMsg.userClear ) ) { com.android.internal.telephony.cat.CatLog.d ( this , "User should clear text..show message forever" ) ; return ; } startTimeOut ( mTextMsg.userClear ) ; }
Source:
private void updateCallCache ( com.android.incallui.call.DialerCall call ) { if ( call == null ) { currentVideoState = android.telecom.VideoProfile.STATE_AUDIO_ONLY ; currentCallState = com.android.incallui.call.DialerCall.State.INVALID ; videoCall = null ; primaryCall = null ; } else { currentVideoState = call.getVideoState ( ) ; videoCall = call.getVideoCall ( ) ; currentCallState = call.getState ( ) ; primaryCall = call ; } }

Target:
private void updateCallCache ( com.android.incallui.call.DialerCall call ) { if ( call == null ) { currentVideoState = android.telecom.VideoProfile.STATE_AUDIO_ONLY ; currentCallState = com.android.incallui.call.state.DialerCallState.INVALID ; videoCall = null ; primaryCall = null ; } else { currentVideoState = call.getVideoState ( ) ; videoCall = call.getVideoCall ( ) ; currentCallState = call.getState ( ) ; primaryCall = call ; } }
Source:
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 ) ; }

Target:
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 ) ; }
Source:
private void contentSizeChanged ( boolean updateLayout ) { if ( ( ( mContentWidth ) | ( mContentHeight ) ) == 0 ) { return ; } if ( mHeightCanMeasure ) { if ( ( ( getMeasuredHeight ( ) ) != ( contentToView ( mContentHeight ) ) ) && updateLayout ) { requestLayout ( ) ; } } else if ( mWidthCanMeasure ) { if ( ( ( getMeasuredWidth ( ) ) != ( contentToView ( mContentWidth ) ) ) && updateLayout ) { requestLayout ( ) ; } } else { sendViewSizeZoom ( ) ; } }

Target:
protected void onDrawVerticalScrollBar ( android.graphics.Canvas canvas , android.graphics.drawable.Drawable scrollBar , int l , int t , int r , int b ) { scrollBar.setBounds ( l , ( t + ( getVisibleTitleHeight ( ) ) ) , r , b ) ; scrollBar.draw ( canvas ) ; }
Source:
public void testEncryption ( ) throws java.lang.Exception { if ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) { return ; } if ( hasLowRAM ( ) ) { android.util.Log.i ( android.security.cts.EncryptionTest.TAG , "hasLowRAM: true" ) ; return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }

Target:
private boolean isRequired ( ) { int first_api_level = java.lang.System.GetProperty ( "ro.product.first_api_level" ) ; if ( first_api_level && ( first_api_level < ( android.security.cts.EncryptionTest.min_api_level ) ) ) { return false ; } else { return ! ( hasLowRAM ( ) ) ; } }
Source:
public static org.bouncycastle.math.ec.ECPoint shamirsTrick ( org.bouncycastle.math.ec.ECPoint P , java.math.BigInteger k , org.bouncycastle.math.ec.ECPoint Q , java.math.BigInteger l ) { org.bouncycastle.math.ec.ECCurve cp = P.getCurve ( ) ; Q = org.bouncycastle.math.ec.ECAlgorithms.importPoint ( cp , Q ) ; return org.bouncycastle.math.ec.ECAlgorithms.implShamirsTrick ( P , k , Q , l ) ; }

Target:
public static org.bouncycastle.math.ec.ECPoint shamirsTrick ( org.bouncycastle.math.ec.ECPoint P , java.math.BigInteger k , org.bouncycastle.math.ec.ECPoint Q , java.math.BigInteger l ) { org.bouncycastle.math.ec.ECCurve cp = P.getCurve ( ) ; Q = org.bouncycastle.math.ec.ECAlgorithms.importPoint ( cp , Q ) ; return org.bouncycastle.math.ec.ECAlgorithms.validatePoint ( org.bouncycastle.math.ec.ECAlgorithms.implShamirsTrickJsf ( P , k , Q , l ) ) ; }
Source:
public void onDestroy ( ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkAppService.LOG_TAG , "onDestroy()" ) ; if ( ( mStkCmdReceiver ) != null ) { unregisterReceiver ( mStkCmdReceiver ) ; mStkCmdReceiver = null ; } mPowerManager = null ; waitForLooper ( ) ; mServiceLooper.quit ( ) ; }

Target:
public void onDestroy ( ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkAppService.LOG_TAG , "onDestroy()" ) ; if ( ( mStkCmdReceiver ) != null ) { unregisterReceiver ( mStkCmdReceiver ) ; mStkCmdReceiver = null ; } mPowerManager = null ; com.android.stk.StkAppService.sInstance = null ; waitForLooper ( ) ; mServiceLooper.quit ( ) ; }
Source:
public static java.lang.String getDescription ( @ org.jetbrains.annotations.NotNull java.lang.Throwable t ) { boolean isAndroid = false ; for ( java.lang.StackTraceElement el : t.getStackTrace ( ) ) { if ( el.getClassName ( ) . contains ( "android" ) ) { isAndroid = true ; break ; } } java.lang.String sourceLocation = "" ; if ( ( t.getStackTrace ( ) . length ) > 0 ) { java.lang.StackTraceElement loc = t.getStackTrace ( ) [ 0 ] ; sourceLocation = ( ( " @ " + ( loc.getFileName ( ) ) ) + ":" ) + ( loc.getLineNumber ( ) ) ; } java.lang.String prefix = ( isAndroid ) ? "android:" : "" ; java.lang.String desc = ( prefix + ( t.getClass ( ) . getSimpleName ( ) ) ) + sourceLocation ; if ( ( desc.length ( ) ) > 150 ) { desc = desc.substring ( 0 , 150 ) ; } return desc ; }

Target:
private static boolean fromAndroidPlugin ( java.lang.StackTraceElement el ) { return el.getClassName ( ) . contains ( "android" ) ; }
Source:
public static java.lang.String getLocale ( java.util.Locale locale ) { java.lang.String language = locale.getLanguage ( ) ; java.lang.String country = locale.getCountry ( ) ; if ( "iw" . equals ( language ) ) { language = "he" ; } else if ( "in" . equals ( language ) ) { language = "id" ; } else if ( "tl" . equals ( language ) ) { language = "fil" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }

Target:
public static java.lang.String toLanguageTag ( java.util.Locale locale ) { java.lang.String language = org.chromium.base.LocaleUtils.getUpdatedLanguageForChromium ( locale.getLanguage ( ) ) ; java.lang.String country = locale.getCountry ( ) ; if ( ( ( language.equals ( "no" ) ) && ( country.equals ( "NO" ) ) ) && ( locale.getVariant ( ) . equals ( "NY" ) ) ) { return "nn-NO" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }
Source:
public void testSwipingDownHasNoEffectWhenAtStart ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.vertical_pager ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.swipeDown ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.swipeDown ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) ; }

Target:
public void swipingDownHasNoEffectWhenAtStart ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.vertical_pager ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.swipeDown ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.swipeDown ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) ; }
Source:
public int hashCode ( ) { return ( ( getClassName ( ) . hashCode ( ) ) * 31 ) + ( getTestName ( ) . hashCode ( ) ) ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( mClassName ) == null ? 0 : mClassName.hashCode ( ) ) ; result = ( prime * result ) + ( ( mDeviceName ) == null ? 0 : mDeviceName.hashCode ( ) ) ; result = ( prime * result ) + ( ( mTestName ) == null ? 0 : mTestName.hashCode ( ) ) ; return result ; }
Source:
public void TestClone ( ) { android.icu.text.RuleBasedBreakIterator rbbi = new android.icu.text.RuleBasedBreakIterator ( "" ) ; try { rbbi.setText ( ( ( java.text.CharacterIterator ) ( null ) ) ) ; if ( ( ( ( android.icu.text.RuleBasedBreakIterator ) ( rbbi.clone ( ) ) ) . getText ( ) ) != null ) errln ( ( "RuleBasedBreakIterator.clone() was suppose to return " + "the same object because fText is set to null." ) ) ; } catch ( java.lang.Exception e ) { errln ( ( "RuleBasedBreakIterator.clone() was not suppose to return " + "an exception." ) ) ; } }

Target:
public void TestClone ( ) { android.icu.text.RuleBasedBreakIterator rbbi = new android.icu.text.RuleBasedBreakIterator ( ".;" ) ; try { rbbi.setText ( ( ( java.text.CharacterIterator ) ( null ) ) ) ; if ( ( ( ( android.icu.text.RuleBasedBreakIterator ) ( rbbi.clone ( ) ) ) . getText ( ) ) != null ) errln ( ( "RuleBasedBreakIterator.clone() was suppose to return " + "the same object because fText is set to null." ) ) ; } catch ( java.lang.Exception e ) { errln ( ( "RuleBasedBreakIterator.clone() was not suppose to return " + "an exception." ) ) ; } }
Source:
public void startImmediately ( ) { start ( ) ; if ( mStarted ) { if ( com.android.tv.data.epg.EpgFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.epg.EpgFetcher.TAG , "Starting fetcher immediately" ) ; fetchEpg ( ) ; } }

Target:
public void startImmediately ( boolean clearStoredLineupId ) { startInternal ( true ) ; if ( mStarted ) { if ( clearStoredLineupId ) { if ( com.android.tv.data.epg.EpgFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.epg.EpgFetcher.TAG , ( "Clear stored lineup id: " + ( mLineupId ) ) ) ; setLastLineupId ( null ) ; } if ( com.android.tv.data.epg.EpgFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.epg.EpgFetcher.TAG , "Starting fetcher immediately" ) ; postFetchRequest ( true , 0 ) ; } }
Source:
public void testWithId_describeWithResourceLookup ( ) { android.view.View view = new android.view.View ( context ) ; org.hamcrest.Matcher < android.view.View > matcher = android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.testId1 ) ; matcher.matches ( view ) ; android.support.test.espresso.matcher.ViewMatchers.assertThat ( matcher.toString ( ) , org.hamcrest.Matchers.containsString ( "id/testId1" ) ) ; }

Target:
public void withId_describeWithResourceLookup ( ) { android.view.View view = new android.view.View ( context ) ; org.hamcrest.Matcher < android.view.View > matcher = android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.testId1 ) ; matcher.matches ( view ) ; android.support.test.espresso.matcher.ViewMatchers.assertThat ( matcher.toString ( ) , org.hamcrest.Matchers.containsString ( "id/testId1" ) ) ; }
Source:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , javax.net.ssl.SSLEngine engine ) throws java.security.cert.CertificateException { javax.net.ssl.SSLSession session = engine.getHandshakeSession ( ) ; if ( session == null ) { throw new java.security.cert.CertificateException ( "Not in handshake; no session available" ) ; } checkTrusted ( chain , authType , session , engine.getSSLParameters ( ) , true ) ; }

Target:
public java.util.List < java.security.cert.X509Certificate > checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { return checkTrusted ( chain , authType , host , false ) ; }
Source:
public static int presentationFromCLIP ( int cli ) { switch ( cli ) { case 0 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED ; case 1 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_RESTRICTED ; case 2 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN ; default : android.util.Log.d ( com.android.internal.telephony.cdma.CdmaCallWaitingNotification.LOG_TAG , ( "Unexpected presentation " + cli ) ) ; return com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN ; } }

Target:
public static int presentationFromCLIP ( int cli ) { switch ( cli ) { case 0 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED ; case 1 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_RESTRICTED ; case 2 : return com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN ; default : android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaCallWaitingNotification.LOG_TAG , ( "Unexpected presentation " + cli ) ) ; return com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN ; } }
Source:
protected boolean check ( ) { boolean done = false ; if ( handler.hasCalledHandleMessage ( ) ) { if ( ( ( handler.mResultUrl ) != null ) && ( handler.mResultUrl.equals ( TestHtmlConstants.HTML_URL2 ) ) ) { done = true ; } else { handler.reset ( ) ; android.os.Message newMsg = new android.os.Message ( ) ; newMsg.setTarget ( handler ) ; mOnUiThread.requestFocusNodeHref ( newMsg ) ; } } return done ; }

Target:
protected boolean check ( ) { boolean done = false ; final java.lang.String url2 = mWebServer.getAssetUrl ( TestHtmlConstants.HTML_URL2 ) ; if ( handler.hasCalledHandleMessage ( ) ) { if ( ( ( handler.mResultUrl ) != null ) && ( handler.mResultUrl.equals ( url2 ) ) ) { done = true ; } else { handler.reset ( ) ; android.os.Message newMsg = new android.os.Message ( ) ; newMsg.setTarget ( handler ) ; mOnUiThread.requestFocusNodeHref ( newMsg ) ; } } return done ; }
Source:
public void doInspections ( @ org.jetbrains.annotations.NotNull final com.intellij.analysis.AnalysisScope scope ) { if ( ! ( com.intellij.codeInspection.ex.GlobalInspectionContextUtil.canRunInspections ( myProject , true ) ) ) return ; cleanupTools ( ) ; com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { myCurrentScope = scope ; launchInspections ( scope ) ; } } , com.intellij.openapi.application.ApplicationManager.getApplication ( ) . getDisposed ( ) ) ; }

Target:
public void doInspections ( @ org.jetbrains.annotations.NotNull final com.intellij.analysis.AnalysisScope scope ) { if ( ! ( com.intellij.codeInspection.ex.GlobalInspectionContextUtil.canRunInspections ( myProject , true ) ) ) return ; cleanup ( ) ; com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { myCurrentScope = scope ; launchInspections ( scope ) ; } } , com.intellij.openapi.application.ApplicationManager.getApplication ( ) . getDisposed ( ) ) ; }
Source:
public void default_methods_with_lambdas_in_another_package ( ) throws java.lang.Exception { com.android.jack.java8.retrolambda.anotherpackage.jack.UsesLambdasInAnotherPackage obj = new com.android.jack.java8.retrolambda.anotherpackage.jack.UsesLambdasInAnotherPackage ( ) { } ; org.junit.Assert.assertEquals ( obj.stateless ( ) . call ( ) , "foo" ) ; org.junit.Assert.assertEquals ( obj.captureThis ( ) . call ( ) , "foo" ) ; org.junit.Assert.assertEquals ( "should contain only delegates to the two default methods" , obj.getClass ( ) . getDeclaredMethods ( ) . length , 2 ) ; }

Target:
public void default_methods_with_lambdas_in_another_package ( ) throws java.lang.Exception { com.android.jack.java8.retrolambda.anotherpackage.jack.UsesLambdasInAnotherPackage obj = new com.android.jack.java8.retrolambda.anotherpackage.jack.UsesLambdasInAnotherPackage ( ) { } ; org.junit.Assert.assertEquals ( obj.stateless ( ) . call ( ) , "foo" ) ; org.junit.Assert.assertEquals ( obj.captureThis ( ) . call ( ) , "foo" ) ; org.junit.Assert.assertEquals ( "must not have declared methods" , obj.getClass ( ) . getDeclaredMethods ( ) . length , 0 ) ; }