display: Create QService binder interface.
Add QService binder interface to enable communication
to display by the mediaserver for Securing/Unsecuring start and end
notifications.
Create separate lib for external.
Clear reserved field before applying format.
Change-Id: I463c9c6deac7587bd0c4e0b84513b5d0b5dd7e98
diff --git a/liboverlay/overlayUtils.h b/liboverlay/overlayUtils.h
index e5f7119..f308b95 100644
--- a/liboverlay/overlayUtils.h
+++ b/liboverlay/overlayUtils.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
+* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -238,6 +238,28 @@
uint32_t size;
};
+class ActionSafe {
+private:
+ ActionSafe() : mWidth(0.0f), mHeight(0.0f) { };
+ float mWidth;
+ float mHeight;
+ static ActionSafe *sActionSafe;
+public:
+ ~ActionSafe() { };
+ static ActionSafe* getInstance() {
+ if(!sActionSafe) {
+ sActionSafe = new ActionSafe();
+ }
+ return sActionSafe;
+ }
+ void setDimension(int w, int h) {
+ mWidth = (float)w;
+ mHeight = (float)h;
+ }
+ float getWidth() { return mWidth; }
+ float getHeight() { return mHeight; }
+};
+
enum { MAX_PATH_LEN = 256 };
/**