Home
last modified time | relevance | path

Searched refs:getIntExtra (Results 1 – 25 of 268) sorted by relevance

1234567891011

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java76 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLED); in setup()
117 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLING); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
125 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLED); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
133 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLING); in getWifiState_receiveWifiStateEnabling_getWifiStateEnabling()
141 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLED); in getWifiState_receiveWifiStateEnabled_getWifiStateEnabled()
150 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLED); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
155 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_UNKNOWN); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
162 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLED); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
167 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_UNKNOWN); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
176 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLING); in isWifiEnabled_receiveWifiStateDisabling_returnFalse()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java67 status = batteryChangedIntent.getIntExtra(EXTRA_STATUS, BATTERY_STATUS_UNKNOWN); in BatteryStatus()
68 plugged = batteryChangedIntent.getIntExtra(EXTRA_PLUGGED, 0); in BatteryStatus()
69 level = batteryChangedIntent.getIntExtra(EXTRA_LEVEL, 0); in BatteryStatus()
70 health = batteryChangedIntent.getIntExtra(EXTRA_HEALTH, BATTERY_HEALTH_UNKNOWN); in BatteryStatus()
73 final int maxChargingMicroAmp = batteryChangedIntent.getIntExtra(EXTRA_MAX_CHARGING_CURRENT, in BatteryStatus()
75 int maxChargingMicroVolt = batteryChangedIntent.getIntExtra(EXTRA_MAX_CHARGING_VOLTAGE, -1); in BatteryStatus()
190 int status = batteryChangedIntent.getIntExtra(EXTRA_STATUS, BATTERY_STATUS_UNKNOWN); in isCharged()
191 int level = batteryChangedIntent.getIntExtra(EXTRA_LEVEL, 0); in isCharged()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DTextScrollActivity.java43 mHitPercentage = getIntent().getIntExtra(EXTRA_HIT_RATE, in onCreate()
46 final int runId = getIntent().getIntExtra("com.android.benchmark.RUN_ID", 0); in onCreate()
47 final int iteration = getIntent().getIntExtra("com.android.benchmark.ITERATION", -1); in onCreate()
48 final int id = getIntent().getIntExtra(BenchmarkRegistry.EXTRA_ID, -1); in onCreate()
DListViewScrollActivity.java45 final int runId = getIntent().getIntExtra("com.android.benchmark.RUN_ID", 0); in onCreate()
46 final int iteration = getIntent().getIntExtra("com.android.benchmark.ITERATION", -1); in onCreate()
DFullScreenOverdrawActivity.java81 final int runId = getIntent().getIntExtra("com.android.benchmark.RUN_ID", 0); in onCreate()
82 final int iteration = getIntent().getIntExtra("com.android.benchmark.ITERATION", -1); in onCreate()
DShadowGridActivity.java44 final int runId = getIntent().getIntExtra("com.android.benchmark.RUN_ID", 0); in onCreate()
45 final int iteration = getIntent().getIntExtra("com.android.benchmark.ITERATION", -1); in onCreate()
DEditTextInputActivity.java37 final int runId = getIntent().getIntExtra("com.android.benchmark.RUN_ID", 0); in onCreate()
38 final int iteration = getIntent().getIntExtra("com.android.benchmark.ITERATION", -1); in onCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyTester.java273 int code = intent.getIntExtra(EXTRA_FAILURE_CODE, 0); in handleSuppServiceFailedIntent()
360 intent.getIntExtra(EXTRA_DIALOGID, 0), in handleTestDialogEventPackageIntent()
363 intent.getIntExtra(EXTRA_STATE, in handleTestDialogEventPackageIntent()
374 int code = intent.getIntExtra(EXTRA_CODE, -1); in sendTestSuppServiceNotification()
375 int type = intent.getIntExtra(EXTRA_TYPE, -1); in sendTestSuppServiceNotification()
397 ss.setVoiceRegState(mServiceStateTestIntent.getIntExtra(EXTRA_VOICE_REG_STATE, in overrideServiceState()
402 ss.setDataRegState(mServiceStateTestIntent.getIntExtra(EXTRA_DATA_REG_STATE, in overrideServiceState()
421 ss.setNrFrequencyRange(mServiceStateTestIntent.getIntExtra(EXTRA_NR_FREQUENCY_RANGE, in overrideServiceState()
434 nri.setNrState(mServiceStateTestIntent.getIntExtra(EXTRA_NR_STATE, in overrideServiceState()
449 mServiceStateTestIntent.getIntExtra(EXTRA_VOICE_RAT, in overrideServiceState()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java329 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in onReceive()
344 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
370 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
396 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
410 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
419 intent.getIntExtra(Intent.EXTRA_UID, 0), false); in onReceive()
425 intent.getIntExtra(Intent.EXTRA_UID, 0), true); in onReceive()
427 onUidRemoved(intent.getIntExtra(Intent.EXTRA_UID, 0)); in onReceive()
430 onHandleUserStop(intent, intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in onReceive()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java104 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDisableAllMeteredApns()
112 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onEnableAllMeteredApns()
136 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onRegisterDefaultNetworkAvail()
144 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDeregisterDefaultNetworkAvail()
152 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDisableRadio()
160 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onEnableRadio()
203 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onResetAllCarrierActions()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDockObserverTest.java71 .get().getIntExtra(Intent.EXTRA_DOCK_STATE, -1)) in assertDockEventIntentWithExtraThenUndock()
74 .get().getIntExtra(Intent.EXTRA_DOCK_STATE, -1)) in assertDockEventIntentWithExtraThenUndock()
100 assertThat(futureIntent.get().getIntExtra(Intent.EXTRA_DOCK_STATE, -1)) in testDockIntentBroadcast_onlyAfterBootReady()
158 assertThat(futureIntent.get().getIntExtra(Intent.EXTRA_DOCK_STATE, -1)) in testDockIntentBroadcast_deviceNotProvisioned()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java87 notificationId = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_NOTIF_ID, -1); in onCreate()
88 …timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeou… in onCreate()
89 …default_response = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_DEFAULT_RESPONSE, GpsNe… in onCreate()
/frameworks/base/services/core/java/com/android/server/powerstats/
DBatteryTrigger.java42 int newBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
62 mBatteryLevel = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); in BatteryTrigger()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcFailBringUp.java57 mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER); in saveParameters()
59 intent.getIntExtra(FAIL_CAUSE, DEFAULT_FAIL_CAUSE)); in saveParameters()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java205 int widthDp = activity.getIntent().getIntExtra(EXTRA_CARD_WIDTH_DP, in initRowsAdapterBuilder()
207 int heightDp = activity.getIntent().getIntExtra(EXTRA_CARD_HEIGHT_DP, in initRowsAdapterBuilder()
209 int rows = activity.getIntent().getIntExtra(EXTRA_ROWS, DEFAULT_ROWS); in initRowsAdapterBuilder()
210 int cardsPerRow = activity.getIntent().getIntExtra(EXTRA_CARDS_PER_ROW, in initRowsAdapterBuilder()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java94 batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, /* defaultValue= */ -1) > 0; in isBatteryLevelSufficient()
101 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, /* defaultValue= */ -1); in calculateBatteryPercentage()
102 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, /* defaultValue= */ -1); in calculateBatteryPercentage()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelperTest.java49 assertThat(nextIntent.getIntExtra(EXTRA_RESULT_CODE, 0)).isEqualTo(1); in testGetNextIntentWithNullData()
64 assertThat(nextIntent.getIntExtra(EXTRA_RESULT_CODE, 0)).isEqualTo(1); in testGetNextIntentWithData()
65 assertThat(nextIntent.getIntExtra("testExtra", 0)).isEqualTo(1); in testGetNextIntentWithData()
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DCustomTestActivity.java42 final int layoutId = getIntent().getIntExtra(INTENT_EXTRA_LAYOUT_ID, in onCreate()
47 getIntent().getIntExtra(INTENT_EXTRA_CUSTOM_VIEWS, MAX_VIEWS)); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java214 * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0) in onReceive()
215 / intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100)); in onReceive()
216 mPluggedChargingSource = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in onReceive()
218 final int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
223 && intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) in onReceive()
236 int batteryHealth = intent.getIntExtra(EXTRA_HEALTH, BATTERY_HEALTH_UNKNOWN); in onReceive()
/frameworks/base/core/java/android/app/admin/
DDelegatedAdminReceiver.java158 int uid = intent.getIntExtra(EXTRA_CHOOSE_PRIVATE_KEY_SENDER_UID, -1); in onReceive()
165 int networkLogsCount = intent.getIntExtra(EXTRA_NETWORK_LOGS_COUNT, 0); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetPinnedReceiver.java68 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, INVALID_WIDGET_ID); in onReceive()
76 int userId = intent.getIntExtra(Intent.EXTRA_USER_ID, INVALID_USER_ID); in onReceive()
/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
DSimpleService.java71 int command = intent.getIntExtra(EXTRA_COMMAND, COMMAND_INVALID); in onStartCommand()
78 bindToService(targetPkg, intent.getIntExtra(EXTRA_FLAGS, 0), in onStartCommand()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierSignalAgentTest.java229 assertEquals(FAKE_PCO_INTENT.getIntExtra( in testLegacyConversionSupport()
231 intent.getIntExtra(TelephonyIntents.EXTRA_PCO_ID, Integer.MIN_VALUE)); in testLegacyConversionSupport()
265 FAKE_NETWORK_FAILED_INTENT.getIntExtra( in testLegacyConversionSupport()
267 intent.getIntExtra(TelephonyIntents.EXTRA_ERROR_CODE, Integer.MIN_VALUE)); in testLegacyConversionSupport()
301 int apnType = originalIntent.getIntExtra(TelephonyManager.EXTRA_APN_TYPE, in verifyLegacyApnTypes()
309 legacyIntent.getIntExtra(TelephonyIntents.EXTRA_APN_TYPE_INT, Integer.MIN_VALUE)); in verifyLegacyApnTypes()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectBrowser.java113 mStorageID = getIntent().getIntExtra("storage", 0); in onCreate()
114 mObjectID = getIntent().getIntExtra("object", 0); in onCreate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DEventResultPersister.java182 int status = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 0); in onEventReceived()
190 int id = intent.getIntExtra(EXTRA_ID, 0); in onEventReceived()
192 int legacyStatus = intent.getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, 0); in onEventReceived()

1234567891011