diff options
author | 2016-05-19 20:56:51 +0000 | |
---|---|---|
committer | 2016-05-19 20:56:52 +0000 | |
commit | 9cb24e5582f7ec711400d2889baded061842b29b (patch) | |
tree | 2304950e12af14c9ccab583d0701b80f7a0fc661 /cmds/bootanimation/BootAnimation.h | |
parent | b9d4cd81a3a67bd239e818c2a8d409ddbb845a79 (diff) | |
parent | 9748086fe267e21d243a49df1775905094a28dd9 (diff) |
Merge "Check clock accuracy before attempting to display clock" into nyc-mr1-dev
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r-- | cmds/bootanimation/BootAnimation.h | 20 |
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; }; // --------------------------------------------------------------------------- |