/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
BatteryTestUtils.java | 34 0 /* plugged */, 40 public static Intent getCustomBatteryIntent(int plugged, int level, int scale, int status) { 42 intent.putExtra(BatteryManager.EXTRA_PLUGGED, plugged);
|
/frameworks/base/core/proto/android/service/ |
battery.proto | 31 // Plugged status of power sources 32 optional android.os.BatteryPluggedStateEnum plugged = 2;
|
/external/adhd/cras/src/common/ |
cras_iodev_info.h | 35 * plugged - Set true if this node is known to be plugged in. 36 * plugged_time - If plugged is true, this is the time it was attached. 52 int32_t plugged; member in struct:cras_ionode_info 68 * IONODE_ATTR_PLUGGED - set the node as plugged/unplugged.
|
/external/adhd/cras/src/server/ |
cras_alsa_jack.h | 6 * external jacks and report back when the plugged state of teh hack changes. 23 * plugged - non-zero if the jack is attached. 27 int plugged,
|
cras_alsa_io.c | 518 * Gets the first plugged node in list. This is used as the 526 * are selected. Just pick the first plugged one and let Chrome 529 if (n->plugged) 902 * Sets the initial plugged state and type of a node based on its 918 node->plugged = (node->position 921 if (node->plugged) 1087 int plugged) 1095 if (!strcmp(node->name, INTERNAL_SPEAKER) && plugged) { 1097 if (tmp->plugged && (tmp != node)) 1106 !plugged); [all...] |
cras_iodev.h | 53 * plugged - true if the device is plugged. 54 * plugged_time - If plugged is true, this is the time it was attached. 77 int plugged; member in struct:cras_ionode 368 * plugged - true if the device was plugged, false for unplugged. 370 void cras_ionode_plug_event(struct cras_ionode *node, int plugged);
|
cras_iodev.c | 608 /* This is called when a node is plugged/unplugged */ 609 static void plug_node(struct cras_ionode *node, int plugged) 611 if (node->plugged == plugged) 613 node->plugged = plugged; 614 if (plugged) { [all...] |
cras_hfp_iodev.c | 260 node->plugged = 1;
|
test_iodev.c | 210 node->plugged = 1;
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/ |
BatteryNotLowTracker.java | 54 * Based on BatteryService#shouldSendBatteryLowLocked(), but this ignores the previous plugged 55 * state - cannot guarantee the last plugged state because this isn't always tracking. 67 int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, BATTERY_PLUGGED_NONE); local 73 return (plugged != BATTERY_PLUGGED_NONE
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
PowerUI.java | 218 final boolean plugged = mPlugType != 0; 233 Slog.d(TAG, "plugged " + oldPlugged + " --> " + plugged); 250 maybeShowBatteryWarning(plugged, oldPlugged, oldBucket, bucket); 265 protected void maybeShowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, 291 if (shouldShowLowBatteryWarning(plugged, oldPlugged, oldBucket, bucket, 305 } else if (shouldDismissLowBatteryWarning(plugged, oldBucket, bucket, mTimeRemaining, 314 boolean shouldShowLowBatteryWarning(boolean plugged, boolean oldPlugged, int oldBucket, 318 return isEnhancedTrigger(plugged, timeRemaining, isPowerSaver, batteryStatus); 321 return !plugged [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
BatteryConstraintTest.java | 68 void setBatteryState(boolean plugged, int level) throws Exception { 69 if (plugged) { 87 // plugged/unplugged events. So we can get this updated after the last seq 91 if (curSeq == seq && curCharging == plugged) { 97 + ", plugged=" + plugged + " curCharging=" + curCharging); 145 * plugged in. 163 * plugged in. 183 * not plugged in but has sufficient power. 225 // Ensure the job runs once the device is plugged in [all...] |
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/ |
BatteryNotLowTrackerTest.java | 73 private Intent createBatteryChangedIntent(int plugged, int status, float percent) { 78 intent.putExtra(BatteryManager.EXTRA_PLUGGED, plugged); 86 int plugged, int status, float percentage, boolean expectedBatteryNotLow) { 87 mockContextReturns(createBatteryChangedIntent(plugged, status, percentage));
|
BatteryChargingTrackerTest.java | 77 int plugged = charging ? 1 : 0; local 78 intent.putExtra(BatteryManager.EXTRA_PLUGGED, plugged);
|
/external/adhd/cras/src/tests/ |
alsa_io_unittest.cc | 312 ASSERT_EQ(1, aio->base.active_node->plugged); 323 ASSERT_EQ(1, aio->base.active_node->plugged); 335 ASSERT_EQ(1, aio->base.active_node->plugged); 346 ASSERT_EQ(1, aio->base.active_node->plugged); 363 ASSERT_EQ(1, aio->base.active_node->plugged); 375 ASSERT_EQ(1, aio->base.active_node->plugged); 444 // Should assume USB devs are plugged when they appear. [all...] |
alsa_jack_unittest.cc | 147 int plugged, 151 fake_jack_cb_plugged = plugged; 155 ucm_set_enabled_value = !plugged; 156 cras_alsa_jack_enable_ucm(jack, plugged); 157 EXPECT_EQ(ucm_get_dev_for_jack_return ? plugged : !plugged, [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
BatteryControllerImpl.java | 151 dummy.putExtra("plugged", savePlugged); 155 dummy.putExtra("plugged", incr > 0 ? BatteryManager.BATTERY_PLUGGED_AC 230 String plugged = args.getString("plugged"); local 235 if (plugged != null) { 236 mPluggedIn = Boolean.parseBoolean(plugged);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
ActivityState.java | 138 boolean plugged = (0 != intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0)); 140 if (plugged != mPlugged) { 141 mPlugged = plugged; 227 // we need to know whether the device is plugged in to do this correctly
|
/external/autotest/client/cros/video/ |
chameleon_screenshot_capturer.py | 80 self.was_plugged = connected_port.plugged
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageAdvanced.java | 156 final boolean plugged = batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) != 0; 158 if (mPowerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(context) && !plugged) {
|
/packages/apps/Settings/src/com/android/settings/security/ |
CryptKeeperSettings.java | 69 final int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); 75 ((plugged & BatteryManager.BATTERY_PLUGGED_ANY) != 0) &&
|
/external/autotest/client/cros/chameleon/ |
chameleon.py | 449 def plugged(self): member in class:ChameleonPort 451 @returns True if this port is plugged to Chameleon, False otherwise. 540 Unplugs the port if needed, sets EDID, plugs back if it was plugged. 546 plugged = self.plugged 547 if plugged: 555 if plugged: 621 HIGH (plugged).
|
chameleon_video_capturer.py | 31 self.was_plugged = self.chameleon_port.plugged
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
KeyguardUpdateMonitor.java | 771 final int plugged = intent.getIntExtra(EXTRA_PLUGGED, 0); 791 MSG_BATTERY_UPDATE, new BatteryStatus(status, level, plugged, health, 983 public final int plugged; field in class:KeyguardUpdateMonitor.BatteryStatus [all...] |
/compatibility/cdd/7_hardware-compatibility/ |
7_8_audio.md | 86 * [C-2-1] MUST support the detection of microphone on the plugged in audio
|