Home
last modified time | relevance | path

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

123456

/packages/services/Car/cpp/watchdog/server/tests/
DProcStatCollectorTest.cpp152 constexpr char contents[] = in TEST() local
168 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
178 constexpr char contents[] = in TEST() local
193 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
203 constexpr char contents[] = in TEST() local
218 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
228 constexpr char contents[] = in TEST() local
243 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
253 constexpr char contents[] = in TEST() local
268 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
[all …]
DUidIoStatsCollectorTest.cpp108 constexpr char contents[] = "1001234 5000 1000 3000 500 0 0 0 0 20 0\n" in TEST() local
114 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
DUidCpuStatsCollectorTest.cpp89 constexpr char contents[] = "0: 7000000 5000000\n" in TEST() local
95 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
/packages/apps/Dialer/java/com/android/dialer/spannable/
DContentWithLearnMoreSpanner.java70 SpannableString contents = new SpannableString(String.format(contentFormatString, learnMore)); in create() local
73 contents.toString().contains(learnMore), in create()
77 int learnMoreSpanStartIndex = contents.toString().lastIndexOf(learnMore); in create()
80 contents.setSpan( in create()
86 contents.setSpan( in create()
92 return contents; in create()
/packages/services/Car/cpp/watchdog/server/src/
DUidProcStatsCollector.cpp137 std::unordered_map<std::string, std::string> contents; in readKeyValueFile() local
151 if (contents.find(key) != contents.end()) { in readKeyValueFile()
155 contents[key] = value; in readKeyValueFile()
157 return contents; in readKeyValueFile()
174 auto contents = result.value(); in readPidStatusFile() local
175 if (contents.empty()) { in readPidStatusFile()
180 if (contents.find("Uid") == contents.end() || in readPidStatusFile()
181 !ParseInt(Split(contents["Uid"], "\t")[0], &uid)) { in readPidStatusFile()
184 if (contents.find("Tgid") == contents.end() || !ParseInt(contents["Tgid"], &tgid)) { in readPidStatusFile()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DSilentModeHandlerUnitTest.java118 String contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode() local
119 assertWithMessage("Kernel silent mode").that(contents).isEqualTo(VALUE_SILENT_MODE); in testUpdateKernelSilentMode()
123 contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode()
124 assertWithMessage("Kernel silent mode").that(contents).isEqualTo(VALUE_NON_SILENT_MODE); in testUpdateKernelSilentMode()
208 private void writeStringToFile(File file, String contents) throws Exception { in writeStringToFile() argument
210 writer.write(contents); in writeStringToFile()
219 String contents = readFileAsString(mFileKernelSilentMode.getPath()); in assertSilentMode() local
221 && (isForcedMode || contents.equals(expectedValue))) { in assertSilentMode()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java32 public static MatchedLine findMatchingLine(String contents, String substring) { in findMatchingLine() argument
37 final int index = SearchUtil.contains(contents, substring); in findMatchingLine()
42 if (contents.charAt(start) == '\n') { in findMatchingLine()
48 while (end < contents.length()) { in findMatchingLine()
49 if (contents.charAt(end) == '\n') { in findMatchingLine()
54 matched.line = contents.substring(start + 1, end); in findMatchingLine()
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java49 public static MatchedLine findMatchingLine(String contents, String substring) { in findMatchingLine() argument
54 final int index = SearchUtil.contains(contents, substring); in findMatchingLine()
59 if (contents.charAt(start) == '\n') { in findMatchingLine()
65 while (end < contents.length()) { in findMatchingLine()
66 if (contents.charAt(end) == '\n') { in findMatchingLine()
71 matched.line = contents.substring(start + 1, end); in findMatchingLine()
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils_test.cpp38 bool FileMatchesContent(android::base::borrowed_fd input, const char* contents, in FileMatchesContent() argument
48 result = memcmp(buffer, contents, readAmount) == 0; in FileMatchesContent()
54 printf("%x", contents[i]); in FileMatchesContent()
86 std::string contents("FASTDEPLOY"); in TEST() local
87 EXPECT_TRUE(FileMatchesContent(output.fd, contents.c_str(), contents.size())); in TEST()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DQrCodeGenerator.java45 public static Bitmap encodeQrCode(String contents, int size) in encodeQrCode() argument
48 if (!isIso88591(contents)) { in encodeQrCode()
52 final BitMatrix qrBits = new MultiFormatWriter().encode(contents, BarcodeFormat.QR_CODE, in encodeQrCode()
63 private static boolean isIso88591(String contents) { in isIso88591() argument
65 return encoder.canEncode(contents); in isIso88591()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DFolderInfo.java107 public ArrayList<WorkspaceItemInfo> contents = new ArrayList<>(); field in FolderInfo
122 add(item, contents.size(), animate); in add()
129 rank = Utilities.boundToRange(rank, 0, contents.size()); in add()
130 contents.add(rank, item); in add()
150 contents.removeAll(items); in removeAll()
214 .setCardinality(contents.size()); in buildProto()
271 folderInfo.contents = this.contents; in makeShallowCopy()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java167 DemoPresentationContents contents = in setupListeners()
169 showPresentation(display, contents); in setupListeners()
205 private void showPresentation(Display display, DemoPresentationContents contents) { in showPresentation() argument
212 Log.d(TAG, "Showing presentation photo #" + contents.mPhoto in showPresentation()
215 DemoPresentation presentation = new DemoPresentation(getContext(), display, contents); in showPresentation()
268 DemoPresentationContents contents = presentation != null in getView() local
274 cb.setChecked(contents != null); in getView()
316 DemoPresentation(Context context, Display display, DemoPresentationContents contents) { in DemoPresentation() argument
318 mContents = contents; in DemoPresentation()
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp64 std::string contents; in ReadDatabase() local
65 if (!android::base::ReadFileToString(db_path, &contents, true)) { in ReadDatabase()
69 if (!db.ParseFromString(contents)) { in ReadDatabase()
146 std::string contents; in SetSdkLevels() local
147 if (!android::base::ReadFileToString(path, &contents, true)) { in SetSdkLevels()
152 if (!sdk_version.ParseFromString(contents)) { in SetSdkLevels()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderGridOrganizer.java58 return setContentSize(info.contents.size()); in setFolderInfo()
156 public <T, R extends T> ArrayList<R> previewItemsForPage(int page, List<T> contents) { in previewItemsForPage() argument
160 int end = Math.min(start + itemsPerPage, contents.size()); in previewItemsForPage()
164 result.add((R) contents.get(i)); in previewItemsForPage()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DKitchenSinkBackupTransport.java162 File[] contents = dirname.listFiles(); in deleteContents() local
163 if (contents == null) return; in deleteContents()
164 for (File f : contents) { in deleteContents()
673 String[] contents = (new File(mRestoreSetIncrementalDir, packageName)).list(); in hasRestoreDataForPackage() local
674 if (contents != null && contents.length > 0) { in hasRestoreDataForPackage()
754 ArrayList<DecodedFilename> contents = new ArrayList<>(); in contentsByKey() local
756 contents.add(new DecodedFilename(f)); in contentsByKey()
758 Collections.sort(contents); in contentsByKey()
759 return contents; in contentsByKey()
/packages/modules/SdkExtensions/derive_classpath/
Dderive_classpath_test.cpp60 std::string contents; in ParseExportsFile() local
61 EXPECT_TRUE(android::base::ReadFileToString(file, &contents, /*follow_symlinks=*/true)); in ParseExportsFile()
62 return android::base::Split(contents, "\n"); in ParseExportsFile()
66 std::vector<std::string> contents = android::base::Split(line, " "); in SplitClasspathExportLine() local
68 EXPECT_EQ(3, contents.size()); in SplitClasspathExportLine()
69 EXPECT_EQ("export", contents[0]); in SplitClasspathExportLine()
70 return contents; in SplitClasspathExportLine()
Dderive_classpath.cpp177 std::string contents; in ReadClasspathFragment() local
178 if (!android::base::ReadFileToString(filepath, &contents)) { in ReadClasspathFragment()
182 if (!fragment->ParseFromString(contents)) { in ReadClasspathFragment()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParceledListSlice.java66 int contents = 0; in describeContents() local
69 contents |= list.get(i).describeContents(); in describeContents()
71 return contents; in describeContents()
/packages/apps/Settings/src/com/android/settings/
DMainClear.java476 LinearLayout contents = (LinearLayout) mContentView.findViewById(R.id.accounts); in loadAccountList() local
477 contents.removeAllViews(); in loadAccountList()
505 View titleView = Utils.inflateCategoryHeader(inflater, contents); in loadAccountList()
520 contents.addView(titleView); in loadAccountList()
554 View child = inflater.inflate(R.layout.main_clear_account, contents, false); in loadAccountList()
557 contents.addView(child); in loadAccountList()
563 contents.setVisibility(View.VISIBLE); in loadAccountList()
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningLoader.java303 private void loge(String contents) { in loge() argument
304 Log.e(LOG_TAG, contents); in loge()
307 private void logd(String contents) { in logd() argument
308 Log.d(LOG_TAG, contents); in logd()
/packages/modules/AdServices/apex/
DAndroid.bp57 contents: [
67 contents: [
81 // Additional stubs libraries that this fragment's contents use which are
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java148 public void writeDocument(Uri documentUri, byte[] contents) in writeDocument() argument
152 out.write(contents, 0, contents.length); in writeDocument()
157 public void writeAppendDocument(Uri documentUri, byte[] contents, int length) in writeAppendDocument() argument
161 out.write(contents, 0, length); in writeAppendDocument()
/packages/modules/AppSearch/
DAndroid.bp68 contents: ["framework-appsearch"],
79 // Additional stubs libraries that this fragment's contents use which are
104 contents: ["service-appsearch"],
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java177 View contents = view.getChildAt(1); in dumpChildren() local
212 + contents.getVisibility() in dumpChildren()
214 + contents.getAlpha() in dumpChildren()
216 + contents.getTranslationY() in dumpChildren()
218 + contents.getLeft() in dumpChildren()
220 + contents.getTop() in dumpChildren()
222 + contents.getRight() in dumpChildren()
224 + contents.getBottom() in dumpChildren()
/packages/modules/Permission/
DAndroid.bp70 contents: [
84 // Additional stubs libraries that this fragment's contents use which are
118 contents: ["service-permission"],

123456