Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java155 boolean add(SdpSearchInstance inst){ in add() argument
156 return list.add(inst); in add()
159 boolean remove(SdpSearchInstance inst) { in remove() argument
160 return list.remove(inst); in remove()
173 for (SdpSearchInstance inst : list) { in getSearchInstance()
174 if (inst.getDevice().getAddress().equals(addressString) in getSearchInstance()
175 && inst.getUuid().equals(uuid)) { in getSearchInstance()
176 return inst; in getSearchInstance()
184 for (SdpSearchInstance inst : list) { in isSearching()
185 if (inst.getDevice().getAddress().equals(addressString) in isSearching()
[all …]
/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/Camera2/tests/src/com/android/camera/stress/
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()
100 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local
107 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture()
109 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()
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()
107 Instrumentation inst = getInstrumentation(); in testFrontImageCapture() local
114 Activity act = inst.startActivitySync(intent); in testFrontImageCapture()
116 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.java74 Instrumentation inst = getInstrumentation(); in testImageCapture() local
75 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture()
79 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()
DSwitchPreview.java91 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
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()
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()
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()
DSwitchPreview.java92 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java73 BluetoothAdapter inst = BluetoothAdapter.getDefaultAdapter(); in testProcessInitProfilePriorities() local
74 BluetoothDevice device = inst.getRemoteDevice("00:01:02:03:04:05"); in testProcessInitProfilePriorities()
124 BluetoothAdapter inst = BluetoothAdapter.getDefaultAdapter(); in testAdapterOnAutoConnect() local
125 BluetoothDevice device = inst.getRemoteDevice("00:01:02:03:04:05"); in testAdapterOnAutoConnect()
174 BluetoothAdapter inst = BluetoothAdapter.getDefaultAdapter(); in testReconnectOnPartialConnect() local
175 BluetoothDevice device = inst.getRemoteDevice("00:01:02:03:04:05"); in testReconnectOnPartialConnect()
237 BluetoothAdapter inst = BluetoothAdapter.getDefaultAdapter(); in testNoReconnectOnNoConnect() local
238 BluetoothDevice device = inst.getRemoteDevice("00:01:02:03:04:05"); in testNoReconnectOnNoConnect()
309 BluetoothAdapter inst = BluetoothAdapter.getDefaultAdapter(); in testNoSupportedUuids() local
310 BluetoothDevice device = inst.getRemoteDevice("00:01:02:03:04:05"); in testNoSupportedUuids()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMasClient.java176 MasClientHandler(Looper looper, MasClient inst) { in MasClientHandler() argument
178 mInst = new WeakReference<>(inst); in MasClientHandler()
183 MasClient inst = mInst.get(); in handleMessage() local
184 if (!inst.mConnected && msg.what != CONNECT) { in handleMessage()
191 inst.connect(); in handleMessage()
195 inst.disconnect(); in handleMessage()
199 inst.executeRequest((Request) msg.obj); in handleMessage()
DMnsObexServer.java98 Byte inst = oap.getByte(Request.OAP_TAGID_MAS_INSTANCE_ID); in onPut() local
/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/Bluetooth/src/com/android/bluetooth/a2dpsink/mbs/
DA2dpMediaBrowserService.java122 A2dpMediaBrowserService inst = mInst.get(); in handleMessage() local
123 if (inst == null) { in handleMessage()
130 inst.msgDeviceConnect((BluetoothDevice) msg.obj); in handleMessage()
133 inst.msgDeviceDisconnect((BluetoothDevice) msg.obj); in handleMessage()
138 inst.msgTrack(pair.first, pair.second); in handleMessage()
141 inst.msgPassThru((int) msg.obj); in handleMessage()
144 inst.msgGetPlayStatusNative(); in handleMessage()
147 inst.msgDeviceBrowseConnect((BluetoothDevice) msg.obj); in handleMessage()
150 inst.msgDeviceBrowseDisconnect((BluetoothDevice) msg.obj); in handleMessage()
153 inst.msgFolderList((Intent) msg.obj); in handleMessage()
/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/Bluetooth/tests/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceTest.java45 AdapterService inst = mock(AdapterService.class); in startServices() local
46 assertTrue(inst != null); in startServices()
DHeadsetClientStateMachineTest.java29 AdapterService inst = mock(AdapterService.class); in setUp() local
30 assertTrue(inst != null); in setUp()

12