diff options
author | Jay Wang <jaywang@codeaurora.org> | 2016-02-25 14:23:02 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-21 18:46:32 -0700 |
commit | b0068ff9e0b350b3b2189996bb08f3fdf00d59e4 (patch) | |
tree | 9f6aa82fd1400fbe38dcbf819f73ad9922dc16f2 /res | |
parent | 16f6d256ca94b68cb64187297494937207019b3f (diff) | |
download | android_packages_apps_Snap-b0068ff9e0b350b3b2189996bb08f3fdf00d59e4.tar.gz android_packages_apps_Snap-b0068ff9e0b350b3b2189996bb08f3fdf00d59e4.tar.bz2 android_packages_apps_Snap-b0068ff9e0b350b3b2189996bb08f3fdf00d59e4.zip |
SnapdragonCamera: Add face detection icon to video
Add video face detection to developer option
CRs-Fixed: 978207
Change-Id: I9308573a5a1004fc3803a955bc96f495ecbfc6c7
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/video_module.xml | 10 | ||||
-rw-r--r-- | res/xml/video_preferences.xml | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml index 561539e08..c6a9d7e80 100644 --- a/res/layout/video_module.xml +++ b/res/layout/video_module.xml @@ -28,6 +28,16 @@ android:layout_width="match_parent" android:layout_height="match_parent" /> </FrameLayout> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ViewStub android:id="@+id/face_view_stub" + android:inflatedId="@+id/face_view" + android:layout="@layout/face_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"/> + </FrameLayout> <View android:id="@+id/preview_cover" android:layout_width="match_parent" diff --git a/res/xml/video_preferences.xml b/res/xml/video_preferences.xml index dc3790162..00b55c6e6 100644 --- a/res/xml/video_preferences.xml +++ b/res/xml/video_preferences.xml @@ -124,6 +124,13 @@ camera:singleIcon="@drawable/ic_settings_filter" camera:entryValues="@array/pref_camera_coloreffect_entryvalues" /> <IconListPreference + camera:key="pref_camera_facedetection_key" + camera:defaultValue="@string/pref_camera_facedetection_default" + camera:title="@string/pref_camera_facedetection_title" + camera:entries="@array/pref_camera_facedetection_entries" + camera:singleIcon="@drawable/ic_settings_facerec" + camera:entryValues="@array/pref_camera_facedetection_entryvalues" /> + <IconListPreference camera:key="pref_camera_hfr_key" camera:defaultValue="@string/pref_camera_hfr_default" camera:title="@string/pref_camera_hfr_title" |