Home
last modified time | relevance | path

Searched refs:dockState (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/
Ddocking-monitoring.jd48 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
49 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
62 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
63 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
64 dockState == EXTRA_DOCK_STATE_LE_DESK ||
65 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/
Ddocking-monitoring.jd48 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
49 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
62 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
63 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
64 dockState == EXTRA_DOCK_STATE_LE_DESK ||
65 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/
Ddocking-monitoring.jd48 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
49 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
62 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
63 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
64 dockState == EXTRA_DOCK_STATE_LE_DESK ||
65 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/
Ddocking-monitoring.jd48 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
49 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
62 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
63 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
64 dockState == EXTRA_DOCK_STATE_LE_DESK ||
65 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/docs/html/training/monitoring-device-state/
Ddocking-monitoring.jd58 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
59 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
74 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
75 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
76 dockState == EXTRA_DOCK_STATE_LE_DESK ||
77 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/docs/html-intl/intl/es/training/monitoring-device-state/
Ddocking-monitoring.jd48 <pre>int dockState = battery.getIntExtra(EXTRA_DOCK_STATE, -1);
49 boolean isDocked = dockState != Intent.EXTRA_DOCK_STATE_UNDOCKED;</pre>
62 <pre>boolean isCar = dockState == EXTRA_DOCK_STATE_CAR;
63 boolean isDesk = dockState == EXTRA_DOCK_STATE_DESK ||
64 dockState == EXTRA_DOCK_STATE_LE_DESK ||
65 dockState == EXTRA_DOCK_STATE_HE_DESK;</pre>
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2778 int dockState = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, in onReceive() local
2780 if (mDockState != dockState) { in onReceive()
2781 mDockState = dockState; in onReceive()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java4985 int dockState = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, in onReceive() local
4988 switch (dockState) { in onReceive()
5007 if (!((dockState == Intent.EXTRA_DOCK_STATE_LE_DESK) || in onReceive()
5008 ((dockState == Intent.EXTRA_DOCK_STATE_UNDOCKED) && in onReceive()
5012 mDockState = dockState; in onReceive()