xref: /aosp_15_r20/cts/tests/tests/security/CameraPermissionTestApp/src/IntentKeys.kt (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1 /*
2  * Copyright (C) 2024 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 android.security.cts.camera.open.lib
18 
19 class IntentKeys(private val packageName: String) {
20   val shouldOpenCamera1: String
21     get() = "$packageName.SHOULD_OPEN_CAMERA_1"
22 
23   val shouldOpenCamera2: String
24     get() = "$packageName.SHOULD_OPEN_CAMERA_2"
25 
26   val shouldOpenCameraNdk: String
27     get() = "$packageName.SHOULD_OPEN_CAMERA_NDK"
28 
29   val shouldStream: String
30     get() = "$packageName.SHOULD_STREAM"
31 
32   val shouldRepeat: String // Should set a repeating request on the stream
33     get() = "$packageName.SHOULD_REPEAT"
34 
35   val finish: String
36     get() = "$packageName.FINISH"
37 
38   val onResume: String
39     get() = "$packageName.ON_RESUME"
40 
41   val cameraOpened1: String
42     get() = "$packageName.CAMERA_OPENED_1"
43 
44   val cameraOpened2: String
45     get() = "$packageName.CAMERA_OPENED_2"
46 
47   val cameraOpenedNdk: String
48     get() = "$packageName.CAMERA_OPENED_NDK"
49 
50   val streamOpened: String
51     get() = "$packageName.STREAM_OPENED"
52 
53   val error: String
54     get() = "$packageName.ERROR"
55 
56   val noCamera: String
57     get() = "$packageName.NO_CAMERA"
58 
59   val exception: String
60     get() = "$packageName.EXCEPTION"
61 
62   val aidlInterface: String
63     get() = "$packageName.AIDL_INTERFACE"
64 
65   val attributionSource: String
66     get() = "$packageName.ATTRIBUTION_SOURCE"
67 
68   val openCamera1ByProxy: String
69     get() = "$packageName.OPEN_CAMERA_1_BY_PROXY"
70 
71   val openCamera2ByProxy: String
72     get() = "$packageName.OPEN_CAMERA_2_BY_PROXY"
73 
74   val openCameraNdkByProxy: String
75     get() = "$packageName.OPEN_CAMERA_NDK_BY_PROXY"
76 
77   val stopRepeating: String
78     get() = "$packageName.STOP_REPEATING"
79 
80   val stoppedRepeating: String
81     get() = "$packageName.STOPPED_REPEATING"
82 
83   val pid: String
84     get() = "$packageName.PID"
85 }
86