Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20af7560 authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Merge "Add android version guard to ASensorManager_getInstanceForPackage" am: 18510e1f

am: 0cb1c492

Change-Id: I6bef532634cc0b61d1446c57f0c59c45f2c8ad25
parents 7f4cb69c 0cb1c492
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -381,8 +381,13 @@ typedef ASensorRef const* ASensorList;
 *     ASensorManager* sensorManager = ASensorManager_getInstance();
 *
 */
#if __ANDROID_API__ >= __ANDROID_API_O__
__attribute__ ((deprecated)) ASensorManager* ASensorManager_getInstance();
#else
ASensorManager* ASensorManager_getInstance();
#endif

#if __ANDROID_API__ >= __ANDROID_API_O__
/*
 * Get a reference to the sensor manager. ASensorManager is a singleton
 * per package as different packages may have access to different sensors.
@@ -393,6 +398,7 @@ __attribute__ ((deprecated)) ASensorManager* ASensorManager_getInstance();
 *
 */
ASensorManager* ASensorManager_getInstanceForPackage(const char* packageName);
#endif

/**
 * Returns the list of available sensors.