/packages/services/Car/cpp/watchdog/server/src/ |
D | ProcPidStat.cpp | 123 std::unordered_map<std::string, std::string> contents; in readKeyValueFile() local 137 if (contents.find(key) != contents.end()) { in readKeyValueFile() 141 contents[key] = value; in readKeyValueFile() 143 return contents; in readKeyValueFile() 160 auto contents = ret.value(); in readPidStatusFile() local 161 if (contents.empty()) { in readPidStatusFile() 164 if (contents.find("Uid") == contents.end() || in readPidStatusFile() 165 !ParseInt(Split(contents["Uid"], "\t")[0], &processStats->uid)) { in readPidStatusFile() 168 if (contents.find("Tgid") == contents.end() || in readPidStatusFile() 169 !ParseInt(contents["Tgid"], &processStats->tgid)) { in readPidStatusFile() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcStatTest.cpp | 137 constexpr char contents[] = in TEST() local 153 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST() 161 constexpr char contents[] = in TEST() local 176 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST() 184 constexpr char contents[] = in TEST() local 199 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST() 207 constexpr char contents[] = in TEST() local 222 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST() 230 constexpr char contents[] = in TEST() local 247 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
|
D | UidIoStatsTest.cpp | 97 constexpr char contents[] = "1001234 5000 1000 3000 500 0 0 0 0 20 0\n" in TEST() local 103 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
|
D | ProcDiskStatsTest.cpp | 132 constexpr char contents[] = "252 0 disk 1200 300 0 CORRUPTED DATA\n"; in TEST() local 135 ASSERT_TRUE(WriteStringToFile(contents, tf.path)); in TEST()
|
/packages/apps/Dialer/java/com/android/dialer/spannable/ |
D | ContentWithLearnMoreSpanner.java | 70 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/tests/carservice_unit_test/src/com/android/car/power/ |
D | SilentModeHandlerUnitTest.java | 118 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 220 if (handler.isSilentMode() == expectedMode && contents.equals(expectedValue)) { in assertSilentMode()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 32 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/ |
D | SearchUtil.java | 49 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/ |
D | patch_utils_test.cpp | 38 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/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCodeGenerator.java | 41 public static Bitmap encodeQrCode(String contents, int size) in encodeQrCode() argument 44 if (!isIso88591(contents)) { in encodeQrCode() 48 final BitMatrix qrBits = new MultiFormatWriter().encode(contents, BarcodeFormat.QR_CODE, in encodeQrCode() 59 private static boolean isIso88591(String contents) { in isIso88591() argument 61 return encoder.canEncode(contents); in isIso88591()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | QrCodeGenerator.java | 45 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/ |
D | FolderInfo.java | 107 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() 213 .setCardinality(contents.size()); in buildProto() 269 folderInfo.contents = this.contents; in makeShallowCopy()
|
/packages/modules/SdkExtensions/derive_classpath/ |
D | derive_classpath_test.cpp | 59 std::string contents; in ParseExportsFile() local 60 EXPECT_TRUE(android::base::ReadFileToString(file, &contents, /*follow_symlinks=*/true)); in ParseExportsFile() 61 return android::base::Split(contents, "\n"); in ParseExportsFile() 65 std::vector<std::string> contents = android::base::Split(line, " "); in SplitClasspathExportLine() local 67 EXPECT_EQ(3, contents.size()); in SplitClasspathExportLine() 68 EXPECT_EQ("export", contents[0]); in SplitClasspathExportLine() 69 return contents; in SplitClasspathExportLine()
|
D | derive_classpath.cpp | 126 std::string contents; in ReadClasspathFragment() local 127 if (!android::base::ReadFileToString(filepath, &contents)) { in ReadClasspathFragment() 131 if (!fragment->ParseFromString(contents)) { in ReadClasspathFragment()
|
/packages/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk.cpp | 58 std::string contents; in ReadDatabase() local 59 if (!android::base::ReadFileToString(db_path, &contents, true)) { in ReadDatabase() 63 if (!db.ParseFromString(contents)) { in ReadDatabase() 140 std::string contents; in SetSdkLevels() local 141 if (!android::base::ReadFileToString(path, &contents, true)) { in SetSdkLevels() 146 if (!sdk_version.ParseFromString(contents)) { in SetSdkLevels()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/ |
D | PresentTestFragment.java | 167 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/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderGridOrganizer.java | 58 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/apps/Settings/src/com/android/settings/ |
D | MainClear.java | 463 LinearLayout contents = (LinearLayout) mContentView.findViewById(R.id.accounts); in loadAccountList() local 464 contents.removeAllViews(); in loadAccountList() 492 View titleView = Utils.inflateCategoryHeader(inflater, contents); in loadAccountList() 496 contents.addView(titleView); in loadAccountList() 530 View child = inflater.inflate(R.layout.main_clear_account, contents, false); in loadAccountList() 533 contents.addView(child); in loadAccountList() 539 contents.setVisibility(View.VISIBLE); in loadAccountList()
|
/packages/modules/Permission/ |
D | Android.bp | 65 contents: [ 79 // Additional stubs libraries that this fragment's contents use which are 89 contents: ["service-permission"],
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 148 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/apps/TV/src/com/android/tv/menu/ |
D | MenuLayoutManager.java | 177 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/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapterTest.java | 193 private static void assertContentsInOrder(ObjectAdapter adapter, Object... contents) { in assertContentsInOrder() argument 194 int ex = contents.length; in assertContentsInOrder() 197 assertWithMessage("element " + 1).that(adapter.get(i)).isEqualTo(contents[i]); in assertContentsInOrder()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | BluetoothMediaBrowserService.java | 174 List<MediaItem> contents = getContents(parentMediaId); in onLoadChildren() local 175 if (contents == null) { in onLoadChildren() 178 result.sendResult(contents); in onLoadChildren()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatEduController.java | 111 folderInfo.contents.addAll(putIntoFolder); in migrateToFolder() 112 for (int i = 0; i < folderInfo.contents.size(); i++) { in migrateToFolder() 113 ItemInfo item = folderInfo.contents.get(i); in migrateToFolder()
|
/packages/modules/Scheduling/apex/ |
D | Android.bp | 37 contents: ["framework-scheduling"], 48 // Additional stubs libraries that this fragment's contents use which are
|