auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidTagConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_TAG_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_TAG_ROTATE_AGE , ( 5 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_TAG_DELETE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { com.android.build.tests.AndroidProjectConnector connector = new com.android.build.tests.AndroidProjectConnector ( mSdkFolder , mNdkFolder ) ; connector.runGradleTasks ( mProjectFolder , com.android.build.tests.ProjectTest.GRADLE_VERSION , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "assembleDebug" ) ; }

Target:
protected void runTest ( ) throws java.lang.Throwable { com.android.build.tests.AndroidProjectConnector connector = new com.android.build.tests.AndroidProjectConnector ( mSdkFolder , mNdkFolder ) ; connector.runGradleTasks ( mProjectFolder , com.android.build.tests.ProjectTest.GRADLE_VERSION , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) , "clean" , mTaskName ) ; }
Source:
public final org.jf.dexlib2.iface.reference.FieldReference field_literal ( ) throws org.jf.smali.RecognitionException { org.jf.dexlib2.iface.reference.FieldReference value = null ; org.jf.dexlib2.immutable.reference.ImmutableFieldReference field_reference208 = null ; try { { match ( input , org.jf.smali.smaliTreeWalker.I_ENCODED_FIELD , org.jf.smali.smaliTreeWalker.FOLLOW_I_ENCODED_FIELD_in_field_literal3571 ) ; match ( input , Token.DOWN , null ) ; pushFollow ( org.jf.smali.smaliTreeWalker.FOLLOW_field_reference_in_field_literal3573 ) ; field_reference208 = field_reference ( ) ; ( state._fsp ) -- ; match ( input , Token.UP , null ) ; value = field_reference208 ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final double double_literal ( ) throws org.jf.smali.RecognitionException { double value = 0.0 ; org.antlr.runtime.tree.CommonTree DOUBLE_LITERAL209 = null ; try { { DOUBLE_LITERAL209 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.DOUBLE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_DOUBLE_LITERAL_in_double_literal3513 ) ) ) ; value = org.jf.smali.LiteralTools.parseDouble ( ( DOUBLE_LITERAL209 != null ? DOUBLE_LITERAL209.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private java.lang.String getStringForDay ( int day ) { if ( ( fDates ) == null ) { loadDates ( ) ; } for ( int i = 0 ; i < ( fDates.length ) ; i ++ ) { if ( ( fDates [ i ] . offset ) == day ) { return fDates [ i ] . string ; } } return null ; }

Target:
private java.lang.String getStringForDay ( int day ) { if ( ( fDates ) == null ) { loadDates ( ) ; } for ( android.icu.impl.RelativeDateFormat.URelativeString dayItem : fDates ) { if ( ( dayItem.offset ) == day ) { return dayItem.string ; } } return null ; }
Source:
protected static boolean isDebugLoggingEnabled ( java.lang.String tag ) { if ( com.android.voicemail.impl.mail.utils.LogUtils.buildPreventsDebugLogging ( ) ) { return false ; } if ( ( com.android.voicemail.impl.mail.utils.LogUtils.sDebugLoggingEnabledForTests ) != null ) { return com.android.voicemail.impl.mail.utils.LogUtils.sDebugLoggingEnabledForTests.booleanValue ( ) ; } return ( android.util.Log.isLoggable ( tag , Log.DEBUG ) ) || ( android.util.Log.isLoggable ( com.android.voicemail.impl.mail.utils.LogUtils.TAG , Log.DEBUG ) ) ; }

Target:
protected static boolean isDebugLoggingEnabled ( java.lang.String tag ) { if ( com.android.voicemail.impl.mail.utils.LogUtils.buildPreventsDebugLogging ( ) ) { return false ; } if ( ( com.android.voicemail.impl.mail.utils.LogUtils.debugLoggingEnabledForTests ) != null ) { return com.android.voicemail.impl.mail.utils.LogUtils.debugLoggingEnabledForTests.booleanValue ( ) ; } return ( android.util.Log.isLoggable ( tag , Log.DEBUG ) ) || ( android.util.Log.isLoggable ( com.android.voicemail.impl.mail.utils.LogUtils.TAG , Log.DEBUG ) ) ; }
Source:
com.android.tools.lint.client.api.Configuration getConfiguration ( ) { return mFlags.getDefaultConfiguration ( ) ; }

Target:
com.android.tools.lint.client.api.Configuration getConfiguration ( ) { if ( ( mConfiguration ) == null ) { java.io.File configFile = mFlags.getDefaultConfiguration ( ) ; if ( configFile != null ) { if ( ! ( configFile.exists ( ) ) ) { log ( Severity.ERROR , null , "Warning: Configuration file %1$s does not exist" , configFile ) ; } mConfiguration = createConfigurationFromFile ( configFile ) ; } } return mConfiguration ; }
Source:
public java.lang.String getOriginalMimeType ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getOriginalMimeType ( mUniqueId , path ) ; }

Target:
public int removeRights ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } return _removeRights ( mUniqueId , path ) ; }
Source:
private void doStop ( android.content.Intent intent ) { if ( stop ( ) ) { if ( com.android.bluetooth.btservice.ProfileService.DBG ) { log ( "stop()" ) ; } notifyProfileServiceStateChanged ( BluetoothAdapter.STATE_OFF ) ; stopSelf ( ) ; } else { android.util.Log.e ( mName , "Unable to stop profile" ) ; } }

Target:
private void doStop ( ) { if ( ! ( mProfileStarted ) ) { android.util.Log.w ( mName , "doStop() called, but the profile is not running." ) ; } mProfileStarted = false ; if ( ( mAdapterService ) != null ) { mAdapterService.onProfileServiceStateChanged ( getClass ( ) . getName ( ) , BluetoothAdapter.STATE_OFF ) ; } if ( ! ( stop ( ) ) ) { android.util.Log.e ( mName , "Unable to stop profile" ) ; } if ( ( mUserSwitchedReceiver ) != null ) { getApplicationContext ( ) . unregisterReceiver ( mUserSwitchedReceiver ) ; mUserSwitchedReceiver = null ; } stopSelf ( ) ; }
Source:
public static boolean isNonTtyOrTtyOnVolteEnabled ( android.content.Context context ) { if ( com.android.ims.ImsManager.getBooleanCarrierConfig ( context , CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) { return true ; } return ( Settings.Secure.getInt ( context.getContentResolver ( ) , Settings.Secure.PREFERRED_TTY_MODE , TelecomManager.TTY_MODE_OFF ) ) == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ; }

Target:
public boolean isNonTtyOrTtyOnVolteEnabledForSlot ( ) { if ( getBooleanCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) { return true ; } android.telecom.TelecomManager tm = ( ( android.telecom.TelecomManager ) ( mContext.getSystemService ( Context.TELECOM_SERVICE ) ) ) ; if ( tm == null ) { android.util.Log.w ( com.android.ims.ImsManager.TAG , "isNonTtyOrTtyOnVolteEnabledForSlot: telecom not available" ) ; return true ; } return ( tm.getCurrentTtyMode ( ) ) == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ; }
Source:
private void showNotification ( int visibility ) { final android.app.Notification notification = new android.app.Notification.Builder ( this ) . setSmallIcon ( R.drawable.icon ) . setContentTitle ( getString ( R.string.provisioning_byod_notification_title ) ) . setVisibility ( visibility ) . setAutoCancel ( true ) . build ( ) ; mNotificationManager.notify ( com.android.cts.verifier.managedprovisioning.ByodHelperActivity.NOTIFICATION_ID , notification ) ; }

Target:
private void showNotification ( int visibility ) { final android.app.Notification notification = new android.app.Notification.Builder ( this ) . setSmallIcon ( R.drawable.icon ) . setContentTitle ( getString ( R.string.provisioning_byod_notification_title ) ) . setContentText ( getString ( R.string.provisioning_byod_notification_title ) ) . setVisibility ( visibility ) . setAutoCancel ( true ) . build ( ) ; mNotificationManager.notify ( com.android.cts.verifier.managedprovisioning.ByodHelperActivity.NOTIFICATION_ID , notification ) ; }
Source:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_MIDDLEWARE_LOST ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new java.lang.IllegalStateException ( "StreamingService state inconsistent with middleware" ) ; } finally { mService = null ; } }

Target:
public android.telephony.mbms.InternalStreamingServiceCallback getCallback ( ) { return mCallback ; }
Source:
public void testHasData ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) . addCategory ( "category" ) . setDataAndType ( uri , Context.ACTIVITY_SERVICE ) . putExtra ( "key1" , "value1" ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( uri.toString ( ) ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( uri ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( org.hamcrest.Matchers.equalTo ( uri ) ) . matches ( intent ) ) ; }

Target:
public void hasDataTesting ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) . addCategory ( "category" ) . setDataAndType ( uri , Context.ACTIVITY_SERVICE ) . putExtra ( "key1" , "value1" ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( uri.toString ( ) ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( uri ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasData ( org.hamcrest.Matchers.equalTo ( uri ) ) . matches ( intent ) ) ; }
Source:
public boolean isProvisioningAllowed ( java.lang.String action ) { throwIfParentInstance ( "isProvisioningAllowed" ) ; try { return mService.isProvisioningAllowed ( action ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }

Target:
public android.content.Intent createAdminSupportIntent ( @ android.annotation.NonNull java.lang.String restriction ) { throwIfParentInstance ( "createAdminSupportIntent" ) ; if ( ( mService ) != null ) { try { return mService.createAdminSupportIntent ( restriction ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; initTestFiles ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( TestNotificationService.ACTION_OPERATION_RESULT ) ; context.registerReceiver ( mReceiver , filter ) ; context.sendBroadcast ( new android.content.Intent ( com.android.documentsui.services.TestNotificationService.ACTION_CHANGE_EXECUTION_MODE ) ) ; mOperationExecuted = false ; mErrorReason = "No response from Notification" ; mCountDownLatch = new java.util.concurrent.CountDownLatch ( 1 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putBoolean ( StubProvider.EXTRA_ENABLE_ROOT_NOTIFICATION , false ) ; mDocsHelper.configure ( null , bundle ) ; initTestFiles ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( TestNotificationService.ACTION_OPERATION_RESULT ) ; context.registerReceiver ( mReceiver , filter ) ; context.sendBroadcast ( new android.content.Intent ( com.android.documentsui.services.TestNotificationService.ACTION_CHANGE_EXECUTION_MODE ) ) ; mOperationExecuted = false ; mErrorReason = "No response from Notification" ; mCountDownLatch = new java.util.concurrent.CountDownLatch ( 1 ) ; }
Source:
public T createOutput ( @ com.android.annotations.Nullable java.lang.String densityFilter , @ com.android.annotations.Nullable java.lang.String abiFilter ) { T data = doCreateOutput ( densityFilter , abiFilter ) ; if ( ( outputs.size ( ) ) == 1 ) { outputs.get ( 0 ) . setMultiOutput ( true ) ; data.setMultiOutput ( true ) ; } else if ( ( outputs.size ( ) ) > 1 ) { data.setMultiOutput ( true ) ; } outputs.add ( data ) ; return data ; }

Target:
public T createOutput ( com.android.build.OutputFile.OutputType outputType , java.util.Collection < com.android.build.FilterData > filters ) { T data = doCreateOutput ( outputType , filters ) ; if ( ( outputs.size ( ) ) == 1 ) { outputs.get ( 0 ) . setMultiOutput ( true ) ; data.setMultiOutput ( true ) ; } else if ( ( outputs.size ( ) ) > 1 ) { data.setMultiOutput ( true ) ; } outputs.add ( data ) ; return data ; }
Source:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , "readResponse" ) ; mResponse = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , stream , mFormat ) ; if ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , ( ( "Read " + ( mResponse.getCount ( ) ) ) + " entries." ) ) ; } }

Target:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , "readResponse" ) ; mResponse = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , stream , mFormat ) ; if ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.VDBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , ( ( "Read " + ( mResponse.getCount ( ) ) ) + " entries." ) ) ; } }
Source:
private static java.util.logging.Logger demandLogger ( java.lang.String name , java.lang.String resourceBundleName , java.lang.Class < ? > caller ) { java.util.logging.LogManager manager = java.util.logging.LogManager.getLogManager ( ) ; java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( ( sm != null ) && ( ! ( java.util.logging.Logger.LoggerHelper.disableCallerCheck ) ) ) { if ( ( caller.getClassLoader ( ) ) == null ) { return manager.demandSystemLogger ( name , resourceBundleName ) ; } } return manager.demandLogger ( name , resourceBundleName , caller ) ; }

Target:
private static java.util.logging.Logger demandLogger ( java.lang.String name , java.lang.String resourceBundleName , java.lang.Class < ? > caller ) { java.util.logging.LogManager manager = java.util.logging.LogManager.getLogManager ( ) ; java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( ( sm != null ) && ( ! ( java.util.logging.Logger.SystemLoggerHelper.disableCallerCheck ) ) ) { if ( ( caller.getClassLoader ( ) ) == null ) { return manager.demandSystemLogger ( name , resourceBundleName ) ; } } return manager.demandLogger ( name , resourceBundleName , caller ) ; }
Source:
public android.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition pos ) { android.icu.util.Currency [ ] currency = new android.icu.util.Currency [ 1 ] ; return ( ( android.icu.util.CurrencyAmount ) ( parse ( text.toString ( ) , pos , currency ) ) ) ; }

Target:
public android.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition parsePosition ) { try { android.icu.util.CurrencyAmount result = android.icu.impl.number.Parse.parseCurrency ( text , parsePosition , properties , symbols ) ; if ( result == null ) return null ; java.lang.Number number = result.getNumber ( ) ; if ( number instanceof java.math.BigDecimal ) { number = safeConvertBigDecimal ( ( ( java.math.BigDecimal ) ( number ) ) ) ; result = new android.icu.util.CurrencyAmount ( number , result.getCurrency ( ) ) ; } return result ; } catch ( java.text.ParseException e ) { return null ; } }
Source:
private void cancelAllNotifications ( ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( "setNotification: cancelAllNotifications" ) ; android.app.NotificationManager notificationManager = ( ( android.app.NotificationManager ) ( mPhone.getContext ( ) . getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.PS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_REJECT_CAUSE_NOTIFICATION ) ; }

Target:
private void cancelAllNotifications ( ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( ( "cancelAllNotifications: mPrevSubId=" + ( mPrevSubId ) ) ) ; android.app.NotificationManager notificationManager = ( ( android.app.NotificationManager ) ( mPhone.getContext ( ) . getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; if ( android.telephony.SubscriptionManager.isValidSubscriptionId ( mPrevSubId ) ) { notificationManager.cancel ( java.lang.Integer.toString ( mPrevSubId ) , com.android.internal.telephony.ServiceStateTracker.PS_NOTIFICATION ) ; notificationManager.cancel ( java.lang.Integer.toString ( mPrevSubId ) , com.android.internal.telephony.ServiceStateTracker.CS_NOTIFICATION ) ; notificationManager.cancel ( java.lang.Integer.toString ( mPrevSubId ) , com.android.internal.telephony.ServiceStateTracker.CS_REJECT_CAUSE_NOTIFICATION ) ; } }
Source:
public void testKill ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testKill" ) ; fail ( "Expected remote failure" ) ; } catch ( java.lang.AssertionError expected ) { } }

Target:
public void testCompatRevoked22 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testCompatRevoked_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.AssertionError expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testCompatRevoked_part2" ) ; }
Source:
public void testDetectsUnclosedCloseGuard ( ) throws java.lang.Exception { libcore.java.util.ResourceLeakageDetector detector = libcore.java.util.ResourceLeakageDetector.newDetector ( ) ; try { dalvik.system.CloseGuard closeGuard = createCloseGuard ( ) ; closeGuard.open ( "open" ) ; } finally { try { java.lang.System.logI ( "Checking for leaks" ) ; detector.checkForLeaks ( ) ; fail ( ) ; } catch ( java.lang.AssertionError expected ) { } } }

Target:
public void notestDetectsUnclosedCloseGuard ( ) throws java.lang.Exception { libcore.java.util.ResourceLeakageDetector detector = libcore.java.util.ResourceLeakageDetector.newDetector ( ) ; try { dalvik.system.CloseGuard closeGuard = createCloseGuard ( ) ; closeGuard.open ( "open" ) ; } finally { boolean leaksDetected = true ; try { java.lang.System.logI ( "Checking for leaks" ) ; detector.checkForLeaks ( ) ; leaksDetected = false ; } catch ( java.lang.AssertionError expected ) { } if ( ! leaksDetected ) { fail ( "Did not detect any leaks" ) ; } } }
Source:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.builder.resources.ResourceSet mergedSet = com.android.builder.resources.ResourceMergerTest.getMergedSet ( ) ; verifyResources ( mergedSet , "drawable/icon" , "drawable-ldpi/icon" , "drawable/icon2" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }

Target:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.builder.resources.ResourceMerger merger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; verifyResourceExists ( merger , "drawable/icon" , "drawable-ldpi/icon" , "drawable/icon2" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }
Source:
public static void setVolteOnWarnDisable ( android.content.Context context , boolean enable ) { android.content.SharedPreferences.Editor eabPref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) . edit ( ) ; eabPref.putBoolean ( com.android.service.ims.presence.SharedPrefUtil.VOLTE_ON_WARN_SHOW , enable ) . apply ( ) ; }

Target:
private static long validateDeviceTimestamp ( android.content.Context context , long lastSyncedTimestamp ) { long deviceCurrentTimeMillis = java.lang.System.currentTimeMillis ( ) ; if ( ( lastSyncedTimestamp != 0 ) && ( lastSyncedTimestamp > deviceCurrentTimeMillis ) ) { android.content.SharedPreferences.Editor eabPref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) . edit ( ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_CHANGED_PREF_KEY , 0 ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_DELETE_PREF_KEY , 0 ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_PROFILE_CHANGED_PREF_KEY , 0 ) ; eabPref.commit ( ) ; lastSyncedTimestamp = 0 ; } return lastSyncedTimestamp ; }
Source:
public void test_init_limitting_to_1method_and_run_for_SuiteTest_should_throw_exception ( ) { java.lang.Class < ? > target = vogar.target.junit3.SuiteTest.class ; try { runner.init ( monitor , "" , "testSimple" , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , null ) ; fail ( "should throw ClassCastException." ) ; } catch ( java.lang.ClassCastException e ) { } }

Target:
public void test_run_for_SimpleTest2_limiting_to_1method_with_both_run_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 , "testSimple3" , 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:
static < E > com.google.common.collect.Multiset < E > forSet ( java.util.Set < E > set ) { return new com.google.common.collect.Multisets.SetMultiset < E > ( set ) ; }

Target:
public static < E > com.google.common.collect.Multiset < E > filter ( com.google.common.collect.Multiset < E > unfiltered , com.google.common.base.Predicate < ? super E > predicate ) { if ( unfiltered instanceof com.google.common.collect.Multisets.FilteredMultiset ) { com.google.common.collect.Multisets.FilteredMultiset < E > filtered = ( ( com.google.common.collect.Multisets.FilteredMultiset < E > ) ( unfiltered ) ) ; com.google.common.base.Predicate < E > combinedPredicate = com.google.common.base.Predicates.< E > and ( filtered.predicate , predicate ) ; return new com.google.common.collect.Multisets.FilteredMultiset < E > ( filtered.unfiltered , combinedPredicate ) ; } return new com.google.common.collect.Multisets.FilteredMultiset < E > ( unfiltered , predicate ) ; }
Source:
public void disable ( java.lang.String id ) { disable.add ( id ) ; severities.put ( id , Severity.IGNORE ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Integer > getSeverityOverrides ( ) { if ( ( ( severities ) == null ) || ( severities.isEmpty ( ) ) ) { return null ; } java.util.Map < java.lang.String , java.lang.Integer > map = com.google.common.collect.Maps.newHashMapWithExpectedSize ( severities.size ( ) ) ; for ( java.util.Map.Entry < java.lang.String , com.android.tools.lint.detector.api.Severity > entry : severities.entrySet ( ) ) { map.put ( entry.getKey ( ) , com.android.build.gradle.internal.dsl.LintOptions.convert ( entry.getValue ( ) ) ) ; } return map ; }
Source:
public synchronized com.android.jack.ir.sourceinfo.FileSourceInfo create ( @ javax.annotation.Nonnull java.lang.String fileName ) { com.android.jack.ir.sourceinfo.FileSourceInfo newInstance = canonicalFileSourceInfos.get ( fileName ) ; if ( newInstance == null ) { newInstance = new com.android.jack.ir.sourceinfo.FileSourceInfo ( fileName ) ; canonicalFileSourceInfos.put ( fileName , newInstance ) ; } return newInstance ; }

Target:
public com.android.jack.ir.sourceinfo.FileSourceInfo create ( @ javax.annotation.Nonnull java.lang.String fileName ) { com.android.jack.ir.sourceinfo.FileSourceInfo newInstance = canonicalFileSourceInfos.get ( fileName ) ; if ( newInstance == null ) { newInstance = new com.android.jack.ir.sourceinfo.FileSourceInfo ( fileName ) ; com.android.jack.ir.sourceinfo.FileSourceInfo previousValue = canonicalFileSourceInfos.putIfAbsent ( fileName , newInstance ) ; if ( previousValue != null ) { newInstance = previousValue ; } } return newInstance ; }
Source:
public void run ( ) { int token = com.android.mms.ui.ConversationList.DELETE_CONVERSATION_TOKEN ; if ( ( mThreadIds ) == null ) { com.android.mms.data.Conversation.startDeleteAll ( mHandler , token , mDeleteLockedMessages ) ; com.android.mms.util.DraftCache.getInstance ( ) . refresh ( ) ; } else { com.android.mms.data.Conversation.startDelete ( mHandler , token , mDeleteLockedMessages , mThreadIds ) ; } }

Target:
public void run ( ) { int token = com.android.mms.ui.ConversationList.DELETE_CONVERSATION_TOKEN ; if ( ( mContext ) instanceof com.android.mms.ui.ConversationList ) { ( ( com.android.mms.ui.ConversationList ) ( mContext ) ) . unbindListeners ( mThreadIds ) ; } if ( ( mThreadIds ) == null ) { com.android.mms.data.Conversation.startDeleteAll ( mHandler , token , mDeleteLockedMessages ) ; com.android.mms.util.DraftCache.getInstance ( ) . refresh ( ) ; } else { com.android.mms.data.Conversation.startDelete ( mHandler , token , mDeleteLockedMessages , mThreadIds ) ; } }
Source:
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 ) ; } }

Target:
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 ) ; } }
Source:
public boolean sendMessage ( android.bluetooth.BluetoothDevice device , android.net.Uri [ ] contacts , java.lang.String message , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveredIntent ) { com.android.bluetooth.mapclient.MapClientService service = getService ( ) ; if ( service == null ) { return false ; } android.util.Log.d ( com.android.bluetooth.mapclient.MapClientService.TAG , "Checking Permission of sendMessage" ) ; mService.enforceCallingOrSelfPermission ( Manifest.permission.SEND_SMS , "Need SEND_SMS permission" ) ; return service.sendMessage ( device , contacts , message , sentIntent , deliveredIntent ) ; }

Target:
public boolean sendMessage ( android.bluetooth.BluetoothDevice device , android.net.Uri [ ] contacts , java.lang.String message , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveredIntent ) { com.android.bluetooth.mapclient.MapClientService service = getService ( ) ; if ( service == null ) { return false ; } if ( com.android.bluetooth.mapclient.MapClientService.DBG ) android.util.Log.d ( com.android.bluetooth.mapclient.MapClientService.TAG , "Checking Permission of sendMessage" ) ; mService.enforceCallingOrSelfPermission ( Manifest.permission.SEND_SMS , "Need SEND_SMS permission" ) ; return service.sendMessage ( device , contacts , message , sentIntent , deliveredIntent ) ; }
Source:
public void onValues ( boolean success , java.lang.String errMsg ) { if ( success ) return ; android.util.Log.e ( com.android.server.connectivity.tethering.OffloadHardwareInterface.TAG , ( "stopOffload failed: " + errMsg ) ) ; }

Target:
public void stopOffloadControl ( ) { if ( ( mOffloadControl ) != null ) { try { mOffloadControl.stopOffload ( ( boolean success , java.lang.String errMsg ) -> { if ( ! success ) mLog.e ( ( "stopOffload failed: " + errMsg ) ) ; } ) ; } catch ( android.os.RemoteException e ) { mLog.e ( ( "failed to stopOffload: " + e ) ) ; } } mOffloadControl = null ; mTetheringOffloadCallback = null ; mControlCallback = null ; }
Source:
private void killApplication ( java.lang.String pkgName , int appId , java.lang.String reason ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithAppId ( pkgName , appId , reason ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
private void killApplication ( java.lang.String pkgName , int appId , java.lang.String reason ) { killApplication ( pkgName , appId , UserHandle.USER_ALL , reason ) ; }
Source:
public void testCharacteristics ( ) { if ( ! ( android.net.wifi.aware.cts.TestUtils.shouldTestWifiAware ( getContext ( ) ) ) ) { return ; } android.net.wifi.aware.Characteristics characteristics = mWifiAwareManager.getCharacteristics ( ) ; assertNotNull ( "Wi-Fi Aware characteristics are null" , characteristics ) ; assertEquals ( "Service Name Length" , characteristics.getMaxServiceNameLength ( ) , 255 ) ; assertEquals ( "Service Specific Information Length" , characteristics.getMaxServiceSpecificInfoLength ( ) , 255 ) ; assertEquals ( "Match Filter Length" , characteristics.getMaxMatchFilterLength ( ) , 255 ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( ! ( android.net.wifi.aware.cts.TestUtils.shouldTestWifiAware ( getContext ( ) ) ) ) { super . tearDown ( ) ; return ; } synchronized ( mLock ) { for ( android.net.wifi.aware.WifiAwareSession session : mSessions ) { session.destroy ( ) ; } mSessions.clear ( ) ; } super . tearDown ( ) ; }
Source:
private void startContactInfoSearch ( ) { com.android.incallui.call.DialerCall dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( dialerCall == null ) { dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getOutgoingCall ( ) ; } if ( dialerCall == null ) { dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getActiveOrBackgroundCall ( ) ; } if ( dialerCall != null ) { contactInfoCache.findInfo ( dialerCall , false , new com.android.incallui.NewReturnToCallController.ReturnToCallContactInfoCacheCallback ( this ) ) ; } }

Target:
private void startContactInfoSearch ( ) { com.android.incallui.call.DialerCall dialerCall = getCall ( ) ; if ( dialerCall != null ) { contactInfoCache.findInfo ( dialerCall , false , new com.android.incallui.NewReturnToCallController.ReturnToCallContactInfoCacheCallback ( this ) ) ; } }
Source:
static synchronized void routeHfpAudio ( boolean enable ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "hfp_enable=" + enable ) ) ; } if ( enable && ( ! ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioIsRouted ) ) ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioManager.setParameters ( "hfp_enable=true" ) ; } else if ( ! enable ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioManager.setParameters ( "hfp_enable=false" ) ; } com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioIsRouted = enable ; }

Target:
synchronized void routeHfpAudio ( boolean enable ) { if ( ( mAudioManager ) == null ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "AudioManager is null!" ) ; return ; } if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "hfp_enable=" + enable ) ) ; } if ( enable && ( ! ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioIsRouted ) ) ) { mAudioManager.setParameters ( "hfp_enable=true" ) ; } else if ( ! enable ) { mAudioManager.setParameters ( "hfp_enable=false" ) ; } com.android.bluetooth.hfpclient.HeadsetClientStateMachine.sAudioIsRouted = enable ; }
Source:
public void update ( org.eclipse.jface.viewers.ViewerCell cell ) { com.android.sdklib.internal.avd.HardwareProperties.HardwareProperty prop = mHardwareMap.get ( cell.getElement ( ) ) ; cell.setText ( ( prop != null ? prop.getAbstract ( ) : "" ) ) ; }

Target:
public void update ( org.eclipse.jface.viewers.ViewerCell cell ) { java.lang.String name = cell.getElement ( ) . toString ( ) ; com.android.sdklib.internal.avd.HardwareProperties.HardwareProperty prop = mHardwareMap.get ( name ) ; if ( prop != null ) { cell.setText ( prop.getAbstract ( ) ) ; } else { cell.setText ( java.lang.String.format ( "%1$s (Unknown)" , name ) ) ; } }
Source:
public java.lang.String getMessage ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "Duplicate files copied in APK " ) . append ( mArchivePath ) . append ( '\n' ) ; sb.append ( "\tFile 1: " ) . append ( mFile1 ) . append ( '\n' ) ; sb.append ( "\tFile 2: " ) . append ( mFile1 ) . append ( '\n' ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getMessage ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "Duplicate files copied in APK " ) . append ( mArchivePath ) . append ( '\n' ) ; sb.append ( "\tFile 1: " ) . append ( mFile1 ) . append ( '\n' ) ; sb.append ( "\tFile 2: " ) . append ( mFile2 ) . append ( '\n' ) ; return sb.toString ( ) ; }
Source:
private static boolean compareSubstring ( @ org.jetbrains.annotations.NotNull com.intellij.diff.fragments.MergeLineFragment fragment , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.editor.ex.EditorEx > editors , @ org.jetbrains.annotations.NotNull com.intellij.diff.tools.simple.ThreeSide side1 , @ org.jetbrains.annotations.NotNull com.intellij.diff.tools.simple.ThreeSide side2 ) { return com.intellij.diff.tools.simple.SimpleThreesideDiffChange.compareSubstring ( fragment , editors , side1 , side2 , ComparisonPolicy.DEFAULT ) ; }

Target:
private static boolean compareWithBase ( @ org.jetbrains.annotations.NotNull com.intellij.diff.fragments.MergeLineFragment fragment , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.editor.ex.EditorEx > editors , @ org.jetbrains.annotations.NotNull com.intellij.diff.tools.simple.ThreeSide side ) { java.lang.CharSequence content1 = com.intellij.diff.tools.simple.SimpleThreesideDiffChange.getRangeContent ( fragment , editors , ThreeSide.BASE ) ; java.lang.CharSequence content2 = com.intellij.diff.tools.simple.SimpleThreesideDiffChange.getRangeContent ( fragment , editors , side ) ; return com.intellij.openapi.util.text.StringUtil.equals ( content1 , content2 ) ; }
Source:
public void publicMethods ( ) throws java.lang.Exception { android.content.Context context = mock ( android.content.Context.class ) ; new com.android.volley.toolbox.AndroidAuthenticator ( context , mAccount , "cooltype" ) ; new com.android.volley.toolbox.AndroidAuthenticator ( context , mAccount , "cooltype" , true ) ; org.junit.Assert.assertSame ( mAccount , mAuthenticator.getAccount ( ) ) ; }

Target:
public void publicMethods ( ) throws java.lang.Exception { android.content.Context context = org.mockito.Mockito.mock ( android.content.Context.class ) ; new com.android.volley.toolbox.AndroidAuthenticator ( context , mAccount , "cooltype" ) ; new com.android.volley.toolbox.AndroidAuthenticator ( context , mAccount , "cooltype" , true ) ; org.junit.Assert.assertSame ( mAccount , mAuthenticator.getAccount ( ) ) ; }
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.isUserDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isUserDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }
Source:
public long getGlobalEndTime ( ) { return mGlobalEndTime ; }

Target:
void endTrace ( java.util.ArrayList < com.android.traceview.TraceAction > trace ) { for ( int i = ( mStack.size ( ) ) - 1 ; i >= 1 ; i -- ) { com.android.traceview.Call call = mStack.get ( i ) ; call.mGlobalEndTime = mGlobalEndTime ; call.mThreadEndTime = mThreadEndTime ; if ( trace != null ) { trace.add ( new com.android.traceview.TraceAction ( TraceAction.ACTION_INCOMPLETE , call ) ) ; } } mStack.clear ( ) ; mStackMethods.clear ( ) ; }
Source:
private android.net.wifi.ScanResult findMatchingScanResult ( android.net.wifi.ScanResult [ ] scanResults , android.net.wifi.WifiConfiguration wifiConfiguration ) { java.lang.String ssid = android.net.wifi.WifiInfo.removeDoubleQuotes ( wifiConfiguration.SSID ) ; java.lang.String bssid = wifiConfiguration.BSSID ; for ( int i = 0 ; i < ( scanResults.length ) ; i ++ ) { if ( ( ssid.equals ( scanResults [ i ] . SSID ) ) && ( bssid.equals ( scanResults [ i ] . BSSID ) ) ) { return scanResults [ i ] ; } } return null ; }

Target:
private com.android.server.wifi.ScanDetail findMatchingScanDetail ( java.util.List < com.android.server.wifi.ScanDetail > scanDetails , android.net.wifi.WifiConfiguration wifiConfiguration ) { java.lang.String ssid = android.net.wifi.WifiInfo.removeDoubleQuotes ( wifiConfiguration.SSID ) ; java.lang.String bssid = wifiConfiguration.BSSID ; for ( int i = 0 ; i < ( scanDetails.size ( ) ) ; i ++ ) { final com.android.server.wifi.ScanDetail scanDetail = scanDetails.get ( i ) ; if ( ( ssid.equals ( scanDetail.getSSID ( ) ) ) && ( bssid.equals ( scanDetail.getBSSIDString ( ) ) ) ) { return scanDetail ; } } return null ; }
Source:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( reference ) ) ; if ( ( referenceQualifier.mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.SOFT ) ) { if ( ( ( compareQualifier.mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.EXPOSED ) ) && ( ( mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.SOFT ) ) ) { return true ; } } return false ; }

Target:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( qualifier ) ) ; if ( ( ( referenceQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) && ( ( mValue ) == ( com.android.sdklib.resources.KeyboardState.EXPOSED ) ) ) { return true ; } return ( referenceQualifier.mValue ) == ( mValue ) ; } return false ; }
Source:
public void testDuplicateInsertionCarrierInfo ( ) { try { android.content.ContentValues contentValues = com.android.providers.telephony.CarrierIdProviderTest.createCarrierInfoInternal ( ) ; mContentResolver.insert ( CarrierIdProvider.CONTENT_URI , contentValues ) ; mContentResolver.insert ( CarrierIdProvider.CONTENT_URI , contentValues ) ; org.junit.Assert.fail ( "should throw an exception for duplicate carrier info" ) ; } catch ( java.lang.Exception e ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProviderTest.TAG , ( "Error inserting carrier info:" + e ) ) ; } }

Target:
public void testDuplicateInsertionCarrierInfo ( ) { try { android.content.ContentValues contentValues = com.android.providers.telephony.CarrierIdProviderTest.createCarrierInfoInternal ( ) ; mContentResolver.insert ( CarrierIdentification.CONTENT_URI , contentValues ) ; mContentResolver.insert ( CarrierIdentification.CONTENT_URI , contentValues ) ; org.junit.Assert.fail ( "should throw an exception for duplicate carrier info" ) ; } catch ( java.lang.Exception e ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProviderTest.TAG , ( "Error inserting carrier info:" + e ) ) ; } }
Source:
public void sendMessage ( @ android.annotation.NonNull java.lang.Object peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: 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.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }

Target:
public void sendMessage ( @ android.annotation.NonNull android.net.wifi.aware.WifiAwareManager.PeerHandle peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: 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.WifiAwareDiscoveryBaseSession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }
Source:
public void compare ( ) throws com.android.jack.comparator.DifferenceFoundException , com.android.jack.test.comparator.ComparatorException { try { new com.android.jack.comparator.DexComparator ( withDebugInfo , strict , compareDebugInfoBinary , compareInstructionNumber , instructionNumberTolerance ) . compare ( reference , candidate ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.test.comparator.ComparatorException ( e ) ; } }

Target:
public void compare ( ) throws com.android.jack.comparator.DifferenceFoundException , com.android.jack.test.comparator.ComparatorException { try { new com.android.jack.comparator.DexComparator ( withDebugInfo , strict , compareDebugInfoBinary , compareInstructionNumber , instructionNumberTolerance ) . compare ( reference , candidate ) ; } catch ( com.android.sched.util.file.CannotReadException | com.android.sched.util.file.CannotCloseException e ) { throw new com.android.jack.test.comparator.ComparatorException ( e ) ; } }
Source:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }

Target:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }