summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorWilliam Clark <wclark@codeaurora.org>2015-08-21 17:44:46 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:29:04 -0600
commit7b0301f8a0f3889063308abfd9c32b0797cd5fda (patch)
tree0df48bdd0bd54eac3665eb70cd2075c92d93d420 /native
parent3dc1850640a2af2fb342740853be1f84e76672c7 (diff)
downloadframeworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.zip
frameworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.tar.gz
frameworks_base-7b0301f8a0f3889063308abfd9c32b0797cd5fda.tar.bz2
SEEMP: Add more framework instrumentation
Instrument framework files to log events of interest. Conflicts: core/java/android/accounts/AccountManager.java Change-Id: Ia45651e6352586f910039b51cac2356f65f80010
Diffstat (limited to 'native')
-rw-r--r--native/android/Android.mk1
-rw-r--r--native/android/sensor.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/native/android/Android.mk b/native/android/Android.mk
index 1742bee..daee1f0 100644
--- a/native/android/Android.mk
+++ b/native/android/Android.mk
@@ -27,6 +27,7 @@ LOCAL_SHARED_LIBRARIES := \
libbinder \
libui \
libgui \
+ libdl \
libandroid_runtime \
libnetd_client \
diff --git a/native/android/sensor.cpp b/native/android/sensor.cpp
index 26b41e8..a258b58 100644
--- a/native/android/sensor.cpp
+++ b/native/android/sensor.cpp
@@ -29,6 +29,7 @@
#include <gui/SensorEventQueue.h>
#include <poll.h>
+#include "SeempLog.h"
using android::sp;
using android::Sensor;
@@ -111,6 +112,7 @@ int ASensorManager_destroyEventQueue(ASensorManager* manager,
int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
{
+ SEEMPLOG_RECORD(108,"");
return static_cast<SensorEventQueue*>(queue)->enableSensor(
static_cast<Sensor const*>(sensor));
}
@@ -206,4 +208,4 @@ int ASensor_getReportingMode(ASensor const* sensor)
bool ASensor_isWakeUpSensor(ASensor const* sensor)
{
return static_cast<Sensor const*>(sensor)->isWakeUpSensor();
-} \ No newline at end of file
+}