summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
author Damien Bargiacchi <drb@google.com> 2016-05-19 21:01:30 +0000
committer android-build-merger <android-build-merger@google.com> 2016-05-19 21:01:30 +0000
commit60bacac2dd484cd7cb06f022e50ebf19bfd23d7b (patch)
treeec63dfca8adb51f958682c8927ea780f8ee74f14 /cmds/bootanimation/BootAnimation.h
parent341afcaa4788b726ab4f6ea1f8270aa937791d77 (diff)
parent9cb24e5582f7ec711400d2889baded061842b29b (diff)
Merge "Check clock accuracy before attempting to display clock" into nyc-mr1-dev
am: 9cb24e5582 * commit '9cb24e5582f7ec711400d2889baded061842b29b': Check clock accuracy before attempting to display clock Change-Id: Icd74121f21e9ff2fbad210553b2661f71cd177dd
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index d49e1ec837b9..1c3d53a59bb8 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -51,6 +51,24 @@ private:
virtual void onFirstRef();
virtual void binderDied(const wp<IBinder>& who);
+ bool updateIsTimeAccurate();
+
+ class TimeCheckThread : public Thread {
+ public:
+ TimeCheckThread(BootAnimation* bootAnimation);
+ virtual ~TimeCheckThread();
+ private:
+ virtual status_t readyToRun();
+ virtual bool threadLoop();
+ bool doThreadLoop();
+ void addTimeDirWatch();
+
+ int mInotifyFd;
+ int mSystemWd;
+ int mTimeWd;
+ BootAnimation* mBootAnimation;
+ };
+
struct Texture {
GLint w;
GLint h;
@@ -113,8 +131,10 @@ private:
sp<SurfaceControl> mFlingerSurfaceControl;
sp<Surface> mFlingerSurface;
bool mClockEnabled;
+ bool mTimeIsAccurate;
String8 mZipFileName;
SortedVector<String8> mLoadedFiles;
+ sp<TimeCheckThread> mTimeCheckThread;
};
// ---------------------------------------------------------------------------