Home
last modified time | relevance | path

Searched refs:sensors (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java89 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener()
97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener()
99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener()
108 SensorListener listener, int sensors, int rate) { in registerLegacyListener() argument
111 if ((sensors & legacyType) != 0) { in registerLegacyListener()
144 public void unregisterListener(SensorListener listener, int sensors) { in unregisterListener() argument
149 listener, sensors); in unregisterListener()
[all …]
DSensorManager.java516 public boolean registerListener(SensorListener listener, int sensors) { in registerListener() argument
517 return registerListener(listener, sensors, SENSOR_DELAY_NORMAL); in registerListener()
544 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
545 return getLegacySensorManager().registerListener(listener, sensors, rate); in registerListener()
577 public void unregisterListener(SensorListener listener, int sensors) { in unregisterListener() argument
578 getLegacySensorManager().unregisterListener(listener, sensors); in unregisterListener()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_environment.jd10 <li><a href="#sensors-using-temp">Using the Light, Pressure, and Temperature
12 <li><a href="#sensors-using-humid">Using the Humidity Sensor</a></li>
27 <li><a href="{@docRoot}guide/topics/sensors/index.html">Sensors</a></li>
28 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
29 <li><a href="{@docRoot}guide/topics/sensors/sensors_position.html">Position Sensors</a></li>
30 <li><a href="{@docRoot}guide/topics/sensors/sensors_motion.html">Motion
36 <p>The Android platform provides four sensors that let you monitor various environmental properties.
37 You can use these sensors to monitor relative ambient humidity, illuminance, ambient pressure, and
38 ambient temperature near an Android-powered device. All four environment sensors are hardware-based
41 sensors are not always available on devices. Because of this, it's particularly important that you
[all …]
Dsensors_overview.jd10 <li>Learn about the sensors that Android supports and the Android sensor framework.</li>
11 <li>Find out how to list sensors, determine sensor capabilities, and monitor sensor data.</li>
12 <li>Learn about best practices for accessing and using sensors.</li>
16 <li><a href="#sensors-intro">Introduction to Sensors</a></li>
17 <li><a href="#sensors-identify">Identifying Sensors and Sensor Capabilities</a></li>
18 <li><a href="#sensors-monitor">Monitoring Sensor Events</a></li>
19 <li><a href="#sensors-configs">Handling Different Sensor Configurations</a></li>
20 <li><a href="#sensors-coords">Sensor Coordinate System</a></li>
21 <li><a href="#sensors-practices">Best Practices for Accessing and Using Sensors</a></li>
43 <li><a href="{@docRoot}guide/topics/sensors/index.html">Sensors</a></li>
[all …]
Dsensors_motion.jd10 <li><a href="#sensors-motion-accel">Using the Accelerometer</a></li>
11 <li><a href="#sensors-motion-grav">Using the Gravity Sensor</a></li>
12 <li><a href="#sensors-motion-gyro">Using the Gyroscope</a></li>
13 <li><a href="#sensors-motion-linear">Using the Linear Accelerometer</a></li>
14 <li><a href="#sensors-motion-rotate">Using the Rotation Vector Sensor</a></li>
15 <li><a href="#sensors-motion-significant">Using the Significant Motion Sensor</a></li>
16 <li><a href="#sensors-motion-stepcounter">Using the Step Counter Sensor</a></li>
17 <li><a href="#sensors-motion-stepdetector">Using the Step Detector Sensor</a></li>
39 <li><a href="{@docRoot}guide/topics/sensors/index.html">Sensors</a></li>
40 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
[all …]
Dsensors_position.jd9 <li><a href="#sensors-pos-gamerot">Using the Game Rotation Vector Sensor</a></li>
10 <li><a href="#sensors-pos-geomrot">Using the Geomagnetic Rotation Vector Sensor</a></li>
11 <li><a href="#sensors-pos-orient">Using the Orientation Sensor</a></li>
12 <li><a href="#sensors-pos-mag">Using the Geomagnetic Field Sensor</a></li>
13 <li><a href="#sensors-pos-prox">Using the Proximity Sensor</a></li>
35 <li><a href="{@docRoot}guide/topics/sensors/index.html">Sensors</a></li>
36 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
37 <li><a href="{@docRoot}guide/topics/sensors/sensors_motion.html">Motion
39 <li><a href="{@docRoot}guide/topics/sensors/sensors_environment.html">Environment
45 <p>The Android platform provides two sensors that let you determine the position of a device: the
[all …]
Dindex.jd3 page.tags=location,sensors
4 page.landing.intro=Use sensors on the device to add rich location and motion capabilities to your a…
/frameworks/base/docs/html/samples/
Dsensors.jd5 <div id="samples" class="sensors">
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java19 package androidx.media.filterpacks.sensors;
/frameworks/base/docs/html/google/play-services/
Dlocation.jd50 …pp's use of power. Based on all incoming location requests and available sensors, fused location p…
82 …<em>Optimized for battery</em>: Uses low-power sensors to recognize the user's current physical ac…
/frameworks/base/docs/html/about/versions/
Dandroid-2.3-highlights.jd237 specific sensors and manage event delivery rate and queueing. </p>
241 new sensors, for improved 3D motion processing</strong></p>
244 gyroscope, rotation vector, linear acceleration, gravity, and barometer sensors.
245 Applications can use the new sensors in combination with any other sensors
Dkitkat.jd69 <li><a href="#44-sensors">Low-power sensors</a></li>
349 <h2 id="44-sensors">Low-power sensors</h2>
382 <img src="{@docRoot}images/kk-sensors-moves-n5.jpg" alt="" width="240" style=
383 "margin-bottom:0;"> <img src="{@docRoot}images/kk-sensors-runtastic-n5.jpg" alt=""
396 support for two new composite sensors &mdash; step detector
398 the user is walking, running, or climbing stairs. These new sensors are
412 Step detector and counter sensors are available on Nexus 5, and we're working
Dlollipop.jd33 <li><a href="#Sensors">New types of sensors</a></li>
238 <h2 id="Sensors">New types of sensors</h2>
242 <p>New <strong>interaction composite sensors</strong> are now available to detect special interacti…
/frameworks/base/docs/html/tools/help/uiautomator/
DUiDevice.jd130 <div class="jd-descrdiv">Disables the sensors and freezes the device rotation at its
767 by disabling the sensors.</div>
786 by disabling the sensors.</div>
805 by disabling the sensors.</div>
920 …<div class="jd-descrdiv">Re-enables the sensors and un-freezes the device rotation allowing its co…
1445 <div class="jd-tagdata jd-tagdescr"><p>Disables the sensors and freezes the device rotation at its
2661 by disabling the sensors.
2663 If you want to un-freeze the rotation and re-enable the sensors
2704 by disabling the sensors.
2706 If you want to un-freeze the rotation and re-enable the sensors
[all …]
/frameworks/base/docs/html/training/gestures/
Dindex.jd22 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
Dmovement.jd26 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
Dmulti.jd27 <li><a href="{@docRoot}guide/topics/sensors/sensors_overview.html">Sensors Overview</a></li>
/frameworks/base/docs/html/training/wearables/apps/
Dindex.jd18 Wearable apps run directly on the device, giving you access to hardware such as sensors and the
/frameworks/base/docs/html/wear/
Dindex.jd116 Design apps that can access a wide range of sensors and other hardware
168 Create custom experiences with activities, services, sensors, and much
/frameworks/base/docs/html/design/wear/
Dcontext.jd24 notifications and actions. By using device sensors and other contextual cues, your app can reveal
Dprinciples.jd51 … when the user needs it. You can figure out when to show your cards with sensors, or events happen…
/frameworks/base/core/java/android/os/
DBatteryStats.java2244 SparseArray<? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats(); in dumpCheckinLocked() local
2245 int NSE = sensors.size(); in dumpCheckinLocked()
2247 Uid.Sensor se = sensors.valueAt(ise); in dumpCheckinLocked()
2248 int sensorNumber = sensors.keyAt(ise); in dumpCheckinLocked()
3200 SparseArray<? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats(); in dumpLocked() local
3201 int NSE = sensors.size(); in dumpLocked()
3203 Uid.Sensor se = sensors.valueAt(ise); in dumpLocked()
3204 int sensorNumber = sensors.keyAt(ise); in dumpLocked()
/frameworks/base/docs/html/training/wearables/watch-faces/
Ddesigning.jd73 <dd>Your watch face can leverage sensors and cellular connectivity on the companion mobile
/frameworks/base/docs/html/training/basics/activity-lifecycle/
Dpausing.jd73 <li>Release system resources, such as broadcast receivers, handles to sensors (like
/frameworks/base/docs/html/about/
Dindex.jd54 multicore processing and high-performance graphics to state-of-the-art sensors,

12