auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void expectAvailableCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectSuspended , int timeoutMs ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , timeoutMs ) ; if ( expectSuspended ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.SUSPENDED , agent , timeoutMs ) ; } expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent , timeoutMs ) ; expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , timeoutMs ) ; }

Target:
void expectAvailableCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectSuspended , boolean expectValidated , int timeoutMs ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , timeoutMs ) ; if ( expectSuspended ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.SUSPENDED , agent , timeoutMs ) ; } if ( expectValidated ) { expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; } else { expectCapabilitiesWithout ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; } expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , timeoutMs ) ; }
Source:
private void verifyRemoveEphemeralNetworkFromWifiConfigManager ( android.net.wifi.WifiConfiguration configuration ) throws java.lang.Exception { assertTrue ( mWifiConfigManager.removeNetwork ( configuration.networkId , com.android.server.wifi.WifiConfigManagerTest.TEST_CREATOR_UID ) ) ; verifyNetworkRemoveBroadcast ( configuration ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }

Target:
private void setupStoreDataForUserRead ( java.util.List < android.net.wifi.WifiConfiguration > userConfigurations , java.util.Set < java.lang.String > deletedEphemeralSsids ) { when ( mNetworkListStoreData.getUserConfigurations ( ) ) . thenReturn ( userConfigurations ) ; when ( mDeletedEphemeralSsidsStoreData.getSsidList ( ) ) . thenReturn ( deletedEphemeralSsids ) ; }
Source:
protected void onStop ( ) { super . onStop ( ) ; com.android.mms.util.DraftCache.getInstance ( ) . removeOnDraftChangedListener ( this ) ; getListView ( ) . setChoiceMode ( ListView.CHOICE_MODE_MULTIPLE_MODAL ) ; mListAdapter.changeCursor ( null ) ; }

Target:
protected void onStop ( ) { super . onStop ( ) ; com.android.mms.util.DraftCache.getInstance ( ) . removeOnDraftChangedListener ( this ) ; getListView ( ) . setChoiceMode ( ListView.CHOICE_MODE_MULTIPLE_MODAL ) ; android.database.Cursor cursor = mListAdapter.getCursor ( ) ; if ( ( cursor != null ) && ( ! ( cursor.isClosed ( ) ) ) ) { cursor.close ( ) ; } mListAdapter.changeCursor ( null ) ; }
Source:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { if ( ! ( allowStandardIO ) ) { throw new com.android.sched.util.codec.ParsingException ( "Standard input can not be used" ) ; } return new com.android.sched.util.file.InputStreamFile ( context.getStandardInput ( ) , com.android.sched.util.codec.InputStreamCodec.STANDARD_INPUT_LOCATION ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( context.getWorkingDirectory ( ) , string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }

Target:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { if ( ! ( allowStandardIO ) ) { throw new com.android.sched.util.codec.ParsingException ( "Standard input can not be used" ) ; } return new com.android.sched.util.file.InputStreamFile ( context.getStandardInput ( ) , com.android.sched.util.codec.InputStreamCodec.STANDARD_INPUT_LOCATION ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( context.getWorkingDirectory ( ) , string ) ; } catch ( com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }
Source:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarNameProvider.class ) ; java.lang.String name ; name = pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNameGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , value , style , true ) ; if ( name == null ) { name = pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNameGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , value , style , false ) ; } return name ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }
Source:
public void release ( int flags ) { if ( ( mWakeLock ) == null ) { com.android.server.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "Can not release WakeLock (not supported) with id: " + ( mWakeLockLevel ) ) ) ; return ; } if ( isHeld ( ) ) { mWakeLock.release ( flags ) ; com.android.server.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "Releasing WakeLock with id: " + ( mWakeLockLevel ) ) ) ; } else { com.android.server.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "WakeLock already released with id: " + ( mWakeLockLevel ) ) ) ; } }

Target:
public void release ( int flags ) { if ( ( mWakeLock ) == null ) { android.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "Can not release WakeLock (not supported) with id: " + ( mWakeLockLevel ) ) ) ; return ; } if ( isHeld ( ) ) { mWakeLock.release ( flags ) ; android.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "Releasing WakeLock with id: " + ( mWakeLockLevel ) ) ) ; } else { android.telecom.Log.i ( com.android.server.telecom.TelecomWakeLock.TAG , ( "WakeLock already released with id: " + ( mWakeLockLevel ) ) ) ; } }
Source:
public boolean startScreenSaver ( ) { synchronized ( mLock ) { if ( isScreenSaverEnabled ( ) ) { android.service.dreams.IDreamManager dm = getDreamManager ( ) ; if ( dm == null ) return false ; try { if ( com.android.internal.policy.impl.PhoneWindowManager.localLOGV ) android.util.Log.v ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "startScreenSaver: entering dreamland..." ) ; dm.dream ( ) ; return true ; } catch ( android.os.RemoteException ex ) { } } } return false ; }

Target:
private void waitForKeyguardWindowDrawn ( android.os.IBinder windowToken , final com.android.internal.policy.impl.ScreenOnListener screenOnListener ) { if ( windowToken != null ) { try { if ( mWindowManager.waitForWindowDrawn ( windowToken , new android.os.IRemoteCallback.Stub ( ) { @ java.lang.Override public void sendResult ( android.os.Bundle data ) { android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "Lock screen displayed!" ) ; finishScreenTurningOn ( screenOnListener ) ; } } ) ) { return ; } } catch ( android.os.RemoteException ex ) { } } android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "No lock screen!" ) ; finishScreenTurningOn ( screenOnListener ) ; }
Source:
public void test_getLong_TemporalField ( ) { java.time.Instant test = TEST_12345_123456789 ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.NANO_OF_SECOND ) , 123456789 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.MICRO_OF_SECOND ) , 123456 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.MILLI_OF_SECOND ) , 123 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.INSTANT_SECONDS ) , 12345 ) ; }

Target:
public void test_getLong_TemporalField ( ) { java.time.Instant test = tck.java.time.TCKInstant.TEST_12345_123456789 ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.NANO_OF_SECOND ) , 123456789 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.MICRO_OF_SECOND ) , 123456 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.MILLI_OF_SECOND ) , 123 ) ; org.testng.Assert.assertEquals ( test.getLong ( java.time.temporal.ChronoField.INSTANT_SECONDS ) , 12345 ) ; }
Source:
public boolean remove ( java.lang.Object o ) { if ( ! ( o instanceof java.util.Map.Entry ) ) return false ; java.util.Map.Entry < ? , ? > e = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; return this . remove ( e.getKey ( ) , e.getValue ( ) ) ; }

Target:
public boolean add ( java.util.Map.Entry < K , V > e ) { return ( map.putVal ( e.getKey ( ) , e.getValue ( ) , false ) ) == null ; }
Source:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object o ) { if ( o instanceof com.google.common.collect.Multiset.Entry ) { com.google.common.collect.Multiset.Entry < ? > entry = ( ( com.google.common.collect.Multiset.Entry < ? > ) ( o ) ) ; java.util.Collection < V > collection = multimap ( ) . asMap ( ) . get ( entry.getElement ( ) ) ; return ( collection != null ) && ( ( collection.size ( ) ) == ( entry.getCount ( ) ) ) ; } return false ; }

Target:
public boolean remove ( @ javax.annotation.Nullable java.lang.Object o ) { if ( o instanceof com.google.common.collect.Multiset.Entry ) { com.google.common.collect.Multiset.Entry < ? > entry = ( ( com.google.common.collect.Multiset.Entry < ? > ) ( o ) ) ; java.util.Collection < V > collection = multimap.asMap ( ) . get ( entry.getElement ( ) ) ; if ( ( collection != null ) && ( ( collection.size ( ) ) == ( entry.getCount ( ) ) ) ) { collection.clear ( ) ; return true ; } } return false ; }
Source:
public void test_init_and_run_for_SimpleTest2_limitting_to_1method_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest2_limiting_to_1method_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public com.google.gson.JsonObject toJson ( ) { java.util.Collections.sort ( testCases ) ; com.google.gson.JsonObject json = new com.google.gson.JsonObject ( ) ; json.add ( com.android.vts.util.TestRunDetails.NAME_KEY , new com.google.gson.JsonPrimitive ( name ) ) ; json.add ( com.android.vts.util.TestRunDetails.DATA_KEY , new com.google.gson.Gson ( ) . toJsonTree ( testCases ) ) ; return json ; }

Target:
public com.google.gson.JsonObject toJson ( ) { testCases.sort ( java.util.Comparator.naturalOrder ( ) ) ; com.google.gson.JsonObject json = new com.google.gson.JsonObject ( ) ; json.add ( com.android.vts.util.TestRunDetails.NAME_KEY , new com.google.gson.JsonPrimitive ( name ) ) ; json.add ( com.android.vts.util.TestRunDetails.DATA_KEY , new com.google.gson.Gson ( ) . toJsonTree ( testCases ) ) ; return json ; }
Source:
public java.lang.StringBuffer format ( long value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; buffer.append ( ndf.formatLong ( value , position ) ) ; return buffer ; }

Target:
public java.lang.StringBuffer format ( long value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; if ( ( roundingMode ) == ( java.math.RoundingMode.UNNECESSARY ) ) { checkRoundingUnnecessary ( value ) ; } buffer.append ( ndf.formatLong ( value , position ) ) ; return buffer ; }
Source:
private boolean shouldRunModule ( com.android.compatibility.common.util.IModuleResult module ) { if ( ( mResultTypes.contains ( com.android.compatibility.common.tradefed.result.SubPlanHelper.NOT_EXECUTED ) ) && ( ! ( module.isDone ( ) ) ) ) { return true ; } for ( com.android.compatibility.common.util.TestStatus status : getStatusesToRun ( ) ) { if ( ( module.countResults ( status ) ) > 0 ) { return true ; } } return false ; }

Target:
private boolean shouldRunEntireModule ( com.android.compatibility.common.util.IModuleResult module ) { if ( ( ! ( mResultTypes.contains ( com.android.compatibility.common.tradefed.result.SubPlanCreator.NOT_EXECUTED ) ) ) && ( ! ( module.isDone ( ) ) ) ) { return false ; } java.util.Set < com.android.compatibility.common.util.TestStatus > statusesToRun = getStatusesToRun ( ) ; for ( com.android.compatibility.common.util.TestStatus status : com.android.compatibility.common.util.TestStatus.values ( ) ) { if ( ! ( statusesToRun.contains ( status ) ) ) { if ( ( module.countResults ( status ) ) > 0 ) { return false ; } } } return true ; }
Source:
static boolean isMediaKey ( int code ) { if ( ( ( ( ( ( ( code == ( android.view.KeyEvent.KEYCODE_HEADSETHOOK ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_STOP ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_NEXT ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD ) ) ) { return true ; } return false ; }

Target:
static boolean isMediaKey ( int code ) { if ( ( ( ( ( ( ( code == ( android.view.KeyEvent.KEYCODE_HEADSETHOOK ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_STOP ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_NEXT ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_REWIND ) ) ) || ( code == ( android.view.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD ) ) ) { return true ; } return false ; }
Source:
public java.lang.Iterable < com.android.jack.ir.ast.JSsaVariableUseRef > getRhs ( ) { return rhs.values ( ) ; }

Target:
protected void replaceImpl ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode newNode ) throws java.lang.UnsupportedOperationException { if ( ( lhs ) == existingNode ) { lhs = ( ( com.android.jack.ir.ast.JSsaVariableDefRef ) ( newNode ) ) ; return ; } for ( int i = 0 ; i < ( rhs.length ) ; i ++ ) { if ( ( rhs [ i ] ) == existingNode ) { rhs [ i ] = ( ( com.android.jack.ir.ast.JSsaVariableUseRef ) ( newNode ) ) ; return ; } } super . replaceImpl ( existingNode , newNode ) ; }
Source:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }

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:
public java.io.File generate ( org.eclipse.jdt.core.dom.CompilationUnit cu , java.io.File inputFile ) { java.lang.String sourceFileName = inputFile.getName ( ) ; java.lang.String fqn = com.google.currysrc.api.transform.ast.PackageMatcher.getPackageName ( cu ) ; java.lang.String packageSubDir = fqn.replace ( "." , java.io.File.separator ) ; return new java.io.File ( new java.io.File ( baseDir , packageSubDir ) , sourceFileName ) ; }

Target:
public java.io.File generate ( org.eclipse.jdt.core.dom.CompilationUnit cu , java.io.File inputFile ) { java.lang.String sourceFileName = inputFile.getName ( ) ; java.lang.String fqn = com.google.currysrc.api.process.ast.PackageMatcher.getPackageName ( cu ) ; java.lang.String packageSubDir = fqn.replace ( "." , java.io.File.separator ) ; return new java.io.File ( new java.io.File ( baseDir , packageSubDir ) , sourceFileName ) ; }
Source:
public void testGetInstanceLoadInternationalTollFreeMetadata ( ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = phoneUtil.getMetadataForNonGeographicalRegion ( 800 ) ; assertEquals ( "001" , metadata.id ) ; assertEquals ( 800 , metadata.countryCode ) ; assertEquals ( "$1 $2" , metadata.numberFormat [ 0 ] . format ) ; assertEquals ( "(\\d{4})(\\d{4})" , metadata.numberFormat [ 0 ] . pattern ) ; assertEquals ( "12345678" , metadata.generalDesc.exampleNumber ) ; assertEquals ( "12345678" , metadata.tollFree.exampleNumber ) ; }

Target:
public void testIsNumberGeographical ( ) { assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.BS_MOBILE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.AU_NUMBER ) ) ; assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.INTERNATIONAL_TOLL_FREE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.AR_MOBILE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.MX_MOBILE1 ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.MX_MOBILE2 ) ) ; }
Source:
public void testCreatePnoNetworkWithPskNetwork ( ) { android.net.wifi.WifiConfiguration network = com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ; network.networkId = 5 ; android.net.wifi.WifiScanner.PnoSettings.PnoNetwork pnoNetwork = com.android.server.wifi.WifiConfigurationUtil.createPnoNetwork ( network , 1 ) ; assertEquals ( network.networkId , pnoNetwork.networkId ) ; assertEquals ( ( ( WifiScanner.PnoSettings.PnoNetwork.FLAG_A_BAND ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_G_BAND ) ) , pnoNetwork.flags ) ; assertEquals ( WifiScanner.PnoSettings.PnoNetwork.AUTH_CODE_PSK , pnoNetwork.authBitField ) ; }

Target:
public void testCreatePnoNetworkWithPskNetwork ( ) { android.net.wifi.WifiConfiguration network = com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ; android.net.wifi.WifiScanner.PnoSettings.PnoNetwork pnoNetwork = com.android.server.wifi.WifiConfigurationUtil.createPnoNetwork ( network , 1 ) ; assertEquals ( network.SSID , pnoNetwork.ssid ) ; assertEquals ( ( ( WifiScanner.PnoSettings.PnoNetwork.FLAG_A_BAND ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_G_BAND ) ) , pnoNetwork.flags ) ; assertEquals ( WifiScanner.PnoSettings.PnoNetwork.AUTH_CODE_PSK , pnoNetwork.authBitField ) ; }
Source:
public void onScheduledRecordingAdded ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.ScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.ScheduleRowAdapter.TAG , ( "onScheduledRecordingAdded: " + schedule ) ) ; com.android.tv.dvr.ui.list.ScheduleRow row = findRowWithStartRequest ( schedule ) ; if ( row == null ) { addScheduleRow ( schedule ) ; sendNextUpdateMessage ( java.lang.System.currentTimeMillis ( ) ) ; } }

Target:
public void onScheduledRecordingAdded ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.ScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.ScheduleRowAdapter.TAG , ( "onScheduledRecordingAdded: " + schedule ) ) ; com.android.tv.dvr.ui.list.ScheduleRow row = findRowWithStartRequest ( schedule ) ; if ( row == null ) { addScheduleRow ( schedule ) ; sendNextUpdateMessage ( java.lang.System.currentTimeMillis ( ) ) ; } }
Source:
private int parsePort ( ) { java.lang.String authority = getAuthority ( ) ; if ( authority == null ) { return - 1 ; } int userInfoSeparator = authority.indexOf ( '@' ) ; int portSeparator = authority.indexOf ( ':' , userInfoSeparator ) ; if ( portSeparator == ( android.net.Uri.NOT_FOUND ) ) { return - 1 ; } java.lang.String portString = authority.substring ( ( portSeparator + 1 ) ) ; try { return java.lang.Integer.parseInt ( portString ) ; } catch ( java.lang.NumberFormatException e ) { android.util.Log.w ( android.net.Uri.LOG , "Error parsing port string." , e ) ; return - 1 ; } }

Target:
private int parsePort ( ) { java.lang.String authority = getEncodedAuthority ( ) ; if ( authority == null ) { return - 1 ; } int userInfoSeparator = authority.indexOf ( '@' ) ; int portSeparator = authority.indexOf ( ':' , userInfoSeparator ) ; if ( portSeparator == ( android.net.Uri.NOT_FOUND ) ) { return - 1 ; } java.lang.String portString = android.net.Uri.decode ( authority.substring ( ( portSeparator + 1 ) ) ) ; try { return java.lang.Integer.parseInt ( portString ) ; } catch ( java.lang.NumberFormatException e ) { android.util.Log.w ( android.net.Uri.LOG , "Error parsing port string." , e ) ; return - 1 ; } }
Source:
public static void cancelNotification ( @ android.support.annotation.NonNull android.content.Context context ) { com.android.dialer.common.LogUtil.enterBlock ( "LegacyVoicemailNotifier.cancelNotification" ) ; com.android.dialer.common.Assert.checkArgument ( android.support.v4.os.BuildCompat.isAtLeastO ( ) ) ; com.android.dialer.notification.DialerNotificationManager.cancel ( context , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_TAG , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_ID ) ; }

Target:
public static void cancelNotification ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.NonNull android.telecom.PhoneAccountHandle phoneAccountHandle ) { com.android.dialer.common.LogUtil.enterBlock ( "LegacyVoicemailNotifier.cancelNotification" ) ; com.android.dialer.common.Assert.checkArgument ( android.support.v4.os.BuildCompat.isAtLeastO ( ) ) ; com.android.dialer.common.Assert.isNotNull ( phoneAccountHandle ) ; com.android.dialer.notification.DialerNotificationManager.cancel ( context , com.android.dialer.app.calllog.LegacyVoicemailNotifier.getNotificationTag ( context , phoneAccountHandle ) , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_ID ) ; }
Source:
public java.util.Collection < com.android.ide.eclipse.adt.internal.resources.ResourceType > getResourceTypes ( ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.ResourceType > list = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.ResourceType > ( ) ; if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file : mFiles ) { com.android.ide.eclipse.adt.internal.resources.ResourceType [ ] types = file.getResourceTypes ( ) ; if ( types != null ) { for ( com.android.ide.eclipse.adt.internal.resources.ResourceType resType : types ) { if ( ( list.indexOf ( resType ) ) == ( - 1 ) ) { list.add ( resType ) ; } } } } } return list ; }

Target:
public java.util.Collection < com.android.resources.ResourceType > getResourceTypes ( ) { java.util.ArrayList < com.android.resources.ResourceType > list = new java.util.ArrayList < com.android.resources.ResourceType > ( ) ; if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file : mFiles ) { com.android.resources.ResourceType [ ] types = file.getResourceTypes ( ) ; if ( types != null ) { for ( com.android.resources.ResourceType resType : types ) { if ( ( list.indexOf ( resType ) ) == ( - 1 ) ) { list.add ( resType ) ; } } } } } return list ; }
Source:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { if ( versionName == null ) { if ( ! ( mType.isForTesting ( ) ) ) { versionName = getVersionNameFromManifest ( ) ; } else { versionName = "" ; } } versionName = versionName + versionSuffix ; } return versionName ; }

Target:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionName == null ) && ( ! ( mType.isForTesting ( ) ) ) ) { versionName = getVersionNameFromManifest ( ) ; } if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { versionName = ( com.google.common.base.Strings.nullToEmpty ( versionName ) ) + versionSuffix ; } return versionName ; }
Source:
public void setMicrophoneMute ( boolean on ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMicrophoneMute ( on , getContext ( ) . getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMicrophoneMute" , e ) ; } }

Target:
public void setMicrophoneMute ( boolean on ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMicrophoneMute ( on , mApplicationContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMicrophoneMute" , e ) ; } }
Source:
public static com.android.internal.telephony.cdma.SmsMessage.SubmitPdu getSubmitPdu ( java.lang.String scAddr , java.lang.String destAddr , java.lang.String message , boolean statusReportRequested , com.android.internal.telephony.SmsHeader smsHeader ) { if ( ( message == null ) || ( destAddr == null ) ) { return null ; } com.android.internal.telephony.cdma.sms.UserData uData = new com.android.internal.telephony.cdma.sms.UserData ( ) ; uData.payloadStr = message ; uData.userDataHeader = smsHeader ; return com.android.internal.telephony.cdma.SmsMessage.privateGetSubmitPdu ( destAddr , statusReportRequested , uData ) ; }

Target:
public static com.android.internal.telephony.cdma.SmsMessage.SubmitPdu getSubmitPdu ( java.lang.String scAddr , java.lang.String destAddr , java.lang.String message , boolean statusReportRequested , com.android.internal.telephony.SmsHeader smsHeader , int priority ) { if ( ( message == null ) || ( destAddr == null ) ) { return null ; } com.android.internal.telephony.cdma.sms.UserData uData = new com.android.internal.telephony.cdma.sms.UserData ( ) ; uData.payloadStr = message ; uData.userDataHeader = smsHeader ; return com.android.internal.telephony.cdma.SmsMessage.privateGetSubmitPdu ( destAddr , statusReportRequested , uData , priority ) ; }
Source:
public void setImePackagesProvider ( com.android.server.pm.PackagesProvider provider ) { synchronized ( mPackages ) { mDefaultPermissionPolicy.setImePackagesProviderLPr ( provider ) ; } }

Target:
void onBeforeUserStartUninitialized ( final int userId ) { synchronized ( mPackages ) { if ( mSettings.areDefaultRuntimePermissionsGrantedLPr ( userId ) ) { return ; } } mDefaultPermissionPolicy.grantDefaultPermissions ( userId ) ; if ( android.os.Build.PERMISSIONS_REVIEW_REQUIRED ) { updatePermissionsLPw ( null , null , ( ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_ALL ) | ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_REPLACE_ALL ) ) ) ; } }
Source:
private static final boolean checkList ( java.util.List a ) { boolean valid = ( a != null ) && ( ( a.size ( ) ) != 0 ) ; if ( valid ) { int size = a.size ( ) ; for ( int i = 0 ; valid && ( i < size ) ; i ++ ) { valid = ( a.get ( i ) ) != null ; } } return valid ; }

Target:
private static boolean checkList ( java.util.List < ? > a ) { boolean valid = ( a != null ) && ( ! ( a.isEmpty ( ) ) ) ; if ( valid ) { int size = a.size ( ) ; for ( int i = 0 ; valid && ( i < size ) ; i ++ ) { valid = ( a.get ( i ) ) != null ; } } return valid ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { long timestamp = intent.getLongExtra ( "timestamp" , 0 ) ; android.util.Log.d ( com.android.graphics.benchmark.device.GraphicsBenchmarkTest.TAG , ( "Received intent at " + timestamp ) ) ; mReport.startLoop ( timestamp ) ; if ( ! ( mGotIntent ) ) { mHandler.postDelayed ( ( ) -> mHandler.getLooper ( ) . quit ( ) , mApk.getRunTime ( ) ) ; mGotIntent = true ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { long timestamp = intent.getLongExtra ( "timestamp" , 0 ) ; android.util.Log.d ( com.android.game.qualification.device.GameQualificationTest.TAG , ( "Received intent at " + timestamp ) ) ; mReport.startLoop ( timestamp ) ; if ( ! ( mGotIntent ) ) { mHandler.postDelayed ( ( ) -> mHandler.getLooper ( ) . quit ( ) , mApk.getRunTime ( ) ) ; mGotIntent = true ; } }
Source:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { java.math.BigInteger x2 = b.toBigInteger ( ) ; java.math.BigInteger x3 = x.subtract ( x2 ) ; if ( ( x3.signum ( ) ) < 0 ) { x3 = x3.add ( q ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x3 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement multiplyMinusProduct ( org.bouncycastle.math.ec.ECFieldElement b , org.bouncycastle.math.ec.ECFieldElement x , org.bouncycastle.math.ec.ECFieldElement y ) { java.math.BigInteger ax = this . x ; java.math.BigInteger bx = b.toBigInteger ( ) ; java.math.BigInteger xx = x.toBigInteger ( ) ; java.math.BigInteger yx = y.toBigInteger ( ) ; java.math.BigInteger ab = ax.multiply ( bx ) ; java.math.BigInteger xy = xx.multiply ( yx ) ; return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modReduce ( ab.subtract ( xy ) ) ) ; }
Source:
boolean updateMultiAudioAction ( ) { java.util.List < android.media.tv.TvTrackInfo > audioTracks = getMainActivity ( ) . getTracks ( TvTrackInfo.TYPE_AUDIO ) ; boolean oldEnabled = MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled ( ) ; boolean newEnabled = ( audioTracks != null ) && ( ( audioTracks.size ( ) ) > 1 ) ; if ( oldEnabled != newEnabled ) { MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.setEnabled ( newEnabled ) ; return true ; } return false ; }

Target:
boolean updateMultiAudioAction ( ) { java.util.List < android.media.tv.TvTrackInfo > audioTracks = getMainActivity ( ) . getTracks ( TvTrackInfo.TYPE_AUDIO ) ; boolean enabled = ( audioTracks != null ) && ( ( audioTracks.size ( ) ) > 1 ) ; return ( com.android.tv.menu.MenuAction.setEnabled ( MenuAction.SELECT_AUDIO_LANGUAGE_ACTION , enabled ) ) | ( updateActionDescription ( MenuAction.SELECT_AUDIO_LANGUAGE_ACTION ) ) ; }
Source:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }

Target:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }
Source:
public boolean isPeripheralModeSupported ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { return mService.isPeripheralModeSupported ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "failed to get peripheral mode capability: " , e ) ; } return false ; }

Target:
public boolean isPeripheralModeSupported ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.isPeripheralModeSupported ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "failed to get peripheral mode capability: " , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof com.google.common.collect.Multimap ) { com.google.common.collect.Multimap < ? , ? > that = ( ( com.google.common.collect.Multimap < ? , ? > ) ( object ) ) ; return ( ( this . size ( ) ) == ( that.size ( ) ) ) && ( asMap ( ) . equals ( that.asMap ( ) ) ) ; } return false ; }

Target:
static boolean equalsImpl ( com.google.common.collect.Multimap < ? , ? > multimap , @ javax.annotation.Nullable java.lang.Object object ) { if ( object == multimap ) { return true ; } if ( object instanceof com.google.common.collect.Multimap ) { com.google.common.collect.Multimap < ? , ? > that = ( ( com.google.common.collect.Multimap < ? , ? > ) ( object ) ) ; return multimap.asMap ( ) . equals ( that.asMap ( ) ) ; } return false ; }
Source:
public void ctorDoesNotCrashEvenIfReleaseFileIsMissing ( ) throws java.lang.Exception { mTraceReleaseFile.delete ( ) ; new com.android.server.wifi.LastMileLogger ( mWifiInjector , mTraceDataFile.getPath ( ) , mTraceEnableFile.getPath ( ) , mTraceReleaseFile.getPath ( ) ) ; org.mockito.Mockito.verify ( mLog ) . warn ( org.mockito.Matchers.contains ( "Failed" ) ) ; }

Target:
public void connectionEventStartedDoesNotCrashIfReleaseFileIsMissing ( ) throws java.lang.Exception { mTraceReleaseFile.delete ( ) ; mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; org.mockito.Mockito.verify ( mLog ) . warn ( org.mockito.Matchers.contains ( "Failed to open free_buffer" ) ) ; }
Source:
public boolean contains ( java.lang.Object o ) { if ( o instanceof java.util.Map.Entry ) { java.util.Map.Entry < ? , ? > entry = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; java.lang.Object key = entry.getKey ( ) ; V value = map ( ) . get ( key ) ; return ( com.google.common.base.Objects.equal ( value , entry.getValue ( ) ) ) && ( ( value != null ) || ( map ( ) . containsKey ( key ) ) ) ; } return false ; }

Target:
public boolean contains ( java.lang.Object o ) { if ( o instanceof java.util.Map.Entry ) { java.util.Map.Entry < ? , ? > entry = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; java.lang.Object key = entry.getKey ( ) ; V value = com.google.common.collect.Maps.safeGet ( map ( ) , key ) ; return ( com.google.common.base.Objects.equal ( value , entry.getValue ( ) ) ) && ( ( value != null ) || ( map ( ) . containsKey ( key ) ) ) ; } return false ; }
Source:
public void updateSeriesRecording ( final com.android.tv.dvr.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.SeriesRecording r : seriesRecordings ) { com.android.tv.dvr.SeriesRecording old1 = mSeriesRecordings.put ( r.getId ( ) , r ) ; com.android.tv.dvr.SeriesRecording old2 = mSeriesId2SeriesRecordings.put ( r.getSeriesId ( ) , r ) ; com.android.tv.common.SoftPreconditions.checkArgument ( old1.equals ( old2 ) , com.android.tv.dvr.DvrDataManagerImpl.TAG , ( ( "Series ID cannot be" + " updated: " ) + r ) ) ; } if ( mDvrLoadFinished ) { notifySeriesRecordingChanged ( seriesRecordings ) ; } new com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncUpdateSeriesRecordingTask ( mContext ) . executeOnDbThread ( seriesRecordings ) ; }

Target:
private void removeDeletedSchedules ( com.android.tv.dvr.data.ScheduledRecording ... addedSchedules ) { java.util.List < com.android.tv.dvr.data.ScheduledRecording > schedulesToDelete = new java.util.ArrayList < > ( ) ; for ( com.android.tv.dvr.data.ScheduledRecording r : addedSchedules ) { com.android.tv.dvr.data.ScheduledRecording deleted = getDeletedScheduleMap ( ) . remove ( r.getProgramId ( ) ) ; if ( deleted != null ) { schedulesToDelete.add ( deleted ) ; } } if ( ! ( schedulesToDelete.isEmpty ( ) ) ) { new com.android.tv.dvr.provider.AsyncDvrDbTask.AsyncDeleteScheduleTask ( mContext ) . executeOnDbThread ( com.android.tv.dvr.data.ScheduledRecording.toArray ( schedulesToDelete ) ) ; } }
Source:
protected void implReset ( ) { libcore.icu.NativeConverter.resetByteToChar ( converterHandle ) ; data [ java.nio.charset.CharsetDecoderICU.INPUT_OFFSET ] = 0 ; data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] = 0 ; data [ java.nio.charset.CharsetDecoderICU.INVALID_BYTES ] = 0 ; output = null ; input = null ; allocatedInput = null ; allocatedOutput = null ; inEnd = 0 ; outEnd = 0 ; }

Target:
protected void implReset ( ) { libcore.icu.NativeConverter.resetByteToChar ( converterHandle ) ; data [ java.nio.charset.CharsetDecoderICU.INPUT_OFFSET ] = 0 ; data [ java.nio.charset.CharsetDecoderICU.OUTPUT_OFFSET ] = 0 ; data [ java.nio.charset.CharsetDecoderICU.INVALID_BYTE_COUNT ] = 0 ; output = null ; input = null ; allocatedInput = null ; allocatedOutput = null ; inEnd = 0 ; outEnd = 0 ; }
Source:
public static com.android.incallui.incall.protocol.PrimaryInfo createEmptyPrimaryInfo ( ) { return new com.android.incallui.incall.protocol.PrimaryInfo ( null , null , false , null , null , null , ContactPhotoType.DEFAULT_PLACEHOLDER , false , false , false , false , false , false , false , null , null , true , ( - 1 ) ) ; }

Target:
public static com.android.incallui.incall.protocol.PrimaryInfo empty ( ) { return com.android.incallui.incall.protocol.PrimaryInfo.builder ( ) . setNameIsNumber ( false ) . setPhotoType ( ContactPhotoType.DEFAULT_PLACEHOLDER ) . setIsSipCall ( false ) . setIsContactPhotoShown ( false ) . setIsWorkCall ( false ) . setIsSpam ( false ) . setIsLocalContact ( false ) . setAnsweringDisconnectsOngoingCall ( false ) . setShouldShowLocation ( false ) . setShowInCallButtonGrid ( true ) . setNumberPresentation ( ( - 1 ) ) . build ( ) ; }
Source:
public boolean hasSource ( com.android.sdklib.internal.repository.SdkSource source ) { for ( com.android.sdklib.internal.repository.SdkSource s : mSources ) { if ( s.equals ( source ) ) { return true ; } } return false ; }

Target:
public com.android.sdklib.internal.repository.SdkSource [ ] getAllSources ( ) { int n = 0 ; for ( java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list : mSources.values ( ) ) { n += list.size ( ) ; } com.android.sdklib.internal.repository.SdkSource [ ] sources = new com.android.sdklib.internal.repository.SdkSource [ n ] ; int i = 0 ; for ( java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list : mSources.values ( ) ) { for ( com.android.sdklib.internal.repository.SdkSource source : list ) { sources [ ( i ++ ) ] = source ; } } return sources ; }
Source:
private void setBtStatus ( ) { android.bluetooth.BluetoothAdapter bluetooth = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; android.preference.Preference btAddressPref = findPreference ( com.android.settings.deviceinfo.Status.KEY_BT_ADDRESS ) ; if ( bluetooth == null ) { getPreferenceScreen ( ) . removePreference ( btAddressPref ) ; } else { java.lang.String address = ( bluetooth.isEnabled ( ) ) ? bluetooth.getAddress ( ) : null ; btAddressPref.setSummary ( ( ! ( android.text.TextUtils.isEmpty ( address ) ) ? address : getString ( R.string.status_unavailable ) ) ) ; } }

Target:
private void setWifiStatus ( ) { android.net.wifi.WifiInfo wifiInfo = mWifiManager.getConnectionInfo ( ) ; java.lang.String macAddress = ( wifiInfo == null ) ? null : wifiInfo.getMacAddress ( ) ; mWifiMacAddress.setSummary ( ( ! ( android.text.TextUtils.isEmpty ( macAddress ) ) ? macAddress : mUnavailable ) ) ; }
Source:
public final byte [ ] doFinal ( byte [ ] input , int inputOffset , int inputLen ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return spiImpl.engineDoFinal ( input , inputOffset , inputLen ) ; }

Target:
public final int doFinal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return getSpi ( ) . engineDoFinal ( input , inputOffset , inputLen , output , outputOffset ) ; }
Source:
private com.android.tools.perflib.vmtrace.MethodInfo.MethodStats getMethodStats ( java.lang.String thread , boolean createIfAbsent ) { com.android.tools.perflib.vmtrace.MethodInfo.MethodStats stats = mPerThreadStats.get ( thread ) ; if ( ( stats == null ) && createIfAbsent ) { stats = new com.android.tools.perflib.vmtrace.MethodInfo.MethodStats ( ) ; mPerThreadStats.put ( thread , stats ) ; } return stats ; }

Target:
private com.android.tools.perflib.vmtrace.MethodInfo.MethodStats getMethodStats ( com.android.tools.perflib.vmtrace.ThreadInfo thread , boolean createIfAbsent ) { com.android.tools.perflib.vmtrace.MethodInfo.MethodStats stats = mPerThreadStats.get ( thread.getId ( ) ) ; if ( ( stats == null ) && createIfAbsent ) { stats = new com.android.tools.perflib.vmtrace.MethodInfo.MethodStats ( ) ; mPerThreadStats.put ( thread.getId ( ) , stats ) ; } return stats ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { java.util.regex.Matcher m = com.android.ide.eclipse.adt.internal.resources.configurations.NetworkCodeQualifier.sNetworkCodePattern.matcher ( value ) ; if ( m.matches ( ) ) { java.lang.String v = m.group ( 1 ) ; int code = - 1 ; try { code = java.lang.Integer.parseInt ( v ) ; } catch ( java.lang.NumberFormatException e ) { return false ; } com.android.ide.eclipse.adt.internal.resources.configurations.NetworkCodeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NetworkCodeQualifier ( code ) ; config.setNetworkCodeQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { java.util.regex.Matcher m = com.android.ide.common.resources.configuration.NetworkCodeQualifier.sNetworkCodePattern.matcher ( value ) ; if ( m.matches ( ) ) { java.lang.String v = m.group ( 1 ) ; int code = - 1 ; try { code = java.lang.Integer.parseInt ( v ) ; } catch ( java.lang.NumberFormatException e ) { return false ; } com.android.ide.common.resources.configuration.NetworkCodeQualifier qualifier = new com.android.ide.common.resources.configuration.NetworkCodeQualifier ( code ) ; config.setNetworkCodeQualifier ( qualifier ) ; return true ; } return false ; }
Source:
private static com.android.build.gradle.internal.model.Collection < com.android.builder.model.SigningConfig > cloneSigningConfigs ( @ com.android.annotations.NonNull com.android.build.gradle.internal.model.Collection < com.android.builder.model.SigningConfig > signingConfigs ) { com.android.build.gradle.internal.model.Collection < com.android.builder.model.SigningConfig > results = com.google.common.collect.Lists.newArrayListWithCapacity ( signingConfigs.size ( ) ) ; for ( com.android.builder.model.SigningConfig signingConfig : signingConfigs ) { results.add ( com.android.build.gradle.internal.model.SigningConfigImpl.createSigningConfig ( signingConfig ) ) ; } return results ; }

Target:
private static java.util.Collection < com.android.builder.model.SigningConfig > cloneSigningConfigs ( @ com.android.annotations.NonNull java.util.Collection < com.android.builder.model.SigningConfig > signingConfigs ) { java.util.Collection < com.android.builder.model.SigningConfig > results = com.google.common.collect.Lists.newArrayListWithCapacity ( signingConfigs.size ( ) ) ; for ( com.android.builder.model.SigningConfig signingConfig : signingConfigs ) { results.add ( com.android.build.gradle.internal.model.SigningConfigImpl.createSigningConfig ( signingConfig ) ) ; } return results ; }
Source:
void startBluetoothDisable ( ) { mAdapterStateMachine.sendMessage ( AdapterState.BEGIN_DISABLE ) ; }

Target:
void startProfileServices ( ) { debugLog ( "startCoreServices()" ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( ( supportedProfileServices.length ) == 1 ) && ( com.android.bluetooth.gatt.GattService.class . getSimpleName ( ) . equals ( supportedProfileServices [ 0 ] . getSimpleName ( ) ) ) ) { updateUuids ( ) ; setBluetoothClassFromConfig ( ) ; mAdapterStateMachine.sendMessage ( AdapterState.BREDR_STARTED ) ; } else { setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_ON ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLock lockStmt ) { com.android.jack.dx.rop.code.SourcePosition srcPosition = com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( lockStmt ) ; com.android.jack.dx.rop.code.RegisterSpec lockReg = getRegisterSpec ( lockStmt.getLockExpr ( ) ) ; com.android.jack.dx.rop.code.Insn lockInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_ENTER , srcPosition , com.android.jack.dx.rop.code.RegisterSpecList.make ( lockReg ) , getCatchTypes ( ) ) ; addInstruction ( lockInsn ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JMethodCallBlockElement element ) { buildCall ( null , element.getCall ( ) ) ; return false ; }