Home
last modified time | relevance | path

Searched refs:scene (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/transition/src/android/transition/cts/
DSceneTest.java48 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()
95 Scene scene = loadScene(R.layout.scene1); in testFactory() local
96 constructorTest(scene); in testFactory()
101 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testGetCurrentScene() local
102 enterScene(scene); in testGetCurrentScene()
[all …]
DBaseTransitionTest.java108 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()
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
126 mActivityRule.runOnUiThread(() -> TransitionManager.go(scene, mTransition)); in startTransition()
138 protected void enterScene(final Scene scene) throws Throwable { in enterScene() argument
139 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, scene::enter, false); in enterScene()
[all …]
DTransitionManagerTest.java196 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()
274 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testEndTransitionsBeforeStarted() local
275 TransitionManager.go(scene, mTransition); in testEndTransitionsBeforeStarted()
286 Scene scene = loadScene(R.layout.scene1); in testGo_enterAction() local
288 scene.setEnterAction(enterCheck); in testGo_enterAction()
291 TransitionManager.go(scene); in testGo_enterAction()
[all …]
DChangeBoundsTest.java212 final Scene scene = loadScene(layoutId); in startTransitionAndWatch() local
215 TransitionManager.go(scene, mTransition); in startTransitionAndWatch()
DTransitionTest.java96 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener() local
97 TransitionManager.go(scene, autoTransition); in testAddListener()
/cts/apps/CameraITS/tools/
Drun_all_tests.py406 scenes = [scene for scene in scenes if HIDDEN_PHYSICAL_CAMERA_TESTS[scene]]
417 for scene in scenes:
421 tests = [(s[:-3], os.path.join("tests", scene, s))
422 for s in os.listdir(os.path.join("tests", scene))
427 summary = "Cam" + id_combo_string + " " + scene + "\n"
433 if scene_req[scene] is not None:
434 out_path = os.path.join(topdir, id_combo_string, scene+".jpg")
436 if scene == 'sensor_fusion':
446 scene_arg = 'scene=' + scene
456 scene_arg = 'scene=' + scene_req[scene]
[all …]
Dload_scene.py27 scene = None
30 scene = s[6:]
42 if not scene:
50 src_scene_path = os.path.join(os.environ['CAMERA_ITS_TOP'], 'tests', scene)
51 dst_scene_file = '/sdcard/Download/%s.pdf' % scene
55 scene, str(its.cv2image.SCALE_TELE_IN_WFOV_BOX))
58 scene, str(its.cv2image.SCALE_RFOV_IN_WFOV_BOX))
60 file_name = '%s.pdf' % scene
Drun_parallel_tests.py67 for scene in scenes:
69 cmds.append(build_cmd(device0_id, chart_host_id, device1_id, 0, scene))
70 cmds.append(build_cmd(device1_id, chart_host_id, device0_id, 1, scene))
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsTestActivity.java208 for (String scene : scenes) { in onReceive()
209 if (!mAllScenes.contains(new ResultKey(cameraId, scene))) { in onReceive()
225 for (String scene : scenes) { in onReceive()
227 mAllScenes.add(new ResultKey(c, scene)); in onReceive()
233 for (String scene : scenes) { in onReceive()
234 JSONObject sceneResult = jsonResults.getJSONObject(scene); in onReceive()
237 Log.e(TAG, "Result for " + scene + " is null"); in onReceive()
240 Log.i(TAG, "ITS camera" + cameraId + " " + scene + ": result:" + result); in onReceive()
242 Log.e(TAG, "Unknown result for " + scene + ": " + result); in onReceive()
245 ResultKey key = new ResultKey(cameraId, scene); in onReceive()
[all …]
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py176 chart, scene, s_factor = self._calc_scale_factors(cam, props, fmt,
188 if numpy.amax(scene) <= 1.0:
189 scene = (scene * 255.0).astype(numpy.uint8)
190 scene_gray = gray_scale_img(scene)
229 self.wnorm = float((bottom_right[0]) - top_left[0]) / scene.shape[1]
230 self.hnorm = float((bottom_right[1]) - top_left[1]) / scene.shape[0]
231 self.xnorm = float(top_left[0]) / scene.shape[1]
232 self.ynorm = float(top_left[1]) / scene.shape[0]
Ddevice.py1029 for scene in results:
1032 if result_key not in results[scene]:
1033 raise its.error.Error('ITS result not found for ' + scene)
1034 if results[scene][result_key] not in ItsSession.RESULT_VALUES:
1036 scene, results[result_key]))
1037 if summary_key in results[scene]:
1039 camera_id, scene)
1041 adb, results[scene][summary_key], device_summary_path))
1042 results[scene][summary_key] = device_summary_path