├── MODULE_LICENSE_APACHE2 ├── res ├── drawable-hdpi │ ├── photo_inner.9.png │ ├── appwidget_bg.9.png │ ├── ic_menu_3d_globe.png │ ├── camera_crop_height.png │ ├── camera_crop_width.png │ ├── ic_gallery_empty2.png │ ├── ic_launcher_camera.png │ ├── indicator_autocrop.png │ ├── detail_photo_border.9.png │ ├── ic_launcher_gallery.png │ ├── ic_menu_view_details.png │ ├── btn_check_buttonless_on.png │ ├── btn_check_buttonless_off.png │ ├── ic_error_mms_video_overlay.png │ ├── ic_gallery_video_overlay.png │ ├── ic_menu_camera_video_view.png │ ├── ic_missing_thumbnail_video.png │ ├── image_border_bg_normal.9.png │ ├── btn_camera_arrow_left_press.png │ ├── btn_camera_arrow_right_press.png │ ├── frame_gallery_preview_album.png │ ├── frame_overlay_gallery_camera.png │ ├── frame_overlay_gallery_folder.png │ ├── frame_overlay_gallery_video.png │ ├── ic_menu_multiselect_gallery.png │ ├── ic_missing_thumbnail_picture.png │ ├── image_border_bg_focus_blue.9.png │ ├── btn_camera_arrow_left_default.png │ ├── btn_camera_arrow_left_selected.png │ ├── btn_camera_arrow_right_default.png │ ├── btn_camera_arrow_right_selected.png │ ├── ic_btn_actionmenu_play_default.png │ ├── ic_btn_actionmenu_play_pressed.png │ ├── ic_btn_actionmenu_play_selected.png │ ├── ic_btn_actionmenu_share_default.png │ ├── ic_btn_actionmenu_share_pressed.png │ ├── image_border_bg_pressed_blue.9.png │ ├── frame_gallery_preview_album_mask.png │ ├── ic_btn_actionmenu_attach_default.png │ ├── ic_btn_actionmenu_attach_pressed.png │ ├── ic_btn_actionmenu_attach_selected.png │ ├── ic_btn_actionmenu_cancel_default.png │ ├── ic_btn_actionmenu_cancel_pressed.png │ ├── ic_btn_actionmenu_cancel_selected.png │ ├── ic_btn_actionmenu_delete_default.png │ ├── ic_btn_actionmenu_delete_pressed.png │ ├── ic_btn_actionmenu_delete_selected.png │ ├── ic_btn_actionmenu_set_as_default.png │ ├── ic_btn_actionmenu_set_as_pressed.png │ ├── ic_btn_actionmenu_set_as_selected.png │ ├── ic_btn_actionmenu_share_selected.png │ ├── frame_gallery_preview_album_pressed.png │ └── frame_gallery_preview_album_selected.png ├── drawable-mdpi │ ├── photo_inner.9.png │ ├── appwidget_bg.9.png │ ├── ic_menu_3d_globe.png │ ├── camera_crop_height.png │ ├── camera_crop_width.png │ ├── ic_gallery_empty2.png │ ├── ic_launcher_camera.png │ ├── indicator_autocrop.png │ ├── detail_photo_border.9.png │ ├── ic_launcher_gallery.png │ ├── ic_menu_view_details.png │ ├── btn_check_buttonless_on.png │ ├── btn_check_buttonless_off.png │ ├── ic_error_mms_video_overlay.png │ ├── ic_gallery_video_overlay.png │ ├── ic_menu_camera_video_view.png │ ├── ic_missing_thumbnail_video.png │ ├── image_border_bg_normal.9.png │ ├── btn_camera_arrow_left_press.png │ ├── btn_camera_arrow_right_press.png │ ├── frame_gallery_preview_album.png │ ├── frame_overlay_gallery_camera.png │ ├── frame_overlay_gallery_folder.png │ ├── frame_overlay_gallery_video.png │ ├── ic_menu_multiselect_gallery.png │ ├── ic_missing_thumbnail_picture.png │ ├── image_border_bg_focus_blue.9.png │ ├── btn_camera_arrow_left_default.png │ ├── btn_camera_arrow_left_selected.png │ ├── btn_camera_arrow_right_default.png │ ├── btn_camera_arrow_right_selected.png │ ├── ic_btn_actionmenu_play_default.png │ ├── ic_btn_actionmenu_play_pressed.png │ ├── ic_btn_actionmenu_play_selected.png │ ├── ic_btn_actionmenu_share_default.png │ ├── ic_btn_actionmenu_share_pressed.png │ ├── image_border_bg_pressed_blue.9.png │ ├── frame_gallery_preview_album_mask.png │ ├── ic_btn_actionmenu_attach_default.png │ ├── ic_btn_actionmenu_attach_pressed.png │ ├── ic_btn_actionmenu_attach_selected.png │ ├── ic_btn_actionmenu_cancel_default.png │ ├── ic_btn_actionmenu_cancel_pressed.png │ ├── ic_btn_actionmenu_cancel_selected.png │ ├── ic_btn_actionmenu_delete_default.png │ ├── ic_btn_actionmenu_delete_pressed.png │ ├── ic_btn_actionmenu_delete_selected.png │ ├── ic_btn_actionmenu_set_as_default.png │ ├── ic_btn_actionmenu_set_as_pressed.png │ ├── ic_btn_actionmenu_set_as_selected.png │ ├── ic_btn_actionmenu_share_selected.png │ ├── frame_gallery_preview_album_pressed.png │ └── frame_gallery_preview_album_selected.png ├── values-land │ └── dimens.xml ├── values │ ├── colors.xml │ ├── attrs.xml │ └── styles.xml ├── anim │ ├── slide_in.xml │ ├── slide_out.xml │ ├── slide_in_vertical.xml │ ├── slide_out_vertical.xml │ ├── transition_in.xml │ ├── footer_appear.xml │ ├── footer_disappear.xml │ └── transition_out.xml ├── xml │ ├── appwidget_info.xml │ └── gallery_preferences.xml ├── drawable │ ├── ic_menu_attach.xml │ ├── ic_menu_cancel.xml │ ├── grid_background.xml │ ├── ic_menu_share.xml │ ├── ic_menu_camera_play.xml │ ├── ic_menu_delete.xml │ ├── ic_menu_set_as.xml │ ├── btn_camera_arrow_left.xml │ ├── btn_camera_arrow_right.xml │ └── frame_gallery_preview.xml ├── layout │ ├── delete_image.xml │ ├── custom_gallery_title.xml │ ├── gallerypicker.xml │ ├── photo_frame.xml │ ├── gallery_picker_item.xml │ ├── gallerypicker_no_images.xml │ ├── movie_view.xml │ ├── cropimage.xml │ ├── image_gallery.xml │ └── viewimage.xml └── values-nl │ └── arrays.xml ├── Android.mk ├── tests ├── Android.mk ├── src │ └── com │ │ └── android │ │ └── camera │ │ ├── UnitTests.java │ │ ├── CameraLaunchPerformance.java │ │ ├── gallery │ │ ├── MockImageList.java │ │ ├── LruCacheUnitTests.java │ │ ├── MockImage.java │ │ └── ImageListUberUnitTests.java │ │ └── BitmapManagerUnitTests.java └── AndroidManifest.xml ├── src └── com │ └── android │ └── camera │ ├── PickWallpaper.java │ ├── NoSearchActivity.java │ ├── GallerySettings.java │ ├── gallery │ ├── SingleImageList.java │ ├── IImageList.java │ ├── LruCache.java │ ├── IImage.java │ ├── DrmImageList.java │ ├── VideoObject.java │ ├── VideoList.java │ ├── ImageList.java │ ├── Image.java │ ├── UriImage.java │ └── BaseImage.java │ ├── ReverseGeocoderTask.java │ ├── Wallpaper.java │ ├── DeleteImage.java │ ├── RotateBitmap.java │ ├── MonitoredActivity.java │ ├── PhotoAppWidgetBind.java │ ├── ActionMenuButton.java │ ├── MovieView.java │ ├── GalleryPickerItem.java │ ├── PhotoAppWidgetConfigure.java │ ├── EvenlySpacedLayout.java │ ├── ImageLoader.java │ ├── BitmapManager.java │ └── PhotoAppWidgetProvider.java └── CleanSpec.mk /MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /res/drawable-hdpi/photo_inner.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/photo_inner.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/photo_inner.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/photo_inner.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/appwidget_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/appwidget_bg.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_3d_globe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_menu_3d_globe.png -------------------------------------------------------------------------------- /res/drawable-mdpi/appwidget_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/appwidget_bg.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_3d_globe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_menu_3d_globe.png -------------------------------------------------------------------------------- /res/drawable-hdpi/camera_crop_height.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/camera_crop_height.png -------------------------------------------------------------------------------- /res/drawable-hdpi/camera_crop_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/camera_crop_width.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_gallery_empty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_gallery_empty2.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_launcher_camera.png -------------------------------------------------------------------------------- /res/drawable-hdpi/indicator_autocrop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/indicator_autocrop.png -------------------------------------------------------------------------------- /res/drawable-mdpi/camera_crop_height.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/camera_crop_height.png -------------------------------------------------------------------------------- /res/drawable-mdpi/camera_crop_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/camera_crop_width.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_gallery_empty2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_gallery_empty2.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_launcher_camera.png -------------------------------------------------------------------------------- /res/drawable-mdpi/indicator_autocrop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/indicator_autocrop.png -------------------------------------------------------------------------------- /res/drawable-hdpi/detail_photo_border.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/detail_photo_border.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher_gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_launcher_gallery.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_view_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_menu_view_details.png -------------------------------------------------------------------------------- /res/drawable-mdpi/detail_photo_border.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/detail_photo_border.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher_gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_launcher_gallery.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_view_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_menu_view_details.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_check_buttonless_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_check_buttonless_on.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_check_buttonless_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_check_buttonless_on.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_check_buttonless_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_check_buttonless_off.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_error_mms_video_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_error_mms_video_overlay.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_gallery_video_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_gallery_video_overlay.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_camera_video_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_menu_camera_video_view.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_missing_thumbnail_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_missing_thumbnail_video.png -------------------------------------------------------------------------------- /res/drawable-hdpi/image_border_bg_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/image_border_bg_normal.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_check_buttonless_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_check_buttonless_off.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_error_mms_video_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_error_mms_video_overlay.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_gallery_video_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_gallery_video_overlay.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_camera_video_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_menu_camera_video_view.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_missing_thumbnail_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_missing_thumbnail_video.png -------------------------------------------------------------------------------- /res/drawable-mdpi/image_border_bg_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/image_border_bg_normal.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_left_press.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_right_press.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_gallery_preview_album.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_gallery_preview_album.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_overlay_gallery_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_overlay_gallery_camera.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_overlay_gallery_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_overlay_gallery_folder.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_overlay_gallery_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_overlay_gallery_video.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_multiselect_gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_menu_multiselect_gallery.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_missing_thumbnail_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_missing_thumbnail_picture.png -------------------------------------------------------------------------------- /res/drawable-hdpi/image_border_bg_focus_blue.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/image_border_bg_focus_blue.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_left_press.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_right_press.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_gallery_preview_album.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_gallery_preview_album.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_overlay_gallery_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_overlay_gallery_camera.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_overlay_gallery_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_overlay_gallery_folder.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_overlay_gallery_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_overlay_gallery_video.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_menu_multiselect_gallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_menu_multiselect_gallery.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_missing_thumbnail_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_missing_thumbnail_picture.png -------------------------------------------------------------------------------- /res/drawable-mdpi/image_border_bg_focus_blue.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/image_border_bg_focus_blue.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_left_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_left_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_left_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_left_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_right_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_right_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/btn_camera_arrow_right_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/btn_camera_arrow_right_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_play_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_play_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_play_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_play_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_play_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_play_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_share_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_share_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_share_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_share_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/image_border_bg_pressed_blue.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/image_border_bg_pressed_blue.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_left_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_left_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_left_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_left_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_right_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_right_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/btn_camera_arrow_right_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/btn_camera_arrow_right_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_play_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_play_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_play_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_play_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_play_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_play_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_share_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_share_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_share_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_share_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/image_border_bg_pressed_blue.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/image_border_bg_pressed_blue.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_gallery_preview_album_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_gallery_preview_album_mask.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_attach_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_attach_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_attach_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_attach_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_attach_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_attach_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_cancel_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_cancel_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_cancel_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_cancel_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_cancel_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_cancel_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_delete_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_delete_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_delete_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_delete_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_delete_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_delete_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_set_as_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_set_as_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_set_as_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_set_as_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_set_as_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_set_as_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_btn_actionmenu_share_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/ic_btn_actionmenu_share_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_gallery_preview_album_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_gallery_preview_album_mask.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_attach_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_attach_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_attach_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_attach_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_attach_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_attach_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_cancel_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_cancel_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_cancel_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_cancel_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_cancel_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_cancel_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_delete_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_delete_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_delete_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_delete_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_delete_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_delete_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_set_as_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_set_as_default.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_set_as_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_set_as_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_set_as_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_set_as_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_btn_actionmenu_share_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/ic_btn_actionmenu_share_selected.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_gallery_preview_album_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_gallery_preview_album_pressed.png -------------------------------------------------------------------------------- /res/drawable-hdpi/frame_gallery_preview_album_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-hdpi/frame_gallery_preview_album_selected.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_gallery_preview_album_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_gallery_preview_album_pressed.png -------------------------------------------------------------------------------- /res/drawable-mdpi/frame_gallery_preview_album_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_packages_apps_Gallery/HEAD/res/drawable-mdpi/frame_gallery_preview_album_selected.png -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_MODULE_TAGS := optional 5 | 6 | LOCAL_SRC_FILES := $(call all-java-files-under, src) 7 | 8 | LOCAL_PACKAGE_NAME := Gallery 9 | LOCAL_CERTIFICATE := media 10 | 11 | include $(BUILD_PACKAGE) 12 | 13 | # Use the following include to make our test apk. 14 | include $(call all-makefiles-under,$(LOCAL_PATH)) 15 | -------------------------------------------------------------------------------- /tests/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | # We only want this apk build for tests. 5 | LOCAL_MODULE_TAGS := tests 6 | LOCAL_CERTIFICATE := media 7 | 8 | LOCAL_JAVA_LIBRARIES := android.test.runner 9 | 10 | # Include all test java files. 11 | LOCAL_SRC_FILES := $(call all-java-files-under, src) 12 | 13 | LOCAL_PACKAGE_NAME := GalleryTests 14 | 15 | LOCAL_INSTRUMENTATION_FOR := Gallery 16 | 17 | include $(BUILD_PACKAGE) 18 | 19 | 20 | -------------------------------------------------------------------------------- /res/values-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | #B2191919 22 | 23 | -------------------------------------------------------------------------------- /res/anim/slide_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /res/anim/slide_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /src/com/android/camera/PickWallpaper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera; 18 | 19 | /** 20 | * Wallpaper picker for the camera application. 21 | * This just redirects to the standard pick action. 22 | */ 23 | public class PickWallpaper extends Wallpaper { 24 | } 25 | -------------------------------------------------------------------------------- /res/anim/slide_in_vertical.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /res/anim/slide_out_vertical.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /src/com/android/camera/NoSearchActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera; 18 | 19 | import android.app.Activity; 20 | 21 | public class NoSearchActivity extends Activity { 22 | @Override 23 | public boolean onSearchRequested() { 24 | return false; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /res/anim/transition_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 25 | -------------------------------------------------------------------------------- /res/anim/footer_appear.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | 26 | -------------------------------------------------------------------------------- /res/anim/footer_disappear.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 25 | 26 | -------------------------------------------------------------------------------- /res/anim/transition_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | -------------------------------------------------------------------------------- /res/xml/appwidget_info.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_attach.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_cancel.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /res/drawable/grid_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_camera_play.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_delete.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/ic_menu_set_as.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/btn_camera_arrow_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 21 | 22 | 24 | 25 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /res/drawable/btn_camera_arrow_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 25 | 26 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /res/layout/delete_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 26 | 27 | -------------------------------------------------------------------------------- /src/com/android/camera/GallerySettings.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera; 18 | 19 | import com.android.gallery.R; 20 | 21 | import android.os.Bundle; 22 | import android.preference.PreferenceActivity; 23 | 24 | // GallerySettings 25 | // 26 | // This is the setting screen for Gallery. 27 | // It reads the available settings from an XML resource. 28 | public class GallerySettings extends PreferenceActivity { 29 | @Override 30 | public void onCreate(Bundle icicle) { 31 | super.onCreate(icicle); 32 | addPreferencesFromResource(R.xml.gallery_preferences); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/src/com/android/camera/UnitTests.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera; 18 | 19 | import android.test.suitebuilder.UnitTestSuiteBuilder; 20 | 21 | import junit.framework.Test; 22 | import junit.framework.TestSuite; 23 | 24 | /** 25 | * TestSuite for all Camera unit tests. 26 | */ 27 | public class UnitTests extends TestSuite { 28 | 29 | public static Test suite() { 30 | return new UnitTestSuiteBuilder(UnitTests.class) 31 | .includeAllPackagesUnderHere() 32 | .excludePackages("com.android.camera.stress") 33 | .named("Camera Unit Tests") 34 | .build(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /res/layout/custom_gallery_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 23 | 24 | 30 | 31 | -------------------------------------------------------------------------------- /tests/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 32 | 33 | -------------------------------------------------------------------------------- /res/drawable/frame_gallery_preview.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 21 | 22 | 24 | 25 | 27 | 28 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /res/layout/gallerypicker.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 33 | 34 | -------------------------------------------------------------------------------- /tests/src/com/android/camera/CameraLaunchPerformance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera; 18 | 19 | import android.app.Activity; 20 | import android.os.Bundle; 21 | import android.test.LaunchPerformanceBase; 22 | 23 | /** 24 | * Instrumentation class for Camera launch performance testing. 25 | */ 26 | public class CameraLaunchPerformance extends LaunchPerformanceBase { 27 | @SuppressWarnings("unused") 28 | private static final String TAG = "CameraLaunchPerformance"; 29 | 30 | @Override 31 | public void onCreate(Bundle arguments) { 32 | super.onCreate(arguments); 33 | mIntent.setClassName(getTargetContext(), "com.android.camera.Camera"); 34 | start(); 35 | } 36 | 37 | /** 38 | * Calls LaunchApp and finish. 39 | */ 40 | @Override 41 | public void onStart() { 42 | super.onStart(); 43 | LaunchApp(); 44 | finish(Activity.RESULT_OK, mResults); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /res/layout/photo_frame.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 22 | 26 | 27 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /tests/src/com/android/camera/gallery/MockImageList.java: -------------------------------------------------------------------------------- 1 | package com.android.camera.gallery; 2 | 3 | import android.content.ContentResolver; 4 | import android.net.Uri; 5 | import android.os.Parcel; 6 | 7 | import java.util.ArrayList; 8 | import java.util.HashMap; 9 | 10 | public class MockImageList implements IImageList { 11 | 12 | private final ArrayList mList = new ArrayList(); 13 | 14 | public void checkThumbnail(int index) { 15 | } 16 | 17 | public void deactivate() { 18 | } 19 | 20 | public HashMap getBucketIds() { 21 | return null; 22 | } 23 | 24 | public int getCount() { 25 | return mList.size(); 26 | } 27 | 28 | public IImage getImageAt(int i) { 29 | return mList.get(i); 30 | } 31 | 32 | public IImage getImageForUri(Uri uri) { 33 | return null; 34 | } 35 | 36 | public int getImageIndex(IImage image) { 37 | return mList.indexOf(image); 38 | } 39 | 40 | public boolean isEmpty() { 41 | return mList.isEmpty(); 42 | } 43 | 44 | public boolean removeImage(IImage image) { 45 | return mList.remove(image); 46 | } 47 | 48 | public boolean removeImageAt(int i) { 49 | return mList.remove(i) != null; 50 | } 51 | 52 | public void addImage(MockImage image) { 53 | mList.add(image); 54 | image.setContainer(this); 55 | } 56 | 57 | public void open(ContentResolver resolver) { 58 | } 59 | 60 | public void close() { 61 | } 62 | 63 | public void writeToParcel(Parcel out, int flags) { 64 | throw new UnsupportedOperationException(); 65 | } 66 | 67 | public int describeContents() { 68 | return 0; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /res/layout/gallery_picker_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | 23 | 27 | 28 | 40 | 41 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 35 | 36 | #00000000 37 | 41 | 42 | -------------------------------------------------------------------------------- /res/layout/gallerypicker_no_images.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 24 | 25 | 33 | 34 | 45 | 46 | -------------------------------------------------------------------------------- /res/values-nl/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | "Groot" 21 | "Klein" 22 | 23 | 24 | "Nieuwste eerst" 25 | "Nieuwste laatst" 26 | 27 | 28 | "2 seconden" 29 | "3 seconden" 30 | "4 seconden" 31 | 32 | 33 | "Infaden/uitfaden" 34 | "Dia vanaf linkerkant/rechterkant" 35 | "Dia vanaf bovenkant/onderkant" 36 | "Willekeurige selectie" 37 | 38 | 39 | -------------------------------------------------------------------------------- /res/layout/movie_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 22 | 26 | 27 | 32 | 33 | 38 | 39 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/com/android/camera/gallery/SingleImageList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.camera.gallery; 18 | 19 | import android.content.ContentResolver; 20 | import android.net.Uri; 21 | 22 | import java.util.HashMap; 23 | 24 | /** 25 | * An implementation of interface IImageList which contains only 26 | * one image. 27 | */ 28 | public class SingleImageList implements IImageList { 29 | 30 | @SuppressWarnings("unused") 31 | private static final String TAG = "BaseImageList"; 32 | 33 | private IImage mSingleImage; 34 | private Uri mUri; 35 | 36 | public SingleImageList(ContentResolver resolver, Uri uri) { 37 | mUri = uri; 38 | mSingleImage = new UriImage(this, resolver, uri); 39 | } 40 | 41 | public HashMap getBucketIds() { 42 | throw new UnsupportedOperationException(); 43 | } 44 | 45 | public int getCount() { 46 | return 1; 47 | } 48 | 49 | public boolean isEmpty() { 50 | return false; 51 | } 52 | 53 | public int getImageIndex(IImage image) { 54 | return image == mSingleImage ? 0 : -1; 55 | } 56 | 57 | public IImage getImageAt(int i) { 58 | return i == 0 ? mSingleImage : null; 59 | } 60 | 61 | public boolean removeImage(IImage image) { 62 | return false; 63 | } 64 | 65 | public boolean removeImageAt(int index) { 66 | return false; 67 | } 68 | 69 | public IImage getImageForUri(Uri uri) { 70 | return uri.equals(mUri) ? mSingleImage : null; 71 | } 72 | 73 | public void close() { 74 | mSingleImage = null; 75 | mUri = null; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /CleanSpec.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2007 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | # If you don't need to do a full clean build but would like to touch 17 | # a file or delete some intermediate files, add a clean step to the end 18 | # of the list. These steps will only be run once, if they haven't been 19 | # run before. 20 | # 21 | # E.g.: 22 | # $(call add-clean-step, touch -c external/sqlite/sqlite3.h) 23 | # $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) 24 | # 25 | # Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with 26 | # files that are missing or have been moved. 27 | # 28 | # Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. 29 | # Use $(OUT_DIR) to refer to the "out" directory. 30 | # 31 | # If you need to re-do something that's already mentioned, just copy 32 | # the command and add it to the bottom of the list. E.g., if a change 33 | # that you made last week required touching a file and a change you 34 | # made today requires touching the same file, just copy the old 35 | # touch step and add it to the end of the list. 36 | # 37 | # ************************************************ 38 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST 39 | # ************************************************ 40 | 41 | # For example: 42 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) 43 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) 44 | #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) 45 | #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) 46 | 47 | # ************************************************ 48 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST 49 | # ************************************************ 50 | -------------------------------------------------------------------------------- /res/layout/cropimage.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 25 | 26 | 33 | 40 |