Home
last modified time | relevance | path

Searched refs:sections (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java106 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/
DContactSectionIndexer.java102 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/
DSectionedAlbumDataAdapter.java41 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/
DGroupUtilTest.java52 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/
Dconfig.cc61 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/
DFields.java65 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()
DBinaryHttpMessage.java179 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/
DONSProfileDownloader.java317 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/
Dv3.rs78 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/
Dgenerate_api.py49 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/
DContactsSectionIndexer.java42 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()
DGroupMemberPickerFragment.java89 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()
DContactEntryListAdapter.java500 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/
DBinaryHttpTestUtil.java23 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/
Dapkverify_test.rs48 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/
DReorderAlgorithmUnitTestCase.java66 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()
DCellLayoutTestCaseReader.java131 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/
DCategoriesBinder.kt45 viewModel.sections.collect { sections -> in <lambda>() method
46 SectionsBinder.bind(sectionsListView, sections, windowWidth, lifecycleOwner) in <lambda>()
/packages/modules/Bluetooth/system/device/src/
Ddevice_iot_config_int.cc211 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/
DCitySelectionActivity.kt380 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/
Dconfig_test.cc91 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/
DTaplReorderWidgetsTest.java289 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/
Dziputil.rs125 let sections = zip_sections(&mut cursor).unwrap(); in test_zip_sections() localVariable
127 sections.eocd_offset, in test_zip_sections()
/packages/modules/Virtualization/vmbase/
Dsections.ld114 * 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/
DGroupUtil.java251 List<Integer> subscripts, String[] sections, int[] counts) { in updateBundle() argument
257 sections[filteredContact] = ""; in updateBundle()
261 final String[] newSections = clearEmptyString(sections); in updateBundle()

123