auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_socket_accept_Nonblocking_NotBound ( ) throws java.io.IOException { java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; serverChannel.configureBlocking ( false ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } }

Target:
public void test_socket_accept_Nonblocking_NotBound ( ) throws java.io.IOException { java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; serverChannel.configureBlocking ( false ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException expected ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException expected ) { } }
Source:
private void handleAutoTimeZoneEnabled ( ) { java.lang.String tmpLog = ( "handleAutoTimeZoneEnabled: Reverting to NITZ TimeZone:" + " mSavedTimeZoneId=" ) + ( mSavedTimeZoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , tmpLog ) ; } mTimeZoneLog.log ( tmpLog ) ; if ( ( mSavedTimeZoneId ) != null ) { setAndBroadcastNetworkSetTimeZone ( mSavedTimeZoneId ) ; } else { java.lang.String iso = mDeviceState.getNetworkCountryIsoForPhone ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( iso ) ) ) { updateTimeZoneByNetworkCountryCode ( iso ) ; } } }

Target:
private void handleAutoTimeZoneEnabled ( ) { java.lang.String tmpLog = ( "handleAutoTimeZoneEnabled: Reverting to NITZ TimeZone:" + " mSavedTimeZoneId=" ) + ( mSavedTimeZoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , tmpLog ) ; } mTimeZoneLog.log ( tmpLog ) ; if ( ( mSavedTimeZoneId ) != null ) { setAndBroadcastNetworkSetTimeZone ( mSavedTimeZoneId ) ; } }
Source:
public void testWeakCompareAndSet ( ) { java.util.concurrent.atomic.AtomicReference ai = new java.util.concurrent.atomic.AtomicReference ( one ) ; while ( ! ( ai.weakCompareAndSet ( one , two ) ) ) ; while ( ! ( ai.weakCompareAndSet ( two , m4 ) ) ) ; assertSame ( m4 , ai.get ( ) ) ; while ( ! ( ai.weakCompareAndSet ( m4 , seven ) ) ) ; assertSame ( seven , ai.get ( ) ) ; }

Target:
public void testWeakCompareAndSet ( ) { java.util.concurrent.atomic.AtomicReference ai = new java.util.concurrent.atomic.AtomicReference ( one ) ; do { } while ( ! ( ai.weakCompareAndSet ( one , two ) ) ) ; do { } while ( ! ( ai.weakCompareAndSet ( two , m4 ) ) ) ; assertSame ( m4 , ai.get ( ) ) ; do { } while ( ! ( ai.weakCompareAndSet ( m4 , seven ) ) ) ; assertSame ( seven , ai.get ( ) ) ; }
Source:
public static int StaticCondition ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 7 ) ; b = Main.$inline$int ( 2 ) ; if ( a < b ) c = a + b ; else c = a - b ; return c ; }

Target:
public static int StaticCondition ( ) { int a ; int b ; int c ; a = 7 ; b = 2 ; if ( a < b ) c = a + b ; else c = a - b ; return c ; }
Source:
android.bluetooth.BluetoothDevice [ ] getBondedDevices ( ) { android.bluetooth.BluetoothDevice [ ] bondedDeviceList = new android.bluetooth.BluetoothDevice [ 0 ] ; synchronized ( mObject ) { if ( mBondedDevices.isEmpty ( ) ) return new android.bluetooth.BluetoothDevice [ 0 ] ; try { bondedDeviceList = mBondedDevices.toArray ( bondedDeviceList ) ; infoLog ( ( "getBondedDevices: length=" + ( bondedDeviceList.length ) ) ) ; return bondedDeviceList ; } catch ( java.lang.ArrayStoreException ee ) { errorLog ( "Error retrieving bonded device array" ) ; return new android.bluetooth.BluetoothDevice [ 0 ] ; } } }

Target:
android.bluetooth.BluetoothDevice [ ] getBondedDevices ( ) { android.bluetooth.BluetoothDevice [ ] bondedDeviceList = new android.bluetooth.BluetoothDevice [ 0 ] ; try { bondedDeviceList = mBondedDevices.toArray ( bondedDeviceList ) ; } catch ( java.lang.ArrayStoreException ee ) { errorLog ( "Error retrieving bonded device array" ) ; } infoLog ( ( "getBondedDevices: length=" + ( bondedDeviceList.length ) ) ) ; return bondedDeviceList ; }
Source:
static int optimalNumOfHashFunctions ( int n , int m ) { return java.lang.Math.max ( 1 , ( ( int ) ( java.lang.Math.round ( ( ( m / n ) * ( com.google.common.hash.BloomFilter.LN2 ) ) ) ) ) ) ; }

Target:
static int optimalNumOfHashFunctions ( long n , long m ) { return java.lang.Math.max ( 1 , ( ( int ) ( java.lang.Math.round ( ( ( ( ( double ) ( m ) ) / n ) * ( java.lang.Math.log ( 2 ) ) ) ) ) ) ) ; }
Source:
public static < R , C , V > com.google.common.collect.ArrayTable < R , C , V > create ( com.google.common.collect.Table < R , C , V > table ) { return new com.google.common.collect.ArrayTable < R , C , V > ( table ) ; }

Target:
public static < R , C , V > com.google.common.collect.ArrayTable < R , C , V > create ( com.google.common.collect.Table < R , C , V > table ) { return table instanceof com.google.common.collect.ArrayTable < ? , ? , ? > ? new com.google.common.collect.ArrayTable < R , C , V > ( ( ( com.google.common.collect.ArrayTable < R , C , V > ) ( table ) ) ) : new com.google.common.collect.ArrayTable < R , C , V > ( table ) ; }
Source:
public static void initializeForTests ( com.android.builder.profile.ProcessRecorder.ExecutionRecordWriter recordWriter ) { com.android.builder.profile.ProcessRecorderFactory.sINSTANCE = new com.android.builder.profile.ProcessRecorderFactory ( ) ; com.android.builder.profile.ProcessRecorder.resetForTests ( ) ; com.android.builder.profile.ProcessRecorderFactory.setEnabled ( true ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( recordWriter ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( com.google.common.collect.ImmutableList.< com.android.builder.profile.Recorder.Property > of ( ) ) ; }

Target:
public static void initializeForTests ( com.android.builder.profile.ProcessRecorder.ExecutionRecordWriter recordWriter ) { com.android.builder.profile.ProcessRecorderFactory.sINSTANCE = new com.android.builder.profile.ProcessRecorderFactory ( ) ; com.android.builder.profile.ProcessRecorder.resetForTests ( ) ; com.android.builder.profile.ProcessRecorderFactory.setEnabled ( true ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( recordWriter ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.get ( ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( com.google.common.collect.ImmutableList.< com.android.builder.profile.Recorder.Property > of ( ) ) ; }
Source:
private void setCallForwardingIndicatorInSharedPref ( boolean enable ) { int status = ( enable ) ? com.android.internal.telephony.uicc.IccRecords.CALL_FORWARDING_STATUS_ENABLED : com.android.internal.telephony.uicc.IccRecords.CALL_FORWARDING_STATUS_DISABLED ; int subId = getSubId ( ) ; android.telephony.Rlog.d ( com.android.internal.telephony.Phone.LOG_TAG , ( ( ( ( "setCallForwardingIndicatorInSharedPref: Storing status = " + status ) + " in pref " ) + ( com.android.internal.telephony.Phone.CF_STATUS ) ) + subId ) ) ; android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( mContext ) ; android.content.SharedPreferences.Editor editor = sp.edit ( ) ; editor.putInt ( ( ( com.android.internal.telephony.Phone.CF_STATUS ) + subId ) , status ) ; editor.apply ( ) ; }

Target:
private void setCallForwardingIndicatorInSharedPref ( boolean enable ) { int status = ( enable ) ? com.android.internal.telephony.uicc.IccRecords.CALL_FORWARDING_STATUS_ENABLED : com.android.internal.telephony.uicc.IccRecords.CALL_FORWARDING_STATUS_DISABLED ; int subId = getSubId ( ) ; android.telephony.Rlog.i ( com.android.internal.telephony.Phone.LOG_TAG , ( ( ( ( "setCallForwardingIndicatorInSharedPref: Storing status = " + status ) + " in pref " ) + ( com.android.internal.telephony.Phone.CF_STATUS ) ) + subId ) ) ; android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( mContext ) ; android.content.SharedPreferences.Editor editor = sp.edit ( ) ; editor.putInt ( ( ( com.android.internal.telephony.Phone.CF_STATUS ) + subId ) , status ) ; editor.apply ( ) ; }
Source:
static java.lang.String format ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { java.lang.String formatted = "" ; if ( message != null ) formatted = message + " " ; return ( ( ( ( formatted + "expected:<" ) + expected ) + "> but was:<" ) + actual ) + ">" ; }

Target:
public static java.lang.String format ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { java.lang.String formatted = "" ; if ( ( message != null ) && ( ( message.length ( ) ) > 0 ) ) formatted = message + " " ; return ( ( ( ( formatted + "expected:<" ) + expected ) + "> but was:<" ) + actual ) + ">" ; }
Source:
public boolean hasSourceUrl ( com.android.sdklib.internal.repository.SdkSourceCategory category , com.android.sdklib.internal.repository.SdkSource source ) { java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list = mSources.get ( category ) ; if ( list != null ) { for ( com.android.sdklib.internal.repository.SdkSource s : list ) { if ( s.equals ( source ) ) { return true ; } } } return false ; }

Target:
public boolean hasSourceUrl ( com.android.sdklib.internal.repository.SdkSourceCategory category , com.android.sdklib.internal.repository.SdkSource source ) { synchronized ( mSources ) { java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list = mSources.get ( category ) ; if ( list != null ) { for ( com.android.sdklib.internal.repository.SdkSource s : list ) { if ( s.equals ( source ) ) { return true ; } } } return false ; } }
Source:
public void setSelected ( boolean selected ) { if ( ( ( ( mPrivateFlags ) & ( android.view.View.SELECTED ) ) != 0 ) != selected ) { mPrivateFlags = ( ( mPrivateFlags ) & ( ~ ( android.view.View.SELECTED ) ) ) | ( selected ? android.view.View.SELECTED : 0 ) ; if ( ! selected ) resetPressedState ( ) ; invalidate ( ) ; refreshDrawableState ( ) ; dispatchSetSelected ( selected ) ; } }

Target:
public void setSelected ( boolean selected ) { if ( ( ( ( mPrivateFlags ) & ( android.view.View.SELECTED ) ) != 0 ) != selected ) { mPrivateFlags = ( ( mPrivateFlags ) & ( ~ ( android.view.View.SELECTED ) ) ) | ( selected ? android.view.View.SELECTED : 0 ) ; if ( ! selected ) resetPressedState ( ) ; invalidate ( true ) ; refreshDrawableState ( ) ; dispatchSetSelected ( selected ) ; } }
Source:
public static void sort ( float [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) ) ; }

Target:
public static void sort ( char [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
private static void doFollowReferencesTestImpl ( Main.A root , int stopAfter , int followSet , java.lang.Object asRoot , Main.Verifier v , java.lang.String additionalEnabled ) { Main.waitForJitCompilation ( ) ; java.lang.String [ ] lines = Main.followReferences ( 0 , null , root , stopAfter , followSet , asRoot ) ; v.process ( lines , additionalEnabled ) ; }

Target:
private static void doFollowReferencesTestImpl ( Main.A root , int stopAfter , int followSet , java.lang.Object asRoot , Main.Verifier v , java.lang.String additionalEnabled ) { java.lang.String [ ] lines = Main.followReferences ( 0 , null , root , stopAfter , followSet , asRoot ) ; v.process ( lines , additionalEnabled ) ; }
Source:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { switch ( mode ) { case CBC : case CFB : case CFB1 : case CFB8 : case ECB : case OFB : return ; default : throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }

Target:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { switch ( mode ) { case CBC : return ; default : throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }
Source:
private static void deleteRecord ( final int id ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.markDirty ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.deleteContentAndAttributes ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.cleanRecord ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.addToFreeRecordsList ( id ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
private static void deleteRecord ( final int id ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.markDirty ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.deleteContentAndAttributes ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.cleanRecord ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.addToFreeRecordsList ( id ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] 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 , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public void setAppCallback ( android.nfc.IAppCallback callback ) { com.android.nfc.NfcPermissions.enforceUserPermissions ( mContext ) ; android.content.pm.UserInfo userInfo = mUserManager.getUserInfo ( android.os.UserHandle.getCallingUserId ( ) ) ; if ( ( ! ( userInfo.isManagedProfile ( ) ) ) && ( ! ( mUserManager.hasUserRestriction ( UserManager.DISALLOW_OUTGOING_BEAM , userInfo.getUserHandle ( ) ) ) ) ) { mP2pLinkManager.setNdefCallback ( callback , android.os.Binder.getCallingUid ( ) ) ; } else if ( com.android.nfc.NfcService.DBG ) { android.util.Log.d ( com.android.nfc.NfcService.TAG , "Disabling default Beam behavior" ) ; } }

Target:
public void setAppCallback ( android.nfc.IAppCallback callback ) { com.android.nfc.NfcPermissions.enforceUserPermissions ( mContext ) ; android.content.pm.UserInfo userInfo = mUserManager.getUserInfo ( android.os.UserHandle.getCallingUserId ( ) ) ; if ( ! ( mUserManager.hasUserRestriction ( UserManager.DISALLOW_OUTGOING_BEAM , userInfo.getUserHandle ( ) ) ) ) { mP2pLinkManager.setNdefCallback ( callback , android.os.Binder.getCallingUid ( ) ) ; } else if ( com.android.nfc.NfcService.DBG ) { android.util.Log.d ( com.android.nfc.NfcService.TAG , "Disabling default Beam behavior" ) ; } }
Source:
public void startRanging ( android.net.wifi.RttManager [ ] params , android.net.wifi.RttManager.RttListener listener ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "startRanging: called on terminated session" ) ; return ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "startRanging: called post GC on WifiAwareManager" ) ; return ; } mgr.startRanging ( mClientId , mSessionId , params , listener ) ; } }

Target:
public void startRanging ( android.net.wifi.RttManager [ ] params , android.net.wifi.RttManager.RttListener listener ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "startRanging: called on terminated session" ) ; return ; } android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "startRanging: called post GC on WifiAwareManager" ) ; return ; } mgr.startRanging ( mClientId , mSessionId , params , listener ) ; }
Source:
public void test_addSubjectAlternativeNameLintLjava_lang_String ( ) { int [ ] types = new int [ ] { org.apache.harmony.security.x509.GeneralName.OTHER_NAME , org.apache.harmony.security.x509.GeneralName.DNS_NAME , org.apache.harmony.security.x509.GeneralName.X400_ADDR , org.apache.harmony.security.x509.GeneralName.DIR_NAME , org.apache.harmony.security.x509.GeneralName.EDIP_NAME , org.apache.harmony.security.x509.GeneralName.UR_ID , org.apache.harmony.security.x509.GeneralName.IP_ADDR , org.apache.harmony.security.x509.GeneralName.REG_ID } ; for ( int i = 0 ; i < ( types.length ) ; i ++ ) { try { new java.security.cert.X509CertSelector ( ) . addSubjectAlternativeName ( types [ i ] , "-0xDFRF" ) ; fail ( ( "IOException expected for type: " + ( types [ i ] ) ) ) ; } catch ( java.io.IOException e ) { } } }

Target:
public void test_addSubjectAlternativeNameLintLjava_lang_String ( ) { int [ ] types = new int [ ] { org.apache.harmony.security.x509.GeneralName.OTHER_NAME , org.apache.harmony.security.x509.GeneralName.DNS_NAME , org.apache.harmony.security.x509.GeneralName.X400_ADDR , org.apache.harmony.security.x509.GeneralName.DIR_NAME , org.apache.harmony.security.x509.GeneralName.EDIP_NAME , org.apache.harmony.security.x509.GeneralName.UR_ID , org.apache.harmony.security.x509.GeneralName.IP_ADDR , org.apache.harmony.security.x509.GeneralName.REG_ID } ; for ( int i = 0 ; i < ( types.length ) ; i ++ ) { try { new java.security.cert.X509CertSelector ( ) . addSubjectAlternativeName ( types [ i ] , "-0xDFRF" ) ; fail ( ( "IOException expected for type: " + ( types [ i ] ) ) ) ; } catch ( java.io.IOException expected ) { } } }
Source:
public void test_ru_RU ( ) throws java.lang.Exception { libcore.icu.LocaleData l = libcore.icu.LocaleData.get ( new java.util.Locale ( "ru" , "RU" ) ) ; assertEquals ( "воскресенье" , l.longWeekdayNames [ 1 ] ) ; assertEquals ( "вс" , l.shortWeekdayNames [ 1 ] ) ; assertEquals ( "вс" , l.tinyWeekdayNames [ 1 ] ) ; assertEquals ( "Воскресенье" , l.longStandAloneWeekdayNames [ 1 ] ) ; assertEquals ( "Вс" , l.shortStandAloneWeekdayNames [ 1 ] ) ; assertEquals ( "В" , l.tinyStandAloneWeekdayNames [ 1 ] ) ; }

Target:
public void test_ru_RU ( ) throws java.lang.Exception { libcore.icu.LocaleData l = libcore.icu.LocaleData.get ( new java.util.Locale ( "ru" , "RU" ) ) ; assertEquals ( "воскресенье" , l.longWeekdayNames [ 1 ] ) ; assertEquals ( "вс" , l.shortWeekdayNames [ 1 ] ) ; assertEquals ( "вс" , l.tinyWeekdayNames [ 1 ] ) ; assertEquals ( "воскресенье" , l.longStandAloneWeekdayNames [ 1 ] ) ; assertEquals ( "вс" , l.shortStandAloneWeekdayNames [ 1 ] ) ; assertEquals ( "В" , l.tinyStandAloneWeekdayNames [ 1 ] ) ; }
Source:
public void testVrHighPerformanceVP9 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } assertTrue ( android.media.cts.DecoderTest.doesMimeTypeHaveMinimumSpecVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ) ; decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 1 ) ; boolean vp9IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ; if ( ! vp9IsReady ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "VP9 isn't required to be VR ready" ) ; return ; } decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 4 ) ; }

Target:
public void testVrHighPerformanceVP9 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } assertTrue ( android.media.cts.DecoderTest.doesMimeTypeHaveMinimumSpecVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ) ; boolean vp9IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ; if ( ! vp9IsReady ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "VP9 isn't required to be VR ready" ) ; return ; } decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 4 ) ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; android.content.Context context = mock ( android.content.Context.class ) ; when ( context.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager ) ; doNothing ( ) . when ( mAlarmManager ) . setExact ( anyInt ( ) , anyLong ( ) , any ( java.lang.String.class ) , mListenerCaptor.capture ( ) , any ( android.os.Handler.class ) ) ; mMessage = new com.android.internal.util.WakeupMessage ( context , mHandler , com.android.internal.util.WakeupMessageTest.TEST_CMD_NAME , com.android.internal.util.WakeupMessageTest.TEST_CMD , com.android.internal.util.WakeupMessageTest.TEST_ARG1 , com.android.internal.util.WakeupMessageTest.TEST_ARG2 , com.android.internal.util.WakeupMessageTest.TEST_OBJ ) ; }

Target:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; when ( mContext.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager ) ; doNothing ( ) . when ( mAlarmManager ) . setExact ( anyInt ( ) , anyLong ( ) , any ( java.lang.String.class ) , mListenerCaptor.capture ( ) , any ( android.os.Handler.class ) ) ; mMessage = new com.android.internal.util.WakeupMessage ( mContext , mHandler , com.android.internal.util.WakeupMessageTest.TEST_CMD_NAME , com.android.internal.util.WakeupMessageTest.TEST_CMD , com.android.internal.util.WakeupMessageTest.TEST_ARG1 , com.android.internal.util.WakeupMessageTest.TEST_ARG2 , com.android.internal.util.WakeupMessageTest.TEST_OBJ ) ; }
Source:
public void testConnectTimeouts ( ) throws java.io.IOException { tests.net.StuckServer ss = new tests.net.StuckServer ( true ) ; int serverPort = ss.getLocalPort ( ) ; java.lang.String hostName = ss.getLocalSocketAddress ( ) . getAddress ( ) . getHostAddress ( ) ; java.net.URLConnection urlConnection = new java.net.URL ( ( ( ( ( "http://" + hostName ) + ":" ) + serverPort ) + "/" ) ) . openConnection ( ) ; int timeout = 1000 ; urlConnection.setConnectTimeout ( timeout ) ; long start = java.lang.System.currentTimeMillis ( ) ; try { urlConnection.getInputStream ( ) ; fail ( ) ; } catch ( java.net.SocketTimeoutException expected ) { long elapsed = ( java.lang.System.currentTimeMillis ( ) ) - start ; int attempts = java.net.InetAddress.getAllByName ( "localhost" ) . length ; assertTrue ( ( ( ( ( ( "timeout=" + timeout ) + ", elapsed=" ) + elapsed ) + ", attempts=" ) + attempts ) , ( ( java.lang.Math.abs ( ( ( attempts * timeout ) - elapsed ) ) ) < 500 ) ) ; } finally { ss.close ( ) ; } }

Target:
public void testConnectTimeouts ( ) throws java.io.IOException { java.net.URLConnection urlConnection = new java.net.URL ( "http://192.0.2.0:80/" ) . openConnection ( ) ; int timeout = 1000 ; urlConnection.setConnectTimeout ( timeout ) ; long start = java.lang.System.currentTimeMillis ( ) ; try { urlConnection.getInputStream ( ) ; fail ( ) ; } catch ( java.net.SocketTimeoutException expected ) { long elapsed = ( java.lang.System.currentTimeMillis ( ) ) - start ; int attempts = java.net.InetAddress.getAllByName ( "localhost" ) . length ; assertTrue ( ( ( ( ( ( "timeout=" + timeout ) + ", elapsed=" ) + elapsed ) + ", attempts=" ) + attempts ) , ( ( java.lang.Math.abs ( ( ( attempts * timeout ) - elapsed ) ) ) < 500 ) ) ; } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ! ( obj instanceof sun.security.x509.OIDName ) ) return false ; sun.security.x509.OIDName other = ( ( sun.security.x509.OIDName ) ( obj ) ) ; return oid.equals ( other.oid ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ! ( obj instanceof sun.security.x509.OIDName ) ) return false ; sun.security.x509.OIDName other = ( ( sun.security.x509.OIDName ) ( obj ) ) ; return oid.equals ( ( ( java.lang.Object ) ( other.oid ) ) ) ; }
Source:
public void setProgressDrawable ( android.graphics.drawable.Drawable d ) { if ( d != null ) { d.setCallback ( this ) ; int drawableHeight = drawable.getMinimumHeight ( ) ; if ( ( mMaxHeight ) < drawableHeight ) { mMaxHeight = drawableHeight ; requestLayout ( ) ; } } mProgressDrawable = d ; if ( ! ( mIndeterminate ) ) { mCurrentDrawable = d ; postInvalidate ( ) ; } }

Target:
public void setProgressDrawable ( android.graphics.drawable.Drawable d ) { if ( d != null ) { d.setCallback ( this ) ; int drawableHeight = d.getMinimumHeight ( ) ; if ( ( mMaxHeight ) < drawableHeight ) { mMaxHeight = drawableHeight ; requestLayout ( ) ; } } mProgressDrawable = d ; if ( ! ( mIndeterminate ) ) { mCurrentDrawable = d ; postInvalidate ( ) ; } }
Source:
protected final void removeMarkersFromFile ( org.eclipse.core.resources.IFile file , java.lang.String markerId ) { try { if ( file.exists ( ) ) { file.deleteMarkers ( markerId , true , IResource.DEPTH_ZERO ) ; } } catch ( org.eclipse.core.runtime.CoreException ce ) { java.lang.String msg = java.lang.String.format ( Messages.Marker_Delete_Error , markerId , file.toString ( ) ) ; com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( getProject ( ) , msg ) ; } }

Target:
public final void removeMarkersFromFile ( org.eclipse.core.resources.IFile file , java.lang.String markerId ) { try { if ( file.exists ( ) ) { file.deleteMarkers ( markerId , true , IResource.DEPTH_ZERO ) ; } } catch ( org.eclipse.core.runtime.CoreException ce ) { java.lang.String msg = java.lang.String.format ( Messages.Marker_Delete_Error , markerId , file.toString ( ) ) ; com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( getProject ( ) , msg ) ; } }
Source:
public com.android.jack.dx.dex.file.StringIdItem intern ( com.android.jack.dx.dex.file.StringIdItem string ) { if ( string == null ) { throw new java.lang.NullPointerException ( "string == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.rop.cst.CstString value = string.getValue ( ) ; com.android.jack.dx.dex.file.StringIdItem already = strings.get ( value ) ; if ( already != null ) { return already ; } strings.put ( value , string ) ; return string ; }

Target:
public com.android.jack.dx.dex.file.StringIdItem intern ( com.android.jack.dx.dex.file.StringIdItem string ) { assert string != null ; throwIfPrepared ( ) ; com.android.jack.dx.rop.cst.CstString value = string.getValue ( ) ; com.android.jack.dx.dex.file.StringIdItem already = strings.get ( value ) ; if ( already != null ) { return already ; } strings.put ( value , string ) ; return string ; }
Source:
public void testMergedAttr ( ) throws java.lang.Exception { com.android.ide.common.res2.RecordingLogger logger = new com.android.ide.common.res2.RecordingLogger ( ) ; java.io.File folder = com.android.ide.common.res2.ResourceMergerTest.getWrittenResources ( ) ; com.android.ide.common.res2.ResourceSet writtenSet = new com.android.ide.common.res2.ResourceSet ( "unused" ) ; writtenSet.addSource ( folder ) ; writtenSet.loadFromFiles ( logger ) ; java.util.List < com.android.ide.common.res2.ResourceItem > items = writtenSet.getDataMap ( ) . get ( "attr/blah2" ) ; assertEquals ( 1 , items.size ( ) ) ; assertFalse ( items.get ( 0 ) . getIgnoredFromDiskMerge ( ) ) ; checkLogger ( logger ) ; }

Target:
public void testMergedAttr ( ) throws java.lang.Exception { com.android.ide.common.res2.RecordingLogger logger = new com.android.ide.common.res2.RecordingLogger ( ) ; java.io.File folder = getWrittenResources ( ) ; com.android.ide.common.res2.ResourceSet writtenSet = new com.android.ide.common.res2.ResourceSet ( "unused" ) ; writtenSet.addSource ( folder ) ; writtenSet.loadFromFiles ( logger ) ; java.util.List < com.android.ide.common.res2.ResourceItem > items = writtenSet.getDataMap ( ) . get ( "attr/blah2" ) ; assertEquals ( 1 , items.size ( ) ) ; assertFalse ( items.get ( 0 ) . getIgnoredFromDiskMerge ( ) ) ; checkLogger ( logger ) ; }
Source:
public static void atraceDumpAndSendInBackground ( final android.content.Context context , final java.lang.String tags ) { android.widget.Toast.makeText ( context , "Saving trace..." , Toast.LENGTH_SHORT ) . show ( ) ; new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.Void > ( ) { @ java.lang.Override protected java.lang.Void doInBackground ( java.lang.Void ... params ) { com.android.traceur.AtraceUtils.atraceDumpAndSend ( context , tags , Receiver.BUFFER_SIZE_KB ) ; return null ; } } . execute ( ) ; }

Target:
public static void atraceDumpAndSendInBackground ( final android.content.Context context , final java.lang.String tags ) { new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.Void > ( ) { @ java.lang.Override protected java.lang.Void doInBackground ( java.lang.Void ... params ) { com.android.traceur.AtraceUtils.atraceDumpAndSend ( context , tags , Receiver.BUFFER_SIZE_KB ) ; return null ; } } . execute ( ) ; }
Source:
public static android.renderscript.Element RGBA_8888 ( android.renderscript.RenderScript rs ) { if ( ( rs.mElement_RGBA_8888 ) == null ) { rs.mElement_RGBA_8888 = android.renderscript.Element.createPixel ( rs , android.renderscript.Element.DataType.UNSIGNED_8 , android.renderscript.Element.DataKind.PIXEL_RGBA ) ; } return rs.mElement_RGBA_8888 ; }

Target:
public static android.renderscript.Element RGBA_8888 ( android.renderscript.RenderScript rs ) { if ( ( rs.mElement_RGBA_8888 ) == null ) { synchronized ( rs ) { if ( ( rs.mElement_RGBA_8888 ) == null ) { rs.mElement_RGBA_8888 = android.renderscript.Element.createPixel ( rs , android.renderscript.Element.DataType.UNSIGNED_8 , android.renderscript.Element.DataKind.PIXEL_RGBA ) ; } } } return rs.mElement_RGBA_8888 ; }
Source:
public void testConstructor ( ) throws java.lang.Exception { try { java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( "Wrong.file" ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } tests.support.resource.Support_Resources.copyFile ( resources , null , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) ; java.lang.String fileName = new java.io.File ( resources , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) . getCanonicalPath ( ) ; java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( fileName ) ; assertEquals ( fileName , jarFile.getName ( ) ) ; jarFile.close ( ) ; }

Target:
public void testConstructor ( ) throws java.lang.Exception { try { java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( "Wrong.file" ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } tests.support.resource.Support_Resources.copyFile ( resources , null , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) ; java.lang.String fileName = new java.io.File ( resources , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) . getCanonicalPath ( ) ; java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( fileName ) ; jarFile.close ( ) ; }
Source:
public java.nio.DoubleBuffer asDoubleBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 3 ; return ( ( java.nio.DoubleBuffer ) ( new java.nio.ByteBufferAsDoubleBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public final java.nio.DoubleBuffer asDoubleBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 3 ; return new java.nio.ByteBufferAsDoubleBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
private void addStreamToTests ( com.android.cts.verifier.ArrayTestListAdapter streams , com.android.cts.verifier.streamquality.StreamingVideoActivity.Stream stream ) { android.content.Intent i = new android.content.Intent ( this , com.android.cts.verifier.streamquality.PlayVideoActivity.class ) ; i.putExtra ( PlayVideoActivity.EXTRA_STREAM , stream ) ; streams.add ( com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( stream.name , com.android.cts.verifier.streamquality.PlayVideoActivity.getTestId ( stream.code ) , i , null ) ) ; }

Target:
private void addStreamToTests ( com.android.cts.verifier.ArrayTestListAdapter streams , com.android.cts.verifier.streamquality.StreamingVideoActivity.Stream stream ) { android.content.Intent i = new android.content.Intent ( this , com.android.cts.verifier.streamquality.PlayVideoActivity.class ) ; i.putExtra ( PlayVideoActivity.EXTRA_STREAM , stream ) ; streams.add ( com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( stream.name , com.android.cts.verifier.streamquality.PlayVideoActivity.getTestId ( stream.code ) , i ) ) ; }
Source:
private com.android.sdklib.internal.repository.packages.ExtraPackage createExtraPackage ( java.util.Properties props ) { com.android.sdklib.internal.repository.packages.ExtraPackage p = ( ( com.android.sdklib.internal.repository.packages.ExtraPackage ) ( com.android.sdklib.internal.repository.packages.ExtraPackage.create ( null , props , null , null , ( - 1 ) , null , null , null , Os.ANY , Arch.ANY , "/local/archive/path" ) ) ) ; return p ; }

Target:
private com.android.sdklib.internal.repository.packages.ExtraPackage createExtraPackage ( java.util.Properties props ) { com.android.sdklib.internal.repository.packages.ExtraPackage p = ( ( com.android.sdklib.internal.repository.packages.ExtraPackage ) ( com.android.sdklib.internal.repository.packages.ExtraPackage.create ( null , props , null , null , ( - 1 ) , null , null , null , "/local/archive/path" ) ) ) ; return p ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { mMediaRecorder.release ( ) ; if ( ( ( mOutFile ) != null ) && ( mOutFile.exists ( ) ) ) { mOutFile.delete ( ) ; } if ( ( mCamera ) != null ) { mCamera.release ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { mMediaRecorder.release ( ) ; if ( ( ( mOutFile ) != null ) && ( mOutFile.exists ( ) ) ) { mOutFile.delete ( ) ; } if ( ( mCamera ) != null ) { mCamera.release ( ) ; mCamera = null ; } super . tearDown ( ) ; }
Source:
boolean stopVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.VOICE_RECOGNITION_STOP ) ; return true ; }

Target:
boolean stopVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.VOICE_RECOGNITION_STOP , device ) ; return true ; }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitArrayInstance ( this ) ; if ( ( mType ) == ( Type.OBJECT ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; } }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitArrayInstance ( this ) ; if ( ( mType ) == ( Type.OBJECT ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; } }
Source:
public int filterEvent ( com.android.server.KeyInputQueue.QueuedEvent ev ) { switch ( ev.classType ) { case android.view.RawInputEvent.CLASS_KEYBOARD : android.view.KeyEvent ke = ( ( android.view.KeyEvent ) ( ev.event ) ) ; if ( mPolicy.isMovementKeyTi ( ke.getKeyCode ( ) ) ) { android.util.Log.w ( com.android.server.WindowManagerService.TAG , ( ( ( "Dropping movement key during app switch: " + ( ke.getKeyCode ( ) ) ) + ", action=" ) + ( ke.getAction ( ) ) ) ) ; return FILTER_REMOVE ; } return FILTER_ABORT ; default : return FILTER_KEEP ; } }

Target:
public int filterEvent ( com.android.server.KeyInputQueue.QueuedEvent ev ) { switch ( ev.classType ) { case android.view.RawInputEvent.CLASS_KEYBOARD : android.view.KeyEvent ke = ( ( android.view.KeyEvent ) ( ev.event ) ) ; if ( mPolicy.isMovementKeyTi ( ke.getKeyCode ( ) ) ) { android.util.Slog.w ( com.android.server.WindowManagerService.TAG , ( ( ( "Dropping movement key during app switch: " + ( ke.getKeyCode ( ) ) ) + ", action=" ) + ( ke.getAction ( ) ) ) ) ; return FILTER_REMOVE ; } return FILTER_ABORT ; default : return FILTER_KEEP ; } }
Source:
private boolean isNewDate ( int year , int month , int dayOfMonth ) { return ( ( ( mCurrentDate.get ( java.util.Calendar.YEAR ) ) != year ) || ( ( mCurrentDate.get ( java.util.Calendar.MONTH ) ) != dayOfMonth ) ) || ( ( mCurrentDate.get ( java.util.Calendar.DAY_OF_MONTH ) ) != month ) ; }

Target:
private boolean isNewDate ( int year , int month , int dayOfMonth ) { return ( ( ( mCurrentDate.get ( java.util.Calendar.YEAR ) ) != year ) || ( ( mCurrentDate.get ( java.util.Calendar.MONTH ) ) != month ) ) || ( ( mCurrentDate.get ( java.util.Calendar.DAY_OF_MONTH ) ) != dayOfMonth ) ; }
Source:
private static android.net.wifi.WifiScanner.ScanData createScanData ( int [ ] freqs , int bucketsScanned ) { android.net.wifi.ScanResult [ ] results = new android.net.wifi.ScanResult [ freqs.length ] ; for ( int i = 0 ; i < ( freqs.length ) ; ++ i ) { results [ i ] = com.android.server.wifi.ScanTestUtil.createScanResult ( freqs [ i ] ) ; } return new android.net.wifi.WifiScanner.ScanData ( 0 , 0 , bucketsScanned , results ) ; }

Target:
private static android.net.wifi.WifiScanner.ScanData createScanData ( int [ ] freqs , int bucketsScanned ) { android.net.wifi.ScanResult [ ] results = new android.net.wifi.ScanResult [ freqs.length ] ; for ( int i = 0 ; i < ( freqs.length ) ; ++ i ) { results [ i ] = com.android.server.wifi.ScanTestUtil.createScanResult ( freqs [ i ] ) ; } return new android.net.wifi.WifiScanner.ScanData ( 0 , 0 , bucketsScanned , false , results ) ; }
Source:
public void run ( ) { ( mTestIndex ) ++ ; if ( ( mTestIndex ) < ( mTests.length ) ) { mTests [ mTestIndex ] . run ( ) ; } else { mNextButton.setVisibility ( View.GONE ) ; findViewById ( R.id.pass_button ) . setVisibility ( View.VISIBLE ) ; } }

Target:
public void run ( ) { ( mTestIndex ) ++ ; if ( ( mTestIndex ) < ( mTests.length ) ) { mTests [ mTestIndex ] . run ( ) ; } }
Source:
public android.bluetooth.BluetoothHeadsetClientCall createFromParcel ( android.os.Parcel in ) { return new android.bluetooth.BluetoothHeadsetClientCall ( ( ( android.bluetooth.BluetoothDevice ) ( in.readParcelable ( null ) ) ) , in.readInt ( ) , java.util.UUID.fromString ( in.readString ( ) ) , in.readInt ( ) , in.readString ( ) , ( ( in.readInt ( ) ) == 1 ) , ( ( in.readInt ( ) ) == 1 ) ) ; }

Target:
public android.bluetooth.BluetoothHeadsetClientCall createFromParcel ( android.os.Parcel in ) { return new android.bluetooth.BluetoothHeadsetClientCall ( ( ( android.bluetooth.BluetoothDevice ) ( in.readParcelable ( null ) ) ) , in.readInt ( ) , java.util.UUID.fromString ( in.readString ( ) ) , in.readInt ( ) , in.readString ( ) , ( ( in.readInt ( ) ) == 1 ) , ( ( in.readInt ( ) ) == 1 ) , ( ( in.readInt ( ) ) == 1 ) ) ; }
Source:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onSizeChanged ( w , h , ow , oh ) ; }

Target:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.onSizeChanged ( w , h , ow , oh ) ; }
Source:
public java.util.concurrent.ConcurrentSkipListMap < K , V > clone ( ) { java.util.concurrent.ConcurrentSkipListMap < K , V > clone = null ; try { clone = ( ( java.util.concurrent.ConcurrentSkipListMap < K , V > ) ( super . clone ( ) ) ) ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } clone.initialize ( ) ; clone.buildFromSorted ( this ) ; return clone ; }

Target:
public java.util.concurrent.ConcurrentSkipListMap < K , V > clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.concurrent.ConcurrentSkipListMap < K , V > clone = ( ( java.util.concurrent.ConcurrentSkipListMap < K , V > ) ( super . clone ( ) ) ) ; clone.initialize ( ) ; clone.buildFromSorted ( this ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }
Source:
private void onAudioStateChanged ( int state , byte [ ] address ) { com.android.bluetooth.a2dp.A2dpStackEvent event = new com.android.bluetooth.a2dp.A2dpStackEvent ( A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED ) ; event.valueInt = state ; event.device = getDevice ( address ) ; if ( com.android.bluetooth.a2dp.A2dpNativeInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpNativeInterface.TAG , ( "onAudioStateChanged: " + event ) ) ; } sendMessageToService ( event ) ; }

Target:
private void onAudioStateChanged ( byte [ ] address , int state ) { com.android.bluetooth.a2dp.A2dpStackEvent event = new com.android.bluetooth.a2dp.A2dpStackEvent ( A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED ) ; event.device = getDevice ( address ) ; event.valueInt = state ; if ( com.android.bluetooth.a2dp.A2dpNativeInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpNativeInterface.TAG , ( "onAudioStateChanged: " + event ) ) ; } sendMessageToService ( event ) ; }
Source:
public static java.lang.String getPackageVersionName ( android.content.Context context ) { java.lang.String msg = "versionName not available" ; try { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; android.content.pm.PackageInfo pi = pm.getPackageInfo ( context.getPackageName ( ) , 0 ) ; msg = "" ; if ( ( pi.versionName ) != null ) { msg = pi.versionName ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { org.chromium.base.Log.d ( org.chromium.base.BuildInfo.TAG , msg ) ; } return msg ; }

Target:
public static java.lang.String getPackageVersionName ( android.content.Context context ) { java.lang.String msg = "versionName not available" ; try { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; android.content.pm.PackageInfo pi = pm.getPackageInfo ( context.getPackageName ( ) , 0 ) ; msg = "" ; if ( ( pi.versionName ) != null ) { msg = pi.versionName ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { android.util.Log.d ( org.chromium.base.BuildInfo.TAG , msg ) ; } return msg ; }
Source:
public boolean setNetworkExtra ( int netId , java.lang.String name , java.util.Map < java.lang.String , java.lang.String > values ) { java.lang.String encoded = com.android.server.wifi.WifiNative.createNetworkExtra ( values ) ; if ( encoded == null ) { return false ; } return setNetworkVariable ( netId , name , ( ( "\"" + encoded ) + "\"" ) ) ; }

Target:
public boolean setNetworkExtra ( int netId , java.lang.String name , java.util.Map < java.lang.String , java.lang.String > values ) { java.lang.String encoded = com.android.server.wifi.WifiNative.createNetworkExtra ( values ) ; if ( encoded == null ) { return false ; } return setNetworkVariable ( netId , name , encoded ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { vogar.Vogar vogar = new vogar.Vogar ( ) ; if ( ! ( vogar.parseArgs ( args ) ) ) { vogar.printUsage ( ) ; return ; } boolean allSuccess = vogar.run ( ) ; java.lang.System.exit ( ( allSuccess ? 0 : 1 ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { vogar.Vogar vogar = new vogar.Vogar ( ) ; if ( ! ( vogar.parseArgs ( args ) ) ) { vogar.printUsage ( ) ; java.lang.System.exit ( 1 ) ; } boolean allSuccess = vogar.run ( ) ; java.lang.System.exit ( ( allSuccess ? 0 : 1 ) ) ; }
Source:
public static final int getHeaderSize ( @ javax.annotation.Nonnegative int dexVersion ) { int headerSize = ( ( ( 8 * ( com.android.jack.dx.dex.SizeOf.UBYTE ) ) + ( com.android.jack.dx.dex.SizeOf.UINT ) ) + ( com.android.jack.dx.dex.SizeOf.SIGNATURE ) ) + ( 20 * ( com.android.jack.dx.dex.SizeOf.UINT ) ) ; if ( dexVersion == ( DexFormat.O_BETA2_DEX_VERSION ) ) { headerSize += 4 * ( com.android.jack.dx.dex.SizeOf.UINT ) ; } return headerSize ; }

Target:
public static final int getHeaderSize ( @ javax.annotation.Nonnegative int dexVersion ) { int headerSize = ( ( ( 8 * ( com.android.jack.dx.dex.SizeOf.UBYTE ) ) + ( com.android.jack.dx.dex.SizeOf.UINT ) ) + ( com.android.jack.dx.dex.SizeOf.SIGNATURE ) ) + ( 20 * ( com.android.jack.dx.dex.SizeOf.UINT ) ) ; return headerSize ; }
Source:
public int getMinSdkVersion ( @ com.android.annotations.NonNull java.io.File manifestFile ) { try { java.lang.Object value = com.android.xml.AndroidManifest.getMinSdkVersion ( new com.android.io.FileWrapper ( manifestFile ) ) ; if ( value instanceof java.lang.Integer ) { return ( ( java.lang.Integer ) ( value ) ) . intValue ( ) ; } else if ( value instanceof java.lang.String ) { } } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( com.android.io.StreamException e ) { throw new java.lang.RuntimeException ( e ) ; } return 1 ; }

Target:
public int getMinSdkVersion ( @ com.android.annotations.NonNull java.io.File manifestFile ) { try { java.lang.Object value = com.android.xml.AndroidManifest.getMinSdkVersion ( new com.android.io.FileWrapper ( manifestFile ) ) ; if ( value instanceof java.lang.Integer ) { return ( ( java.lang.Integer ) ( value ) ) ; } else if ( value instanceof java.lang.String ) { } } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( com.android.io.StreamException e ) { throw new java.lang.RuntimeException ( e ) ; } return 1 ; }
Source:
public boolean startPktFateMonitoring ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.startPktFateMonitoring ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } } }

Target:
public boolean startPktFateMonitoring ( ) { return mWifiVendorHal.startPktFateMonitoring ( ) ; }