/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcStatCollectorTest.cpp | 152 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 …]
|
D | UidIoStatsCollectorTest.cpp | 108 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()
|
D | UidCpuStatsCollectorTest.cpp | 89 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/ |
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/cpp/watchdog/server/src/ |
D | UidProcStatsCollector.cpp | 137 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/ |
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 221 && (isForcedMode || 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/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() 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/ |
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/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk.cpp | 64 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/ |
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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/ |
D | KitchenSinkBackupTransport.java | 162 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/ |
D | derive_classpath_test.cpp | 60 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()
|
D | derive_classpath.cpp | 177 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/ |
D | MediaParceledListSlice.java | 66 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/ |
D | MainClear.java | 476 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/ |
D | ImsProvisioningLoader.java | 303 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/ |
D | Android.bp | 57 contents: [ 67 contents: [ 81 // Additional stubs libraries that this fragment's contents use which are
|
/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/modules/AppSearch/ |
D | Android.bp | 68 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/ |
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/modules/Permission/ |
D | Android.bp | 70 contents: [ 84 // Additional stubs libraries that this fragment's contents use which are 118 contents: ["service-permission"],
|