auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static libcore.util.TimeZoneFinder createInstanceWithFallback ( java.lang.String ... tzLookupFilePaths ) { for ( java.lang.String tzLookupFilePath : tzLookupFilePaths ) { try { return libcore.util.TimeZoneFinder.createInstance ( tzLookupFilePath ) ; } catch ( java.io.IOException e ) { java.lang.System.logE ( ( ( "Unable to process file: " + tzLookupFilePath ) + " Trying next one." ) , e ) ; } } java.lang.System.logE ( ( ( "No valid file found in set: " + ( java.util.Arrays.toString ( tzLookupFilePaths ) ) ) + " Falling back to empty map." ) ) ; return libcore.util.TimeZoneFinder.createInstanceForTests ( "<timezones><countryzones /></timezones>" ) ; }

Target:
public static libcore.util.TimeZoneFinder createInstanceWithFallback ( java.lang.String ... tzLookupFilePaths ) { java.io.IOException lastException = null ; for ( java.lang.String tzLookupFilePath : tzLookupFilePaths ) { try { return libcore.util.TimeZoneFinder.createInstance ( tzLookupFilePath ) ; } catch ( java.io.IOException e ) { if ( lastException != null ) { e.addSuppressed ( lastException ) ; } lastException = e ; } } java.lang.System.logE ( ( ( "No valid file found in set: " + ( java.util.Arrays.toString ( tzLookupFilePaths ) ) ) + " Printing exceptions and falling back to empty map." ) , lastException ) ; return libcore.util.TimeZoneFinder.createInstanceForTests ( "<timezones><countryzones /></timezones>" ) ; }
Source:
public java.util.List < com.android.resources.ResourceType > getResourceTypes ( ) { update ( ) ; if ( ( mResourceTypeList ) == null ) { java.util.Set < com.android.resources.ResourceType > keys = mResourceItems.keySet ( ) ; mResourceTypeList = new java.util.ArrayList < com.android.resources.ResourceType > ( ) ; mResourceTypeList.addAll ( keys ) ; mResourceTypeList = java.util.Collections.unmodifiableList ( mResourceTypeList ) ; } return mResourceTypeList ; }

Target:
private void updateResourceItems ( ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository repository = getRepository ( ) ; for ( com.android.resources.ResourceType type : mResourceTypeList ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > list = mResourceItems.get ( type ) ; if ( list != null ) { java.util.Collection < com.android.ide.common.rendering.api.ResourceValue > values = list.values ( ) ; for ( com.android.ide.common.rendering.api.ResourceValue res : values ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = repository.getResourceItem ( type , res.getName ( ) ) ; item.add ( this ) ; } } } }
Source:
private static int supports ( java.security.Provider.Service s , java.lang.String attrName , java.lang.String value ) { if ( value == null ) { return javax.crypto.Cipher.S_YES ; } java.lang.String regexp = s.getAttribute ( attrName ) ; if ( regexp == null ) { return javax.crypto.Cipher.S_MAYBE ; } return javax.crypto.Cipher.Transform.matches ( regexp , value ) ? javax.crypto.Cipher.S_YES : javax.crypto.Cipher.S_NO ; }

Target:
static boolean matchAttribute ( java.security.Provider.Service service , java.lang.String attr , java.lang.String value ) { if ( value == null ) { return true ; } final java.lang.String pattern = service.getAttribute ( attr ) ; if ( pattern == null ) { return true ; } final java.lang.String valueUc = value.toUpperCase ( java.util.Locale.US ) ; return valueUc.matches ( pattern.toUpperCase ( java.util.Locale.US ) ) ; }
Source:
public final void testPkgTypeSample ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SAMPLES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasTag ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeSample ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SAMPLE ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasTag ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void onFocusChanged ( final boolean focused , final int direction , final android.graphics.Rect previouslyFocusedRect ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onFocusChanged ( focused , direction , previouslyFocusedRect ) ; } } ) ; return ; } mAwContents.onFocusChanged ( focused , direction , previouslyFocusedRect ) ; }

Target:
public void onWindowFocusChanged ( final boolean hasWindowFocus ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; } } ) ; return ; } mAwContents.onWindowFocusChanged ( hasWindowFocus ) ; }
Source:
public void setMasterSyncAutomatically ( boolean flag ) { synchronized ( mAuthorities ) { if ( ( mMasterSyncAutomatically ) == flag ) { return ; } mMasterSyncAutomatically = flag ; writeAccountInfoLocked ( ) ; } if ( flag ) { android.content.ContentResolver.requestSync ( null , null , new android.os.Bundle ( ) ) ; } reportChange ( ContentResolver.SYNC_OBSERVER_TYPE_SETTINGS ) ; mContext.sendBroadcast ( android.content.SyncStorageEngine.SYNC_CONNECTION_SETTING_CHANGED_INTENT ) ; }

Target:
public void setMasterSyncAutomatically ( boolean flag , int userId ) { synchronized ( mAuthorities ) { java.lang.Boolean auto = mMasterSyncAutomatically.get ( userId ) ; if ( ( auto != null ) && ( ( ( boolean ) ( auto ) ) == flag ) ) { return ; } mMasterSyncAutomatically.put ( userId , flag ) ; writeAccountInfoLocked ( ) ; } if ( flag ) { requestSync ( null , userId , null , new android.os.Bundle ( ) ) ; } reportChange ( ContentResolver.SYNC_OBSERVER_TYPE_SETTINGS ) ; mContext.sendBroadcast ( android.content.SyncStorageEngine.SYNC_CONNECTION_SETTING_CHANGED_INTENT ) ; }
Source:
public java.lang.StringBuilder formatAndReplace ( java.lang.StringBuilder result , int [ ] offsets , java.lang.CharSequence ... values ) { return com.ibm.icu.impl.SimplePatternFormatter.formatAndReplace ( compiledPattern , result , offsets , values ) ; }

Target:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { int valuesLength = ( values != null ) ? values.length : 0 ; if ( valuesLength < ( com.ibm.icu.impl.SimpleFormatterImpl.getArgumentLimit ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return com.ibm.icu.impl.SimpleFormatterImpl.format ( compiledPattern , values , appendTo , null , true , offsets ) ; }
Source:
public V remove ( java.lang.Object key ) { try { java.util.Map < C , V > backingRowMap = backingRowMap ( ) ; if ( backingRowMap == null ) { return null ; } V result = backingRowMap.remove ( key ) ; maintainEmptyInvariant ( ) ; return result ; } catch ( java.lang.ClassCastException e ) { return null ; } }

Target:
public V remove ( java.lang.Object key ) { java.util.Map < C , V > backingRowMap = backingRowMap ( ) ; if ( backingRowMap == null ) { return null ; } V result = com.google.common.collect.Maps.safeRemove ( backingRowMap , key ) ; maintainEmptyInvariant ( ) ; return result ; }
Source:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier compareQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier referenceQ = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier ) ( reference ) ) ; if ( ( compareQ.mValue ) == ( referenceQ.mValue ) ) { return false ; } else if ( ( mValue ) == ( referenceQ.mValue ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }

Target:
public boolean isBetterMatchThan ( com.android.ide.common.resources.configuration.ResourceQualifier compareTo , com.android.ide.common.resources.configuration.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.common.resources.configuration.PixelDensityQualifier compareQ = ( ( com.android.ide.common.resources.configuration.PixelDensityQualifier ) ( compareTo ) ) ; com.android.ide.common.resources.configuration.PixelDensityQualifier referenceQ = ( ( com.android.ide.common.resources.configuration.PixelDensityQualifier ) ( reference ) ) ; if ( ( compareQ.mValue ) == ( referenceQ.mValue ) ) { return false ; } else if ( ( mValue ) == ( referenceQ.mValue ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }
Source:
private void assertValidPinned ( java.security.cert.X509Certificate [ ] chain , javax.net.ssl.X509TrustManager tm , java.lang.String hostname , java.security.cert.X509Certificate [ ] fullChain ) throws java.lang.Exception { if ( tm instanceof org.conscrypt.TrustManagerImpl ) { org.conscrypt.TrustManagerImpl tmi = ( ( org.conscrypt.TrustManagerImpl ) ( tm ) ) ; java.util.List < java.security.cert.X509Certificate > checkedChain = tmi.checkServerTrusted ( chain , "RSA" , hostname ) ; assertEquals ( checkedChain , java.util.Arrays.asList ( fullChain ) ) ; } tm.checkServerTrusted ( chain , "RSA" ) ; }

Target:
private void assertValidPinned ( java.security.cert.X509Certificate [ ] chain , javax.net.ssl.X509TrustManager tm , java.lang.String hostname , java.security.cert.X509Certificate [ ] fullChain ) throws java.lang.Exception { if ( tm instanceof org.conscrypt.TrustManagerImpl ) { org.conscrypt.TrustManagerImpl tmi = ( ( org.conscrypt.TrustManagerImpl ) ( tm ) ) ; java.util.List < java.security.cert.X509Certificate > checkedChain = tmi.checkServerTrusted ( chain , "RSA" , new org.conscrypt.TrustManagerImplTest.MySSLSession ( hostname ) ) ; assertEquals ( checkedChain , java.util.Arrays.asList ( fullChain ) ) ; } tm.checkServerTrusted ( chain , "RSA" ) ; }
Source:
public void destroy ( ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "destroy: called post GC on WifiAwareManager" ) ; return ; } mgr.terminateSession ( mClientId , mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }

Target:
public void destroy ( ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "destroy: called post GC on WifiAwareManager" ) ; return ; } mgr.terminateSession ( mClientId , mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }
Source:
public void onEmulatorMessage ( int msg_type , java.nio.ByteBuffer msg_data ) { switch ( msg_type ) { case com.android.tools.sdkcontroller.lib.ProtocolConstants.MT_FB_UPDATE : android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.tools.sdkcontroller.handlers.MultiTouchChannel.EVENT_FRAME_BUFFER ; msg.obj = msg_data ; notifyUiHandlers ( msg ) ; break ; default : android.util.Log.e ( com.android.tools.sdkcontroller.handlers.MultiTouchChannel.TAG , ( "Unknown message type " + msg_type ) ) ; } }

Target:
public void onEmulatorMessage ( int msg_type , java.nio.ByteBuffer msg_data ) { switch ( msg_type ) { case com.android.tools.sdkcontroller.lib.ProtocolConstants.MT_FB_UPDATE : android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.tools.sdkcontroller.handlers.MultiTouchChannel.EVENT_FRAME_BUFFER ; msg.obj = msg_data ; postMessage ( ProtocolConstants.MT_FB_ACK , ( ( byte [ ] ) ( null ) ) ) ; notifyUiHandlers ( msg ) ; break ; default : android.util.Log.e ( com.android.tools.sdkcontroller.handlers.MultiTouchChannel.TAG , ( "Unknown message type " + msg_type ) ) ; } }
Source:
private com.android.jack.test.toolchain.JackBasedToolchain getToolchain ( boolean isApiTest ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 1 ) ; excludeList.add ( com.android.jack.test.toolchain.LegacyJillToolchain.class ) ; if ( isApiTest ) { excludeList.add ( com.android.jack.test.toolchain.JackCliToolchain.class ) ; } return com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackApiToolchainBase.class , excludeList ) ; }

Target:
private com.android.jack.test.toolchain.JackBasedToolchain getToolchain ( boolean isApiTest ) { java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( 1 ) ; excludeList.add ( com.android.jack.test.toolchain.JillBasedToolchain.class ) ; if ( isApiTest ) { excludeList.add ( com.android.jack.test.toolchain.JackCliToolchain.class ) ; } return com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackApiToolchainBase.class , excludeList ) ; }
Source:
public int [ ] mapThisVector ( int [ ] param ) { android.util.Log.d ( com.android.commands.hidl_test_java.HidlTestJava.TAG , ( "mapThisVector " + ( com.android.commands.hidl_test_java.HidlTestJava.toString ( param ) ) ) ) ; for ( int i = 0 ; i < ( param.length ) ; ++ i ) { param [ i ] *= 2 ; } return param ; }

Target:
public java.util.ArrayList < java.lang.Integer > mapThisVector ( java.util.ArrayList < java.lang.Integer > param ) { android.util.Log.d ( com.android.commands.hidl_test_java.HidlTestJava.TAG , ( "mapThisVector " + ( com.android.commands.hidl_test_java.HidlTestJava.integerVecToString ( param ) ) ) ) ; java.util.ArrayList < java.lang.Integer > out = new java.util.ArrayList < java.lang.Integer > ( ) ; for ( int i = 0 ; i < ( param.size ( ) ) ; ++ i ) { out.add ( ( 2 * ( param.get ( i ) ) ) ) ; } return out ; }
Source:
public void testAesCbcHmacSha512Udp4 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
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 ) ; }
Source:
public static boolean acquireBridge ( ) { int count = 10 ; do { com.android.hierarchyviewerlib.device.DeviceBridge.sBridge = com.android.ddmlib.AndroidDebugBridge.getBridge ( ) ; if ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) { try { java.lang.Thread.sleep ( 500 ) ; count -- ; if ( count == 0 ) { return false ; } } catch ( java.lang.InterruptedException e ) { } } } while ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) ; return true ; }

Target:
public static void acquireBridge ( com.android.ddmlib.AndroidDebugBridge bridge ) { com.android.hierarchyviewerlib.device.DeviceBridge.sBridge = bridge ; }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID , int p2 ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( subId , AID , p2 ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , getOpPackageName ( ) , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 0 ] ) ; Main.prepareNativeLibFileName ( args [ 0 ] ) ; Main.doTest ( false , false ) ; Main.appendToBootClassLoader ( Main.DEX_PARENT_BOOT ) ; Main.doTest ( true , false ) ; Main.appendToBootClassLoader ( Main.DEX_CHILD ) ; Main.doTest ( true , true ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 0 ] ) ; Main.prepareNativeLibFileName ( args [ 0 ] ) ; Main.doTest ( false , false ) ; Main.doUnloading ( ) ; Main.appendToBootClassLoader ( Main.DEX_PARENT_BOOT ) ; Main.doTest ( true , false ) ; Main.doUnloading ( ) ; Main.appendToBootClassLoader ( Main.DEX_CHILD ) ; Main.doTest ( true , true ) ; Main.doUnloading ( ) ; }
Source:
protected java.lang.Object engineGetParameter ( java.lang.String arg0 ) throws java.security.InvalidParameterException { return spiImpl.engineGetParameter ( arg0 ) ; }

Target:
private java.security.SignatureSpi getSpi ( java.security.Key key ) { synchronized ( initLock ) { if ( ( spiImpl ) != null ) { return spiImpl ; } final org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = java.security.Signature.tryAlgorithm ( key , provider , algorithm ) ; if ( sap == null ) { throw new java.security.ProviderException ( ( "No provider for " + ( getAlgorithm ( ) ) ) ) ; } spiImpl = ( ( java.security.SignatureSpi ) ( sap.spi ) ) ; provider = sap.provider ; return spiImpl ; } }
Source:
public static java.io.InputStream findEntryInputStreamForEntry ( java.util.zip.ZipFile zipFile , java.util.zip.ZipEntry entry ) throws java.io.IOException { if ( entry.isDirectory ( ) ) return null ; if ( ( zipFile.getEntry ( ( ( entry.getName ( ) ) + "/" ) ) ) != null ) return null ; return new java.io.BufferedInputStream ( zipFile.getInputStream ( entry ) ) ; }

Target:
public static java.io.InputStream findEntryInputStreamForEntry ( com.intellij.updater.MultiZipFile zipFile , java.util.zip.ZipEntry entry ) throws java.io.IOException { if ( entry.isDirectory ( ) ) return null ; if ( ( zipFile.getEntry ( ( ( entry.getName ( ) ) + "/" ) ) ) != null ) return null ; return new java.io.BufferedInputStream ( zipFile.getInputStream ( entry ) ) ; }
Source:
public void initialize ( java.lang.String updaterAppPackageName , java.lang.String dataAppPackageName , com.android.server.timezone.Listener listener ) { mUpdaterAppPackageName = updaterAppPackageName ; android.content.IntentFilter packageIntentFilter = new android.content.IntentFilter ( ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_CHANGED ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_REPLACED ) ; packageIntentFilter.addDataScheme ( "package" ) ; packageIntentFilter.addDataSchemeSpecificPart ( updaterAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addDataSchemeSpecificPart ( dataAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; com.android.server.timezone.IntentHelperImpl.Receiver packageUpdateReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( listener , true ) ; mContext.registerReceiver ( packageUpdateReceiver , packageIntentFilter ) ; mReliabilityReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( listener , false ) ; }

Target:
public void initialize ( java.lang.String updaterAppPackageName , java.lang.String dataAppPackageName , com.android.server.timezone.Listener listener ) { mUpdaterAppPackageName = updaterAppPackageName ; android.content.IntentFilter packageIntentFilter = new android.content.IntentFilter ( ) ; packageIntentFilter.addDataScheme ( "package" ) ; packageIntentFilter.addDataSchemeSpecificPart ( updaterAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addDataSchemeSpecificPart ( dataAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_ADDED ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_CHANGED ) ; com.android.server.timezone.IntentHelperImpl.Receiver packageUpdateReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( listener , true ) ; mContext.registerReceiver ( packageUpdateReceiver , packageIntentFilter ) ; mReliabilityReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( listener , false ) ; }
Source:
public void setTrafficClass ( int value ) throws java.net.SocketException { checkOpen ( ) ; if ( ( value < 0 ) || ( value > 255 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } impl.setOption ( java.net.SocketOptions.IP_TOS , java.lang.Integer.valueOf ( value ) ) ; }

Target:
public void setTrafficClass ( int value ) throws java.net.SocketException { checkOpen ( ) ; if ( ( value < 0 ) || ( value > 255 ) ) { throw new java.lang.IllegalArgumentException ( ( "Value doesn't fit in an unsigned byte: " + value ) ) ; } impl.setOption ( java.net.SocketOptions.IP_TOS , java.lang.Integer.valueOf ( value ) ) ; }
Source:
public android.telephony.NetworkScan requestNetworkScan ( android.telephony.NetworkScanRequest request , android.telephony.TelephonyScanManager.NetworkScanCallback callback ) { synchronized ( this ) { if ( ( mTelephonyScanManager ) == null ) { mTelephonyScanManager = new android.telephony.TelephonyScanManager ( ) ; } } return mTelephonyScanManager.requestNetworkScan ( getSubId ( ) , request , callback ) ; }

Target:
public android.telephony.NetworkScan requestNetworkScan ( android.telephony.NetworkScanRequest request , java.util.concurrent.Executor executor , android.telephony.TelephonyScanManager.NetworkScanCallback callback ) { synchronized ( this ) { if ( ( mTelephonyScanManager ) == null ) { mTelephonyScanManager = new android.telephony.TelephonyScanManager ( ) ; } } return mTelephonyScanManager.requestNetworkScan ( getSubId ( ) , request , executor , callback ) ; }
Source:
private void stopObexServerSession ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service stopObexServerSession" ) ; } mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_ACQUIRE_WAKE_LOCK ) ; mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_RELEASE_WAKE_LOCK ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; startSocketListeners ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED ) ; }

Target:
private void stopObexServerSession ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service stopObexServerSession" ) ; } mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_ACQUIRE_WAKE_LOCK ) ; mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_RELEASE_WAKE_LOCK ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; prepareServerSocket ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED ) ; }
Source:
public boolean hasIccCardUsingSlotId ( int slotId ) { int [ ] subId = mSubscriptionController.getSubIdUsingSlotId ( slotId ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( ( subId != null ) && ( phone != null ) ) { return phone.getIccCard ( ) . hasIccCard ( ) ; } else { return false ; } }

Target:
public boolean hasIccCardUsingSlotIndex ( int slotIndex ) { int [ ] subId = mSubscriptionController.getSubIdUsingSlotIndex ( slotIndex ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( ( subId != null ) && ( phone != null ) ) { return phone.getIccCard ( ) . hasIccCard ( ) ; } else { return false ; } }
Source:
private java.util.Set < java.lang.String > getAddedFileNames ( ) { assert ( fileDependencies ) != null ; java.util.Set < java.lang.String > addedFileNames = new java.util.HashSet < java.lang.String > ( ) ; java.util.Set < java.lang.String > previousFiles = fileDependencies.getCompiledJavaFiles ( ) ; for ( java.lang.String javaFileName : fileNamesOnCmdLine ) { if ( ! ( previousFiles.contains ( javaFileName ) ) ) { addedFileNames.add ( javaFileName ) ; } } return addedFileNames ; }

Target:
private void fillAddedFileNames ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > addedFileNames ) { assert ( fileDependencies ) != null ; java.util.Set < java.lang.String > previousFiles = fileDependencies.getCompiledJavaFiles ( ) ; for ( java.lang.String javaFileName : fileNamesOnCmdLine ) { if ( ! ( previousFiles.contains ( javaFileName ) ) ) { addedFileNames.add ( javaFileName ) ; } } tracer.getStatistic ( com.android.jack.incremental.IncrementalInputFilter.ADDED_FILES ) . incValue ( addedFileNames.size ( ) ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { if ( timeoutMs <= 0 ) { throw new java.lang.IllegalArgumentException ( ( "Non-positive timeoutMs: " + timeoutMs ) ) ; } int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }

Target:
private static void checkCallbackNotNull ( android.net.ConnectivityManager.NetworkCallback callback ) { com.android.internal.util.Preconditions.checkNotNull ( callback , "null NetworkCallback" ) ; }
Source:
public static org.w3c.dom.Document parseDocumentSilently ( @ 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 ( java.lang.Exception e ) { } return null ; }

Target:
public static org.w3c.dom.Document parseDocument ( @ com.android.annotations.NonNull java.lang.String xml , boolean namespaceAware ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { xml = com.android.utils.XmlUtils.stripBom ( xml ) ; 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 ) ; javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; return builder.parse ( is ) ; }
Source:
public void testSendUuidIntent ( ) { com.android.bluetooth.btservice.RemoteDevicesTest.MyAdapterSvc m = new com.android.bluetooth.btservice.RemoteDevicesTest.MyAdapterSvc ( ) ; com.android.bluetooth.btservice.RemoteDevices instance = new com.android.bluetooth.btservice.RemoteDevices ( m ) ; instance.updateUuids ( mDevice1 ) ; android.os.Looper.loop ( ) ; org.junit.Assert.assertTrue ( m.isRecvd ( ) ) ; }

Target:
public void testSendUuidIntent ( ) { mRemoteDevices.updateUuids ( mDevice1 ) ; if ( ( android.os.Looper.myLooper ( ) ) != null ) { android.os.Looper.myLooper ( ) . quitSafely ( ) ; } android.os.Looper.loop ( ) ; verify ( mAdapterService ) . sendBroadcast ( any ( ) , anyString ( ) ) ; verifyNoMoreInteractions ( mAdapterService ) ; }
Source:
private static int maybeThrowAfterSendto ( boolean isDatagram , android.system.ErrnoException errnoException ) throws java.net.SocketException { if ( isDatagram ) { if ( ( ( errnoException.errno ) == ( ECONNRESET ) ) || ( ( errnoException.errno ) == ( ECONNREFUSED ) ) ) { return 0 ; } } else { if ( ( errnoException.errno ) == ( EAGAIN ) ) { return 0 ; } } throw errnoException.rethrowAsSocketException ( ) ; }

Target:
private static int maybeThrowAfterSendto ( boolean isDatagram , android.system.ErrnoException errnoException ) throws java.io.IOException { if ( isDatagram ) { if ( ( errnoException.errno ) == ( ECONNREFUSED ) ) { throw new java.net.PortUnreachableException ( "ICMP Port Unreachable" ) ; } } else { if ( ( errnoException.errno ) == ( EAGAIN ) ) { return 0 ; } } throw errnoException.rethrowAsIOException ( ) ; }
Source:
public void ropBuildMethodWithSameReturnReg ( ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; java.lang.String classpath = com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) ; java.io.File dexOutDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; java.io.File testSourceDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.analysis.dfa.reachingdefs.test001" ) ; toolchain.srcToExe ( classpath , dexOutDir , false , testSourceDir ) ; }

Target:
public void ropBuildMethodWithSameReturnReg ( ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; java.io.File dexOutDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; java.io.File testSourceDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.analysis.dfa.reachingdefs.test001" ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( dexOutDir , false , testSourceDir ) ; }
Source:
public void finer ( java.lang.String msg ) { if ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) { return ; } log ( java.util.logging.Level.FINER , msg ) ; }

Target:
public void throwing ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( java.util.logging.Level.FINER ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( java.util.logging.Level.FINER , "THROW" ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
public void flush ( ) { if ( ( mNextFormatCharPos ) < ( mFormat.length ( ) ) ) { mStringBuilder.append ( mFormat , mNextFormatCharPos , mFormat.length ( ) ) ; } android.util.Log.println ( mLogLevel , mTag , mStringBuilder.toString ( ) ) ; }

Target:
public void flush ( ) { if ( ( mNextFormatCharPos ) < ( mFormat.length ( ) ) ) { mStringBuilder.append ( mFormat , mNextFormatCharPos , mFormat.length ( ) ) ; } if ( ( com.android.server.wifi.LogcatLog.sVerboseLogging ) || ( ( mLogLevel ) > ( android.util.Log.DEBUG ) ) ) { android.util.Log.println ( mLogLevel , mTag , mStringBuilder.toString ( ) ) ; } }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final boolean succeded ; synchronized ( mInstallLock ) { succeded = deleteApplicationCacheFilesLI ( packageName , userId ) ; } clearExternalStorageDataSync ( packageName , userId , false ) ; if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , succeded ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { synchronized ( mInstallLock ) { final int flags = ( android.os.storage.StorageManager.FLAG_STORAGE_DE ) | ( android.os.storage.StorageManager.FLAG_STORAGE_CE ) ; clearAppDataLIF ( pkg , userId , ( flags | ( Installer.FLAG_CLEAR_CACHE_ONLY ) ) ) ; clearAppDataLIF ( pkg , userId , ( flags | ( Installer.FLAG_CLEAR_CODE_CACHE_ONLY ) ) ) ; } clearExternalStorageDataSync ( packageName , userId , false ) ; if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , true ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
public void test_getDisplayName ( ) throws java.lang.Exception { assertEquals ( "Swiss Franc" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( java.util.Locale.US ) ) ; assertEquals ( "Schweizer Franken" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "de" , "CH" ) ) ) ; assertEquals ( "franc suisse" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "fr" , "CH" ) ) ) ; assertEquals ( "Franco Svizzero" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "it" , "CH" ) ) ) ; }

Target:
public void test_getDisplayName ( ) throws java.lang.Exception { assertEquals ( "Swiss Franc" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( java.util.Locale.US ) ) ; assertEquals ( "Schweizer Franken" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "de" , "CH" ) ) ) ; assertEquals ( "franc suisse" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "fr" , "CH" ) ) ) ; assertEquals ( "Franco svizzero" , java.util.Currency.getInstance ( "CHF" ) . getDisplayName ( new java.util.Locale ( "it" , "CH" ) ) ) ; }
Source:
protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { if ( android.view.accessibility.AccessibilityManager.getInstance ( mContext ) . isEnabled ( ) ) { postSendViewScrolledAccessibilityEventCallback ( ) ; } mBackgroundSizeChanged = true ; final android.view.View.AttachInfo ai = mAttachInfo ; if ( ai != null ) { ai.mViewScrollChanged = true ; } if ( ( ( mListenerInfo ) != null ) && ( ( mListenerInfo.mOnScrollChangeListener ) != null ) ) { mListenerInfo.mOnScrollChangeListener.onScrollChange ( this , l , t , oldl , oldt ) ; } }

Target:
public void invalidateOutline ( ) { mPrivateFlags3 |= android.view.View.PFLAG3_OUTLINE_INVALID ; notifySubtreeAccessibilityStateChangedIfNeeded ( ) ; invalidateViewProperty ( false , false ) ; }
Source:
public void requestIccSimAuthentication ( int authContext , java.lang.String data , java.lang.String aid , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIM_AUTHENTICATION , response ) ; rr.mParcel.writeInt ( authContext ) ; rr.mParcel.writeString ( data ) ; rr.mParcel.writeString ( aid ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public java.util.List < android.telephony.ClientRequestStats > getClientRequestStats ( ) { return mClientWakelockTracker.getClientRequestStats ( ) ; }
Source:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }

Target:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; }
Source:
public void writeToParcel ( android.os.Parcel out , int flags ) { out.writeInt ( downloadId ) ; out.writeParcelable ( fileServiceInfo , flags ) ; out.writeParcelable ( sourceUri , flags ) ; out.writeParcelable ( destinationUri , flags ) ; out.writeInt ( subId ) ; out.writeString ( serializedResultIntentForApp ) ; }

Target:
public void writeToParcel ( android.os.Parcel out , int flags ) { out.writeInt ( downloadId ) ; out.writeParcelable ( fileServiceInfo , flags ) ; out.writeParcelable ( sourceUri , flags ) ; out.writeParcelable ( destinationUri , flags ) ; out.writeInt ( subId ) ; out.writeString ( serializedResultIntentForApp ) ; out.writeString ( appName ) ; }
Source:
public org.bouncycastle.math.ec.ECCurve create ( ) { if ( ! ( supportsCoordinateSystem ( coord ) ) ) { throw new java.lang.IllegalStateException ( "unsupported coordinate system" ) ; } org.bouncycastle.math.ec.ECCurve c = cloneCurve ( ) ; if ( c == ( this ) ) { throw new java.lang.IllegalStateException ( "implementation returned current curve" ) ; } c.coord = coord ; c.multiplier = multiplier ; return c ; }

Target:
public org.bouncycastle.math.ec.ECCurve create ( ) { if ( ! ( supportsCoordinateSystem ( coord ) ) ) { throw new java.lang.IllegalStateException ( "unsupported coordinate system" ) ; } org.bouncycastle.math.ec.ECCurve c = cloneCurve ( ) ; if ( c == ( this ) ) { throw new java.lang.IllegalStateException ( "implementation returned current curve" ) ; } c.coord = coord ; c.endomorphism = endomorphism ; c.multiplier = multiplier ; return c ; }
Source:
public static java.lang.String map2AlgName ( java.lang.String oid ) { final java.lang.String algUC = org.apache.harmony.security.utils.AlgNameMapper.oid2AlgMap.get ( oid ) ; if ( algUC != null ) { return org.apache.harmony.security.utils.AlgNameMapper.algAliasesMap.get ( algUC ) ; } return null ; }

Target:
public static java.lang.String map2AlgName ( java.lang.String oid ) { java.lang.String algUC = org.apache.harmony.security.utils.AlgNameMapper.oid2AlgMap.get ( oid ) ; if ( algUC != null ) { return org.apache.harmony.security.utils.AlgNameMapper.algAliasesMap.get ( algUC ) ; } org.apache.harmony.security.utils.AlgNameMapperSource s = org.apache.harmony.security.utils.AlgNameMapper.source ; if ( s != null ) { return s.mapOidToName ( oid ) ; } return null ; }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "delete voicemailUri %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "delete voicemailUri %s" , java.lang.String.valueOf ( voicemailUri ) ) ; newVoicemailViewHolderListener.deleteViewHolder ( getContext ( ) , fragmentManager , newVoicemailViewHolder , voicemailUri ) ; }
Source:
private com.android.tv.dvr.ScheduledRecording createNewScheduledRecordingStartingNow ( ) { return com.android.tv.dvr.ScheduledRecording.buildFrom ( com.android.tv.testing.dvr.RecordingTestUtils.createTestRecordingWithIdAndPeriod ( ScheduledRecording.ID_NOT_SET , com.android.tv.dvr.BaseDvrDataManagerTest.INPUT_ID , com.android.tv.dvr.BaseDvrDataManagerTest.CHANNEL_ID , mFakeClock.currentTimeMillis ( ) , ( ( mFakeClock.currentTimeMillis ( ) ) + ( java.util.concurrent.TimeUnit.MINUTES.toMillis ( 5 ) ) ) ) ) . setState ( ScheduledRecording.STATE_RECORDING_NOT_STARTED ) . build ( ) ; }

Target:
private com.android.tv.dvr.data.ScheduledRecording createNewScheduledRecordingStartingNow ( ) { return com.android.tv.dvr.data.ScheduledRecording.buildFrom ( com.android.tv.testing.dvr.RecordingTestUtils.createTestRecordingWithIdAndPeriod ( ScheduledRecording.ID_NOT_SET , com.android.tv.dvr.BaseDvrDataManagerTest.INPUT_ID , com.android.tv.dvr.BaseDvrDataManagerTest.CHANNEL_ID , mFakeClock.currentTimeMillis ( ) , ( ( mFakeClock.currentTimeMillis ( ) ) + ( java.util.concurrent.TimeUnit.MINUTES.toMillis ( 5 ) ) ) ) ) . setState ( ScheduledRecording.STATE_RECORDING_NOT_STARTED ) . build ( ) ; }
Source:
private static java.lang.String getErrorMessage ( java.lang.String owner ) { if ( ( com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_CLS.equals ( owner ) ) || ( com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_V4_CLS.equals ( owner ) ) ) { return "This transaction should be completed with a commit() call" ; } java.lang.String className = owner.substring ( ( ( owner.lastIndexOf ( '/' ) ) + 1 ) ) ; return java.lang.String.format ( "This %1$s should be recycled after use with #recycle()" , className ) ; }

Target:
private static java.lang.String getErrorMessage ( java.lang.String owner ) { if ( ( com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_CLS.equals ( owner ) ) || ( com.android.tools.lint.checks.CleanupDetector.FRAGMENT_TRANSACTION_V4_CLS.equals ( owner ) ) ) { return "This transaction should be completed with a `commit()` call" ; } java.lang.String className = owner.substring ( ( ( owner.lastIndexOf ( '/' ) ) + 1 ) ) ; return java.lang.String.format ( "This `%1$s` should be recycled after use with `#recycle()`" , className ) ; }
Source:
private boolean shouldStubAsBridgeDefaultMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) | ( org.objectweb.asm.Opcodes.ACC_PUBLIC ) ) ) ) && ( com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ; }

Target:
private boolean shouldStubAsBridgeDefaultMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.io.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) | ( org.objectweb.asm.Opcodes.ACC_PUBLIC ) ) ) ) && ( com.google.devtools.build.android.desugar.io.BitFlags.noneSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ; }
Source:
public android.net.http.SslCertificate getCertificate ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.net.http.SslCertificate ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.net.http.SslCertificate > ( ) { @ java.lang.Override public android.net.http.SslCertificate call ( ) { return getCertificate ( ) ; } } ) ; return ret ; } return mAwContents.getCertificate ( ) ; }

Target:
public void setHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm , final java.lang.String username , final java.lang.String password ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHttpAuthUsernamePassword ( host , realm , username , password ) ; } } ) ; return ; } mAwContents.setHttpAuthUsernamePassword ( host , realm , username , password ) ; }
Source:
void bindPaymentServiceLocked ( int userId , android.content.ComponentName service ) { unbindPaymentServiceLocked ( ) ; android.content.Intent intent = new android.content.Intent ( android.nfc.cardemulation.HostApduService.SERVICE_INTERFACE ) ; intent.setComponent ( service ) ; if ( ! ( mContext.bindServiceAsUser ( intent , mPaymentConnection , Context.BIND_AUTO_CREATE , new android.os.UserHandle ( userId ) ) ) ) { android.util.Log.e ( com.android.nfc.cardemulation.HostEmulationManager.TAG , "Could not bind (persistent) payment service." ) ; } }

Target:
void bindPaymentServiceLocked ( int userId , android.content.ComponentName service ) { unbindPaymentServiceLocked ( ) ; android.content.Intent intent = new android.content.Intent ( android.nfc.cardemulation.HostApduService.SERVICE_INTERFACE ) ; intent.setComponent ( service ) ; mLastBoundPaymentServiceName = service ; if ( ! ( mContext.bindServiceAsUser ( intent , mPaymentConnection , Context.BIND_AUTO_CREATE , new android.os.UserHandle ( userId ) ) ) ) { android.util.Log.e ( com.android.nfc.cardemulation.HostEmulationManager.TAG , "Could not bind (persistent) payment service." ) ; } }
Source:
private android.net.Network connectKeepaliveNetwork ( android.net.LinkProperties lp ) { if ( ( mWiFiNetworkAgent ) != null ) { assertNull ( mCm.getNetworkCapabilities ( mWiFiNetworkAgent.getNetwork ( ) ) ) ; } mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; android.os.ConditionVariable cv = waitForConnectivityBroadcasts ( 1 ) ; mWiFiNetworkAgent.connect ( true ) ; com.android.server.ConnectivityServiceTest.waitFor ( cv ) ; verifyActiveNetwork ( com.android.server.TRANSPORT_WIFI ) ; mWiFiNetworkAgent.sendLinkProperties ( lp ) ; waitForIdle ( ) ; return mWiFiNetworkAgent.getNetwork ( ) ; }

Target:
private android.net.Network connectKeepaliveNetwork ( android.net.LinkProperties lp ) { if ( ( mWiFiNetworkAgent ) != null ) { org.junit.Assert.assertNull ( mCm.getNetworkCapabilities ( mWiFiNetworkAgent.getNetwork ( ) ) ) ; } mWiFiNetworkAgent = new com.android.server.ConnectivityServiceTest.MockNetworkAgent ( TRANSPORT_WIFI ) ; android.os.ConditionVariable cv = waitForConnectivityBroadcasts ( 1 ) ; mWiFiNetworkAgent.connect ( true ) ; com.android.server.ConnectivityServiceTest.waitFor ( cv ) ; verifyActiveNetwork ( com.android.server.TRANSPORT_WIFI ) ; mWiFiNetworkAgent.sendLinkProperties ( lp ) ; waitForIdle ( ) ; return mWiFiNetworkAgent.getNetwork ( ) ; }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setText ( "Downloading samples list..." ) ; try { sampleList.set ( samplesService.samples ( ) . listSamples ( ) . set ( "technology" , "android" ) . execute ( ) ) ; } catch ( java.io.IOException ex ) { LOG.error ( "Failed to download samples" , ex.getMessage ( ) ) ; sampleList.set ( null ) ; } }

Target:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setText ( com.google.gct.idea.util.GctBundle.message ( "sample.index.downloading" ) ) ; try { sampleList.set ( samplesService.samples ( ) . listSamples ( ) . set ( "technology" , "android" ) . execute ( ) ) ; } catch ( java.io.IOException ex ) { com.google.gct.idea.samples.SampleImportAction.LOG.error ( com.google.gct.idea.util.GctBundle.message ( "sample.index.download.failed" ) ) ; sampleList.set ( null ) ; } }