/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 36 std::string contents; in TEST() local 38 "resources.arsc", &contents)); in TEST() 41 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 45 std::string contents; in TEST() local 47 &contents)); in TEST() 50 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 73 std::string contents; in TEST() local 75 "resources.arsc", &contents)); in TEST() 78 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 84 std::string contents; in TEST() local [all …]
|
D | AppAsLib_test.cpp | 29 std::string contents; in TEST() local 32 "resources.arsc", &contents)); in TEST() 35 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST() 46 std::string contents; in TEST() local 49 "resources.arsc", &contents)); in TEST() 53 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size(), NULL, 0, -1, in TEST() 65 std::string contents; in TEST() local 68 "resources.arsc", &contents)); in TEST() 72 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size(), NULL, 0, -1, in TEST()
|
D | LoadedArsc_test.cpp | 46 std::string contents; in TEST() local 48 &contents)); in TEST() 50 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() 72 std::string contents; in TEST() local 74 &contents)); in TEST() 76 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() 96 std::string contents; in TEST() local 98 &contents)); in TEST() 100 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() 116 std::string contents; in TEST() local [all …]
|
D | ApkAssets_test.cpp | 83 std::string contents; in TEST() local 86 ASSERT_TRUE(ReadFileFromZipToString(target_path, "resources.arsc", &contents)); in TEST() 87 ASSERT_THAT(target_table.add(contents.data(), contents.size(), 0, true /*copyData*/), in TEST() 92 ASSERT_TRUE(ReadFileFromZipToString(overlay_path, "resources.arsc", &contents)); in TEST() 93 ASSERT_THAT(overlay_table.add(contents.data(), contents.size(), 0, true /*copyData*/), in TEST()
|
D | Idmap_test.cpp | 32 std::string contents; in SetUp() local 34 &contents)); in SetUp() 35 ASSERT_EQ(NO_ERROR, target_table_.add(contents.data(), contents.size(), 0, true)); in SetUp()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PcoData.java | 34 public final byte[] contents; field in PcoData 36 public PcoData(int cid, String bearerProto, int pcoId, byte[]contents) { in PcoData() argument 40 this.contents = contents; in PcoData() 47 contents = in.createByteArray(); in PcoData() 57 out.writeByteArray(contents); in writeToParcel() 85 contents.length + "])"; in toString()
|
/frameworks/base/cmds/bootanimation/iot/ |
D | BootParameters.cpp | 84 std::string *contents) { in swapAndLoadBootConfigContents() argument 85 if (!ReadFileToString(nextBootFile, contents)) { in swapAndLoadBootConfigContents() 122 std::string contents; in loadParameters() local 123 if (swapAndLoadBootConfigContents(kLastBootFile, kNextBootFile, &contents)) { in loadParameters() 124 parseBootParameters(contents); in loadParameters() 125 } else if (swapAndLoadBootConfigContents(kLegacyLastBootFile, kLegacyNextBootFile, &contents)) { in loadParameters() 126 parseLegacyBootParameters(contents); in loadParameters() 134 void BootParameters::parseBootParameters(const std::string &contents) { in parseBootParameters() argument 135 if (!mProto.ParseFromString(contents)) { in parseBootParameters() 144 void BootParameters::parseLegacyBootParameters(const std::string &contents) { in parseLegacyBootParameters() argument [all …]
|
D | BootParameters_test.cpp | 229 std::string contents; in TEST() local 232 &contents); in TEST() 236 ASSERT_TRUE(contents.empty()); in TEST() 245 std::string contents; in TEST() local 249 BootParameters::swapAndLoadBootConfigContents(lastFile.path, nextFile.path, &contents); in TEST() 254 ASSERT_EQ(contents, "foo"); in TEST() 256 contents.clear(); in TEST() 257 ASSERT_TRUE(base::ReadFileToString(lastFile.path, &contents)); in TEST() 258 ASSERT_EQ(contents, "foo"); in TEST()
|
D | BootParameters.h | 43 void parseBootParameters(const std::string &contents); 47 void parseLegacyBootParameters(const std::string &contents); 52 std::string *contents);
|
/frameworks/base/tools/aapt2/tools/ |
D | fix_resources.py | 23 contents = original_contents 25 contents = c.consume(file_path, contents) 26 if original_contents != contents: 27 write_contents(file_path, contents) 45 def write_contents(file_path, contents): argument 53 temp.write(contents)
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcStatsUtil.java | 59 String contents = readSingleLineProcFile(path); in readNullSeparatedFile() local 60 if (contents == null) { in readNullSeparatedFile() 66 final int endIndex = contents.indexOf("\0\0"); in readNullSeparatedFile() 68 contents = contents.substring(0, endIndex); in readNullSeparatedFile() 72 return contents.replace("\0", " "); in readNullSeparatedFile()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/testing/ |
D | file.cc | 85 bool File::WriteStringToFile(const string& contents, const string& name) { in WriteStringToFile() argument 92 if (fwrite(contents.data(), 1, contents.size(), file) != contents.size()) { in WriteStringToFile() 103 void File::WriteStringToFileOrDie(const string& contents, const string& name) { in WriteStringToFileOrDie() argument 107 GOOGLE_CHECK_EQ(fwrite(contents.data(), 1, contents.size(), file), in WriteStringToFileOrDie() 108 contents.size()) in WriteStringToFileOrDie()
|
D | file.h | 59 static bool WriteStringToFile(const string& contents, 63 static void WriteStringToFileOrDie(const string& contents, 89 const string& name, const string& contents, bool /*is_default*/) { in SetContents() argument 90 return WriteStringToFile(contents, name); in SetContents()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | SigXml.java | 95 List<String> contents = in parseIntermediateCerts() local 102 for (String content : contents) { in parseIntermediateCerts() 109 List<String> contents = in parseSignerCert() local 112 return CertUtils.decodeCert(CertUtils.decodeBase64(contents.get(0))); in parseSignerCert() 116 List<String> contents = in parseFileSignature() local 119 return CertUtils.decodeBase64(contents.get(0)); in parseFileSignature()
|
D | CertXml.java | 116 List<String> contents = in parseSerial() local 122 return Long.parseLong(contents.get(0)); in parseSerial() 127 List<String> contents = in parseIntermediateCerts() local 134 for (String content : contents) { in parseIntermediateCerts() 142 List<String> contents = in parseEndpointCerts() local 149 for (String content : contents) { in parseEndpointCerts()
|
/frameworks/base/core/java/android/util/ |
D | FastImmutableArraySet.java | 34 public FastImmutableArraySet(T[] contents) { in FastImmutableArraySet() argument 35 mContents = contents; in FastImmutableArraySet() 59 public FastIterator(T[] contents) { in FastIterator() argument 60 mContents = contents; in FastIterator()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | PersistentDataStoreTest.java | 56 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testLoadingBrightnessConfigurations() local 76 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadingBrightnessConfigurations() 98 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testBrightnessConfigWithInvalidCurveIsIgnored() local 109 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidCurveIsIgnored() 117 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testBrightnessConfigWithInvalidFloatsIsIgnored() local 128 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidFloatsIsIgnored() 136 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testEmptyBrightnessConfigurationsDoesntCrash() local 140 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testEmptyBrightnessConfigurationsDoesntCrash()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | MemoryStatUtil.java | 275 static long parseIonHeapSizeFromDebugfs(String contents) { in parseIonHeapSizeFromDebugfs() argument 276 if (contents == null || contents.isEmpty()) { in parseIonHeapSizeFromDebugfs() 279 return tryParseLong(ION_HEAP_SIZE_IN_BYTES, contents); in parseIonHeapSizeFromDebugfs() 287 static List<IonAllocations> parseProcessIonHeapSizesFromDebugfs(String contents) { in parseProcessIonHeapSizesFromDebugfs() argument 288 if (contents == null || contents.isEmpty()) { in parseProcessIonHeapSizesFromDebugfs() 292 final Matcher m = PROCESS_ION_HEAP_SIZE_IN_BYTES.matcher(contents); in parseProcessIonHeapSizesFromDebugfs()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | descriptor.cc | 2104 string contents; in DebugStringWithOptions() local 2110 syntax_comment.AddPreComment(&contents); in DebugStringWithOptions() 2111 strings::SubstituteAndAppend(&contents, "syntax = \"$0\";\n\n", in DebugStringWithOptions() 2113 syntax_comment.AddPostComment(&contents); in DebugStringWithOptions() 2118 comment_printer.AddPreComment(&contents); in DebugStringWithOptions() 2129 strings::SubstituteAndAppend(&contents, "import public \"$0\";\n", in DebugStringWithOptions() 2132 strings::SubstituteAndAppend(&contents, "import weak \"$0\";\n", in DebugStringWithOptions() 2135 strings::SubstituteAndAppend(&contents, "import \"$0\";\n", in DebugStringWithOptions() 2145 package_comment.AddPreComment(&contents); in DebugStringWithOptions() 2146 strings::SubstituteAndAppend(&contents, "package $0;\n\n", package()); in DebugStringWithOptions() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ |
D | importer_unittest.cc | 99 void AddFile(const string& name, const char* contents) { in AddFile() argument 100 files_[name] = contents; in AddFile() 105 const char* contents = FindPtrOrNull(files_, filename); in Open() local 106 if (contents == NULL) { in Open() 109 return new io::ArrayInputStream(contents, strlen(contents)); in Open() 261 void AddFile(const string& filename, const char* contents) { in AddFile() argument 262 GOOGLE_CHECK_OK(File::SetContents(filename, contents, true)); in AddFile()
|
D | zip_writer.cc | 139 bool ZipWriter::Write(const string& filename, const string& contents) { in Write() argument 145 info.size = contents.size(); in Write() 146 info.crc32 = ComputeCRC32(contents); in Write() 164 output.WriteString(contents); // file data in Write()
|
/frameworks/base/core/java/android/content/pm/ |
D | ParceledListSlice.java | 51 int contents = 0; in describeContents() local 54 contents |= list.get(i).describeContents(); in describeContents() 56 return contents; in describeContents()
|
/frameworks/base/tools/aapt2/test/ |
D | Fixture.cpp | 83 bool TestDirectoryFixture::WriteFile(const std::string& path, const std::string& contents) { in WriteFile() argument 94 return android::base::WriteStringToFile(contents, path); in WriteFile() 97 bool CommandTestFixture::CompileFile(const std::string& path, const std::string& contents, in CompileFile() argument 99 CHECK(WriteFile(path, contents)); in CompileFile()
|
/frameworks/base/media/tests/ |
D | README.txt | 5 contents/media_api/ 8 adb push contents/media_api/ /sdcard/media_api/
|
/frameworks/base/services/core/java/com/android/server/ |
D | DropBoxManagerService.java | 501 for (EntryFile entry : list.contents.tailSet(new EntryFile(millis + 1))) { in getNextEntry() 571 out.append("Drop box contents: ").append(mAllFiles.contents.size()).append(" entries\n"); in dump() 587 for (EntryFile entry : mAllFiles.contents) { in dump() 689 public final TreeSet<EntryFile> contents = new TreeSet<EntryFile>(); field in DropBoxManagerService.FileList 933 mAllFiles.contents.add(entry); in enrollEntry() 945 tagFiles.contents.add(entry); in enrollEntry() 958 SortedSet<EntryFile> tail = mAllFiles.contents.tailSet(new EntryFile(t + 10000)); in createEntry() 965 if (!mAllFiles.contents.isEmpty()) { in createEntry() 966 t = Math.max(t, mAllFiles.contents.last().timestampMillis + 1); in createEntry() 973 if (tagFiles != null && tagFiles.contents.remove(late)) { in createEntry() [all …]
|