/packages/modules/Virtualization/guest/authfs/src/fsverity/ |
D | editor.rs | 61 use crate::file::{ChunkBuffer, RandomWrite, ReadByChunk}; 74 file: F, field 80 pub fn new(file: F) -> Self { in new() 81 Self { file, merkle_tree: Arc::new(RwLock::new(MerkleLeaves::new())) } in new() 100 self.file.read_chunk(chunk_index, buf) in read_backing_chunk_unverified() 236 self.file.write_all_at(source, output_offset)?; in write_at() 277 self.file.resize(size)?; in resize() 373 let file = VerifiedFileEditor::new(InMemoryEditor::new()); in test_verified_writer_no_write() localVariable 375 file.calculate_fsverity_digest()?, in test_verified_writer_no_write() 385 let file = VerifiedFileEditor::new(InMemoryEditor::new()); in test_verified_writer_from_zero() localVariable [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/ |
D | FakeOsAccess.java | 99 File file = getFileOrNull(fd); in close() local 100 if (file != null) { in close() 101 file.decreaseRefCount(); in close() 110 File file = getFileOrNull(fd); in getFile() local 111 if (file == null) { in getFile() 114 return file; in getFile() 132 File file = mFiles.get(fdNumber); in getFileDebugName() local 135 if (file != null) { in getFileDebugName() 136 if (file.name != null) { in getFileDebugName() 137 sb.append(file.name); in getFileDebugName() [all …]
|
/packages/services/Car/tools/emulator/ |
D | vhal_const_generate.py | 32 print("# Copyright (C) %s The Android Open Source Project" % year, file=dest) 33 print("#", file=dest) 34 print("# Licensed under the Apache License, Version 2.0 (the \"License\");", file=dest) 35 print("# you may not use this file except in compliance with the License.", file=dest) 36 print("# You may obtain a copy of the License at", file=dest) 37 print("#", file=dest) 38 print("# http://www.apache.org/licenses/LICENSE-2.0", file=dest) 39 print("#", file=dest) 40 print("# Unless required by applicable law or agreed to in writing, software", file=dest) 41 print("# distributed under the License is distributed on an \"AS IS\" BASIS,", file=dest) [all …]
|
D | VehicleHalProto_pb2.py | 31 file=DESCRIPTOR, 90 file=DESCRIPTOR, 141 file=DESCRIPTOR, 194 file=DESCRIPTOR, 203 serialized_options=None, file=DESCRIPTOR), 210 serialized_options=None, file=DESCRIPTOR), 217 serialized_options=None, file=DESCRIPTOR), 224 serialized_options=None, file=DESCRIPTOR), 231 serialized_options=None, file=DESCRIPTOR), 238 serialized_options=None, file=DESCRIPTOR), [all …]
|
/packages/modules/Permission/PermissionController/ |
D | OWNERS | 7 per-file TELEVISION_OWNERS = file:/PermissionController/TELEVISION_OWNERS 8 per-file src/com/android/permissioncontroller/permission/ui/television/** = file:/PermissionControl… 9 per-file res/*-television/* = file:/PermissionController/TELEVISION_OWNERS 10 per-file tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/television/** = fi… 16 per-file res/** = file:platform/packages/modules/Permission:/SafetyCenter/OWNERS 19 per-file WEAR_OWNERS = file:/PermissionController/WEAR_OWNERS 20 per-file wear-permission-components/** = file:/PermissionController/WEAR_OWNERS 21 per-file src/com/android/permissioncontroller/permission/ui/wear/** = file:/PermissionController/WE… 22 per-file src/com/android/permissioncontroller/role/ui/wear/** = file:/PermissionController/WEAR_OWN… 23 per-file src/com/android/permissioncontroller/incident/wear/** = file:/PermissionController/WEAR_OW… [all …]
|
/packages/services/Car/service/ |
D | OWNERS | 6 per-file src/com/android/car/SystemActivityMonitoringService.java = gauravbhola@google.com 7 per-file src/com/android/car/am/* = gauravbhola@google.com 8 per-file src/com/android/car/systeminterface/ActivityManagerInterface.java = gauravbhola@google.com 11 per-file proto/android/car/audio/* = oscarazu@google.com, ericjeong@google.com 12 per-file src/com/android/car/audio/* = oscarazu@google.com, ericjeong@google.com 13 per-file src/com/android/car/audio/hal/* = oscarazu@google.com, ericjeong@google.com 16 per-file src/com/android/car/bluetooth/* = salsavage@google.com, chengandrew@google.com 19 per-file src/com/android/car/cluster/* = bkchoi@google.com 20 per-file src/com/android/car/hal/ClusterHalService.java = bkchoi@google.com 23 per-file src/com/android/car/CarInputService.java = kanant@google.com [all …]
|
/packages/services/Car/tests/carservice_unit_test/ |
D | OWNERS | 4 per-file src/com/android/car/am/* = gauravbhola@google.com 7 per-file src/com/android/car/AppFocusServiceTest.java = bkchoi@google.com 10 per-file src/com/android/car/audio/* = oscarazu@google.com, ericjeong@google.com 11 per-file src/com/android/car/audio/hal/* = oscarazu@google.com, ericjeong@google.com 14 per-file src/com/android/car/bluetooth/* = salsavage@google.com, chengandrew@google.com 17 per-file src/android/car/cluster/* = bkchoi@google.com 18 per-file src/com/android/car/hal/ClusterHalServiceTest.java = bkchoi@google.com 21 per-file src/android/car/builtin/input/* = kanant@google.com 22 per-file src/com/android/car/CarInput*.java = kanant@google.com 23 per-file src/com/android/car/hal/InputHalServiceTest.java = kanant@google.com [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 131 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots() local 132 if (file.mkdir()) { in clearCacheAndBuildRoots() 133 Log.i(TAG, "Created new root directory @ " + file.getPath()); in clearCacheAndBuildRoots() 135 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots() 178 final StubDocument file = mStorage.get(documentId); in queryDocument() local 179 if (file == null) { in queryDocument() 182 includeDocument(result, file); in queryDocument() 191 if (parentDocument.file == null || childDocument.file == null) { in isChildDocument() 196 parentDocument.file.getAbsolutePath(), childDocument.file.getAbsolutePath()); in isChildDocument() 213 File file = createFile(parent, mimeType, displayName); in createDocument() local [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | BufferedFileTest.java | 74 final BufferedFile file = createFile(inboundBufferSize, outboundBufferSize); in onClosed() local 76 file.onClosed(mockAsyncFile); in onClosed() 86 final BufferedFile file = createFile(inboundBufferSize, outboundBufferSize); in continueReadingAndClose() local 88 assertEquals(inboundBufferSize, file.getInboundBufferFreeSizeForTest()); in continueReadingAndClose() 89 assertEquals(outboundBufferSize, file.getOutboundBufferFreeSize()); in continueReadingAndClose() 91 file.continueReading(); in continueReadingAndClose() 94 file.close(); in continueReadingAndClose() 103 final BufferedFile file = createFile(inboundBufferSize, outboundBufferSize); in enqueueOutboundData() local 110 assertEquals(0, file.getOutboundBufferSize()); in enqueueOutboundData() 115 assertTrue(file.enqueueOutboundData(data1, 0, data1.length, null, 0, 0)); in enqueueOutboundData() [all …]
|
/packages/modules/ConfigInfrastructure/aconfigd/src/ |
D | lib.rs | 32 #[error("failed to update file permission of {} to {}: {:?}", .file, .mode, .errmsg)] 33 FailToUpdateFilePerm { file: String, mode: u32, errmsg: std::io::Error }, 38 #[error("fail to remove file {}: {:?}", .file, .errmsg)] 39 FailToRemoveFile { file: String, errmsg: std::io::Error }, 41 #[error("fail to open file {}: {:?}", .file, .errmsg)] 42 FailToOpenFile { file: String, errmsg: std::io::Error }, 44 #[error("fail to read file {}: {:?}", .file, .errmsg)] 45 FailToReadFile { file: String, errmsg: std::io::Error }, 47 #[error("fail to write file {}: {:?}", .file, .errmsg)] 48 FailToWriteFile { file: String, errmsg: std::io::Error }, [all …]
|
D | utils.rs | 25 pub(crate) fn set_file_permission(file: &Path, mode: u32) -> Result<(), AconfigdError> { in set_file_permission() 27 std::fs::set_permissions(file, perms).map_err(|errmsg| { in set_file_permission() 28 AconfigdError::FailToUpdateFilePerm { file: file.display().to_string(), mode, errmsg } in set_file_permission() 106 file: src.display().to_string(), in remove_file() 114 pub(crate) fn read_pb_from_file<T: protobuf::Message>(file: &Path) -> Result<T, AconfigdError> { in read_pb_from_file() 115 if !Path::new(file).exists() { in read_pb_from_file() 119 let data = std::fs::read(file).map_err(|errmsg| AconfigdError::FailToReadFile { in read_pb_from_file() 120 file: file.display().to_string(), in read_pb_from_file() 124 AconfigdError::FailToParsePbFromBytes { file: file.display().to_string(), errmsg } in read_pb_from_file() 131 file: &Path, in write_pb_to_file() [all …]
|
/packages/services/Telephony/utils/satellite/ |
D | README.md | 2 satellite s2 file. 9 binary file. This code is also used by `TeleServiceTests`. 14 - `src/main` Contains the tools for generating binary satellite s2 file, and tools 15 for dumping the binary file into human-readable format. 19 - `src/main` Contains the tool for generating satellite configdata protobuf file. 28 Data file generate tools 32 - Runs the `satellite_createsats2file` to create a binary satellite S2 file from a 34 - Command: `$satellite_createsats2file --input-file <s2cells.txt> --s2-level <12> 35 --is-allowed-list <true> --output-file <sats2.dat>` 36 - `--input-file` Each line in the file contains a `unsigned-64bit` number which represents [all …]
|
/packages/services/Car/car-lib/ |
D | OWNERS | 2 per-file src/android/car/app/* = gauravbhola@google.com 5 per-file src/android/car/app/IAppFocus* = bkchoi@google.com 8 per-file src/android/car/media/CarAudio*.java = oscarazu@google.com, ericjeong@google.com 9 per-file src/android/car/media/ICarAudio.aidl = oscarazu@google.com, ericjeong@google.com 10 per-file src/android/car/media/ICarVolumeCallback.aidl = oscarazu@google.com, ericjeong@google.com 13 per-file src/android/car/cluster/* = bkchoi@google.com 16 per-file src/android/car/input/* = kanant@google.com 19 per-file src/android/car/navigation/* = bkchoi@google.com 22 per-file src/android/car/CarOccupantZoneManager.* = xiangw@google.com, oscarazu@google.com, ericjeo… 23 per-file src/android/car/ICarOccupantZone* = xiangw@google.com, oscarazu@google.com, ericjeong@goog… [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OWNERS | 2 per-file GameDefaultFrameRatePreferenceController.java=file:platform/frameworks/base:/GAME_MANAGER_… 5 per-file SensitiveContentProtectionPreferenceController.kt=file:platform/frameworks/base:/core/java… 8 per-file ShowHdrSdrRatioPreferenceController.java=file:platform/frameworks/native:/services/surface… 11 per-file ShowRefreshRatePreferenceController.java=file:platform/frameworks/native:/services/surface… 14 per-file DesktopModePreferenceController.java=file:platform/frameworks/base:/libs/WindowManager/She… 17 per-file Adb*=set noparent 18 per-file Adb*=file:platform/packages/modules/adb:/OWNERS 21 per-file TouchpadVisualizerPreferenceController.java=file:platform/frameworks/base:/INPUT_OWNERS
|
/packages/modules/AdServices/shared/testing-libraries/device-side/java/com/android/adservices/shared/testing/common/ |
D | FileHelper.java | 25 import java.nio.file.Files; 26 import java.nio.file.Path; 27 import java.nio.file.Paths; 87 public static File deleteFile(File file) throws IOException { in deleteFile() argument 88 sLog.i("deleteFile(%s)", file); in deleteFile() 89 Objects.requireNonNull(file, "file cannot be null"); in deleteFile() 90 String path = file.getAbsolutePath(); in deleteFile() 91 if (!file.exists()) { in deleteFile() 93 return file; in deleteFile() 95 if (file.delete()) { in deleteFile() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/backupandrestore/ |
D | BackupExecutorTest.java | 129 File file = new File(mDownloadsDir, "a_" + SystemClock.elapsedRealtimeNanos() + ".jpg"); in testBackup() local 130 stageNewFile(R.raw.test_image, file); in testBackup() 131 file = new File(mDownloadsDir, "b_" + SystemClock.elapsedRealtimeNanos() + ".gif"); in testBackup() 132 stageNewFile(R.raw.test_gif, file); in testBackup() 133 file = new File(mDownloadsDir, "c_" + SystemClock.elapsedRealtimeNanos() + ".mp3"); in testBackup() 134 stageNewFile(R.raw.test_audio, file); in testBackup() 135 file = new File(mDownloadsDir, "d_" + SystemClock.elapsedRealtimeNanos() + ".jpg"); in testBackup() 136 stageNewFile(R.raw.test_motion_photo, file); in testBackup() 137 file = new File(mDownloadsDir, "e_" + SystemClock.elapsedRealtimeNanos() + ".mp4"); in testBackup() 138 stageNewFile(R.raw.test_video, file); in testBackup() [all …]
|
/packages/modules/Virtualization/guest/microdroid_manager/src/ |
D | instance.rs | 74 file: File, field 89 let mut file = OpenOptions::new() in new() localVariable 97 file.read_exact(&mut magic)?; in new() 102 let version = file.read_u16::<LittleEndian>()?; in new() 110 Ok(Self { file }) in new() 123 self.file.seek(SeekFrom::Start(payload_offset))?; in read_microdroid_data() 127 self.file.read_exact(&mut nonce)?; in read_microdroid_data() 133 self.file.read_exact(&mut data)?; in read_microdroid_data() 137 self.file.read_exact(&mut tag)?; in read_microdroid_data() 141 self.file.seek(SeekFrom::Start(offset))?; in read_microdroid_data() [all …]
|
/packages/services/Car/tools/ |
D | update-obd2-sensors.py | 218 print(policy.sensors(intSensors), file=destfile) 222 print(policy.sensors(floatSensors), file=destfile) 243 print("}", file=intfile) 244 print("}", file=floatfile) 251 print("#!/usr/bin/env python3", file=destfile) 252 print("#", file=destfile) 253 print("# Copyright (C) 2017 The Android Open Source Project", file=destfile) 254 print("#", file=destfile) 255 print("# Licensed under the Apache License, Version 2.0 (the \"License\");", file=destfile) 256 print("# you may not use this file except in compliance with the License.", file=destfile) [all …]
|
/packages/modules/ExtServices/java/src/android/ext/services/common/ |
D | AdServicesFilesCleanupBootCompleteReceiver.java | 124 for (File file : files) { in deleteAdServicesFiles() 125 if (file.isDirectory()) { in deleteAdServicesFiles() 128 if (doesFileNameStartWithPrefix(file)) { in deleteAdServicesFiles() 130 allSuccess = deleteAllData(file) && allSuccess; in deleteAdServicesFiles() 134 allSuccess = deleteAdServicesFiles(file) && allSuccess; in deleteAdServicesFiles() 136 } else if (doesFileNameStartWithPrefix(file)) { in deleteAdServicesFiles() 137 allSuccess = safeDelete(file) && allSuccess; in deleteAdServicesFiles() 148 private boolean doesFileNameStartWithPrefix(File file) { in doesFileNameStartWithPrefix() argument 153 file.getName(), in doesFileNameStartWithPrefix() 172 for (File file : currentDirectory.listFiles()) { in deleteAllData() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | MediaSaver.java | 63 File file; in saveDepth() local 66 file = new File(filename); in saveDepth() 67 if (!file.createNewFile()) { in saveDepth() 72 FileOutputStream fos = new FileOutputStream(file); in saveDepth() 90 bytesWritten, file, (t1 - t0) * 0.001)); in saveDepth() 104 File file; in saveJpeg() local 108 file = new File(filename); in saveJpeg() 109 if (file.createNewFile()) { in saveJpeg() 115 OutputStream os = new FileOutputStream(file); in saveJpeg() 124 insertImage(resolver, file); in saveJpeg() [all …]
|
/packages/modules/Permission/tests/cts/permission/ |
D | OWNERS | 5 per-file PowerManagerServicePermissionTest.java = file: platform/frameworks/base:/services/core/jav… 6 per-file RequestLocation.java = tgunn@google.com 8 per-file NoAudioPermissionTest.java = elaurent@google.com 9 per-file MainlineNetworkStackPermissionTest.java = file: platform/frameworks/base:/services/net/OWN… 10 per-file Camera2PermissionTest.java = file: platform/frameworks/av:/camera/OWNERS 11 per-file NoRollbackPermissionTest.java = mpgroover@google.com 12 per-file EthernetManagerPermissionTest.java = file: platform/frameworks/base:/services/net/OWNERS
|
/packages/modules/Connectivity/networksecurity/service/src/com/android/server/net/ct/ |
D | DirectoryUtils.java | 39 static void setWorldReadable(File file) throws IOException { in setWorldReadable() argument 40 if (!file.setReadable(/* readable= */ true, /* ownerOnly= */ false)) { in setWorldReadable() 41 throw new IOException("Failed to set " + file.getCanonicalPath() + " readable"); in setWorldReadable() 47 static void setWorldExecutable(File file) throws IOException { in setWorldExecutable() argument 48 if (!file.isDirectory()) { in setWorldExecutable() 55 if (!file.setExecutable(/* executable= */ true, /* ownerOnly= */ false)) { in setWorldExecutable() 56 throw new IOException("Failed to set " + file.getCanonicalPath() + " executable"); in setWorldExecutable() 76 for (File file : files) { in deleteContents() 77 if (file.isDirectory()) { in deleteContents() 78 success &= deleteContents(file); in deleteContents() [all …]
|
/packages/modules/adb/docs/dev/ |
D | sync.md | 2 This file tries to document file-related requests a client can make 29 RECV - Retrieve a file from device 30 SEND - Send a file to device 31 STAT - Stat a file 42 2. A four-byte integer representing file mode. 43 3. A four-byte integer representing file size. 45 5. A four-byte integer representing file name length. 46 6. length number of bytes containing an utf-8 string representing the file 52 The remote file name is split into two parts separated by the last 54 encoded file mode containing the permissions of the file on device. [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/ |
D | OWNERS | 5 per-file src/com/google/android/car/kitchensink/AudioAutoStartActivity.java = oscarazu@google.com, … 6 per-file src/com/google/android/car/kitchensink/audio/* = oscarazu@google.com, ericjeong@google.com 7 per-file src/com/google/android/car/kitchensink/volume/* = oscarazu@google.com, ericjeong@google.com 10 per-file src/com/google/android/car/kitchensink/bluetooth/* = salsavage@google.com, chengandrew@goo… 13 per-file src/com/google/android/car/kitchensink/connectivity/* = salsavage@google.com, twasilczyk@g… 16 per-file src/com/google/android/car/kitchensink/cluster/* = bkchoi@google.com 19 per-file src/com/google/android/car/kitchensink/OccupantZoneStartActivity.java = xiangw@google.com,… 22 per-file src/com/google/android/car/kitchensink/packageinfo/* = gargmayank@google.com, gauravbhola@… 25 per-file src/com/google/android/car/kitchensink/power/* = ericjeong@google.com 28 per-file src/com/google/android/car/kitchensink/radio/* = xuweilin@google.com, oscarazu@google.com,… [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoStore.java | 91 for (File file : files) { in clear() 92 cleanupFile(file); in clear() 124 for (File file : files) { in initialize() 126 Entry entry = new Entry(file); in initialize() 130 cleanupFile(file); in initialize() 195 File file = null; in insert() local 199 file = File.createTempFile("img", null, mStorePath); in insert() 200 FileOutputStream fos = new FileOutputStream(file); in insert() 213 if (file.renameTo(target)) { in insert() 224 if (file != null) { in insert() [all …]
|