/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/ |
D | AndroidUriTest.java | 59 String filePath = "module/shared/directory/file"; in builder_filesLocation() local 60 File file = new File(AndroidFileEnvironment.getFilesDirWithPreNWorkaround(context), filePath); in builder_filesLocation() 65 assertThat(uri.getPath()).isEqualTo("/files/" + filePath); in builder_filesLocation() 67 .isEqualTo("android://" + context.getPackageName() + "/files/" + filePath); in builder_filesLocation() 72 String filePath = "module/shared/directory/file"; in builder_cacheLocation() local 73 File file = new File(context.getCacheDir(), filePath); in builder_cacheLocation() 78 assertThat(uri.getPath()).isEqualTo("/cache/" + filePath); in builder_cacheLocation() 80 .isEqualTo("android://" + context.getPackageName() + "/cache/" + filePath); in builder_cacheLocation() 85 String filePath = "module/google.com:<internal>@gmail.com/directory/file"; in builder_filesLocation_withEmailAccount() local 86 File file = new File(AndroidFileEnvironment.getFilesDirWithPreNWorkaround(context), filePath); in builder_filesLocation_withEmailAccount() [all …]
|
/external/cronet/tot/third_party/icu/source/common/ |
D | restrace.cpp | 26 CharString filePath; in trace() local 27 getFilePath(filePath, status); in trace() 41 filePath.data(), in trace() 53 CharString filePath; in traceOpen() local 54 UTRACE_DATA1(UTRACE_VERBOSE, "%s", getFilePath(filePath, status).data()); in traceOpen() 110 CharString filePath; in traceOpenDataFile() local 111 filePath.append(path, status); in traceOpenDataFile() 112 filePath.append('/', status); in traceOpenDataFile() 113 filePath.append(name, status); in traceOpenDataFile() 114 filePath.append('.', status); in traceOpenDataFile() [all …]
|
/external/cronet/stable/third_party/icu/source/common/ |
D | restrace.cpp | 26 CharString filePath; in trace() local 27 getFilePath(filePath, status); in trace() 41 filePath.data(), in trace() 53 CharString filePath; in traceOpen() local 54 UTRACE_DATA1(UTRACE_VERBOSE, "%s", getFilePath(filePath, status).data()); in traceOpen() 110 CharString filePath; in traceOpenDataFile() local 111 filePath.append(path, status); in traceOpenDataFile() 112 filePath.append('/', status); in traceOpenDataFile() 113 filePath.append(name, status); in traceOpenDataFile() 114 filePath.append('.', status); in traceOpenDataFile() [all …]
|
/external/icu/icu4c/source/common/ |
D | restrace.cpp | 25 CharString filePath; in trace() local 26 getFilePath(filePath, status); in trace() 40 filePath.data(), in trace() 50 CharString filePath; in traceOpen() local 51 UTRACE_DATA1(UTRACE_VERBOSE, "%s", getFilePath(filePath, status).data()); in traceOpen() 106 CharString filePath; in traceOpenDataFile() local 107 filePath.append(path, status); in traceOpenDataFile() 108 filePath.append('/', status); in traceOpenDataFile() 109 filePath.append(name, status); in traceOpenDataFile() 110 filePath.append('.', status); in traceOpenDataFile() [all …]
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/ |
D | FileUtil.java | 49 public static List<String> loadLabels(@NonNull Context context, @NonNull String filePath) in loadLabels() argument 51 return loadLabels(context, filePath, Charset.defaultCharset()); in loadLabels() 69 @NonNull Context context, @NonNull String filePath, Charset cs) throws IOException { in loadLabels() argument 71 SupportPreconditions.checkNotNull(filePath, "File path cannot be null."); in loadLabels() 72 try (InputStream inputStream = context.getAssets().open(filePath)) { in loadLabels() 127 @NonNull Context context, @NonNull String filePath, Charset cs) throws IOException { in loadSingleColumnTextFile() argument 128 return loadLabels(context, filePath, cs); in loadSingleColumnTextFile() 155 public static MappedByteBuffer loadMappedFile(@NonNull Context context, @NonNull String filePath) in loadMappedFile() argument 158 SupportPreconditions.checkNotNull(filePath, "File path cannot be null."); in loadMappedFile() 159 try (AssetFileDescriptor fileDescriptor = context.getAssets().openFd(filePath); in loadMappedFile() [all …]
|
/external/pytorch/test/cpp/lite_interpreter_runtime/ |
D | test_lite_interpreter_runtime.cpp | 19 std::string filePath(__FILE__); in TEST() local 20 auto testModelFile = filePath.substr(0, filePath.find_last_of("/\\") + 1); in TEST() 56 std::string filePath(__FILE__); in TEST() local 57 auto testModelFile = filePath.substr(0, filePath.find_last_of("/\\") + 1); in TEST() 79 std::string filePath(__FILE__); in TEST() local 80 auto testModelFile = filePath.substr(0, filePath.find_last_of("/\\") + 1); in TEST()
|
/external/cronet/stable/third_party/icu/source/tools/toolutil/ |
D | filetools.cpp | 45 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir) { in isFileModTimeLater() argument 48 if (filePath == nullptr || checkAgainst == nullptr) { in isFileModTimeLater() 73 isLatest = isFileModTimeLater(filePath, newpath.data(), isDir); in isFileModTimeLater() 78 int32_t latest = whichFileModTimeIsLater(filePath, newpath.data()); in isFileModTimeLater() 95 int32_t latest = whichFileModTimeIsLater(filePath, checkAgainst); in isFileModTimeLater() 136 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) { in swapFileSepChar() argument 137 for (int32_t i = 0, length = static_cast<int32_t>(uprv_strlen(filePath)); i < length; i++) { in swapFileSepChar() 138 filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i]; in swapFileSepChar()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | filetools.cpp | 45 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir) { in isFileModTimeLater() argument 48 if (filePath == nullptr || checkAgainst == nullptr) { in isFileModTimeLater() 73 isLatest = isFileModTimeLater(filePath, newpath.data(), isDir); in isFileModTimeLater() 78 int32_t latest = whichFileModTimeIsLater(filePath, newpath.data()); in isFileModTimeLater() 95 int32_t latest = whichFileModTimeIsLater(filePath, checkAgainst); in isFileModTimeLater() 136 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) { in swapFileSepChar() argument 137 for (int32_t i = 0, length = static_cast<int32_t>(uprv_strlen(filePath)); i < length; i++) { in swapFileSepChar() 138 filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i]; in swapFileSepChar()
|
/external/cronet/tot/third_party/icu/source/tools/toolutil/ |
D | filetools.cpp | 45 isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir) { in isFileModTimeLater() argument 48 if (filePath == nullptr || checkAgainst == nullptr) { in isFileModTimeLater() 73 isLatest = isFileModTimeLater(filePath, newpath.data(), isDir); in isFileModTimeLater() 78 int32_t latest = whichFileModTimeIsLater(filePath, newpath.data()); in isFileModTimeLater() 95 int32_t latest = whichFileModTimeIsLater(filePath, checkAgainst); in isFileModTimeLater() 136 swapFileSepChar(char *filePath, const char oldFileSepChar, const char newFileSepChar) { in swapFileSepChar() argument 137 for (int32_t i = 0, length = static_cast<int32_t>(uprv_strlen(filePath)); i < length; i++) { in swapFileSepChar() 138 filePath[i] = (filePath[i] == oldFileSepChar ) ? newFileSepChar : filePath[i]; in swapFileSepChar()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/ |
D | TransformationTestResult.java | 32 @Nullable private String filePath; field in TransformationTestResult.Builder 52 public Builder setFilePath(@Nullable String filePath) { in setFilePath() argument 53 this.filePath = filePath; in setFilePath() 100 transformationResult, filePath, elapsedTimeMs, ssim, analysisException); in build() 105 @Nullable public final String filePath; field in TransformationTestResult 159 @Nullable String filePath, in TransformationTestResult() argument 164 this.filePath = filePath; in TransformationTestResult()
|
/external/aws-sdk-java-v2/test/s3-benchmarks/src/main/java/software/amazon/awssdk/s3benchmarks/ |
D | TransferManagerBenchmarkConfig.java | 23 private final String filePath; field in TransferManagerBenchmarkConfig 42 this.filePath = builder.filePath; in TransferManagerBenchmarkConfig() 60 public String filePath() { in filePath() method in TransferManagerBenchmarkConfig 61 return filePath; in filePath() 131 .add("filePath", filePath) in toString() 153 private String filePath; field in TransferManagerBenchmarkConfig.Builder 170 public Builder filePath(String filePath) { in filePath() argument 171 this.filePath = filePath; in filePath()
|
D | JavaS3ClientUploadBenchmark.java | 34 private final String filePath; field in JavaS3ClientUploadBenchmark 41 this.filePath = config.filePath(); in JavaS3ClientUploadBenchmark() 49 if (filePath == null) { in sendOneRequest() 56 Paths.get(filePath))::join).latency(); in sendOneRequest() 91 return filePath != null in contentLength() 92 ? Files.size(Paths.get(filePath)) in contentLength()
|
/external/aws-sdk-java-v2/test/s3-benchmarks/src/main/java/software/amazon/awssdk/s3benchmarks/s3express/ |
D | BenchmarkConfig.java | 25 private final String filePath; field in BenchmarkConfig 51 this.filePath = builder.filePath; in BenchmarkConfig() 73 public String filePath() { in filePath() method in BenchmarkConfig 74 return filePath; in filePath() 160 .add("filePath", filePath) in toString() 181 private String filePath; field in BenchmarkConfig.Builder 204 public Builder filePath(String filePath) { in filePath() method in BenchmarkConfig.Builder 205 this.filePath = filePath; in filePath()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
D | ReversedLinesFileReaderTestParamFile.java | 88 …private void testDataIntegrityWithBufferedReader(final Path filePath, final FileSystem fileSystem,… in testDataIntegrityWithBufferedReader() argument 93 …try (BufferedReader bufferedReader = Files.newBufferedReader(filePath, Charsets.toCharset(charset)… in testDataIntegrityWithBufferedReader() 117 Path filePath = isResource ? TestResources.getPath(fileName) : Paths.get(fileName); in testDataIntegrityWithBufferedReader() local 121 filePath = Files.copy(filePath, fileSystem.getPath("/" + fileName)); in testDataIntegrityWithBufferedReader() 126 …Reader reversedLinesFileReader = blockSize == null ? new ReversedLinesFileReader(filePath, charset) in testDataIntegrityWithBufferedReader() 127 : new ReversedLinesFileReader(filePath, blockSize, charset)) { in testDataIntegrityWithBufferedReader() argument 128 … testDataIntegrityWithBufferedReader(filePath, fileSystem, charset, reversedLinesFileReader); in testDataIntegrityWithBufferedReader() 132 .setPath(filePath) in testDataIntegrityWithBufferedReader() 137 … testDataIntegrityWithBufferedReader(filePath, fileSystem, charset, reversedLinesFileReader); in testDataIntegrityWithBufferedReader()
|
/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/sync/ |
D | FileContentStreamProvider.java | 31 private final Path filePath; field in FileContentStreamProvider 34 public FileContentStreamProvider(Path filePath) { in FileContentStreamProvider() argument 35 this.filePath = filePath; in FileContentStreamProvider() 41 currentStream = invokeSafely(() -> Files.newInputStream(filePath)); in newStream()
|
/external/deqp/scripts/ |
D | mustpass.py | 119 def __init__(self, filePath, sortedLines): argument 120 self.filePath = filePath 126 filePath = getCaseListPath(buildCfg, module, "txt") 127 with open(filePath, 'r') as first_file: 130 caseList = CaseList(filePath, lines) 287 logging.debug("Reading " + currentCaseList.filePath) 301 def openAndStoreFile(filePath, testFilePath, parentFile): argument 302 if filePath not in output_files: 304 print(" " + filePath) 306 currentDir = os.path.dirname(filePath) [all …]
|
/external/android-key-attestation/server/src/main/java/com/google/android/attestation/ |
D | CertificateRevocationStatus.java | 50 public static HashMap<String, CertificateRevocationStatus> loadAllEntriesFromFile(String filePath) in loadAllEntriesFromFile() argument 52 FileReader reader = new FileReader(filePath); in loadAllEntriesFromFile() 72 String filePath) in loadStatusFromFile() argument 74 return loadStatusFromFile(serialNumber.toString(16), filePath); in loadStatusFromFile() 77 public static CertificateRevocationStatus loadStatusFromFile(String serialNumber, String filePath) in loadStatusFromFile() argument 79 FileReader reader = new FileReader(filePath); in loadStatusFromFile()
|
/external/pigweed/pw_web/log-viewer/src/custom/ |
D | browser-log-source.ts | 41 const [, filePath, lineNumber] = match; constant 45 (!filePath.endsWith('.js') && !filePath.endsWith('.ts')) || 46 filePath.includes('browser-log-source.ts') 53 if (filePath) { 54 const segments = filePath?.split('/');
|
/external/antlr/gunit/src/main/java/org/antlr/gunit/ |
D | gUnitBaseTest.java | 61 String filePath = testInput; in execLexer() local 62 File testInputFile = new File(filePath); in execLexer() 65 testInputFile = new File(packagePath, filePath); in execLexer() 66 if ( testInputFile.exists() ) filePath = testInputFile.getCanonicalPath(); in execLexer() 68 input = new ANTLRFileStream(filePath); in execLexer() 150 String filePath = testInput; in execParser() local 151 File testInputFile = new File(filePath); in execParser() 154 testInputFile = new File(packagePath, filePath); in execParser() 155 if ( testInputFile.exists() ) filePath = testInputFile.getCanonicalPath(); in execParser() 157 input = new ANTLRFileStream(filePath); in execParser() [all …]
|
/external/deqp/scripts/src_util/ |
D | common.py | 67 def isTextFile (filePath): argument 69 if filePath.endswith("preprocessor.test"): 72 if filePath.endswith("clang-format"): 75 ext = os.path.splitext(filePath)[1] 82 f = open(filePath, "rb")
|
/external/spdx-tools/builder/builder2v1/ |
D | build_file_test.go | 13 filePath := "/file1.testdata.txt" 17 file1, err := BuildFileSection2_1(filePath, prefix, fileNumber) 66 filePath := "/file1.testdata.txt" 70 _, err := BuildFileSection2_1(filePath, prefix, fileNumber)
|
/external/spdx-tools/builder/builder2v3/ |
D | build_file_test.go | 13 filePath := "/file1.testdata.txt" 17 file1, err := BuildFileSection2_3(filePath, prefix, fileNumber) 66 filePath := "/file1.testdata.txt" 70 _, err := BuildFileSection2_3(filePath, prefix, fileNumber)
|
/external/spdx-tools/builder/builder2v2/ |
D | build_file_test.go | 13 filePath := "/file1.testdata.txt" 17 file1, err := BuildFileSection2_2(filePath, prefix, fileNumber) 66 filePath := "/file1.testdata.txt" 70 _, err := BuildFileSection2_2(filePath, prefix, fileNumber)
|
/external/tensorflow/tensorflow/lite/swift/Sources/ |
D | Model.swift | 30 init?(filePath: String) { 31 guard !filePath.isEmpty, let cModel = TfLiteModelCreateFromFile(filePath) else { return nil }
|
/external/armnn/src/backends/cl/ |
D | ClContextDeserializer.cpp | 39 const std::string& filePath) in Deserialize() argument 43 std::ifstream inputFileStream(filePath, std::ios::binary); in Deserialize() 56 int fp = open(filePath.c_str(),O_RDONLY); in Deserialize() 59 ARMNN_LOG(error) << (std::string("Cannot open file ") + filePath); in Deserialize() 73 ARMNN_LOG(error) << (std::string("Cannot map file ") + filePath); in Deserialize()
|