f2399a5148ec6f101e9e0b3f137d33b443b79b8c |
|
24-Feb-2015 |
Alan Newberger <alann@google.com> |
Make module scope prefix a static agent value This removes the multiple "PhotoModule" strings across the codebase and allows for retrieval of a module's string scope prefix as part of its static ModuleAgent properties rather than as a property of the module itself. Bug: 19482146 Change-Id: I2c36878dd070106149909f19f98bcae221b94012
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
0bdc4b54a18c18d7094b2e4cea1e238005c5c4a2 |
|
18-Nov-2014 |
Senpo Hu <senpo@google.com> |
Unify orientation calculation logic. Camera API takes clockwise degrees for JPEG rotation and OrientationEventListener reports clockwise device orientation. The easiest formula of calculating output image rotation degree is: "camera sensor orientation" + "device orientation" Since front cameras face in opposite direction. The result needs to be mirrored for front camera. Detailed changes: * Refactor OrientationManager to remove unnecessary complexity. * Add OrientationManager.DeviceOrientation enum and OrientationManager.getDeviceOrientation * Remove CameraUtil.roundOrientation. * Fix the weird calculation which is hard to understand in CameraUtil.getJpegRotation and add CameraUtil.getImageRotation * Clean up image rotation logic in all modules: * Always look up the current device orientation via OrientationManager.getDeviceOrientation * Fix the doc for copyImagePlaneToBitmap() which actually rotates image counterclockwise. * Clean up CameraActivity: * Remove CameraActivity.onOrientationChanged and ModuleController.onOrientationChanged. Any individual module which wants to listen orientation change should register itself to OrientationManager. Now only VideoModule needs to do that. Bug: 17443789 Change-Id: I6d54cac5bde950acae0c3226448c27a816266df0
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
6190c36db653e848f29d1caefc4fa1bb61e8a662 |
|
13-Jun-2014 |
Erin Dahlgren <edahlgren@google.com> |
New Settings API Based on discussions from last week and comments on the design doc, this api begins to implement the following: 1. Adds a "Scope" variable to api, which tells the SettingsManager whether the setting can be stored globally (so that it is visible to all parts of the app), or per-camera, or per-module, or per- custom scope that the api user provides. 2. Separates keys and default values from SettingsManager, to make it easy to add new settings/defaults from third party modules. 3. Stores all settings as strings, to avoid upgrade errors, and handles casting to type requested. Only String, Integer, and boolean are supported. 4. Opens SharedPreferences files on demand, depending on scope argument. 5. Creates a "DefaultsStore" to hold the defaults and possible values of a setting. Then a user can request the default or possible values of a setting at any time. Change-Id: I03e0e1dd0955c519f54112e89716014aa963a425
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
5a344964cb003525727c31d295ca3a592c245606 |
|
17-Jun-2014 |
Sol Boucher <solb@google.com> |
Remove cameradevice subpackage and point references at ex library This code is being relocated into frameworks/ex for availability to other apps. Change-Id: Icada261ac7a795b08dd8b187dfd17077077b37c3
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
1045fefdf22bd58fa911b100e7db5750f7efa3e6 |
|
21-Apr-2014 |
Angus Kong <shkong@google.com> |
Create cameradevice package for camera management. Change-Id: I73c69a70736b0b0eb0ef069a7876cf75fee91262
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
63ab7ed46e9c8a74d3bd95a4215ea7c392e938c5 |
|
28-Mar-2014 |
Erin Dahlgren <edahlgren@google.com> |
am 1ca516f2: Allow modules to hard reset settings to prevent out-of-sync errors. * commit '1ca516f2b612f91e0857ca87d978d39c2aba7c8c': Allow modules to hard reset settings to prevent out-of-sync errors.
|
1ca516f2b612f91e0857ca87d978d39c2aba7c8c |
|
28-Mar-2014 |
Erin Dahlgren <edahlgren@google.com> |
Allow modules to hard reset settings to prevent out-of-sync errors. Bug: 13663716 Bug: 13507557 Change-Id: Ie4e66c356c69c3a75a568dae13ddd2d42f60179e
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
59953a2bd28fa476bcb200623fe21da2f64f46ad |
|
08-Mar-2014 |
Teresa Ko <teresako@google.com> |
Move startSmartCamera call back into onPreviewStarted(). (onPreviewInitialDataReceived() doesn't seem to be called anymore.) Change-Id: I25455dd8e1076150be37e419c73d5e5447c144d2
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
5d18769f53db81d401488811250570290a73626b |
|
26-Feb-2014 |
Erin Dahlgren <edahlgren@google.com> |
Generalize shutter button listeners and add one for mode options. Bug: 13099000 Change-Id: Ib0726c70a9e4aa06197550f29360bacb2dda4783
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
8c1a922df154182b53f00c38198db7da0b4feb20 |
|
25-Feb-2014 |
Sascha Haeberling <haeberling@google.com> |
Make visibility support three states. Bug: 13169154 This will enable us to either stop preview rendering or pause picture taking in certain modes. Change-Id: I28014452ce43effeeaef9638b2f3a3bc42027257
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
3083642a424b74e8f7b898f26a045f438edfa042 |
|
06-Feb-2014 |
Seth Raphael <magicseth@google.com> |
Give Smart Camera a signal to start Change-Id: I1b31d4cbf81a5865ef0807b07df0f644fa871247
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
fe60979d7d7ce78de503404da8e91e118242071a |
|
07-Feb-2014 |
Angus Kong <shkong@google.com> |
Move onPreviewAreaSizeChanged() out of layout pass Change-Id: I4eb6f6ffda1438fca7575328ce09945d40549d51
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
846d3abfe3da2fa2a5593c7d40a196005408bed1 |
|
04-Feb-2014 |
Sascha Haeberling <haeberling@google.com> |
Avoid activity leaks. Bug: 12805279 Change-Id: Ib91ff2d286f6a0e0d67dad673e7af24600e15759
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
b1641f5df0cf839b54385ea4d2e43521620fc237 |
|
15-Jan-2014 |
Erin Dahlgren <edahlgren@google.com> |
Remove global UI elements based on supported camera parameters. Bug: 12192238 Change-Id: I6373adeaa9c95385a2a4ca8d81cf7656550911f2
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
0a6a8d8e4e1c9796aac606379a42970cdffb8911 |
|
10-Jan-2014 |
Erin Dahlgren <edahlgren@google.com> |
Sync dependencies between bottom bar options. * Centralizes the bottom bar button customization. * Makes HDR+ and front camera exclusive. Bug: 12469207 Change-Id: I65e3d16d314a26889f04e9bcc26fa4bf095150b7 Conflicts: src/com/android/camera/ButtonManager.java
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
4efa8b54c1df4e06f2d3caed2568015a737f9dda |
|
18-Dec-2013 |
Erin Dahlgren <edahlgren@google.com> |
New Capture UI. * depends on ag/400799 Change-Id: Ieb0e27447659bcb04dee57348583f68d680408d2
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
a63dbb6231f06031204fe20b19a87d0440bd1661 |
|
22-Nov-2013 |
Sascha Haeberling <haeberling@google.com> |
Add a capture-session API to be used by all modules. Bug: 11747284 This refactors the way we think of sessions. Instead of having multiple session and notification APIs being used by different modules, we create on central capture session API to be used by all modules. This also adds a first implementation of a Memory API which tells modules about the current memory situation. Change-Id: I7f030e32fc2f70f4007825ba7bbbdce9521a2bd9
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
faaee012acc80ad369cb03df9c196e48140f1e7b |
|
07-Dec-2013 |
Angus Kong <shkong@google.com> |
Re-design callbacks from filmstrip. Enumerated the possible states of filmstrip and have proper callbacks when entering/leaving each of the states. Change-Id: I5a6e931095bb0792e0832fda11d1f1b5ba850263
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
2f0e4a3995684c986afad55db7715c15393a9df0 |
|
03-Dec-2013 |
Angus Kong <shkong@google.com> |
Make onLayoutOrientationChanged to take a boolean. ModuleController.onLayoutOrientationChanged() call back can just take a boolean to know whether the layout orientation is in landscape or portrait. Change-Id: I1675cbea263b12bb0b568a6038f0fc17dd03799a
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
53ae041d63ee7a251c73ac47abeeb143a2f0da44 |
|
02-Dec-2013 |
Angus Kong <shkong@google.com> |
Change to have finer callbacks. onConfigurationChanged() is too general since the configuration contains many things. Should use finer callbacks for each of the changes we care about. Change-Id: I5ffbb7f1f71e6675a4fbb07e564ae09f55fa5127
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
13e87c4d06e96e03adc229637f07baf3b56b90d6 |
|
25-Nov-2013 |
Angus Kong <shkong@google.com> |
Migrate from old CameraModule to ModuleController. The following methods are removed. init() of old module interface onUserInteraction() installIntetFilter() onPreviewTextureCopied() onCaptureTextureCopied() onStop() onActivityResult() onShowSwitcherPopup updateStorageHintOnResume() The logic of controlling screen on/off is moved to CameraActivity. Change-Id: I6807ac6bc314bdfcfe47273baf071be94098fd44
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
20fad249cbb587b8cf03e8e53bc64ff8e0bec7fd |
|
12-Nov-2013 |
Angus Kong <shkong@google.com> |
Major refactor: Make resources access through app. 1. Make the camera device avaiability a callback event so the process can be event-driven. 2. Add ModuleManager interface and implementation. 3. Make AndroidCameraManagerImpl implementation package private. This CL is the refactoring work on Gallery2 side. The other part is http://ag/389297/ Known issue: only work for normal photo mode and video mode for now. Change-Id: Ib0a89ca56c00f6a7294192e9737a70dec5143ee3
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
c02b13af4c44fe23d4a563d3c2df1ca50e44affc |
|
12-Nov-2013 |
Angus Kong <shkong@google.com> |
Refine comments and small change of interfaces. 1. Use Context as possible as we can instead of the concrete implementaion Activity. 2. Update/add some comments. Change-Id: If80b2a8ab9ddeb297b8ec821568a74db4f52104f
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
9f1db5210361802a30a7866825c3b29ef5fe0024 |
|
10-Nov-2013 |
Angus Kong <shkong@google.com> |
Refactor OrientationManager. We should use a single OrientationManager instead of one for each module. Change-Id: I20adddf50e9e55e4af44bfbe4298bdb1e1e50df3
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
628481532e1e58a0a26330d238e850aec5657bce |
|
09-Nov-2013 |
Angus Kong <shkong@google.com> |
Further refactor 1. Create filmstrip package. 2. Move ImageTaskManager to under package app/. 3. Adde app UI abstract layer AppUi. Change-Id: I9d640de65c59196c5d3e5c3a8901bb3220b29f62
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
51ae7a844570f85b68a989034f7391260d88a783 |
|
08-Nov-2013 |
Angus Kong <shkong@google.com> |
Add more interfaces for app and modules. Change-Id: Ie67f90f227b5bc74bc7ac39fca72dfd1741140ca
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|
fa27423125e78f43d8dbae987c34314a238f205c |
|
07-Nov-2013 |
Angus Kong <shkong@google.com> |
Introducing new architect. Change-Id: Iedcc7c264d66a933725fae73eb00c70cc544db8c
/packages/apps/Camera2/src/com/android/camera/module/ModuleController.java
|