/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sdp/ |
D | SdpManager.java | 129 boolean add(SdpSearchInstance inst) { in add() argument 130 return mList.add(inst); in add() 133 boolean remove(SdpSearchInstance inst) { in remove() argument 134 return mList.remove(inst); in remove() 151 for (SdpSearchInstance inst : mList) { in getSearchInstance() 154 ? Utils.getBrEdrAddress(inst.getDevice(), mAdapterService) in getSearchInstance() 155 : mAdapterService.getIdentityAddress(inst.getDevice().getAddress()); in getSearchInstance() 156 if (instAddressString.equals(addressString) && inst.getUuid().equals(uuid)) { in getSearchInstance() 157 return inst; in getSearchInstance() 168 for (SdpSearchInstance inst : mList) { in isSearching() [all …]
|
/packages/apps/Camera2/tests/src/com/android/camera/stress/ |
D | VideoCapture.java | 65 public void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument 74 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos() 76 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos() 82 Instrumentation inst = getInstrumentation(); in testBackVideoCapture() local 89 Activity act = inst.startActivitySync(intent); in testBackVideoCapture() 91 captureVideos("Back Camera Video Capture\n", inst); in testBackVideoCapture() 96 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local 103 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture() 105 captureVideos("Front Camera Video Capture\n", inst); in testFrontVideoCapture()
|
D | ImageCapture.java | 66 public void captureImages(String reportTag, Instrumentation inst) { in captureImages() argument 79 inst.sendKeySync(focusEvent); in captureImages() 80 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureImages() 91 Instrumentation inst = getInstrumentation(); in testBackImageCapture() local 98 Activity act = inst.startActivitySync(intent); in testBackImageCapture() 100 captureImages("Back Camera Image Capture\n", inst); in testBackImageCapture() 105 Instrumentation inst = getInstrumentation(); in testFrontImageCapture() local 112 Activity act = inst.startActivitySync(intent); in testFrontImageCapture() 114 captureImages("Front Camera Image Capture\n", inst); in testFrontImageCapture()
|
D | CameraStartUp.java | 51 Instrumentation inst = getInstrumentation(); in launchCamera() local 52 Activity cameraActivity = inst.startActivitySync(intent); in launchCamera() 74 Instrumentation inst = getInstrumentation(); in launchVideo() local 75 Activity recorderActivity = inst.startActivitySync(intent); in launchVideo()
|
D | CameraLatency.java | 73 Instrumentation inst = getInstrumentation(); in testImageCapture() local 74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture() 78 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
|
D | ShotToShotLatency.java | 95 Instrumentation inst = getInstrumentation(); in testShotToShotLatency() local 99 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testShotToShotLatency()
|
D | SwitchPreview.java | 90 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/ |
D | VideoCapture.java | 68 public void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument 77 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos() 79 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() 101 Instrumentation inst = getInstrumentation(); in testFrontVideoCapture() local 108 Activity act = inst.startActivitySync(intent); in testFrontVideoCapture() 110 captureVideos("Front Camera Video Capture\n", inst); in testFrontVideoCapture()
|
D | ImageCapture.java | 69 public void captureImages(String reportTag, Instrumentation inst) { in captureImages() argument 82 inst.sendKeySync(focusEvent); in captureImages() 83 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureImages() 95 Instrumentation inst = getInstrumentation(); in testBackImageCapture() local 102 Activity act = inst.startActivitySync(intent); in testBackImageCapture() 104 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()
|
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 | 73 Instrumentation inst = getInstrumentation(); in testImageCapture() local 74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testImageCapture() 78 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
|
D | SwitchPreview.java | 93 Instrumentation inst = getInstrumentation(); in testSwitchMode() local
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MasClient.java | 222 MasClientHandler(Looper looper, MasClient inst) { in MasClientHandler() argument 224 mInst = new WeakReference<>(inst); in MasClientHandler() 229 MasClient inst = mInst.get(); in handleMessage() local 232 if (!inst.mConnected) { in handleMessage() 233 inst.connect(); in handleMessage() 238 if (inst.mConnected) { in handleMessage() 239 inst.disconnect(); in handleMessage() 244 if (inst.mConnected) { in handleMessage() 245 inst.executeRequest((Request) msg.obj); in handleMessage()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | PhotoPickerComponentTestUtils.java | 51 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in getCurrentStateAndEnable() local 52 final PackageManager packageManager = inst.getContext().getPackageManager(); in getCurrentStateAndEnable() 65 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setState() local 66 updateComponentEnabledSetting(inst.getContext().getPackageManager(), in setState() 77 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in updateComponentEnabledSetting() local 78 inst.getUiAutomation().adoptShellPermissionIdentity( in updateComponentEnabledSetting() 84 inst.getUiAutomation().dropShellPermissionIdentity(); in updateComponentEnabledSetting()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 388 AvrcpBipClientHandler(Looper looper, AvrcpBipClient inst) { in AvrcpBipClientHandler() argument 390 mInst = new WeakReference<>(inst); in AvrcpBipClientHandler() 395 AvrcpBipClient inst = mInst.get(); in handleMessage() local 398 if (!inst.isConnected()) { in handleMessage() 399 inst.connect(); in handleMessage() 404 if (inst.isConnected()) { in handleMessage() 405 inst.disconnect(); in handleMessage() 410 if (inst.isConnected()) { in handleMessage() 411 inst.refreshObexSession(); in handleMessage() 416 if (inst.isConnected()) { in handleMessage() [all …]
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/ |
D | ImageAndVideoCapture.java | 79 Instrumentation inst = getInstrumentation(); in testCapture5Image() local 83 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testCapture5Image() 84 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Image() 97 Instrumentation inst = getInstrumentation(); in testCapture5Videos() local 107 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos() 109 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testCapture5Videos()
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_types.h | 228 for (const auto& [_, inst] : csis_instances_) { in FindValueHandleByCccHandle() 229 if (inst->svc_data.sirk_handle.ccc_hdl == ccc_handle) { in FindValueHandleByCccHandle() 230 val_handle = inst->svc_data.sirk_handle.val_hdl; in FindValueHandleByCccHandle() 231 } else if (inst->svc_data.lock_handle.ccc_hdl == ccc_handle) { in FindValueHandleByCccHandle() 232 val_handle = inst->svc_data.lock_handle.val_hdl; in FindValueHandleByCccHandle() 233 } else if (inst->svc_data.size_handle.ccc_hdl == ccc_handle) { in FindValueHandleByCccHandle() 234 val_handle = inst->svc_data.size_handle.val_hdl; in FindValueHandleByCccHandle() 245 for (const auto& [h, inst] : csis_instances_) { in GetCsisInstanceByOwningHandle() 246 if (handle >= inst->svc_data.start_handle && in GetCsisInstanceByOwningHandle() 247 handle <= inst->svc_data.end_handle) { in GetCsisInstanceByOwningHandle() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | ScreenRecordRule.java | 55 Instrumentation inst = getInstrumentation(); in apply() 56 UiAutomation automation = inst.getUiAutomation(); in apply() 57 UiDevice device = UiDevice.getInstance(inst); in apply() 59 File outputFile = new File(inst.getTargetContext().getFilesDir(), in apply()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | CacheClearingActivityTest.java | 37 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in testSimple() local 38 final Intent intent = new Intent(inst.getContext(), GetResultActivity.class); in testSimple() 41 final GetResultActivity activity = (GetResultActivity) inst.startActivitySync(intent); in testSimple()
|
D | PermissionActivityTest.java | 132 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in testSimple() local 133 final Intent intent = new Intent(inst.getContext(), GetResultActivity.class); in testSimple() 136 final GetResultActivity activity = (GetResultActivity) inst.startActivitySync(intent); in testSimple()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | TestCommandReceiver.java | 46 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in callCommand() local 47 Uri uri = Uri.parse("content://" + inst.getContext().getPackageName() + ".commands"); in callCommand() 48 return inst.getTargetContext().getContentResolver().call(uri, command, arg, extras); in callCommand()
|
/packages/modules/adb/client/ |
D | mdns_utils.h | 31 MdnsInstance(std::string_view inst, std::string_view serv, std::string_view trans) in MdnsInstance() 32 : instance_name(inst), service_name(serv), transport_type(trans) {} in MdnsInstance()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/ |
D | NetworkStackUtilsIntegrationTest.kt | 79 private val inst by lazy { InstrumentationRegistry.getInstrumentation() } in <lambda>() constant in android.net.util.NetworkStackUtilsIntegrationTest 80 private val context by lazy { inst.context } in <lambda>() 101 inst.uiAutomation.adoptShellPermissionIdentity(MANAGE_TEST_NETWORKS) in setUp() 106 inst.uiAutomation.dropShellPermissionIdentity() in setUp()
|
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/ |
D | ApkTestUtil.java | 65 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in isDeviceSupported() local 66 PackageManager pm = inst.getContext().getPackageManager(); in isDeviceSupported()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | DadProxyTest.java | 86 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setupOnce() local 88 (IBinder) inst.getContext().getSystemService(Context.NETD_SERVICE); in setupOnce()
|