/cts/tests/tests/transition/src/android/transition/cts/ |
D | SceneTest.java | 29 import android.transition.Scene; 44 * Test Scene(ViewGroup) with enterAction and exitAction 48 Scene scene = new Scene(mSceneRoot); in testDynamicConstructor() local 49 assertEquals(mSceneRoot, scene.getSceneRoot()); in testDynamicConstructor() 53 scene.setEnterAction(enterCheck); in testDynamicConstructor() 55 scene.setExitAction(exitCheck); in testDynamicConstructor() 56 enterScene(scene); in testDynamicConstructor() 64 exitScene(scene); in testDynamicConstructor() 73 * Test Scene(ViewGroup, View) 78 constructorTest(new Scene(mSceneRoot, view)); in testViewConstructor() [all …]
|
D | BaseTransitionTest.java | 30 import android.transition.Scene; 107 protected Scene loadScene(final View layout) throws Throwable { in loadScene() 108 final Scene[] scene = new Scene[1]; in loadScene() local 109 mActivityRule.runOnUiThread(() -> scene[0] = new Scene(mSceneRoot, layout)); in loadScene() 111 return scene[0]; in loadScene() 114 protected Scene loadScene(final int layoutId) throws Throwable { in loadScene() 115 final Scene scene[] = new Scene[1]; in loadScene() local 117 () -> scene[0] = Scene.getSceneForLayout(mSceneRoot, layoutId, mActivity)); in loadScene() 118 return scene[0]; in loadScene() 125 protected void startTransition(final Scene scene) throws Throwable { in startTransition() argument [all …]
|
D | TransitionManagerTest.java | 31 import android.transition.Scene; 79 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultBeginDelayedTransition() 172 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultGo() 196 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1() local 197 transitionManager.setTransition(scene, mTransition); in testSetTransition1() 198 transitionManager.transitionTo(scene); in testSetTransition1() 215 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1() local 216 transitionManager.transitionTo(scene); in testSetTransition1() 226 final Scene[] scenes = new Scene[3]; in testSetTransition2() 229 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2() [all …]
|
D | TransitionTest.java | 47 import android.transition.Scene; 96 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener() local 97 TransitionManager.go(scene, autoTransition); in testAddListener() 312 Scene scene1 = loadScene(layout1); in testExcludeChildrenView() 317 Scene scene2 = loadScene(layout2); in testExcludeChildrenView() 371 Scene scene1 = loadScene(layout1); in testExcludeTargetView() 562 Scene scene1 = loadScene(R.layout.scene1); in testForceToEndTransitionsDependedEachOther() 563 Scene scene2 = loadScene(R.layout.scene2); in testForceToEndTransitionsDependedEachOther() 667 // scene 8 swaps the ids, but not the names. No transition should happen. in testMatchOrder() 706 final Scene scene1 = loadScene(layout1); in testGoWithNullParameter() [all …]
|
D | FadeTest.java | 32 import android.transition.Scene; 181 // After a transition, a transitioned view as part of a scene should not be removed 184 final Scene[] scene11 = new Scene[1]; in endVisibilityIsCorrect() 187 scene11[0] = new Scene(mSceneRoot, view); in endVisibilityIsCorrect() 189 final Scene scene14 = loadScene(R.layout.scene14); in endVisibilityIsCorrect()
|
D | TransitionInflaterTest.java | 38 import android.transition.Scene; 103 Scene scene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testInflateTransitionManager() 109 Scene scene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testInflateTransitionManager()
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 55 _INT_STR_DICT = {'11': '1_1', '12': '1_2'} # recover replaced '_' in scene def 58 # Notes on scene names: 59 # scene*_1/2/... are same scene split to load balance run times for scenes 60 # scene*_a/b/... are similar scenes that share one or more tests 82 # Scene requirements for manual testing. 85 'scene1_1': 'A grey card covering at least the middle 30% of the scene', 86 'scene1_2': 'A grey card covering at least the middle 30% of the scene', 94 'the scene. See tests/scene4/scene4.png', 168 for scene in results: 169 if RESULT_KEY not in results[scene]: [all …]
|
/cts/apps/CameraITS/tests/scene_change/ |
D | test_scene_change.py | 14 """Verify that the android.control.afSceneChange asserted on scene change.""" 63 """Determine if the scene has changed during captures. 70 A 2-tuple of booleans where the first is for AF scene change flag asserted 96 raise ValueError(f'Screen toggle time shifted to {delay} w/o scene change. ' 165 """Tests that AF scene change detected metadata changes for scene change. 167 Confirm android.control.afSceneChangeDetected is asserted when scene changes. 169 Does continuous capture with face scene during scene change. With no scene 171 Scene change is modeled with scene tablet powered down during continuous 172 capture. If tablet does not exist, scene change can be modeled with hand wave 175 Depending on scene brightness changes and scene change flag assertions during [all …]
|
/cts/apps/CameraITS/utils/ |
D | scene_change_utils.py | 14 """Utility functions for scene change test.""" 22 _FRAME_SHIFT_SMALL = 5 # Num of frames to shift if scene or brightness change. 43 1, 1, 1, X --> PASS: 3A settled, scene and brightness change 44 1, 1, 0, X --> FAIL: 3A settled, scene change, but no brightness change 57 logging.debug('Scene & brightness change: PASS.') 61 logging.error('Scene change, but no brightness change.') 62 else: # No scene change flag: shift timing 65 logging.debug('No scene change flag, but brightness change.') 67 logging.debug('No scene change flag, no brightness change.') 70 logging.debug('Scene dark entire capture.') [all …]
|
D | opencv_processing_utils.py | 236 xnorm: float; [0, 1] left loc of chart in scene 237 ynorm: float; [0, 1] top loc of chart in scene 238 wnorm: float; [0, 1] width of chart in scene 239 hnorm: float; [0, 1] height of chart in scene 245 chart, scene, s_factor = self._calc_scale_factors(cam, props, fmt, s, e, 257 if numpy.amax(scene) <= 1.0: 258 scene = (scene * 255.0).astype(numpy.uint8) 259 scene_gray = gray_scale_img(scene) 260 logging.debug('Finding chart in scene...') 274 estring = ('Warning: unable to find chart in scene!\n' [all …]
|
D | its_session_utils.py | 49 _VALIDATE_LIGHTING_THRESH = 0.05 # Determined empirically from scene[1:6] tests 997 def get_file_name_to_load(self, chart_distance, camera_fov, scene): argument 1003 scene: String; Scene to be used in the test. 1016 scene, str(opencv_processing_utils.SCALE_RFOV_IN_WFOV_BOX)) 1022 scene, str(opencv_processing_utils.SCALE_TELE_IN_WFOV_BOX)) 1028 scene, str(opencv_processing_utils.SCALE_TELE25_IN_RFOV_BOX)) 1034 scene, str(opencv_processing_utils.SCALE_TELE40_IN_RFOV_BOX)) 1040 scene, str(opencv_processing_utils.SCALE_TELE_IN_RFOV_BOX)) 1042 file_name = '%s.png' % scene 1043 logging.debug('Scene to load: %s', file_name) [all …]
|
D | target_exposure_utils.py | 145 the scene, cache it, then return it. 207 """Use device 3A and captured shots to determine scene exposure. 212 Assumes that the camera is pointed at a scene that is reasonably uniform 216 Measures the scene using device 3A and then by taking a shot to hone in on 218 the scene having a intensity level of 0.5 (in the pixel range of [0,1])
|
/cts/tests/openglperf2/jni/reference/scene/ |
D | Scene.cpp | 14 #include "Scene.h" 21 Scene::Scene(int width, int height) : in Scene() function in Scene 25 bool Scene::setUpContext() { in setUpContext() 45 bool Scene::tearDown() { in tearDown() 65 bool Scene::update(int frame) { in update() 67 // Delete the old scene graphs. in update() 75 void Scene::drawSceneGraph(int index) { in drawSceneGraph()
|
D | Scene.h | 24 class Scene { 26 Scene(int width, int height); 27 virtual ~Scene() {}; in ~Scene()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 60 * Test for Camera features that require that the camera be aimed at a specific test scene. 115 // (camera, scene) -> (pass, fail) 215 for (String scene : scenes) { in onReceive() 217 JSONObject sceneResult = jsonResults.getJSONObject(scene); in onReceive() 221 Log.e(TAG, "Result for " + scene + " is null"); in onReceive() 224 Log.i(TAG, "ITS camera" + cameraId + " " + scene + ": result:" + result); in onReceive() 226 Log.e(TAG, "Unknown result for " + scene + ": " + result); in onReceive() 229 ResultKey key = new ResultKey(cameraId, scene); in onReceive() 233 // Get start/end time per camera/scene for result history collection. in onReceive() 236 setTestResult(testId(cameraId, scene), pass ? in onReceive() [all …]
|
/cts/apps/CameraITS/tests/ |
D | its_base_test.py | 87 if self.user_params.get('scene'): 88 self.scene = self.user_params['scene'] 194 def determine_not_yet_mandated_tests(self, device_id, scene): argument 199 scene: scene to which tests belong to. 206 not_yet_mandated[scene] = [] 212 tests = NOT_YET_MANDATED[scene] 217 not_yet_mandated[scene].append(test) 225 if self.user_params.get('scene'): 227 self.dut.serial, self.scene) 228 if self.current_test_info.name in not_yet_mandated_tests[self.scene]:
|
/cts/tests/openglperf2/jni/reference/ |
D | ReferenceRenderer.h | 17 #include "scene/Scene.h" 35 Scene* mScenes[NUM_SCENES]; 36 Scene* mCurrentScene;
|
D | ReferenceRenderer.cpp | 16 #include "scene/flocking/FlockingScene.h" 17 #include "scene/glowing/GlowingScene.h" 99 __android_log_print(ANDROID_LOG_ERROR, "ReferenceRenderer", "Error when rendering scene"); in drawWorkload()
|
/cts/apps/CameraITS/ |
D | config.yml | 33 scene: <scene-name> # if <scene-name> left as-is runs all scenes
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_dng_noise_model.py | 49 measuring noise of a small patch) and some imperfect scene conditions 50 (since ITS doesn't require a perfectly uniformly lit scene). 71 # Load chart for scene 73 cam, props, self.scene, self.tablet, self.chart_distance) 75 # Expose for the scene with min sensitivity 82 # Focus at zero to intentionally blur the scene as much as possible.
|
D | test_3a.py | 14 """Verifies 3A converges with gray chart scene.""" 49 # Load chart for scene 51 cam, props, self.scene, self.tablet, self.chart_distance)
|
D | test_burst_sameness_manual.py | 49 Assumes a static scene. Can be used to idenfity if there are sporadic 69 # Load chart for scene 71 cam, props, self.scene, self.tablet, self.chart_distance)
|
/cts/tests/openglperf2/jni/reference/scene/glowing/ |
D | GlowingScene.h | 19 #include "../Scene.h" 21 class GlowingScene: public Scene {
|
D | GlowingScene.cpp | 28 Scene(width, height), mFboId(0), mMainProgram(NULL), mBlurProgram(NULL) { in GlowingScene() 38 if (!Scene::setUpContext()) { in setUpContext() 150 return Scene::tearDown(); in tearDown() 195 Scene::drawSceneGraph(2); // Blur to Screen in draw()
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | FlockingScene.h | 19 #include "../Scene.h" 22 class FlockingScene : public Scene {
|