Searched refs:contents (Results 1 - 25 of 66) sorted by relevance

123

/frameworks/base/libs/androidfw/tests/
H A DAppAsLib_test.cpp29 std::string contents; local
32 "resources.arsc", &contents));
35 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size()));
46 std::string contents; local
49 "resources.arsc", &contents));
53 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size(), NULL, 0, -1,
65 std::string contents; local
68 "resources.arsc", &contents));
[all...]
H A DLoadedArsc_test.cpp31 std::string contents; local
33 &contents));
36 LoadedArsc::Load(contents.data(), contents.size());
58 std::string contents; local
60 ReadFileFromZipToString(GetTestDataPath() + "/basic/basic.apk", "resources.arsc", &contents));
63 LoadedArsc::Load(contents.data(), contents.size());
81 std::string contents; local
83 &contents));
103 std::string contents; local
131 std::string contents; local
147 std::string contents; local
[all...]
H A DResTable_test.cpp36 std::string contents; local
38 "resources.arsc", &contents));
41 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size()));
45 std::string contents; local
47 &contents));
50 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size()));
73 std::string contents; local
75 "resources.arsc", &contents));
84 std::string contents; local
101 std::string contents; local
125 std::string contents; local
149 std::string contents; local
173 std::string contents; local
194 std::string contents; local
227 std::string contents; local
350 std::string contents; local
398 std::string contents; local
[all...]
H A DIdmap_test.cpp32 std::string contents; variable
34 &contents));
35 ASSERT_EQ(NO_ERROR, target_table_.add(contents.data(), contents.size(), 0, true));
H A DAttributeResolution_test.cpp35 std::string contents; variable
37 GetTestDataPath() + "/styles/styles.apk", "resources.arsc", &contents));
38 ASSERT_EQ(NO_ERROR, table_.add(contents.data(), contents.size(),
51 std::string contents; variable
54 "res/layout/layout.xml", &contents));
56 ASSERT_EQ(NO_ERROR, xml_parser_.setTo(contents.data(), contents.size(),
/frameworks/base/telephony/java/android/telephony/
H A DPcoData.java34 public final byte[] contents; field in class:PcoData
36 public PcoData(int cid, String bearerProto, int pcoId, byte[]contents) {
40 this.contents = contents;
47 contents = in.createByteArray();
57 out.writeByteArray(contents);
84 return "PcoData(" + cid + ", " + bearerProto + ", " + pcoId + ", contents[" +
85 contents.length + "])";
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/writer/
H A DJavaFileWriter.java24 public abstract void writeToFile(String canonicalName, String contents); argument
25 public void writeToFile(File exactPath, String contents) { argument
30 FileUtils.writeStringToFile(exactPath, contents);
/frameworks/base/core/java/android/util/
H A DFastImmutableArraySet.java26 * so it is worth copying the contents of the set to an array when iterating over it
34 public FastImmutableArraySet(T[] contents) { argument
35 mContents = contents;
59 public FastIterator(T[] contents) { argument
60 mContents = contents;
/frameworks/base/tools/aapt2/tools/
H A Dfix_resources.py23 contents = original_contents
25 contents = c.consume(file_path, contents)
26 if original_contents != contents:
27 write_contents(file_path, contents)
41 """Reads the contents of file_path without decoding."""
45 def write_contents(file_path, contents):
46 """Writes the bytes in contents to file_path by first writing to a temporary, then
53 temp.write(contents)
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
H A DAnnotationJavaFileWriter.java36 public void writeToFile(String canonicalName, String contents) { argument
43 writer.write(contents);
/frameworks/base/core/java/android/content/pm/
H A DParceledListSlice.java48 int contents = 0;
51 contents |= list.get(i).describeContents();
53 return contents;
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
H A DStaticAccessImportOnDemandTest.java58 private void assertText(String contents, TextView textView) { argument
59 assertEquals(contents, textView.getText().toString());
H A DStaticAccessImportOnDemandWithConflictTest.java58 private void assertText(String contents, TextView textView) { argument
59 assertEquals(contents, textView.getText().toString());
H A DStaticAccessTest.java61 private void assertText(String contents, TextView textView) { argument
62 assertEquals(contents, textView.getText().toString());
/frameworks/support/wear/tests/src/android/support/wear/widget/
H A DSwipeDismissPreferenceFragment.java63 View contents = super.onCreateView(inflater, mSwipeLayout, savedInstanceState);
66 mSwipeLayout.addView(contents);
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
H A DBaseCompilationTest.java141 InputStream contents = getClass().getResourceAsStream(name);
143 IOUtils.copy(contents, fos);
145 IOUtils.closeQuietly(contents);
163 final String contents = IOUtils.toString(inputStream);
166 StringBuilder out = new StringBuilder(contents.length());
167 final Matcher matcher = VARIABLES.matcher(contents);
172 out.append(contents, location, start);
181 if (location < contents.length()) {
182 out.append(contents, location, contents
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DDropBoxManagerService.java336 for (EntryFile entry : list.contents.tailSet(new EntryFile(millis + 1))) {
378 pw.println(" -p|--print: print full contents of each entry");
389 out.append("Drop box contents: ").append(mAllFiles.contents.size()).append(" entries\n");
400 for (EntryFile entry : mAllFiles.contents) {
417 out.append(" (contents lost)\n");
500 public final TreeSet<EntryFile> contents = new TreeSet<EntryFile>(); field in class:DropBoxManagerService.FileList
561 * Creates a zero-length tombstone for a file whose contents were lost.
635 /** If never run before, scans disk contents to build in-memory tracking data. */
681 mAllFiles.contents
[all...]
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
H A DObbBackupService.java135 File[] contents = dir.listFiles();
136 if (contents != null) {
137 for (File f : contents) {
/frameworks/base/tests/net/java/android/net/util/
H A DBlockingSocketReaderTest.java113 void sendPacket(byte[] contents) throws Exception { argument
116 sender.send(new DatagramPacket(contents, contents.length));
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java236 // Deletes the contents but not the given directory
238 File[] contents = dirname.listFiles();
239 if (contents != null) {
240 for (File f : contents) {
242 // delete the directory's contents then fall through
481 // skip packages where we have a data dir but no actual contents
482 String[] contents = (new File(mRestoreSetIncrementalDir, name)).list();
483 if (contents != null && contents.length > 0) {
591 ArrayList<DecodedFilename> contents
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DUsimDataDownloadCommands.java.broken80 * @param contents expected envelope contents to send
85 synchronized void expectSendEnvelope(String contents, int sw1, int sw2, String response) {
88 mExpectingSendEnvelopeContents = contents;
138 public synchronized void sendEnvelopeWithStatus(String contents, Message response) {
141 for (int i = 0; i < contents.length(); i += 2) {
142 builder.append(contents.charAt(i)).append(contents.charAt(i+1)).append(' ');
147 Assert.assertEquals(mExpectingSendEnvelopeContents, contents);
531 public void sendTerminalResponse(String contents, Messag
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DIdenticalCodeFolding.cpp183 std::vector<std::string> contents(pCandidateList.size());
187 contents[index] = pCandidateList[index].getContentWithVariables(
190 (const uint8_t*)contents[index].c_str(),
191 contents[index].length());
201 if (contents[index].compare(contents[kept_index]) == 0) {
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
H A DDataBindingBuilder.java160 public void writeToFile(String canonicalName, String contents) { argument
168 IOUtils.write(contents, fos);
/frameworks/rs/script_api/
H A Drs_io.spec32 Receive a new set of contents from the queue.
47 Send the contents of the Allocation to the queue.
/frameworks/base/tools/aapt2/util/
H A DFiles.cpp186 std::string contents; local
187 if (!android::base::ReadFileToString(path.to_string(), &contents, true /*follow_symlinks*/)) {
194 for (StringPiece line : util::Tokenize(contents, ' ')) {

Completed in 520 milliseconds

123