/packages/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/ |
D | TranscodeTest.java | 24 import static com.android.providers.media.transcode.TranscodeTestUtils.open; 114 ParcelFileDescriptor pfdOriginal = open(modernFile, false); in testTranscoded_FilePath() 117 ParcelFileDescriptor pfdTranscoded = open(modernFile, false); in testTranscoded_FilePath() 143 ParcelFileDescriptor pfdOriginal1 = open(modernFile, false); in testNoTranscodeOutsideCamera_FilePath() 149 ParcelFileDescriptor pfdOriginal2 = open(file, false); in testNoTranscodeOutsideCamera_FilePath() 171 ParcelFileDescriptor pfdTranscoded1 = open(modernFile, false); in testSameTranscoded_FilePath() 172 ParcelFileDescriptor pfdTranscoded2 = open(modernFile, false); in testSameTranscoded_FilePath() 190 ParcelFileDescriptor pfdOriginal = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver() 194 ParcelFileDescriptor pfdTranscoded = open(uri, false, null /* bundle */); in testTranscoded_ContentResolver() 221 ParcelFileDescriptor pfdOriginal1 = open(uri, false, null /* bundle */); in testNoTranscodeOutsideCamera_ConentResolver() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | RedactingFileDescriptorTest.java | 79 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte() 95 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges() 117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile() 130 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite() 187 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart() 199 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset() 211 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionStart() 223 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionEnd() 235 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeOutsideRedaction() 247 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeMultipleRedactions()
|
/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/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 112 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera() 113 Mockito.verify(wrapper).open(1); in testOpenCamera() 118 Mockito.verify(wrapper).open(0); in testOpenCamera() 119 Mockito.verify(wrapper).open(1); in testOpenCamera() 123 inOrder.verify(wrapper).open(1); in testOpenCamera() 125 inOrder.verify(wrapper).open(0); in testOpenCamera()
|
/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/services/Car/car_product/sepolicy/private/ |
D | carservice_app.te | 65 allow carservice_app proc_uid_io_stats:file { read open getattr }; 73 allow carservice_app sysfs:dir { open read search }; 74 allow carservice_app sysfs_fs_ext4_features:dir { open read search}; 75 allow carservice_app sysfs_fs_f2fs:dir { open read search }; 81 allow carservice_app system_boot_reason_prop:file { getattr open read map };
|
/packages/modules/Virtualization/authfs/src/file/ |
D | local_file.rs | 64 let file_reader = LocalFileReader::new(File::open("testdata/input.4k")?)?; in test_read_4k_file() 73 let file_reader = LocalFileReader::new(File::open("testdata/input.4k1")?)?; in test_read_4k1_file() 84 let file_reader = LocalFileReader::new(File::open("testdata/input.4m")?)?; in test_read_4m_file() 95 let file_reader = LocalFileReader::new(File::open("testdata/input.4k").unwrap()).unwrap(); in test_read_beyond_file_size()
|
/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/apps/CarrierConfig/src/com/android/carrierconfig/ |
D | DefaultCarrierConfigService.java | 118 parser.setInput(getApplicationContext().getAssets().open( in loadConfig() 146 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig() 150 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig() 153 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig() 169 parser.setInput(getApplicationContext().getAssets().open( in loadConfig()
|
/packages/modules/Virtualization/authfs/src/fsverity/ |
D | verifier.rs | 193 let file_reader = LocalFileReader::new(File::open(content_path)?)?; in new_reader_with_fsverity() 195 let merkle_tree = LocalFileReader::new(File::open(merkle_tree_path)?)?; in new_reader_with_fsverity() 197 let _ = File::open(signature_path)?.read_to_end(&mut sig)?; in new_reader_with_fsverity() 273 let file_reader = LocalFileReader::new(File::open("testdata/input.4m")?)?; in invalid_signature() 275 let merkle_tree = LocalFileReader::new(File::open("testdata/input.4m.merkle_dump")?)?; in invalid_signature()
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/ |
D | test.py | 102 f = open(filename, 'r') 113 with open(filename, 'r') as f: 221 stdout_file = open('stdout.txt', 'w+') 222 stderr_file = open('stderr.txt', 'w+')
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DrawerController.java | 44 public abstract void setOpen(boolean open); in setOpen() argument 168 public void setOpen(boolean open) { in setOpen() argument 170 if (open) { in setOpen() 243 public void setOpen(boolean open) {} in setOpen() argument
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/ |
D | OutgoingTransportStateValidatorTest.java | 71 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testVerifyMessageInOpenCloseState() 138 validator.open(Collections.emptySet(), Collections.singleton("+tag")); in testDeniedFeatureTag() 156 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testRestrictedFeatureTag() 176 validator.open(Collections.emptySet(), Collections.emptySet()); in testNoSupportedFeatureTag()
|
/packages/modules/adb/ |
D | sysdeps.h | 162 #define open ___xxx_unix_open macro 454 return TEMP_FAILURE_RETRY(open(zero_terminated.c_str(), options)); in unix_open() 461 return TEMP_FAILURE_RETRY(open(zero_terminated.c_str(), options, mode)); in unix_open() 468 return TEMP_FAILURE_RETRY(open(pathname, options, mode)); in adb_open_mode() 479 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open() 484 #undef open 485 #define open ___xxx_open macro
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | E2eCarTestBase.java | 87 try (InputStream in = mContext.getAssets().open(fileName)) { in getExpectedEvents() 108 InputStream in = mContext.getAssets().open(fileName); in makeShareable() 131 mConnectionWait.open(); in onServiceConnected()
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 127 int fd = open(file, O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR); in writeFile() 161 int fd = open(fileName.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR); in writeTrainInfo() 274 …int fd = open(StringPrintf("%s/%s", TRAIN_INFO_DIR, fileName.c_str()).c_str(), O_RDONLY | O_CLOEXE… in readTrainInfoLocked() 530 int fd = open(fullPathName.c_str(), O_RDONLY | O_CLOEXEC); in appendConfigMetricsReport() 557 int fd = open(file, O_RDONLY | O_CLOEXEC); in readFileToString() 587 int fd = open(file_name.c_str(), O_RDONLY | O_CLOEXEC); in readConfigFromDisk() 629 int fd = open(StringPrintf("%s/%s", STATS_SERVICE_DIR, name).c_str(), in readConfigFromDisk()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 120 public synchronized android.hardware.Camera open(int cameraId) in open() method in CameraHolder 131 mCameraDevice = android.hardware.Camera.open(cameraId); in open() 159 return mUsers == 0 ? open(cameraId) : null; in tryOpen()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | DurationMetricsTests.java | 100 .isIn(Range.open(0L, (long)1e9)); in testDurationMetric() 209 assertThat(totalDuration).isIn(Range.open((long)2e9, (long)3e9)); in testDurationMetricWithCondition() 298 assertThat(totalDuration).isIn(Range.open((long)2e9, (long)3e9)); in testDurationMetricWithActivation() 471 assertThat(totalDuration).isIn(Range.open((long)4e9, (long)5e9)); in testDurationMetricWithConditionAndActivation() 561 assertThat(totalDuration).isIn(Range.open((long) 3e9, (long) 8e9)); in testDurationMetricWithDimension() 567 assertThat(totalDuration).isIn(Range.open((long) 3e9, (long) 8e9)); in testDurationMetricWithDimension()
|
/packages/modules/Virtualization/authfs/src/ |
D | main.rs | 236 let file = File::open(&protected_file)?; in new_config_local_ro_file() 239 let merkle_tree_reader = LocalFileReader::new(File::open(merkle_tree_dump)?)?; in new_config_local_ro_file() 242 let _ = File::open(signature)?.read_to_end(&mut sig)?; in new_config_local_ro_file() 249 let reader = LocalFileReader::new(File::open(file_path)?)?; in new_config_local_ro_file_unverified()
|
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/block/write/ |
D | BlockFileWriter.java | 61 public static BlockFileWriter open(char magic, int version, File file) throws IOException { in open() method in BlockFileWriter 63 writer.open(file); in open() 67 private void open(File file) throws IOException { in open() method in BlockFileWriter
|
/packages/modules/StatsD/statsd/tests/storage/ |
D | StorageManager_test.cpp | 108 open(file1.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles() 116 open(file2.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles() 133 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(name.c_str(), O_RDONLY | O_CLOEXEC))); in fileExist()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
D | FileTsStreamer.java | 102 public long open(DataSpec dataSpec) { in open() method in FileTsStreamer.FileDataSource 256 open(filepath); in StreamProvider() 259 private void open(String filepath) { in open() method in FileTsStreamer.StreamProvider 312 open(mFilepath); in read()
|
/packages/modules/NeuralNetworks/driver/cache/nnCache/ |
D | nnCache.cpp | 170 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); in saveBlobCacheLocked() 180 fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); in saveBlobCacheLocked() 230 int fd = open(mFilename.c_str(), O_RDONLY, 0); in loadBlobCacheLocked()
|
/packages/modules/NeuralNetworks/tools/test_generator/ |
D | spec_visualizer.py | 234 with open(TEMPLATE_FILE, "r") as template_fd: 237 with open(out_file, "w") as out_fd: 257 exec(open(spec_file, "r").read())
|
/packages/services/Car/tools/ |
D | update-obd2-sensors.py | 235 intfile = open(os.path.join(filepath, "IntegerSensorIndex.java"), "w") 236 floatfile = open(os.path.join(filepath, "FloatSensorIndex.java"), "w") 250 destfile = open(filepath, "w")
|