Home
last modified time | relevance | path

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

123456

/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/
Dbattery-monitoring.jd49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
54 int chargePlug = battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
79 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
83 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 <pre>int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
97 int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/
Dbattery-monitoring.jd49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
54 int chargePlug = battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
79 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
83 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 <pre>int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
97 int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/
Dbattery-monitoring.jd49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
54 int chargePlug = battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
79 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
83 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 <pre>int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
97 int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/
Dbattery-monitoring.jd49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
54 int chargePlug = battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
79 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
83 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 <pre>int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
97 int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcFailBringUp.java53 mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER); in saveParameters()
55 intent.getIntExtra(FAIL_CAUSE, DEFAULT_FAIL_CAUSE.getErrorCode())); in saveParameters()
57 intent.getIntExtra(SUGGESTED_RETRY_TIME, DEFAULT_SUGGESTED_RETRY_TIME); in saveParameters()
DDcRetryAlarmController.java64 int what = intent.getIntExtra(INTENT_RETRY_ALARM_WHAT, Integer.MAX_VALUE);
65 int tag = intent.getIntExtra(INTENT_RETRY_ALARM_TAG, Integer.MAX_VALUE);
/frameworks/support/customtabs/tests/src/android/support/customtabs/
DCustomTabsIntentTest.java44 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColor()
52 color == intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColorIsNotAResource()
54 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColorIsNotAResource()
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java279 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in onReceive()
293 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
319 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
345 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
362 intent.getIntExtra(Intent.EXTRA_UID, 0), false); in onReceive()
368 intent.getIntExtra(Intent.EXTRA_UID, 0), true); in onReceive()
370 onUidRemoved(intent.getIntExtra(Intent.EXTRA_UID, 0)); in onReceive()
373 onHandleUserStop(intent, intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java78 * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0) in onReceive()
79 / intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100)); in onReceive()
80 mPluggedIn = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0; in onReceive()
82 final int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
DWifiSignalController.java98 mCurrentState.enabled = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in handleBroadcast()
120 mCurrentState.rssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200); in handleBroadcast()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java97 notificationId = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_NOTIF_ID, -1); in onCreate()
98 …timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeou… in onCreate()
99 …default_response = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_DEFAULT_RESPONSE, GpsNe… in onCreate()
145 int notifId = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_NOTIF_ID, -1); in handleNIVerify()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java154 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, in onReceive()
211 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE, in onReceive()
265 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, in onReceive()
292 int reason = intent.getIntExtra(BluetoothDevice.EXTRA_REASON, in onReceive()
368 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, anythingButUnDocked); in onReceive()
DLocalBluetoothProfileManager.java227 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, 0); in onReceive()
228 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 0); in onReceive()
249 int role = intent.getIntExtra(BluetoothPan.EXTRA_LOCAL_ROLE, 0); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java156 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
158 mBatteryStatus = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
161 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
163 mInvalidCharger = intent.getIntExtra(BatteryManager.EXTRA_INVALID_CHARGER, 0); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java478 * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0) in onReceive()
479 / intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100)); in onReceive()
481 plugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in onReceive()
483 health = intent.getIntExtra(BatteryManager.EXTRA_HEALTH, in onReceive()
485 status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
488 voltage = intent.getIntExtra(BatteryManager.EXTRA_VOLTAGE, 0); in onReceive()
489 temperature = intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE, 0); in onReceive()
/frameworks/base/docs/html/training/monitoring-device-state/
Dbattery-monitoring.jd63 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
68 int chargePlug = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
103 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
107 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
122 <pre>int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
123 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/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/docs/html-intl/intl/es/training/monitoring-device-state/
Dbattery-monitoring.jd49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
54 int chargePlug = battery.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
79 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
83 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 <pre>int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
97 int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DGridActivity.java119 mLayoutId = intent.getIntExtra(EXTRA_LAYOUT_RESOURCE_ID, R.layout.horizontal_grid); in onCreate()
120 mChildLayout = intent.getIntExtra(EXTRA_CHILD_LAYOUT_ID, -1); in onCreate()
162 mNumItems = intent.getIntExtra(EXTRA_NUM_ITEMS, DEFAULT_NUM_ITEMS); in onCreate()
187 int position = intent.getIntExtra("SELECT_POSITION", -1); in onNewIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogController.java784 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
785 final int level = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, -1); in onReceive()
787 .getIntExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, -1); in onReceive()
792 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
794 .getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_DEVICES, -1); in onReceive()
796 .getIntExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_DEVICES, -1); in onReceive()
801 final int rm = intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1); in onReceive()
806 final int rm = intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1); in onReceive()
811 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestAlertActivity.java18 mId = intent.getIntExtra("id", -1); in onResume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java43 mCurrentUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0); in onReceive()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java560 final int status = intent.getIntExtra(EXTRA_STATUS, BATTERY_STATUS_UNKNOWN);
561 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
562 final int level = intent.getIntExtra(EXTRA_LEVEL, 0);
563 final int health = intent.getIntExtra(EXTRA_HEALTH, BATTERY_HEALTH_UNKNOWN);
578 intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1), 0));
588 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY,
608 intent.getIntExtra(Intent.EXTRA_USER_HANDLE, getSendingUserId()), 0));
678 int slotId = intent.getIntExtra(PhoneConstants.SLOT_KEY, 0); in fromIntent()
679 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in fromIntent()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java121 final int enableFlags = intent.getIntExtra("enableFlags", 0);
122 final int disableFlags = intent.getIntExtra("disableFlags", 0);
132 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE,
141 mCharging = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
/frameworks/support/v4/java/android/support/v4/content/
DWakefulBroadcastReceiver.java113 final int id = intent.getIntExtra(EXTRA_WAKE_LOCK_ID, 0); in completeWakefulIntent()

123456