OSDN Git Service

Convert Logger from a class to an interface.
authorPaul Rohde <codelogic@google.com>
Tue, 27 Jan 2015 23:26:41 +0000 (15:26 -0800)
committerPaul Rohde <codelogic@google.com>
Wed, 28 Jan 2015 21:02:20 +0000 (13:02 -0800)
commit1e123ea83881996b6c5ac3e29702050cc42d43ad
treec275e23c5a9e882a5e858115e6d5bf41c1d6f2c0
parentd674f58cae699f644333ec4a15a391d8bf59c9fd
Convert Logger from a class to an interface.

This set of changes makes it easier to insert any Logger implementation into a method and to ask for instances during object creation so that objects that require logging and testing can be easily tested.

- Add Loggers for individual Logger types.
- Add static methods for existing TagLogger.
- Add NoOp logger implementation.

Change-Id: I30c03667c88214cff03521d0a1f6fa3b00851a68
src/com/android/camera/debug/Logger.java
src/com/android/camera/debug/Loggers.java [new file with mode: 0644]
src/com/android/camera/one/v2/LoggingImageReader.java
src/com/android/camera/one/v2/ZslOneCameraFactory.java