summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-04-14 12:34:28 -0700
committerYorke Lee <yorkelee@google.com>2015-04-14 12:34:28 -0700
commit22244d05771308ca043c090c0aba0faf07573445 (patch)
tree745992833ab460248ab92e09ac777ed542111c83 /telecomm
parentfff30439cafb737eb54de807caab4fb61432f2cc (diff)
downloadframeworks_base-22244d05771308ca043c090c0aba0faf07573445.zip
frameworks_base-22244d05771308ca043c090c0aba0faf07573445.tar.gz
frameworks_base-22244d05771308ca043c090c0aba0faf07573445.tar.bz2
Hide Phone proximity sensor methods
Has to be done in master and not m-wireless-dev, because m-wireless-dev doesn't contain system-api/23.txt. Bug: 20160495 Change-Id: I910b3ecafd78c31081b38325b436b4f2b5a54c8d
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecom/Phone.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Phone.java b/telecomm/java/android/telecom/Phone.java
index 6344181..cc73109 100644
--- a/telecomm/java/android/telecom/Phone.java
+++ b/telecomm/java/android/telecom/Phone.java
@@ -244,6 +244,8 @@ public final class Phone {
* become active, and the touch screen and display will be turned off when the user's face
* is detected to be in close proximity to the screen. This operation is a no-op on devices
* that do not have a proximity sensor.
+ *
+ * @hide
*/
public final void setProximitySensorOn() {
mInCallAdapter.turnProximitySensorOn();
@@ -257,6 +259,8 @@ public final class Phone {
* @param screenOnImmediately If true, the screen will be turned on immediately if it was
* previously off. Otherwise, the screen will only be turned on after the proximity sensor
* is no longer triggered.
+ *
+ * @hide
*/
public final void setProximitySensorOff(boolean screenOnImmediately) {
mInCallAdapter.turnProximitySensorOff(screenOnImmediately);