Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 273) sorted by relevance

1234567891011

/frameworks/base/services/tests/servicestests/src/com/android/server/systemconfig/
DSystemConfigTest.java175 final String contents = in testComponentOverride() local
187 createTempFile(folder, "component-override.xml", contents); in testComponentOverride()
214 final String contents = in readPermissions_allowAppConfigs_parsesStagedInstallerWhitelist() local
219 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_allowAppConfigs_parsesStagedInstallerWhitelist()
231 final String contents = in readPermissions_parsesStagedInstallerWhitelist_modulesInstaller() local
237 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_parsesStagedInstallerWhitelist_modulesInstaller()
250 final String contents = in readPermissions_parsesStagedInstallerWhitelist_multipleModulesInstallers() local
258 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_parsesStagedInstallerWhitelist_multipleModulesInstallers()
274 final String contents = in readPermissions_notAllowAppConfigs_wontParseStagedInstallerWhitelist() local
279 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_notAllowAppConfigs_wontParseStagedInstallerWhitelist()
[all …]
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp37 std::string contents; in TEST() local
39 "resources.arsc", &contents)); in TEST()
42 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
46 std::string contents; in TEST() local
48 "resources.arsc", &contents)); in TEST()
51 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
57 std::string contents; in TEST() local
59 "resources.arsc", &contents)); in TEST()
62 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
74 std::string contents; in TEST() local
[all …]
DAppAsLib_test.cpp29 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()
DLoadedArsc_test.cpp49 std::string contents; in TEST() local
51 &contents)); in TEST()
53 auto loaded_arsc = LoadedArsc::Load(reinterpret_cast<const void*>(contents.data()), in TEST()
54 contents.length()); in TEST()
75 std::string contents; in TEST() local
77 &contents)); in TEST()
79 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST()
80 contents.length()); in TEST()
96 std::string contents; in TEST() local
98 "resources.arsc", &contents)); in TEST()
[all …]
/frameworks/base/telephony/java/android/telephony/
DPcoData.java37 public final byte[] contents; field in PcoData
39 public PcoData(int cid, String bearerProto, int pcoId, byte[]contents) { in PcoData() argument
43 this.contents = contents; in PcoData()
50 contents = in.createByteArray(); in PcoData()
60 out.writeByteArray(contents); in writeToParcel()
88 contents.length + "])"; in toString()
99 && Arrays.equals(contents, pcoData.contents); in equals()
105 result = 31 * result + Arrays.hashCode(contents); in hashCode()
/frameworks/base/tools/aapt2/tools/
Dfix_resources.py23 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/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCodeGenerator.kt40 fun encodeQrCode(contents: String, size: Int, invert: Boolean): Bitmap = in encodeQrCode()
41 encodeQrCode(contents, size, DEFAULT_MARGIN, invert) in encodeQrCode()
58 contents: String, in encodeQrCode()
64 if (!isIso88591(contents)) { in encodeQrCode()
70 val qrBits = MultiFormatWriter().encode(contents, BarcodeFormat.QR_CODE, size, size, hints) in encodeQrCode()
84 private fun isIso88591(contents: String): Boolean =
85 StandardCharsets.ISO_8859_1.newEncoder().canEncode(contents)
/frameworks/base/services/core/java/com/android/server/
DResourcePressureUtil.java44 StringWriter contents = new StringWriter(); in readResourcePsiState() local
47 contents.append("----- Output from " + filePath + " -----\n"); in readResourcePsiState()
48 contents.append(IoUtils.readFileAsString(filePath)); in readResourcePsiState()
49 contents.append("----- End output from " + filePath + " -----\n"); in readResourcePsiState()
54 return contents.toString(); in readResourcePsiState()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DSigXml.java89 List<String> contents = in parseIntermediateCerts() local
96 for (String content : contents) { in parseIntermediateCerts()
103 List<String> contents = in parseSignerCert() local
106 return CertUtils.decodeCert(CertUtils.decodeBase64(contents.get(0))); in parseSignerCert()
110 List<String> contents = in parseFileSignature() local
113 return CertUtils.decodeBase64(contents.get(0)); in parseFileSignature()
DCertXml.java117 List<String> contents = in parseSerial() local
123 return Long.parseLong(contents.get(0)); in parseSerial()
128 List<String> contents = in parseIntermediateCerts() local
135 for (String content : contents) { in parseIntermediateCerts()
143 List<String> contents = in parseEndpointCerts() local
150 for (String content : contents) { in parseEndpointCerts()
/frameworks/base/core/java/com/android/internal/os/
DProcStatsUtil.java60 String contents = readSingleLineProcFile(path); in readNullSeparatedFile() local
61 if (contents == null) { in readNullSeparatedFile()
67 final int endIndex = contents.indexOf("\0\0"); in readNullSeparatedFile()
69 contents = contents.substring(0, endIndex); in readNullSeparatedFile()
73 return contents.replace("\0", " "); in readNullSeparatedFile()
/frameworks/base/core/java/android/util/
DFastImmutableArraySet.java34 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/core/java/com/android/server/stats/pull/
DIonMemoryUtil.java65 static long parseIonHeapSizeFromDebugfs(String contents) { in parseIonHeapSizeFromDebugfs() argument
66 if (contents.isEmpty()) { in parseIonHeapSizeFromDebugfs()
69 final Matcher matcher = ION_HEAP_SIZE_IN_BYTES.matcher(contents); in parseIonHeapSizeFromDebugfs()
93 static List<IonAllocations> parseProcessIonHeapSizesFromDebugfs(String contents) { in parseProcessIonHeapSizesFromDebugfs() argument
94 if (contents.isEmpty()) { in parseProcessIonHeapSizesFromDebugfs()
98 final Matcher m = PROCESS_ION_HEAP_SIZE_IN_BYTES.matcher(contents); in parseProcessIonHeapSizesFromDebugfs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/logging/
DPrivacyLogger.kt114 fun logUnfilteredPermGroupUsage(contents: List<PermissionGroupUsage>) { in logUnfilteredPermGroupUsage()
116 str1 = contents.toString() in logUnfilteredPermGroupUsage()
122 fun logShowDialogContents(contents: List<PrivacyDialog.PrivacyElement>) { in logShowDialogContents()
124 str1 = contents.toString() in logShowDialogContents()
130 fun logShowDialogV2Contents(contents: List<PrivacyDialogV2.PrivacyElement>) { in logShowDialogV2Contents()
132 str1 = contents.toString() in logShowDialogV2Contents()
/frameworks/native/libs/input/
DPropertyMap_fuzz.cpp37 std::string contents = dataProvider->ConsumeRandomLengthString(MAX_FILE_SIZE); in __anon7da9061f0302() local
40 if (contents.length() > 0) { in __anon7da9061f0302()
41 const char* bytes = contents.c_str(); in __anon7da9061f0302()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DPersistentDataStoreTest.java85 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testLoadBrightness() local
95 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadBrightness()
123 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() local
133 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()
180 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testLoadingBrightnessConfigurations() local
200 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadingBrightnessConfigurations()
222 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testBrightnessConfigWithInvalidCurveIsIgnored() local
233 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidCurveIsIgnored()
241 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testBrightnessConfigWithInvalidFloatsIsIgnored() local
252 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidFloatsIsIgnored()
[all …]
/frameworks/libs/modules-utils/java/com/android/modules/utils/build/
DUnboundedSdkLevel.java60 private static Set<String> setOf(String ... contents) { in setOf() argument
62 return Set.of(contents); in setOf()
65 Set<String> set = new ArraySet(contents.length); in setOf()
66 for (String codename : contents) { in setOf()
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DParceledListSlice.java47 int contents = 0; in describeContents() local
50 contents |= list.get(i).describeContents(); in describeContents()
52 return contents; in describeContents()
/frameworks/base/core/java/android/content/pm/
DParceledListSlice.java51 int contents = 0; in describeContents() local
54 contents |= list.get(i).describeContents(); in describeContents()
56 return contents; in describeContents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserFileManagerImplTest.kt120 val contents = "TestingSharedPrefs" in testMigrateSharedPrefs() constant
131 tmpPrefs.edit().putString(contents, contents).commit() in testMigrateSharedPrefs()
140 assertThat(prefs.getString(contents, "")).isEqualTo(contents) in testMigrateSharedPrefs()
/frameworks/base/media/tests/
DREADME.txt5 contents/media_api/
8 adb push contents/media_api/ /sdcard/media_api/
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsProviderTests.java338 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in prepareOverrideDisplaySettings() local
341 contents += " <config identifier=\"1\"/>\n"; in prepareOverrideDisplaySettings()
344 contents += " <display\n" in prepareOverrideDisplaySettings()
348 contents += "</display-settings>\n"; in prepareOverrideDisplaySettings()
350 final InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in prepareOverrideDisplaySettings()
359 String contents = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in prepareSecondaryDisplaySettings() local
362 contents += " <display\n" in prepareSecondaryDisplaySettings()
366 contents += "</display-settings>\n"; in prepareSecondaryDisplaySettings()
368 final InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in prepareSecondaryDisplaySettings()
/frameworks/base/tools/aapt2/test/
DFixture.cpp82 void TestDirectoryFixture::WriteFile(const std::string& path, const std::string& contents) { in WriteFile() argument
90 CHECK(android::base::WriteStringToFile(contents, path)); in WriteFile()
93 bool CommandTestFixture::CompileFile(const std::string& path, const std::string& contents, in CompileFile() argument
95 WriteFile(path, contents); in CompileFile()
DFixture.h61 void WriteFile(const std::string& path, const std::string& contents);
75 bool CompileFile(const std::string& path, const std::string& contents,
103 ManifestBuilder& AddContents(const std::string& contents);
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java105 File contents = (new File(mRestoreSetIncrementalDir, packageName)); in hasRestoreDataForPackage() local
106 return contents.exists() && contents.length() != 0; in hasRestoreDataForPackage()

1234567891011