Home
last modified time | relevance | path

Searched refs:readAllBytes (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/host/room/src/com/android/adservices/room/test/
DRoomDatabaseVersionBumpGuardrailTest.java100 baseSchemas.getInputStream(baseFile).readAllBytes(), in roomDatabaseVersionBumpGuardrailTest()
101 newSchemas.getInputStream(newFile).readAllBytes())) { in roomDatabaseVersionBumpGuardrailTest()
/packages/modules/GeoTZ/common/host/main/java/com/android/timezone/location/common/
DLicenseSupport.java107 byte[] oneBytes = oneInput.readAllBytes(); in checkFilesIdentical()
108 byte[] twoBytes = twoInput.readAllBytes(); in checkFilesIdentical()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/
DIoUtilsTest.java163 byte[] bytes = Files.readAllBytes(file.toPath()); in readMetricsConfigFromFile()
169 byte[] bytes = Files.readAllBytes(file.toPath()); in readTelemetryErrorFromFile()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogFileHandler.java151 byteBuffer.put(readAllBytes(file)); in readBlob()
254 private static byte[] readAllBytes(File file) throws IOException { in readAllBytes() method in PersistentLogFileHandler
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/verification/
DApiAllowlistProvider.java59 byte[] allowlistBytes = resourceURL.openStream().readAllBytes(); in loadPlatformApiAllowlist()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java235 new String(Files.readAllBytes(temporaryFile.getPath()))); in testWearEstimateRecordJson()
274 new String(Files.readAllBytes(temporaryFile.getPath()))); in testWearHistoryJson()
479 new String(Files.readAllBytes(temporaryFile.getPath()))); in testUidIoStatEntryJson()
677 new String(Files.readAllBytes(temporaryFile.getPath()))); in testUidIoStatsDeltaJson()
763 new String(Files.readAllBytes(temporaryFile.getPath()))); in testLifetimeWriteInfoJson()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DLastMileLogger.java152 return Files.readAllBytes(Paths.get(mEventBufferPath)); in readTrace()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySettingsStorage.java306 String dataContent = new String(inputStream.readAllBytes(), UTF_8); in restore()
403 mOptimizationModeBytes = inputStream.readAllBytes(); in restore()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java66 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath()))); in fromJson()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DMetricsConfigStoreTest.java129 byte[] bytes = Files.readAllBytes(new File(mTestMetricsConfigDir, fileName).toPath()); in readConfigFromFile()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxStorageTest.java125 readValue = new String(fis.readAllBytes(), StandardCharsets.UTF_8); in testAppCanReadSdkFileDescriptor()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2eCarTestBase.java136 return new String(in.readAllBytes(), StandardCharsets.UTF_8); in getTestFileContent()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DDeviceConfigInit.java131 byte[] contents = (new FileInputStream(fileName)).readAllBytes(); in addAconfigFlagsFromFile()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/utils/
DCustomAudienceTestFixture.java146 ? new String(inputStream.readAllBytes()) in readString()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSdkApi.java96 value = new String(fis.readAllBytes(), StandardCharsets.UTF_16); in parseFileDescriptor()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNetlinkUtilsTest.java92 var ctxt = new String(Files.readAllBytes(Paths.get("/proc/thread-self/attr/current"))); in testGetNeighborsQuery()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DLastMileLoggerTest.java72 return new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8); in readFileAsString()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationLocalDataDao.java212 return Files.readAllBytes(file.toPath()); in readSingleLocalDataRow()
/packages/services/Mms/src/com/android/mms/service/metrics/
DPersistMmsAtomsStorage.java100 Files.readAllBytes(mContext.getFileStreamPath(FILENAME).toPath())); in loadAtomsFromFile()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DAbstractSelectAdsLatencyTest.java285 ? new String(inputStream.readAllBytes()) in readString()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DMemoryPublisher.java220 meminfo = new String(Files.readAllBytes(mMeminfoPath)); in readMemInfo()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DFlRunnerWrapperTest.java166 byte[] content = Files.readAllBytes(outputCheckpointFile.toPath()); in testRunFederatedAnalytics_returnSuccess()
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualMachine.java653 byte[] instanceId = Files.readAllBytes(instanceIdFile.toPath()); in notifyInstanceRemoval()
668 byte[] instanceId = Files.readAllBytes(mInstanceIdPath.toPath()); in claimInstance()
1095 appConfig.instanceId = Files.readAllBytes(mInstanceIdPath.toPath()); in createVirtualMachineConfigForAppFrom()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClientTests.java225 assertArrayEquals(RESPONSE_BYTES, response.getData().readAllBytes()); in testValidUrlWithResponseDataIntercept()
/packages/modules/Virtualization/vmlauncher_app/java/com/android/virtualization/vmlauncher/
DMainActivity.java94 String rawJson = new String(Files.readAllBytes(Path.of(jsonPath))); in createVirtualMachineConfig()

12