Home
last modified time | relevance | path

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

/packages/apps/Music/tests/src/com/android/music/stress/
DAlbumsPlaybackStress.java61 Instrumentation inst = getInstrumentation(); in testAlbumPlay() local
63 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testAlbumPlay()
64 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testAlbumPlay()
65 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
66 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
67 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
69 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlbumPlay()
70 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlbumPlay()
72 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAlbumPlay()
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testAlbumPlay()
[all …]
DMusicPlaybackStress.java59 Instrumentation inst = getInstrumentation(); in testPlayAllSongs() local
60 … ActivityMonitor mediaPlaybackMon = inst.addMonitor("com.android.music.MediaPlaybackActivity", in testPlayAllSongs()
62 inst.invokeMenuActionSync(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 3, 0); in testPlayAllSongs()
69 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testPlayAllSongs()
70 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testPlayAllSongs()
71 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPlayAllSongs()
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testPlayAllSongs()
76 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPlayAllSongs()
/packages/apps/Email/src/org/apache/james/mime4j/util/
DTempStorage.java31 private static TempStorage inst = null; field in TempStorage
38 if (inst != null) {
39 inst = (TempStorage) Class.forName(clazz).newInstance();
47 if (inst == null) {
48 inst = new SimpleTempStorage();
61 return inst; in getInstance()
64 public static void setInstance(TempStorage inst) { in setInstance() argument
65 if (inst == null) { in setInstance()
68 TempStorage.inst = inst; in setInstance()
/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/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()
/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()
96 Instrumentation inst = getInstrumentation(); in testCapture5Videos() local
106 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
108 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
/packages/apps/Gallery/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()
96 Instrumentation inst = getInstrumentation(); in testCapture5Videos() local
106 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
108 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
/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()
/packages/apps/Camera/tests/src/com/android/camera/stress/
DCameraStartUp.java34 Instrumentation inst = getInstrumentation(); in launchCamera() local
35 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera()
56 Instrumentation inst = getInstrumentation(); in launchVideo() local
57 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
DImageCapture.java184 Instrumentation inst = getInstrumentation(); in testImageCapture() local
202 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testImageCapture()
203 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
237 Instrumentation inst = getInstrumentation(); in testVideoCapture() local
259 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testVideoCapture()
261 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testVideoCapture()
DCameraLatency.java70 Instrumentation inst = getInstrumentation(); in testImageCapture() local
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testImageCapture()
75 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
DSwitchPreview.java88 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
/packages/apps/Gallery/tests/src/com/android/camera/stress/
DCameraStartUp.java34 Instrumentation inst = getInstrumentation(); in launchCamera() local
35 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera()
56 Instrumentation inst = getInstrumentation(); in launchVideo() local
57 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
DImageCapture.java183 Instrumentation inst = getInstrumentation(); in testImageCapture() local
201 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testImageCapture()
202 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
236 Instrumentation inst = getInstrumentation(); in testVideoCapture() local
258 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testVideoCapture()
260 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testVideoCapture()
DCameraLatency.java69 Instrumentation inst = getInstrumentation(); in testImageCapture() local
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testImageCapture()
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
DSwitchPreview.java88 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
/packages/apps/Email/src/com/android/email/
DMessagingController.java116 private static MessagingController inst = null; field in MessagingController
162 if (inst == null) { in getInstance()
163 inst = new MessagingController(_context); in getInstance()
165 return inst; in getInstance()
172 inst = mockController; in injectMockController()