/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/ |
D | SdpManager.java | 155 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/ |
D | TestPlaylist.java | 63 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 …]
|
D | TestSongs.java | 70 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/ |
D | AlbumsPlaybackStress.java | 62 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 …]
|
D | MusicPlaybackStress.java | 58 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/ |
D | TempStorage.java | 33 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/ |
D | VideoCapture.java | 69 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()
|
D | ImageCapture.java | 68 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()
|
D | CameraStartUp.java | 52 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()
|
D | CameraLatency.java | 74 Instrumentation inst = getInstrumentation(); in testImageCapture() local 75 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture() 79 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
|
D | ShotToShotLatency.java | 94 Instrumentation inst = getInstrumentation(); in testShotToShotLatency() local 98 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testShotToShotLatency()
|
D | SwitchPreview.java | 91 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/ |
D | VideoCapture.java | 72 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()
|
D | ImageCapture.java | 70 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()
|
D | CameraStartUp.java | 53 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()
|
D | CameraLatency.java | 72 Instrumentation inst = getInstrumentation(); in testImageCapture() local 73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture() 77 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
|
D | SwitchPreview.java | 92 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 73 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/ |
D | MasClient.java | 176 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()
|
D | MnsObexServer.java | 98 Byte inst = oap.getByte(Request.OAP_TAGID_MAS_INSTANCE_ID); in onPut() local
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/ |
D | ImageAndVideoCapture.java | 77 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/ |
D | A2dpMediaBrowserService.java | 122 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/ |
D | MusicPlayerStability.java | 61 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/ |
D | HeadsetClientServiceTest.java | 45 AdapterService inst = mock(AdapterService.class); in startServices() local 46 assertTrue(inst != null); in startServices()
|
D | HeadsetClientStateMachineTest.java | 29 AdapterService inst = mock(AdapterService.class); in setUp() local 30 assertTrue(inst != null); in setUp()
|