1 /*
2 * Copyright (C) 2012 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 /*
18 * Contains implementation of a class EmulatedFakeCamera2 that encapsulates
19 * functionality of an advanced fake camera.
20 */
21
22 #define LOG_NDEBUG 0
23 #define LOG_TAG "EmulatedCamera_FakeCamera2"
24 #include <cutils/log.h>
25 #include <cutils/properties.h>
26 #include "EmulatedFakeCamera2.h"
27 #include "EmulatedCameraFactory.h"
28
29 namespace android {
30
EmulatedFakeCamera2(int cameraId,bool facingBack,struct hw_module_t * module)31 EmulatedFakeCamera2::EmulatedFakeCamera2(int cameraId,
32 bool facingBack,
33 struct hw_module_t* module)
34 : EmulatedCamera2(cameraId,module),
35 mFacingBack(facingBack)
36 {
37 ALOGD("Constructing emulated fake camera 2 facing %s",
38 facingBack ? "back" : "front");
39 }
40
~EmulatedFakeCamera2()41 EmulatedFakeCamera2::~EmulatedFakeCamera2()
42 {
43 }
44
45 /****************************************************************************
46 * Public API overrides
47 ***************************************************************************/
48
Initialize()49 status_t EmulatedFakeCamera2::Initialize()
50 {
51 return NO_ERROR;
52 }
53
54 }; /* namespace android */
55