/packages/modules/Bluetooth/system/btif/src/ |
D | btif_pan.cc | 372 fd = open(clonedev, O_RDWR); in btpan_tap_open() 448 p_data->open.local_role, p_data->open.peer_role, p_data->open.handle, in btpan_open_conn() 452 conn = btpan_new_conn(p_data->open.handle, p_data->open.bd_addr, in btpan_open_conn() 453 p_data->open.local_role, p_data->open.peer_role); in btpan_open_conn() 458 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, p_data->open.handle, in btpan_open_conn() 462 conn->handle = p_data->open.handle; in btpan_open_conn() 603 btpan_conn_t* conn = btpan_find_conn_handle(p_data->open.handle); in bta_pan_callback_transfer() 606 p_data->open.status); in bta_pan_callback_transfer() 607 if (p_data->open.status) { in bta_pan_callback_transfer() 620 int btpan_conn_local_role = bta_role_to_btpan(p_data->open.local_role); in bta_pan_callback_transfer() [all …]
|
D | btif_gatt_client.cc | 148 ADDRESS_TO_LOGGABLE_CSTR(p_data->open.remote_bda)); in btif_gattc_upstreams_evt() 149 HAL_CBACK(bt_gatt_callbacks, client->open_cb, p_data->open.conn_id, in btif_gattc_upstreams_evt() 150 p_data->open.status, p_data->open.client_if, in btif_gattc_upstreams_evt() 151 p_data->open.remote_bda); in btif_gattc_upstreams_evt() 153 if (GATT_DEF_BLE_MTU_SIZE != p_data->open.mtu && p_data->open.mtu) { in btif_gattc_upstreams_evt() 155 p_data->open.conn_id, p_data->open.status, p_data->open.mtu); in btif_gattc_upstreams_evt() 158 if (p_data->open.status == GATT_SUCCESS) in btif_gattc_upstreams_evt() 159 btif_gatt_check_encrypted_link(p_data->open.remote_bda, in btif_gattc_upstreams_evt() 160 p_data->open.transport); in btif_gattc_upstreams_evt()
|
D | btif_hf.cc | 348 &(p_data->open.bd_addr)); in btif_hf_upstreams_evt() 354 if ((p_data->open.status != BTA_AG_SUCCESS) && in btif_hf_upstreams_evt() 358 if (p_data->open.bd_addr == btif_hf_cb[idx].connected_bda) { in btif_hf_upstreams_evt() 360 << p_data->open.status in btif_hf_upstreams_evt() 364 << ADDRESS_TO_LOGGABLE_STR(p_data->open.bd_addr); in btif_hf_upstreams_evt() 367 << p_data->open.status in btif_hf_upstreams_evt() 373 << ADDRESS_TO_LOGGABLE_STR(p_data->open.bd_addr) in btif_hf_upstreams_evt() 376 BTHF_CONNECTION_STATE_DISCONNECTED, &(p_data->open.bd_addr)); in btif_hf_upstreams_evt() 393 if (btif_hf_cb[idx].connected_bda != p_data->open.bd_addr) { in btif_hf_upstreams_evt() 400 << ADDRESS_TO_LOGGABLE_STR(p_data->open.bd_addr) in btif_hf_upstreams_evt() [all …]
|
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/ |
D | diff_apis_versions.py | 103 with open("buildnums-results.csv") as fp: 114 f = open('api-coverage-sql-query', 'r') 120 f = open('api-coverage-sql-query', 'w') 129 f = open('api-coverage-sql-query', 'w') 134 with open("api-coverage-results.csv") as fp: 146 f = open("apis-without-coverage.txt", "w")
|
/packages/services/Car/car_product/sepolicy/private/ |
D | carservice_app.te | 78 allow carservice_app proc_uid_io_stats:file { read open getattr }; 86 allow carservice_app sysfs:dir { open read search }; 87 allow carservice_app sysfs_fs_ext4_features:dir { open read search}; 88 allow carservice_app sysfs_fs_f2fs:dir { open read search }; 94 allow carservice_app system_boot_reason_prop:file { getattr open read map }; 124 allow carservice_app proc_loadavg:file { open read getattr }; 127 allow carservice_app proc_meminfo:file { open read getattr };
|
/packages/modules/Bluetooth/system/bta/pan/ |
D | bta_pan_act.cc | 431 bta_pan.open.bd_addr = p_data->api_open.bd_addr; in bta_pan_open() 432 bta_pan.open.status = BTA_PAN_FAIL; in bta_pan_open() 433 bta_pan.open.local_role = p_data->api_open.local_role; in bta_pan_open() 434 bta_pan.open.peer_role = p_data->api_open.peer_role; in bta_pan_open() 480 bta_pan.open.bd_addr = p_scb->bd_addr; in bta_pan_conn_open() 481 bta_pan.open.handle = p_scb->handle; in bta_pan_conn_open() 482 bta_pan.open.local_role = p_scb->local_role; in bta_pan_conn_open() 483 bta_pan.open.peer_role = p_scb->peer_role; in bta_pan_conn_open() 486 bta_pan.open.status = BTA_PAN_SUCCESS; in bta_pan_conn_open() 492 bta_pan.open.status = BTA_PAN_FAIL; in bta_pan_conn_open()
|
/packages/modules/Virtualization/virtualizationmanager/src/ |
D | composite.rs | 44 .open(output_path) in make_composite_image() 47 OpenOptions::new().create_new(true).read(true).write(true).open(header_path).with_context( in make_composite_image() 51 OpenOptions::new().create_new(true).read(true).write(true).open(footer_path).with_context( in make_composite_image() 54 let zero_filler_file = File::open(zero_filler_path).with_context(|| { in make_composite_image() 69 let composite_image = File::open(output_path) in make_composite_image()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 116 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera() 117 Mockito.verify(wrapper).open(1); in testOpenCamera() 122 Mockito.verify(wrapper).open(0); in testOpenCamera() 123 Mockito.verify(wrapper).open(1); in testOpenCamera() 127 inOrder.verify(wrapper).open(1); in testOpenCamera() 129 inOrder.verify(wrapper).open(0); in testOpenCamera()
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/block/read/ |
D | BlockFileReader.java | 71 public static BlockFileReader open(boolean memoryMapBlocks, File file, in open() method in BlockFileReader 76 reader.open(file); in open() 86 public static BlockFileReader open(boolean memoryMapBlocks, File file) throws IOException { in open() method in BlockFileReader 88 reader.open(file); in open() 92 private void open(File file) throws IOException { in open() method in BlockFileReader 127 mFileChannel = FileChannel.open(file.toPath()); in open()
|
/packages/services/Car/car_product/car_ui_portrait/tools/ |
D | export_emulator.py | 46 with open(configini, 'r') as f: 63 with open(os.path.join(outputDir, 'android/avd/my_car_avd.ini'), 'w') as f: 70 with open(os.path.join(outputDir, 'android/avd/my_car_avd.avd/config.ini'), 'w') as f: 119 with open(os.open(filepath, os.O_CREAT | os.O_WRONLY, 0o750), 'w') as f:
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/ |
D | ModelManagerTest.java | 200 doReturn(null).when(mMockFileStorage).open(any(), any()); in testRetrieveModel_downloaded() 224 verify(mMockFileStorage).open(any(), any()); in testRetrieveModel_downloaded() 260 when(mMockFileStorage.open(any(), any())) in testRetrieveLabels_downloaded_successfulRead() 261 .thenReturn(sContext.getAssets().open(PRODUCTION_LABELS_FILE_PATH)); in testRetrieveLabels_downloaded_successfulRead() 306 when(mMockFileStorage.open(any(), any())).thenReturn(inputStream); in testRetrieveLabels_downloaded_emptyListReturnedOnException() 567 when(mMockFileStorage.open(any(), any())) in testGetProductionClassifierAssetsMetadata_downloaded_correctFormat() 569 sContext.getAssets().open(PRODUCTION_CLASSIFIER_ASSETS_METADATA_FILE_PATH)); in testGetProductionClassifierAssetsMetadata_downloaded_correctFormat() 671 when(mMockFileStorage.open(any(), any())) in testRetrieveClassifierInputConfig_downloaded_successfulRead() 672 .thenReturn(sContext.getAssets().open(PRODUCTION_CLASSIFIER_INPUT_CONFIG_PATH)); in testRetrieveClassifierInputConfig_downloaded_successfulRead() 719 when(mMockFileStorage.open(any(), any())).thenReturn(inputStream); in testRetrieveClassifierInputConfig_downloaded_emptyConfigReturnedOnException() [all …]
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | annotation_classlist_repohook.py | 92 with open(existing_car_api_classes_path) as f: 94 with open(existing_car_built_in_classes_path) as f: 131 with open(existing_hidden_apis_path) as f: 136 with open(rootDir + path) as f: 199 with open(f, "r") as tmp_f:
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 148 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_allFilesStaged() 151 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withValidInput_allFilesStaged() 177 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_WRITE_ONLY)); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() 180 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() 207 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingProgress_doesStage() 210 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingProgress_doesStage() 239 ParcelFileDescriptor.open(testRestoreFile1, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingDone_doesNotStage() 242 ParcelFileDescriptor.open(testRestoreFile2, ParcelFileDescriptor.MODE_READ_ONLY)); in testStageRemoteData_whenStagingDone_doesNotStage()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/ |
D | BlockFileTest.java | 63 try (BlockFileWriter bfw = BlockFileWriter.open(magic, 1, blockFile)) { in testReadWrite() 68 try (BlockFileReader bfr = BlockFileReader.open(memoryMapBlocks, blockFile, magic, 1)) { in testReadWrite() 104 try (BlockFileWriter bfw = BlockFileWriter.open(magic, 2, blockFile)) { in blockIdBounds() 111 try (BlockFileReader bfr = BlockFileReader.open(false, blockFile, magic, 2)) { in blockIdBounds() 130 try (BlockFileWriter bfw = BlockFileWriter.open(magic, version, blockFile)) { in visit() 139 BlockFileReader.open(memoryMapBlocks, blockFile, magic, requiredMinVersion)) { in visit()
|
/packages/modules/Connectivity/service/src/com/android/server/net/ |
D | DelayedDiskWrite.java | 93 public void write(final String filePath, final Writer w, final boolean open) { in write() argument 110 doWrite(filePath, w, open); in write() 115 private void doWrite(String filePath, Writer w, boolean open) { in doWrite() argument 118 if (open) { in doWrite()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/ |
D | EnrollmentDataDownloadManagerTest.java | 115 when(mMockFileStorage.open(any(), any())) in testReadFileAndInsertIntoDatabaseSuccess() 116 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseSuccess() 168 when(mMockFileStorage.open(any(), any())) in testReadFileAndInsertIntoDatabaseEnrollmentDataFileIdMissing() 169 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseEnrollmentDataFileIdMissing() 191 when(mMockFileStorage.open(any(), any())) in testReadFileAndInsertIntoDatabaseExecutionException() 192 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseExecutionException() 215 when(mMockFileStorage.open(any(), any())).thenThrow(new IOException()); in testReadFileAndInsertIntoDatabaseParsingFailed()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDrawerController.java | 43 public void openDrawer(boolean open) { in openDrawer() argument 44 when(isPresent()).thenReturn(open); in openDrawer() 45 when(isOpen()).thenReturn(open); in openDrawer()
|
/packages/modules/Virtualization/apex/ |
D | replace_bytes.py | 44 with open(old_file, 'rb') as f: 48 with open(new_file, 'rb') as f: 55 with open(target_file, 'r+b') as f:
|
/packages/modules/Bluetooth/system/bta/av/ |
D | bta_av_aact.cc | 598 tBTA_AV_API_OPEN* p_buf = &p_scb->q_info.open; in bta_av_switch_role() 686 .open = in bta_av_role_res() 698 bta_av_data.open.sep = AVDT_TSEP_SNK; in bta_av_role_res() 700 bta_av_data.open.sep = AVDT_TSEP_SRC; in bta_av_role_res() 705 p_scb->q_info.open.switch_res = BTA_AV_RS_DONE; in bta_av_role_res() 706 bta_av_do_disc_a2dp(p_scb, (tBTA_AV_DATA*)&(p_scb->q_info.open)); in bta_av_role_res() 768 memcpy(&p_scb->q_info.open, &p_data->api_open, in bta_av_do_disc_a2dp() 786 p_data = (tBTA_AV_DATA*)&p_scb->q_info.open; in bta_av_do_disc_a2dp() 1224 p_scb->p_cos->open(p_scb->hndl, p_scb->PeerAddress(), p_scb->stream_mtu); in bta_av_str_opened() 1237 tBTA_AV_OPEN open = { in bta_av_str_opened() local [all …]
|
/packages/modules/common/build/ |
D | mainline_modules_sdks_test.py | 101 with open(file, "w", encoding="utf8") as fd: 255 with open(abs_path, "r", encoding="utf8") as file: 329 with open(art_gantry_metadata_json_file, "r", 351 with open(build_number_file, "w", encoding="utf8") as f: 435 with open(path_to_test_data(relative_path), "r", encoding="utf8") as f: 450 with open(path, "w", encoding="utf8") as f: 456 with open(path, "r", encoding="utf8") as f: 588 with open(path, "a+", encoding="utf8") as file:
|
/packages/modules/Connectivity/Cronet/tests/cts/src/android/net/http/cts/util/ |
D | TestUrlRequestCallback.java | 201 mDone.open(); 367 mWaitForTerminalToStart.open(); 399 mWaitForTerminalToStart.open(); 416 mWaitForTerminalToStart.open(); 439 mDone.open(); 456 mStepBlock.open();
|
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/ |
D | PluginArchiveManager.java | 178 ParcelFileDescriptor.open( in createCloseablePluginCodeListFromFiles() 181 ParcelFileDescriptor.open( in createCloseablePluginCodeListFromFiles() 242 try (InputStream checksumInAssets = assetManager.open(checksumFile); in getArchiveChecksum() 322 try (InputStream pluginSrc = assetManager.open(pluginArchive); in copyPluginToCacheDir() 324 InputStream checksumSrc = assetManager.open(checksumFile); in copyPluginToCacheDir() 349 try (InputStream checksumInAssets = assetManager.open(checksumFile); in canReusePluginInCacheDir()
|
/packages/modules/Virtualization/microdroid/initrd/src/ |
D | main.rs | 56 File::open(file_path)?.bytes().map(|x| Ok(x? as u32)).sum() in get_checksum() 75 let mut initrd_bc = File::open(initrd_bc)?; in detach_bootconfig() 103 let mut initrd_file = File::open(initrd)?; in attach_bootconfig() 110 let mut bootconfig_file = File::open(&bootconfig)?; in attach_bootconfig()
|
/packages/modules/Virtualization/javalib/src/android/system/virtualmachine/ |
D | VirtualMachine.java | 464 ParcelFileDescriptor.open(vm.mInstanceFilePath, MODE_READ_WRITE), in create() 478 ParcelFileDescriptor.open(vm.mEncryptedStoreFilePath, MODE_READ_WRITE), in create() 823 appConfig.apk, ParcelFileDescriptor.open(mIdsigFilePath, MODE_READ_WRITE)); in createIdSigs() 827 ParcelFileDescriptor.open(extraApk.apk, MODE_READ_ONLY), in createIdSigs() 828 ParcelFileDescriptor.open(extraApk.idsig, MODE_READ_WRITE)); in createIdSigs() 832 appConfig.idsig = ParcelFileDescriptor.open(mIdsigFilePath, MODE_READ_ONLY); in createIdSigs() 833 appConfig.instanceImage = ParcelFileDescriptor.open(mInstanceFilePath, MODE_READ_WRITE); in createIdSigs() 836 ParcelFileDescriptor.open(mEncryptedStoreFilePath, MODE_READ_WRITE); in createIdSigs() 840 extraIdsigs.add(ParcelFileDescriptor.open(extraApk.idsig, MODE_READ_ONLY)); in createIdSigs() 1149 ParcelFileDescriptor.open(mConfigFilePath, MODE_READ_ONLY), in toDescriptor() [all …]
|
/packages/modules/Bluetooth/pandora/interfaces/pandora_experimental/ |
D | l2cap.proto | 25 // The connection that will open the stream. 35 // The connection that will open the stream. 43 // The connection that will open the stream.
|