Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 42) sorted by relevance

12

/art/libartbase/base/unix_file/
Drandom_access_file_test.h75 const std::string content("hello"); in TestRead()
76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead()
78 TestReadContent(content, file.get()); in TestRead()
83 void TestReadContent(const std::string& content, RandomAccessFile* file) { in TestReadContent() argument
84 const int buf_size = content.size() + 10; in TestReadContent()
90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent()
91 ASSERT_EQ(std::string(buf.get(), content.size()), content); in TestReadContent()
95 ASSERT_LT(short_request, content.size()); in TestReadContent()
98 content.substr(0, short_request)); in TestReadContent()
106 content.substr(non_zero_offset, short_request)); in TestReadContent()
[all …]
/art/tools/checker/common/
Dlogger.py47 def log(content, level=Level.INFO, color=Color.DEFAULT, new_line=True, out=sys.stdout): argument
49 content = "{}{}{}".format(Logger.Color.terminal_code(color, out), content,
52 print(content, file=out)
54 print(content, end="", file=out)
/art/test/dexdump/
Dcheckers.lst4 0x00001508 8 com.google.android.checkers.Checkers onConfigurationChanged (Landroid/content/res/Conf…
12 …4 com.google.android.checkers.CheckersView <init> (Landroid/content/Context;Landroid/content/Share…
13 0x00001f48 62 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences$Editor…
14 0x00001f98 66 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;Ljava/…
18 0x00002148 588 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;)Z (n…
30 0x00003008 340 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences$Edito…
73 0x00007214 28 com.google.android.checkers.b onClick (Landroid/content/DialogInterface;I)V (none) -1
75 0x0000725c 2 com.google.android.checkers.c onClick (Landroid/content/DialogInterface;I)V (none) -1
77 0x0000728c 2 com.google.android.checkers.d onClick (Landroid/content/DialogInterface;I)V (none) -1
79 0x000072bc 14 com.google.android.checkers.e onClick (Landroid/content/DialogInterface;I)V (none) -1
[all …]
Dall-dex-files.lst24 0x00001508 8 com.google.android.checkers.Checkers onConfigurationChanged (Landroid/content/res/Conf…
32 …4 com.google.android.checkers.CheckersView <init> (Landroid/content/Context;Landroid/content/Share…
33 0x00001f48 62 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences$Editor…
34 0x00001f98 66 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;Ljava/…
38 0x00002148 588 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences;)Z (n…
50 0x00003008 340 com.google.android.checkers.CheckersView a (Landroid/content/SharedPreferences$Edito…
93 0x00007214 28 com.google.android.checkers.b onClick (Landroid/content/DialogInterface;I)V (none) -1
95 0x0000725c 2 com.google.android.checkers.c onClick (Landroid/content/DialogInterface;I)V (none) -1
97 0x0000728c 2 com.google.android.checkers.d onClick (Landroid/content/DialogInterface;I)V (none) -1
99 0x000072bc 14 com.google.android.checkers.e onClick (Landroid/content/DialogInterface;I)V (none) -1
[all …]
Dcheckers.txt101 type : '(Landroid/content/res/Configuration;)V'
109 …8] com.google.android.checkers.Checkers.onConfigurationChanged:(Landroid/content/res/Configuration…
110 …-super {v0, v1}, Landroid/app/Activity;.onConfigurationChanged:(Landroid/content/res/Configuration…
132 …, v1}, Lcom/google/android/checkers/Checkers;.getPreferences:(I)Landroid/content/SharedPreferences…
134 …Lcom/google/android/checkers/CheckersView;.<init>:(Landroid/content/Context;Landroid/content/Share…
361 001858: 2202 0a00 |0036: new-instance v2, Landroid/content/Intent; // …
363 001860: 7030 1200 3201 |003a: invoke-direct {v2, v3, v1}, Landroid/content/…
364 …{v5, v2}, Lcom/google/android/checkers/Checkers;.startActivity:(Landroid/content/Intent;)V // meth…
426 …, v0}, Lcom/google/android/checkers/Checkers;.getPreferences:(I)Landroid/content/SharedPreferences…
428 … |0008: invoke-interface {v0}, Landroid/content/SharedPreferences;.edit:()Landroid/cont…
[all …]
Dall-dex-files.txt742 type : '(Landroid/content/res/Configuration;)V'
750 …8] com.google.android.checkers.Checkers.onConfigurationChanged:(Landroid/content/res/Configuration…
751 …-super {v0, v1}, Landroid/app/Activity;.onConfigurationChanged:(Landroid/content/res/Configuration…
773 …, v1}, Lcom/google/android/checkers/Checkers;.getPreferences:(I)Landroid/content/SharedPreferences…
775 …Lcom/google/android/checkers/CheckersView;.<init>:(Landroid/content/Context;Landroid/content/Share…
1002 001858: 2202 0a00 |0036: new-instance v2, Landroid/content/Intent; // …
1004 001860: 7030 1200 3201 |003a: invoke-direct {v2, v3, v1}, Landroid/content/…
1005 …{v5, v2}, Lcom/google/android/checkers/Checkers;.startActivity:(Landroid/content/Intent;)V // meth…
1067 …, v0}, Lcom/google/android/checkers/Checkers;.getPreferences:(I)Landroid/content/SharedPreferences…
1069 … |0008: invoke-interface {v0}, Landroid/content/SharedPreferences;.edit:()Landroid/cont…
[all …]
/art/dexopt_chroot_setup/
Ddexopt_chroot_setup.cc251 std::string content; in GetSupportedFilesystems() local
252 if (!ReadFileToString("/proc/filesystems", &content)) { in GetSupportedFilesystems()
256 for (const std::string& line : Split(content, "\n")) { in GetSupportedFilesystems()
325 std::string content; in LoadOtaSlotFile() local
326 if (!ReadFileToString(*kOtaSlotFile, &content)) { in LoadOtaSlotFile()
329 if (content == "_a" || content == "_b") { in LoadOtaSlotFile()
330 return content; in LoadOtaSlotFile()
332 if (content.empty()) { in LoadOtaSlotFile()
335 return Errorf("Invalid content of '{}': '{}'", *kOtaSlotFile, content); in LoadOtaSlotFile()
/art/tools/ahat/src/main/com/android/ahat/
DDocString.java52 public static DocString link(URI uri, DocString content) { in link() argument
54 return doc.appendLink(uri, content); in link()
176 public DocString appendLink(URI uri, DocString content) { in appendLink() argument
180 mStringBuilder.append(content.html()); in appendLink()
/art/tools/dexanalyze/
Ddexanalyze.cc204 std::string content; in Run() local
206 if (!android::base::ReadFileToString(filename, &content)) { in Run()
212 reinterpret_cast<const uint8_t*>(content.data()), content.size(), filename); in Run()
/art/dexlist/
Ddexlist.cc166 std::string content; in processFile() local
168 if (!android::base::ReadFileToString(fileName, &content)) { in processFile()
176 reinterpret_cast<const uint8_t*>(content.data()), content.size(), fileName); in processFile()
/art/libartservice/service/java/com/android/server/art/prereboot/
DPreRebootManagerInterface.java20 import android.content.Context;
DPreRebootGlobalInjector.java21 import android.content.Context;
DPreRebootManager.java23 import android.content.Context;
DPreRebootDriver.java25 import android.content.Context;
/art/tools/veridex/
Dveridex.cc291 std::string& content, in Load() argument
300 if (!android::base::ReadFileToString(filename, &content)) { in Load()
309 reinterpret_cast<const uint8_t*>(content.data()), content.size(), filename); in Load()
/art/tools/checker/file_format/checker/
Dtest.py203 content = statementEntry[0]
205 statement = TestStatement(test_case, variant, content, 0)
207 statement.add_expression(TestExpression.create_plain_text(content))
209 statement.add_expression(TestExpression.create_pattern_from_plain_text(content))
/art/libarttools/
Dtools_test.cc43 void CreateFile(const std::string& filename, const std::string& content = "") { in CreateFile() argument
46 ASSERT_TRUE(WriteStringToFile(content, filename)); in CreateFile()
/art/libartservice/service/java/com/android/server/art/
DBackgroundDexoptJob.java29 import android.content.ComponentName;
30 import android.content.Context;
DPreRebootDexoptJob.java27 import android.content.ComponentName;
28 import android.content.Context;
DSecondaryDexopter.java26 import android.content.Context;
DPrimaryDexopter.java26 import android.content.Context;
DDexUseManagerLocal.java22 import android.content.BroadcastReceiver;
23 import android.content.Context;
24 import android.content.Intent;
25 import android.content.IntentFilter;
/art/artd/
Dartd.cc309 std::string content; in CopyFile() local
310 if (!ReadFileToString(src_path, &content)) { in CopyFile()
313 if (!WriteStringToFd(content, dst_file.Fd())) { in CopyFile()
1821 std::string content; in PreRebootInitSetEnvFromFile() local
1822 if (!ReadFileToString(path, &content)) { in PreRebootInitSetEnvFromFile()
1826 for (const std::string& line : Split(content, "\n")) { in PreRebootInitSetEnvFromFile()
1844 return Errorf("Malformed env var file '{}': {}", path, content); in PreRebootInitSetEnvFromFile()
1934 std::string content; in Create() local
1935 if (!ReadFileToString(filename, &content)) { in Create()
1939 for (const std::string& raw_line : Split(content, "\n")) { in Create()
Dartd_test.cc180 std::string_view content, in WriteToFdFlagImpl() argument
192 ASSERT_TRUE(WriteStringToFd(content, fd)); in WriteToFdFlagImpl()
196 ACTION_P(WriteToFdFlag, flag, content) { in ACTION_P() argument
197 WriteToFdFlagImpl(arg0, flag, content, /*assume_empty=*/true); in ACTION_P()
201 ACTION_P(ClearAndWriteToFdFlag, flag, content) { in ACTION_P() argument
202 WriteToFdFlagImpl(arg0, flag, content, /*assume_empty=*/false); in ACTION_P()
494 void CreateFile(const std::string& filename, const std::string& content = "") { in CreateFile() argument
497 ASSERT_TRUE(WriteStringToFile(content, filename)); in CreateFile()
502 const std::string& content = "") { in CreateZipWithSingleEntry() argument
510 ASSERT_EQ(writer.WriteBytes(content.c_str(), content.size()), 0); in CreateZipWithSingleEntry()
/art/libartservice/service/javatests/com/android/server/art/
DDexUseManagerTest.java34 import android.content.BroadcastReceiver;
35 import android.content.Context;
36 import android.content.Intent;

12