Home
last modified time | relevance | path

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

1234567

/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/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/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/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/core/java/com/android/internal/content/
DPackageMonitor.java294 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, in onReceive()
308 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
334 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
360 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
374 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); in onReceive()
383 intent.getIntExtra(Intent.EXTRA_UID, 0), false); in onReceive()
389 intent.getIntExtra(Intent.EXTRA_UID, 0), true); in onReceive()
391 onUidRemoved(intent.getIntExtra(Intent.EXTRA_UID, 0)); in onReceive()
394 onHandleUserStop(intent, intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in onReceive()
/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()
/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()
DUnlaunchableAppActivity.java67 mReason = intent.getIntExtra(EXTRA_UNLAUNCHABLE_REASON, -1); in onCreate()
68 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); in onCreate()
/frameworks/support/customtabs/tests/src/android/support/customtabs/
DCustomTabsIntentTest.java57 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColor()
66 color == intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColorIsNotAResource()
68 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); in testToolbarColorIsNotAResource()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java115 * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0) in onReceive()
116 / intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100)); in onReceive()
117 mPluggedIn = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0; in onReceive()
119 final int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
/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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java37 enabled = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in handleBroadcast()
59 rssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200); in handleBroadcast()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java117 int level = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); in getBatteryLevel()
118 int scale = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_SCALE, 100); in getBatteryLevel()
128 int plugType = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in getBatteryStatus()
129 int status = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_STATUS, in getBatteryStatus()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java140 int batteryLevel = intent.getIntExtra(BluetoothHeadsetClient.EXTRA_BATTERY_LEVEL, in onReceive()
149 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
152 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java113 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, -1); in onReceive()
127 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive()
171 int varient = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, -1); in onReceive()
190 int state = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, -1); in onReceive()
248 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
279 if (mRole != intent.getIntExtra(BluetoothPan.EXTRA_LOCAL_ROLE, -1)) { in onReceive()
298 int state = intent.getIntExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, in onReceive()
439 final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, in enable()
482 final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, in disable()
531 final int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, in discoverable()
[all …]
/frameworks/base/docs/html/training/monitoring-device-state/
Dbattery-monitoring.jd65 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
70 int chargePlug = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
105 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
109 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
124 <pre>int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
125 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridActivity.java131 mLayoutId = intent.getIntExtra(EXTRA_LAYOUT_RESOURCE_ID, R.layout.horizontal_grid); in onCreate()
132 mChildLayout = intent.getIntExtra(EXTRA_CHILD_LAYOUT_ID, -1); in onCreate()
147 mNinePatchShadow = intent.getIntExtra(EXTRA_NINEPATCH_SHADOW, 0); in onCreate()
177 mNumItems = intent.getIntExtra(EXTRA_NUM_ITEMS, DEFAULT_NUM_ITEMS); in onCreate()
202 int position = intent.getIntExtra("SELECT_POSITION", -1); in onNewIntent()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java716 int uid = intent.getIntExtra(EXTRA_CHOOSE_PRIVATE_KEY_SENDER_UID, -1); in onReceive()
735 int failureCode = intent.getIntExtra(EXTRA_BUGREPORT_FAILURE_REASON, in onReceive()
742 int networkLogsCount = intent.getIntExtra(EXTRA_NETWORK_LOGS_COUNT, 0); in onReceive()
/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/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java164 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive()
166 mBatteryStatus = intent.getIntExtra(BatteryManager.EXTRA_STATUS, in onReceive()
169 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
171 mInvalidCharger = intent.getIntExtra(BatteryManager.EXTRA_INVALID_CHARGER, 0); in onReceive()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DWapPushOverSmsTest.java97 assertEquals(0xFF, intent.getIntExtra("transactionId", 0)); in testDispatchWapPdu()
98 assertEquals(0x06, intent.getIntExtra("pduType", 0)); in testDispatchWapPdu()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogController.java769 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
770 final int level = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, -1); in onReceive()
772 .getIntExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, -1); in onReceive()
777 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
779 .getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_DEVICES, -1); in onReceive()
781 .getIntExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_DEVICES, -1); in onReceive()
787 final int rm = intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1); in onReceive()
792 final int rm = intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1); in onReceive()
797 final int stream = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java653 final int status = intent.getIntExtra(EXTRA_STATUS, BATTERY_STATUS_UNKNOWN);
654 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0);
655 final int level = intent.getIntExtra(EXTRA_LEVEL, 0);
656 final int health = intent.getIntExtra(EXTRA_HEALTH, BATTERY_HEALTH_UNKNOWN);
658 final int maxChargingMicroAmp = intent.getIntExtra(EXTRA_MAX_CHARGING_CURRENT, -1);
659 int maxChargingMicroVolt = intent.getIntExtra(EXTRA_MAX_CHARGING_VOLTAGE, -1);
688 intent.getIntExtra(AudioManager.EXTRA_RINGER_MODE, -1), 0));
698 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY,
719 intent.getIntExtra(Intent.EXTRA_USER_HANDLE, getSendingUserId()), 0));
741 int userId = intent.getIntExtra(USER_ID, -1);
[all …]
/frameworks/support/fragment/tests/java/android/support/v4/app/test/
DFragmentResultActivity.java32 int resultCode = getIntent().getIntExtra(EXTRA_RESULT_CODE, Activity.RESULT_OK); in onCreate()

1234567