/packages/apps/Camera2/src/com/android/camera/util/ |
D | XmpUtil.java | 106 List<Section> sections = parse(is, true); in extractXMPMeta() local 107 if (sections == null) { in extractXMPMeta() 111 for (Section section : sections) { in extractXMPMeta() 153 List<Section> sections = null; in writeXMPMeta() local 155 sections = parse(new FileInputStream(filename), false); in writeXMPMeta() 156 sections = insertXMPSection(sections, meta); in writeXMPMeta() 157 if (sections == null) { in writeXMPMeta() 168 writeJpegFile(os, sections); in writeXMPMeta() 189 List<Section> sections = parse(inputStream, false); in writeXMPMeta() local 190 sections = insertXMPSection(sections, meta); in writeXMPMeta() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactSectionIndexer.java | 102 final String[] sections = cursorExtras.getStringArray( in buildIndexerFromCursorExtras() local 105 if (sections == null || counts == null) { in buildIndexerFromCursorExtras() 109 if (sections.length != counts.length) { in buildIndexerFromCursorExtras() 113 this.mSections = sections; in buildIndexerFromCursorExtras() 134 final ArrayList<String> sections = new ArrayList<String>(); in buildIndexerFromDisplayNames() local 147 final int lastIndex = sections.size() - 1; in buildIndexerFromDisplayNames() 148 final String currentSection = lastIndex >= 0 ? sections.get(lastIndex) : null; in buildIndexerFromDisplayNames() 150 sections.add(section); in buildIndexerFromDisplayNames() 156 mSections = new String[sections.size()]; in buildIndexerFromDisplayNames() 157 sections.toArray(mSections); in buildIndexerFromDisplayNames()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SectionedAlbumDataAdapter.java | 41 private int[] sections; field in SectionedAlbumDataAdapter 81 sections = new int[numSections]; in onChanged() 89 sections[numSections] = i; in onChanged() 94 for (int i = 0; i < sections.length; i++) { in onChanged() 95 sections[i] += i; in onChanged() 96 if (DEBUG) Log.i(TAG, i + ": " + sections[i]); in onChanged() 125 return mAlbumData.getCount() + sections.length; in getCount() 201 return (Arrays.binarySearch(sections, position) >= 0); in isHeader() 205 int offset = Arrays.binarySearch(sections, position); in internalPosition()
|
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
D | GroupUtilTest.java | 52 final String[] sections = new String[]{"…", "A", "I", "T", "W", "Y", "Z", "#"}; in testUpdateBundle_smallSet() local 56 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_smallSet() 58 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_smallSet() 74 final String[] sections = new String[]{"A", "B", "C", "D", "E", "F", "G", "H", "J", in testUpdateBundle_mediumSet() local 104 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); in testUpdateBundle_mediumSet() 106 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_mediumSet()
|
/packages/modules/Bluetooth/system/osi/src/ |
D | config.cc | 61 sections.begin(), sections.end(), in Find() 66 return Find(key) != sections.end(); in Has() 76 config.sections.begin(), config.sections.end(), in section_find() 84 if (sec == config.sections.end()) return nullptr; in entry_find() 132 for (const section_t& sec : src.sections) { in config_new_clone() 142 return (section_find(config, section) != config.sections.end()); in config_has_section() 211 if (sec == config->sections.end()) { in config_set_string() 212 config->sections.emplace_back(section_t{.name = section}); in config_set_string() 213 sec = std::prev(config->sections.end()); in config_set_string() 238 if (sec == config->sections.end()) return false; in config_remove_section() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/bhttp/ |
D | Fields.java | 65 byte[][] sections = new byte[getKnownLengthSerializedSectionsCount()][]; in knownLengthSerialize() 71 sections, in knownLengthSerialize() local 77 Arrays.stream(sections) in knownLengthSerialize() 82 sections[0] = length; in knownLengthSerialize() 83 return sections; in knownLengthSerialize()
|
D | BinaryHttpMessage.java | 179 private byte[] combineWithPadding(@NonNull final byte[][] sections, final int paddingLength) { in combineWithPadding() argument 181 int totalSize = Arrays.stream(sections).mapToInt(s -> s.length).sum() + paddingLength; in combineWithPadding() 183 for (byte[] section : sections) { in combineWithPadding()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileDownloader.java | 317 final Stack<Integer> sections = new Stack<>(); in decodeSmdxSubjectAndReasonCode() local 322 sections.push(sectionDigit); in decodeSmdxSubjectAndReasonCode() 326 String subjectCode = sections.pop() + "." + sections.pop() + "." + sections.pop(); in decodeSmdxSubjectAndReasonCode() 327 String reasonCode = sections.pop() + "." + sections.pop() + "." + sections.pop(); in decodeSmdxSubjectAndReasonCode()
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v3.rs | 78 let (signer, mut sections) = extract_signer_and_apk_sections(apk, current_sdk)?; in verify() 79 signer.verify(&mut sections) in verify() 93 let mut sections = ApkSections::new(apk)?; in extract_signer_and_apk_sections() localVariable 94 let mut block = sections.find_signature(APK_SIGNATURE_SCHEME_V3_BLOCK_ID).context( in extract_signer_and_apk_sections() 105 Ok((supported.pop().unwrap().into_inner(), sections)) in extract_signer_and_apk_sections() 150 fn verify<R: Read + Seek>(&self, sections: &mut ApkSections<R>) -> Result<SignedData> { in verify() 183 let computed = sections.compute_digest(digest.signature_algorithm_id.unwrap())?; in verify()
|
/packages/modules/NeuralNetworks/tools/api/ |
D | generate_api.py | 49 self.sections = dict() # key is section name, value is array of strings (lines) in the section 168 assert key in self.sections, "Unknown section \"" + key + "\" on " + self.context() 173 self.sections[self.section].extend( 175 for line in self.sections[key]) 187 … assert not key in self.sections, "Duplicate definition of \"" + key + "\" on " + self.context() 188 self.sections[key] = [] 288 self.sections[self.section].append(self.macro_substitution()) 316 assert key in specification.sections, "Unknown section \"" + key + "\" on " + self.context() 318 for line in specification.sections[key]:
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactsSectionIndexer.java | 42 public ContactsSectionIndexer(String[] sections, int[] counts) { in ContactsSectionIndexer() argument 43 if (sections == null || counts == null) { in ContactsSectionIndexer() 47 if (sections.length != counts.length) { in ContactsSectionIndexer() 54 this.mSections = sections; in ContactsSectionIndexer()
|
D | GroupMemberPickerFragment.java | 89 final String sections[] = bundle.getStringArray(Contacts in FilterCursorWrapper() local 92 final ContactsSectionIndexer indexer = (sections == null || counts == null) in FilterCursorWrapper() 93 ? null : new ContactsSectionIndexer(sections, counts); in FilterCursorWrapper() 106 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts); in FilterCursorWrapper()
|
D | ContactEntryListAdapter.java | 500 String sections[] = in updateIndexer() local 507 String allSections[] = new String[sections.length + 1]; in updateIndexer() 509 for (int i = 0; i < sections.length; i++) { in updateIndexer() 510 allSections[i + 1] = sections[i]; in updateIndexer() 517 setIndexer(new ContactsSectionIndexer(sections, counts)); in updateIndexer()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/bhttp/ |
D | BinaryHttpTestUtil.java | 23 static byte[] combineSections(byte[]... sections) { in combineSections() argument 25 int totalSize = Arrays.stream(sections).mapToInt(s -> s.length).sum(); in combineSections() 27 for (byte[] section : sections) { in combineSections()
|
/packages/modules/Virtualization/libs/apkverify/tests/ |
D | apkverify_test.rs | 48 let sections = zip_sections(&mut reader).unwrap(); in test_zip_sections_with_apk() localVariable 52 sections.central_directory_offset + sections.central_directory_size, in test_zip_sections_with_apk() 53 sections.eocd_offset in test_zip_sections_with_apk() 59 reader.seek(SeekFrom::Start(sections.eocd_offset as u64)).unwrap(); in test_zip_sections_with_apk() 63 (sections.eocd_offset + sections.eocd_size) as u64 in test_zip_sections_with_apk()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | ReorderAlgorithmUnitTestCase.java | 66 Iterator<CellLayoutTestCaseReader.TestSection> sections) { in readNextCase() argument 69 (CellLayoutTestCaseReader.Board) sections.next(); in readNextCase() 72 (CellLayoutTestCaseReader.Arguments) sections.next(); in readNextCase() 82 CellLayoutTestCaseReader.Board endBoard = (CellLayoutTestCaseReader.Board) sections.next(); in readNextCase()
|
D | CellLayoutTestCaseReader.java | 131 List<TestSection> sections = new ArrayList<>(); in parse() local 139 sections.add(section); in parse() 141 return sections; in parse()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/category/ui/binder/ |
D | CategoriesBinder.kt | 45 viewModel.sections.collect { sections -> in <lambda>() method 46 SectionsBinder.bind(sectionsListView, sections, windowWidth, lifecycleOwner) in <lambda>()
|
/packages/modules/Bluetooth/system/device/src/ |
D | device_iot_config_int.cc | 211 for (auto& entry : config.sections) { in device_iot_config_sections_sort_by_entry_key() 245 for (const auto& entry : conf.sections) { in device_iot_config_get_device_num() 267 std::list<section_t>::iterator i = config.sections.begin(); in device_iot_config_restrict_device_num() 268 while (i != config.sections.end()) { in device_iot_config_restrict_device_num() 274 i = config.sections.erase(i); in device_iot_config_restrict_device_num()
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.kt | 380 val sections: MutableList<String> = ArrayList(approximateSectionCount) in getSections() constant 385 sections.add("+") in getSections() 395 DataModel.CitySort.NAME -> sections.add(city.indexString.orEmpty()) in getSections() 398 sections.add(Utils.getGMTHourOffset(timezone, Utils.isPreL)) in getSections() 405 mSectionHeaders = sections.toTypedArray() in getSections() 412 return if (sections!!.isEmpty()) 0 else mSectionHeaderPositions!![sectionIndex] in getPositionForSection() 416 if (sections!!.isEmpty()) { in getSectionForPosition()
|
/packages/modules/Bluetooth/system/osi/test/ |
D | config_test.cc | 91 ASSERT_NE(section_iter, config->sections.end()); in TEST_F() 93 EXPECT_EQ(config->Find("random"), config->sections.end()); in TEST_F() 101 ASSERT_NE(section_iter, config->sections.end()); in TEST_F() 117 ASSERT_NE(section_iter, config->sections.end()); in TEST_F()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/ |
D | TaplReorderWidgetsTest.java | 289 private void addTestCase(Iterator<CellLayoutTestCaseReader.TestSection> sections, in addTestCase() argument 292 ((CellLayoutTestCaseReader.Board) sections.next()); in addTestCase() 294 ((CellLayoutTestCaseReader.Arguments) sections.next()); in addTestCase() 296 ((CellLayoutTestCaseReader.Board) sections.next()); in addTestCase()
|
/packages/modules/Virtualization/libs/apkzip/src/ |
D | ziputil.rs | 125 let sections = zip_sections(&mut cursor).unwrap(); in test_zip_sections() localVariable 127 sections.eocd_offset, in test_zip_sections()
|
/packages/modules/Virtualization/vmbase/ |
D | sections.ld | 114 * Remove unused sections from the image. 117 /* The image loads itself so doesn't need these sections. */
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupUtil.java | 251 List<Integer> subscripts, String[] sections, int[] counts) { in updateBundle() argument 257 sections[filteredContact] = ""; in updateBundle() 261 final String[] newSections = clearEmptyString(sections); in updateBundle()
|