summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-02-17 20:18:47 -0800
committerRuben Brunk <rubenbrunk@google.com>2015-03-18 22:21:21 -0700
commitcc776718c0be7c31fe5ab4fc1446d377be60369f (patch)
treec5f0633e27f6c36b938f6a57fea544996ac3d5ae /camera
parentf9d19514b3e620b6339c98a442da833a702915ed (diff)
downloadframeworks_av-cc776718c0be7c31fe5ab4fc1446d377be60369f.zip
frameworks_av-cc776718c0be7c31fe5ab4fc1446d377be60369f.tar.gz
frameworks_av-cc776718c0be7c31fe5ab4fc1446d377be60369f.tar.bz2
camera2: Add camera client eviction enforcement.
- This updates the CameraService to implement client eviction behavior based on process priority. Bug: 19186859 Change-Id: I646939b1cdf1a2237c4e5044164d55a2542cf36e
Diffstat (limited to 'camera')
-rw-r--r--camera/CameraParameters.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp
index 3dbf75e..68969cf 100644
--- a/camera/CameraParameters.cpp
+++ b/camera/CameraParameters.cpp
@@ -530,4 +530,8 @@ int CameraParameters::previewFormatToEnum(const char* format) {
-1;
}
+bool CameraParameters::isEmpty() const {
+ return mMap.isEmpty();
+}
+
}; // namespace android