Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Music/tests/src/com/android/music/functional/
DTestPlaylist.java63 Instrumentation inst = getInstrumentation(); in clearSearchString() local
65 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DEL); in clearSearchString()
71 Instrumentation inst = getInstrumentation(); in deletePlaylist() local
72 inst.sendStringSync(playlistname); in deletePlaylist()
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in deletePlaylist()
75 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 1, 0); in deletePlaylist()
85 Instrumentation inst = getInstrumentation(); in addNewPlaylist() local
87 ActivityMonitor trackBrowserMon = inst.addMonitor("com.android.music.TrackBrowserActivity", in addNewPlaylist()
95 inst.invokeContextMenuAction(trackBrowserActivity, MusicUtils.Defs.NEW_PLAYLIST, 0); in addNewPlaylist()
99 inst.sendStringSync(playListName); in addNewPlaylist()
[all …]
DTestSongs.java70 Instrumentation inst = getInstrumentation(); in addNewPlaylist() local
72 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.NEW_PLAYLIST, 0); in addNewPlaylist()
76 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DEL); in addNewPlaylist()
77 inst.sendStringSync(MusicPlayerNames.unsortedPlaylistTitle[i]); in addNewPlaylist()
78 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in addNewPlaylist()
79 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in addNewPlaylist()
81 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in addNewPlaylist()
154 Instrumentation inst = getInstrumentation(); in testSetRingtone() local
155 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.USE_AS_RINGTONE, 0); in testSetRingtone()
178 Instrumentation inst = getInstrumentation(); in testDeleteSong() local
[all …]
/packages/apps/Music/tests/src/com/android/music/stress/
DAlbumsPlaybackStress.java62 Instrumentation inst = getInstrumentation(); in testAlbumPlay() local
64 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testAlbumPlay()
65 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testAlbumPlay()
66 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
67 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
68 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
70 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlbumPlay()
71 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlbumPlay()
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAlbumPlay()
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
[all …]
DMusicPlaybackStress.java58 Instrumentation inst = getInstrumentation(); in testPlayAllSongs() local
59 … ActivityMonitor mediaPlaybackMon = inst.addMonitor("com.android.music.MediaPlaybackActivity", in testPlayAllSongs()
61 inst.invokeMenuActionSync(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 3, 0); in testPlayAllSongs()
68 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testPlayAllSongs()
69 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testPlayAllSongs()
70 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPlayAllSongs()
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testPlayAllSongs()
75 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPlayAllSongs()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DTempStorage.java33 private static TempStorage inst = null; field in TempStorage
40 if (inst != null) {
41 inst = (TempStorage) Class.forName(clazz).newInstance();
49 if (inst == null) {
50 inst = new SimpleTempStorage();
63 return inst; in getInstance()
66 public static void setInstance(TempStorage inst) { in setInstance() argument
67 if (inst == null) { in setInstance()
70 TempStorage.inst = inst; in setInstance()
/packages/apps/Camera/tests/src/com/android/camera/stress/
DVideoCapture.java70 public void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument
79 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
81 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
88 Instrumentation inst = getInstrumentation(); in testBackVideoCapture() local
95 Activity act = inst.startActivitySync(intent); in testBackVideoCapture()
97 captureVideos("Back Camera Video Capture\n", inst); in testBackVideoCapture()
103 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local
110 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture()
112 captureVideos("Front Camera Video Capture\n", inst); in testFrontVideoCapture()
DImageCapture.java68 public void captureImages(String reportTag, Instrumentation inst) { in captureImages() argument
81 inst.sendKeySync(focusEvent); in captureImages()
82 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureImages()
94 Instrumentation inst = getInstrumentation(); in testBackImageCapture() local
101 Activity act = inst.startActivitySync(intent); in testBackImageCapture()
103 captureImages("Back Camera Image Capture\n", inst); in testBackImageCapture()
109 Instrumentation inst = getInstrumentation(); in testFrontImageCapture() local
116 Activity act = inst.startActivitySync(intent); in testFrontImageCapture()
118 captureImages("Front Camera Image Capture\n", inst); in testFrontImageCapture()
DCameraStartUp.java52 Instrumentation inst = getInstrumentation(); in launchCamera() local
53 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera()
75 Instrumentation inst = getInstrumentation(); in launchVideo() local
76 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
DCameraLatency.java72 Instrumentation inst = getInstrumentation(); in testImageCapture() local
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture()
77 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
DShotToShotLatency.java95 Instrumentation inst = getInstrumentation(); in testShotToShotLatency() local
99 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testShotToShotLatency()
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
DImageCapture.java70 public void captureImages(String reportTag, Instrumentation inst) { in captureImages() argument
83 inst.sendKeySync(focusEvent); in captureImages()
84 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureImages()
96 Instrumentation inst = getInstrumentation(); in testBackImageCapture() local
103 Activity act = inst.startActivitySync(intent); in testBackImageCapture()
105 captureImages("Back Camera Image Capture\n", inst); in testBackImageCapture()
111 Instrumentation inst = getInstrumentation(); in testFrontImageCapture() local
118 Activity act = inst.startActivitySync(intent); in testFrontImageCapture()
120 captureImages("Front Camera Image Capture\n", inst); in testFrontImageCapture()
DVideoCapture.java72 public void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument
81 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
83 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
90 Instrumentation inst = getInstrumentation(); in testBackVideoCapture() local
97 Activity act = inst.startActivitySync(intent); in testBackVideoCapture()
99 captureVideos("Back Camera Video Capture\n", inst); in testBackVideoCapture()
105 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local
112 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture()
114 captureVideos("Front Camera Video Capture\n", inst); in testFrontVideoCapture()
DCameraStartUp.java53 Instrumentation inst = getInstrumentation(); in launchCamera() local
54 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera()
75 Instrumentation inst = getInstrumentation(); in launchVideo() local
76 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
DCameraLatency.java72 Instrumentation inst = getInstrumentation(); in testImageCapture() local
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture()
77 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DImageCapture.java68 public void captureImages(String reportTag, Instrumentation inst) { in captureImages() argument
81 inst.sendKeySync(focusEvent); in captureImages()
82 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureImages()
93 Instrumentation inst = getInstrumentation(); in testBackImageCapture() local
100 Activity act = inst.startActivitySync(intent); in testBackImageCapture()
102 captureImages("Back Camera Image Capture\n", inst); in testBackImageCapture()
110 Instrumentation inst = getInstrumentation(); in testFrontImageCapture() local
117 Activity act = inst.startActivitySync(intent); in testFrontImageCapture()
119 captureImages("Front Camera Image Capture\n", inst); in testFrontImageCapture()
DVideoCapture.java69 public void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument
78 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
80 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
86 Instrumentation inst = getInstrumentation(); in testBackVideoCapture() local
93 Activity act = inst.startActivitySync(intent); in testBackVideoCapture()
95 captureVideos("Back Camera Video Capture\n", inst); in testBackVideoCapture()
103 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local
110 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture()
112 captureVideos("Front Camera Video Capture\n", inst); in testFrontVideoCapture()
DCameraStartUp.java52 Instrumentation inst = getInstrumentation(); in launchCamera() local
53 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera()
75 Instrumentation inst = getInstrumentation(); in launchVideo() local
76 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
DCameraLatency.java72 Instrumentation inst = getInstrumentation(); in testImageCapture() local
76 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
DShotToShotLatency.java94 Instrumentation inst = getInstrumentation(); in testShotToShotLatency() local
98 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testShotToShotLatency()
/packages/apps/Mms/tests/src/com/android/mms/
DMmsStability.java68 Instrumentation inst = getInstrumentation(); in run() local
85 Instrumentation inst = getInstrumentation(); in testSend5MMS() local
87 inst.sendStringSync(RECIPIENT_NUMBER); in testSend5MMS()
88 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testSend5MMS()
89 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testSend5MMS()
93 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testSend5MMS()
94 inst.sendStringSync(MESSAGE_CONTENT); in testSend5MMS()
96 inst.runOnMainSync(runnable); in testSend5MMS()
DInterceptSendSms.java89 Instrumentation inst = getInstrumentation(); in run() local
110 Instrumentation inst = getInstrumentation(); in testInterceptSendSms() local
113 inst.runOnMainSync(runnable); in testInterceptSendSms()
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/
DImageAndVideoCapture.java77 Instrumentation inst = getInstrumentation(); in testCapture5Image() local
81 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testCapture5Image()
82 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Image()
95 Instrumentation inst = getInstrumentation(); in testCapture5Videos() local
105 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
107 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
/packages/apps/Camera/tests/src/com/android/camera/power/
DImageAndVideoCapture.java77 Instrumentation inst = getInstrumentation(); in testCapture5Image() local
81 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testCapture5Image()
82 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Image()
95 Instrumentation inst = getInstrumentation(); in testCapture5Videos() local
105 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
107 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
/packages/apps/Camera/tests/src/com/android/camera/activity/
DCameraTestCase.java179 Instrumentation inst = getInstrumentation(); in internalTestFailToConnect() local
180 inst.waitForIdleSync(); in internalTestFailToConnect()
181 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); // close dialog in internalTestFailToConnect()
188 Instrumentation inst = getInstrumentation(); in performClick() local
189 inst.runOnMainSync(new Runnable() { in performClick()
204 inst.waitForIdleSync(); in performClick()
/packages/apps/Music/tests/src/com/android/music/
DMusicPlayerStability.java61 Instrumentation inst = getInstrumentation(); in testPlay30sMP3() local
64 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testPlay30sMP3()
69 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPlay30sMP3()

12