/packages/modules/SdkExtensions/ |
D | api-to-sdk-ext-info.py | 37 def parse_class(package_name, class_name, contents): argument 38 def print_members(regex, contents): argument 42 for symbol_name in regex.findall(contents): 47 print_members(re_field, contents) 48 print_members(re_method, contents) 51 def parse_package(package_name, contents): argument 52 for match in re_class.findall(contents): 58 contents = f.read() 60 if contents.splitlines()[0] != "// Signature format: 2.0": 62 for match in re_package.findall(contents):
|
/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 …]
|
/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/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/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() 226 private void writeStringToFile(File file, String contents) throws Exception { in writeStringToFile() argument 228 writer.write(contents); in writeStringToFile() 237 String contents = readFileAsString(mFileKernelSilentMode.getPath()); in assertSilentMode() local 239 && (isForcedMode || contents.equals(expectedValue))) { in assertSilentMode()
|
/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/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/Launcher3/src/com/android/launcher3/model/data/ |
D | FolderInfo.java | 107 public ArrayList<WorkspaceItemInfo> contents = new ArrayList<>(); field in FolderInfo 133 add(item, contents.size(), animate); in add() 140 rank = Utilities.boundToRange(rank, 0, contents.size()); in add() 141 contents.add(rank, item); in add() 161 contents.removeAll(items); in removeAll() 225 .setCardinality(contents.size()); in buildProto() 282 folderInfo.contents = this.contents; in makeShallowCopy()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | UidProcStatsCollector.cpp | 173 std::unordered_map<std::string, std::string> contents; in readKeyValueFile() local 186 if (contents.find(key) != contents.end()) { in readKeyValueFile() 190 contents[key] = value; in readKeyValueFile() 192 return contents; in readKeyValueFile() 209 auto contents = result.value(); in readPidStatusFile() local 210 if (contents.empty()) { in readPidStatusFile() 215 if (contents.find("Uid") == contents.end() || in readPidStatusFile() 216 !ParseInt(Split(contents["Uid"], "\t")[0], &uid)) { in readPidStatusFile() 219 if (contents.find("Tgid") == contents.end() || !ParseInt(contents["Tgid"], &tgid)) { in readPidStatusFile()
|
/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/tests/src/com/android/launcher3/model/ |
D | DefaultLayoutProviderTest.java | 90 assertEquals(3, ((FolderInfo) info).contents.size()); in testCustomProfileLoaded_with_folder() 105 assertEquals(3, ((FolderInfo) info).contents.size()); in testCustomProfileLoaded_with_folder_custom_title() 157 assertEquals(3, info.contents.size()); in testCustomProfileLoaded_with_shortcut_in_folder() 161 info.contents.get(info.contents.size() - 1).itemType); in testCustomProfileLoaded_with_shortcut_in_folder()
|
/packages/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk.cpp | 83 std::string contents; in ReadDatabase() local 84 if (!android::base::ReadFileToString(db_path, &contents, true)) { in ReadDatabase() 88 if (!db.ParseFromString(contents)) { in ReadDatabase() 178 std::string contents; in ReadSdkInfoFromApexes() local 179 if (!android::base::ReadFileToString(path, &contents, true)) { in ReadSdkInfoFromApexes() 184 if (!sdk_version.ParseFromString(contents)) { in ReadSdkInfoFromApexes()
|
/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 | 163 File[] contents = dirname.listFiles(); in deleteContents() local 164 if (contents == null) return; in deleteContents() 165 for (File f : contents) { in deleteContents() 674 String[] contents = (new File(mRestoreSetIncrementalDir, packageName)).list(); in hasRestoreDataForPackage() local 675 if (contents != null && contents.length > 0) { in hasRestoreDataForPackage() 755 List<DecodedFilename> contents = new ArrayList<>(); in contentsByKey() local 757 contents.add(new DecodedFilename(f)); in contentsByKey() 759 Collections.sort(contents); in contentsByKey() 760 return contents; in contentsByKey()
|
/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/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()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | BluetoothMediaBrowserService.java | 231 BrowseResult contents = getContents(parentMediaId); in onLoadChildren() local 232 byte status = contents.getStatus(); in onLoadChildren() 233 if (status == BrowseResult.DOWNLOAD_PENDING && contents == null) { in onLoadChildren() 238 Log.d(TAG, "id= " + parentMediaId + ", status= " + contents.getStatusString()); in onLoadChildren() 240 result.sendResult(contents.getResults()); in onLoadChildren()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MainClear.java | 465 LinearLayout contents = (LinearLayout) mContentView.findViewById(R.id.accounts); in loadAccountList() local 466 contents.removeAllViews(); in loadAccountList() 494 View titleView = Utils.inflateCategoryHeader(inflater, contents); in loadAccountList() 509 contents.addView(titleView); in loadAccountList() 543 View child = inflater.inflate(R.layout.main_clear_account, contents, false); in loadAccountList() 546 contents.addView(child); in loadAccountList() 552 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/ConfigInfrastructure/apex/ |
D | Android.bp | 22 contents: ["framework-configinfrastructure"], 45 // Additional stubs libraries that this fragment's contents use which are 56 contents: ["service-configinfrastructure"],
|
/packages/modules/OnDevicePersonalization/apex/ |
D | Android.bp | 41 contents: ["framework-ondevicepersonalization"], 52 // Additional stubs libraries that this fragment's contents use which are 80 contents: [
|
/packages/modules/AdServices/apex/ |
D | Android.bp | 58 contents: [ 68 contents: [ 82 // Additional stubs libraries that this fragment's contents use which are
|
/packages/modules/AppSearch/ |
D | Android.bp | 69 contents: ["framework-appsearch"], 80 // Additional stubs libraries that this fragment's contents use which are 105 contents: ["service-appsearch"],
|
/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()
|