| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Change-Id: I7f44c3b27b3b8b09d1d004b587322846347ba633
See: b/322228259#comment13
Bug: 322228259
Test: N/A
|
| |
|
|
|
|
| |
Change-Id: I3c964a497e2fcc9106fe469e71a7d61f0d089653
Bug: 322228259
Test: presubmit, and verified performance with stack samples
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Do not use the cached SensorManager if the device association
of the underlying package has changed.
Since the SensorManager is cached per package, if the deviceId
changes, then the native SensorManager will always return the wrong
sensors. This is seen in the failing CTS.
The most straight-forward solution is to refresh the cache when the
device for that UID has changed. It would be better to have an API
that takes a deviceId but that's a longer term fix - b/306575095
This change is effectively flagged by the read-only flag
android.companion.virtual.flags.enable_native_vdm. When it is
disabled, the deviceId will always be 0 (i.e. default device).
Test: atest VirtualSensorNativeTest
Bug: 306575095
Fix: 317495754
Change-Id: If02beb9f3eceec19c104ae03fcb0a8fefb46f85f
|
| |
|
|
|
|
| |
Fix: 315295201
Test: manual with the VDM test app
Change-Id: I096a5af3f3476386e145c4aec23e25719dc78fec
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add device id to SensorManager instances based on the devices
this UID is present on. SensorManager queries the native VDM
instance for the deviceId and the sensor policy of that device.
If the UID is present only on a single virtual device and that
device has custom sensors, then give it that device's sensors by
default. If the UID is not on any virtual devices or is on more
than one, then give it the default device's sensors.
Fix: 303535376
Test: manual with streamed app using sensor NDK to a virtual device
Change-Id: I275a010a7a70b34176deaf4c9dcd61188c83ac32
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new mode, HAL_BYPASS_REPLAY_DATA_INJECTION, which behaves similar
to Replay Data Injection with the difference that injected sensor data
is not injected into the HAL but simply passed back up to clients in
the platform.
Also, while I was in there, hook up the remaining bits and bobs to get
Replay Data Injection working and accessible from APIs in
SystemSensorManager in the platform.
Bug: 287257057
Test: manual
Change-Id: I9fc33a8bf5b67c02483089f849ba7ff0346d8097
(cherry picked from commit b0df44e2a6a40fb70a6e98a1e4e629945995a5f6)
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
udc-dev-plus-aosp am: 3b906b0d36 am: 66b2479dc0 am: 499710615a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24540688
Change-Id: Iaf347eb41cfda7118d246c4787cf5a99a2ed3868
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\
| | |
| | |
| | | |
udc-dev-plus-aosp
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Bug: 295394788
Test: make checkbuild
Change-Id: I63b97b573f6b182ba36c4eb933b695d7a6ed59d0
|
| |\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
am: 6764b4a297 am: c80de8ad84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24470958
Change-Id: Ibee5add94528cce8f1a34943de0df3d2c3433d14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |/
| |
| |
| |
| |
| | |
Bug: 295394788
Test: make checkbuild
Change-Id: I09c5127f66c0ba1f7eef8951e3ab15f50f822d22
|
| |/
|
|
|
|
|
|
|
| |
If we don't check the size, we can run out of memory. Use the Parcel API
that knows about the binder transaction size limits.
Test: libsensorserviceaidl_fuzzer
Bug: none
Change-Id: I2d00e14e8c67e9899532577628c54e9a74f584d7
|
| |
|
|
|
|
| |
Test: atest VtsHalSensorManagerV1_0TargetTest
Bug: 278013275
Change-Id: I091f57de9570b0ace3a8da76f16fe0e83f0aa624
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a direct channel is (un-)registered or configured, notify the
runtime sensor callback instead of the HAL and pass the shared memory
region to it. The SensorDirectConnection object is tied to a deviceId
and may only be configured for sensors of that device.
Only ashmem direct channel type is supported for runtime sensors.
Bug: 266042170
Test: atest CtsSensorTestCases
Change-Id: Ie1a628650bd94b6d81e95d3b9f8f25fcf445666c
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In order to ensure that clients don't leak their sensor manager
instance that we currently store in a static map, they need to be able
to remove their instance. Otherwise, this instance is never removed from
the list and will hang around until our SensorManage instance is
destroyed.
Bug: 269014004
Test: Run ./libsensorserviceaidl_fuzzer
Change-Id: I52185f74ae8d28b379440235ca6f03c5089081f5
|
| |
|
|
|
|
|
|
|
|
| |
After catching an error in Sensor::unflatten, there are memory leaks
caught by the fuzzer in the same test case.
Test: libsensorserviceaidl_fuzzer with testcase from bug
Bug: 269014004
Merged-In: I509cceb41f56ca117d9475f6f6674244560fe582
Change-Id: I509cceb41f56ca117d9475f6f6674244560fe582
|
| |
|
|
|
|
|
| |
Test: libsensorserviceaidl_fuzzer with testcase from bug
Bug: 269014004
Merged-In: I0e255c64243c38876fb657cbf942fc1613363216
Change-Id: I0e255c64243c38876fb657cbf942fc1613363216
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
We already have LLOB, so no need placeholder anymore
Test: No test needed
Change-Id: I8c3cb0c93fbe4c70b301fd9781571d7a1d5f970b
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
The virutal device sensors are runtime sensors, using handle range of [0x5F000000, 0x5FFFFFFFF].
As opposed to the HAL dynamic sensors, they do not rely on the existence of a SENSOR_TYPE_DYNAMIC_SENSOR_META. Instead of sensor events representing registration/unregistration of dynamic sensors, they are handled syncronously in the sensor service.
The virtual dynamic sensors are not exposed via the dynamic sensors API. They are provided to SensorManager through a separate JNI call.
Bug: 237278244
Test: atest cts/tests/sensor
Change-Id: I09e5b089d1ae3bed7a25a5454a31aba9cf594a05
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
fca46f6241 am: 9cb37639d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2303442
Change-Id: I580587b17504cf2686b0b834498dabc8601feff9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Test: libsensorserviceaidl_fuzzer
Bug: 205764765
Change-Id: Ia4cd7c25ab0e0d513e2f998bf5e1db2997b3a194
|
| |\|
| |
| |
| |
| |
| |
| |
| |
| | |
4fc85eab3c am: 623da5972a am: c9c73d7755
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2218932
Change-Id: I5a77b627b8d69da3f5c21efedd22addd44d42e62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This test has memory leak, and fuzzing will terminate after a single
iteration. Bittube is a RefBase object, need to use sp instead of
declared it as a local variable directly.
Test: bittube_fuzzer
Bug: 241346940
Bug: 243132994
Change-Id: I34c8fd0a5c5daf8c368689f2104a42e013d3a03f
|
| |/
|
|
|
|
|
|
|
|
| |
To help catch future bugs related to misuse of file descriptors.
Fixes: 244214188
Test: run test-sensorservice with & without fix for bug 234456046,
confirm reliable crash without the fix + no crash with it
Test: atest CtsSensorTestCases
Change-Id: I7aca5830e02e6bde988e89d54e7008500d0db26f
|
| |
|
|
|
|
|
|
|
|
| |
The fuzzer itself use std::string("xxx").c_str()
which std:string will be out of scope immediately
Causing the c_str pointing to data already free
Test: sensor_fuzzer
Bug: 242089424
Change-Id: I42865b12b8a208ffa48a7c3cc7cadd505e47c1c0
|
| |\
| |
| |
| |
| |
| |
| | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2184399
Change-Id: I4459925e1d687231aff2a9650c2ef05dcb5d0e1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added SPDX-license-identifier-Apache-2.0 to:
libs/sensor/fuzz/sensor_fuzzer/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: Ie3dd994273a30e87860a5ff29daed06e15fce478
|
| |\|
| |
| |
| |
| |
| |
| | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2158836
Change-Id: I6ad7bff39cbeea18feaf9e7d1feee26bc2b7355f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test: ./sensor_fuzzer
Change-Id: I59c6fff5c6f2562d274b46a5742fb59f9a0ac4e9
Bug: 234548895
|
| |\| |
| | |
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2175887
Change-Id: I4f89ef118c2c587516e983b165978c3e0c4e687e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added SPDX-license-identifier-Apache-2.0 to:
libs/cputimeinstate/fuzz/cputimeinstate_fuzzer/Android.bp
libs/sensor/fuzz/bittube_fuzzer/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: I10d6d51c1231121bbab35445d15e9a2134796590
|
| |\| |
| | |
| | |
| | |
| | |
| | |
| | | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2158876
Change-Id: I35c983c3a1b833fb248ec677bec2ca2cdedc18cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |/
| |
| |
| |
| |
| | |
Test: ./bittube_fuzzer
Change-Id: I2350ebe0491b684adc1e000cfa79d8200f13e077
|
| |\|
| |
| |
| |
| |
| |
| | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2075508
Change-Id: I48ab4d12c90f79a449294d2b63599774badea234
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Deleted deprecated clang property in Android.bp files using bpmodify.
Bug: 208980553
Test: treehugger
Change-Id: Iae82728bd6d108fadf9872ad22cdc57aabceb3bb
|
| |\|
| |
| |
| |
| |
| |
| | |
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2075507
Change-Id: I1408cdc61de651102e6d87f3b72e4659ae4b8e68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Bug: 208980553
Test: treehugger
Change-Id: I659ff25af67a7aa00fe54678b79441b05c1ee32d
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 217890463
Test: Used uhid-sample to add a dynamic sensor and verified it can be
used with sensor_test.
Change-Id: Ida2ce53c3d94ed530ba4981d299fa4855c35e337
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Bug: 189983308
Test: Presubmits
Change-Id: I53bc59d6a1d03ab5e980920f0420ce0263cbc52c
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Included sensors:
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED
These changes will enable support for automotive style IMUs that have
more limited axes for accelerometers (x-axis and y-axis) and gyroscopes
(z-axis).
Bug: 187342209
Test: Presubmits
Change-Id: I7f8ecd4f3323c71c723a6415e573413cb464a0f1
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allow privileged clients (system server and audio server)
to access the UUID of dynamic sensors.
For other clients, the UUID is replaced by the existing
obfuscated sensor ID.
Bug: 210803914
Test: make
Change-Id: I496ac59504da4e8d98310663c047cb3c0a2abad6
|
| |/
|
|
|
|
| |
Bug: 210156629
Test: presubmit (definitions only)
Change-Id: Ie93f3a99a3215690ab585b2e248edf096712c8c0
|
| |
|
|
|
|
|
|
|
| |
Bug: 187917044
Test: Verify pass by checking if the item "String Type" exists by
following command:
adb shell sensor_test info 27
Change-Id: I52045186d4271892bd102bc4009aa2ae782d947d
|
| |
|
|
|
|
|
|
|
| |
Since libbinder is used in many places, lightening it up (vtables in
these classes contribute to private dirty memory).
Bug: 183654927
Test: boot
Change-Id: I79aa34c023074862c6c568be1f8e3503cd4a24eb
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added SPDX-license-identifier-Apache-2.0 to:
cmds/atrace/Android.bp
cmds/bugreport/Android.bp
cmds/bugreportz/Android.bp
cmds/cmd/Android.bp
cmds/dumpstate/Android.bp
cmds/dumpsys/Android.bp
cmds/dumpsys/tests/Android.bp
cmds/flatland/Android.mk
cmds/idlcli/Android.bp
cmds/installd/Android.bp
cmds/installd/tests/Android.bp
cmds/ip-up-vpn/Android.mk
cmds/lshal/Android.bp
cmds/lshal/libprocpartition/Android.bp
cmds/rawbu/Android.bp
cmds/rss_hwm_reset/Android.bp
cmds/service/Android.bp
cmds/servicemanager/Android.bp
cmds/surfacereplayer/Android.bp
cmds/surfacereplayer/proto/Android.bp
cmds/surfacereplayer/replayer/Android.bp
data/etc/Android.bp
libs/adbd_auth/Android.bp
libs/android_runtime_lazy/Android.bp
libs/arect/Android.bp
libs/attestation/Android.bp
libs/attestation/tests/Android.bp
libs/binder/Android.bp
libs/binder/ndk/Android.bp
libs/binder/ndk/tests/Android.bp
libs/binder/parcel_fuzzer/Android.bp
libs/binder/rust/Android.bp
libs/binder/rust/tests/Android.bp
libs/binder/tests/Android.bp
libs/binder/tests/fuzzers/Android.bp
libs/binderdebug/Android.bp
libs/binderdebug/tests/Android.bp
libs/binderthreadstate/1.0/Android.bp
libs/binderthreadstate/Android.bp
libs/bufferqueueconverter/Android.bp
libs/cputimeinstate/Android.bp
libs/diskusage/Android.bp
libs/dumputils/Android.bp
libs/fakeservicemanager/Android.bp
libs/ftl/Android.bp
libs/gralloc/types/Android.bp
libs/gralloc/types/fuzzer/Android.bp
libs/gralloc/types/tests/Android.bp
libs/graphicsenv/Android.bp
libs/gui/Android.bp
libs/gui/sysprop/Android.bp
libs/gui/tests/Android.bp
libs/incidentcompanion/Android.bp
libs/input/Android.bp
libs/input/tests/Android.bp
libs/math/Android.bp
libs/math/tests/Android.bp
libs/nativebase/Android.bp
libs/nativedisplay/Android.bp
libs/nativewindow/Android.bp
libs/nativewindow/tests/Android.bp
libs/renderengine/Android.bp
libs/renderengine/tests/Android.bp
libs/sensor/Android.bp
libs/sensor/tests/Android.bp
libs/sensorprivacy/Android.bp
libs/ui/Android.bp
libs/ui/tests/Android.bp
libs/ui/tools/Android.bp
libs/vibrator/Android.bp
libs/vibrator/fuzzer/Android.bp
libs/vr/libbroadcastring/Android.bp
libs/vr/libbufferhub/Android.bp
libs/vr/libbufferhubqueue/Android.bp
libs/vr/libbufferhubqueue/benchmarks/Android.bp
libs/vr/libbufferhubqueue/tests/Android.bp
libs/vr/libdisplay/Android.bp
libs/vr/libdvr/Android.bp
libs/vr/libdvr/tests/Android.bp
libs/vr/libdvrcommon/Android.bp
libs/vr/libpdx/Android.bp
libs/vr/libpdx/fuzz/Android.bp
libs/vr/libpdx_default_transport/Android.bp
libs/vr/libpdx_uds/Android.bp
libs/vr/libperformance/Android.bp
libs/vr/libvr_manager/Android.bp
libs/vr/libvrflinger/Android.bp
libs/vr/libvrflinger/tests/Android.bp
libs/vr/libvrsensor/Android.bp
opengl/libs/Android.bp
opengl/tests/EGLTest/Android.bp
opengl/tests/configdump/Android.bp
opengl/tests/fillrate/Android.bp
opengl/tests/filter/Android.bp
opengl/tests/finish/Android.bp
opengl/tests/gl2_basic/Android.bp
opengl/tests/gl2_cameraeye/Android.bp
opengl/tests/gl2_copyTexImage/Android.bp
opengl/tests/gl2_java/Android.bp
opengl/tests/gl2_jni/Android.bp
opengl/tests/gl2_yuvtex/Android.bp
opengl/tests/gl_basic/Android.bp
opengl/tests/gl_jni/Android.bp
opengl/tests/gl_perf/Android.bp
opengl/tests/gl_perfapp/Android.bp
opengl/tests/gl_yuvtex/Android.bp
opengl/tests/gldual/Android.bp
opengl/tests/gralloc/Android.bp
opengl/tests/hwc/Android.bp
opengl/tests/lib/Android.bp
opengl/tests/lighting1709/Android.bp
opengl/tests/linetex/Android.bp
opengl/tests/swapinterval/Android.bp
opengl/tests/testFramerate/Android.bp
opengl/tests/testLatency/Android.bp
opengl/tests/testPauseResume/Android.bp
opengl/tests/testViewport/Android.bp
opengl/tests/textures/Android.bp
opengl/tests/tritex/Android.bp
services/audiomanager/Android.bp
services/automotive/display/Android.bp
services/batteryservice/Android.bp
services/displayservice/Android.bp
services/gpuservice/Android.bp
services/gpuservice/bpfprogs/Android.bp
services/gpuservice/gpumem/Android.bp
services/gpuservice/gpustats/Android.bp
services/gpuservice/tests/unittests/Android.bp
services/gpuservice/tracing/Android.bp
services/inputflinger/Android.bp
services/inputflinger/benchmarks/Android.bp
services/inputflinger/dispatcher/Android.bp
services/inputflinger/host/Android.bp
services/inputflinger/reader/Android.bp
services/inputflinger/reporter/Android.bp
services/inputflinger/tests/Android.bp
services/powermanager/Android.bp
services/powermanager/benchmarks/Android.bp
services/powermanager/tests/Android.bp
services/schedulerservice/Android.bp
services/sensorservice/Android.bp
services/sensorservice/hidl/Android.bp
services/sensorservice/tests/Android.bp
services/stats/Android.bp
services/surfaceflinger/Android.bp
services/surfaceflinger/CompositionEngine/Android.bp
services/surfaceflinger/FrameTimeline/Android.bp
services/surfaceflinger/TimeStats/Android.bp
services/surfaceflinger/TimeStats/timestatsproto/Android.bp
services/surfaceflinger/layerproto/Android.bp
services/surfaceflinger/sysprop/Android.bp
services/surfaceflinger/tests/Android.bp
services/surfaceflinger/tests/fakehwc/Android.bp
services/surfaceflinger/tests/unittests/Android.bp
services/surfaceflinger/tests/vsync/Android.bp
services/surfaceflinger/tests/waitforvsync/Android.bp
services/utils/Android.bp
services/utils/tests/Android.bp
services/vibratorservice/Android.bp
services/vibratorservice/benchmarks/Android.bp
services/vibratorservice/test/Android.bp
services/vr/bufferhubd/Android.bp
services/vr/hardware_composer/Android.bp
services/vr/hardware_composer/aidl/Android.bp
services/vr/virtual_touchpad/Android.bp
vulkan/libvulkan/Android.bp
vulkan/nulldrv/Android.bp
vulkan/vkjson/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
legacy_notice
to:
Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-MIT legacy_notice
to:
opengl/Android.bp
opengl/tests/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
legacy_notice
to:
libs/vr/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
to:
headers/Android.bp
services/vr/Android.bp
vulkan/Android.bp
Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT
legacy_notice
to:
opengl/tests/angeles/Android.bp
Added SPDX-license-identifier-MIT
to:
services/vr/performanced/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Icd397e38ca313ae4886bd92afa927d4633a75c4f
|