OSDN Git Service

Add android version guard to ASensorManager_getInstanceForPackage
authorPeng Xu <pengxu@google.com>
Mon, 17 Jul 2017 23:40:50 +0000 (16:40 -0700)
committerPeng Xu <pengxu@google.com>
Tue, 18 Jul 2017 03:42:13 +0000 (03:42 +0000)
commit477db44043140dc6f4e7497a760061aefe472df2
tree623256714385e26007a8f4d6ff6677ad2c977cd9
parentcb35066649b1aabacd02809e1c03b0fb6e3f34b2
Add android version guard to ASensorManager_getInstanceForPackage

This function is added to header file since 2015 but the corresponding
function is not exported through libandroid.map file until O. Thus,
it make sense to gate the usage to ANDROID_O and forward.

ASensorManager_getInstance is deprecated accordingly.

Bug: 63639195
Test: compiles
Change-Id: Ib2fdb635ffca9ec629dd487bd377aaa98afa4359
include/android/sensor.h