Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 734) sorted by relevance

12345678910>>...30

/packages/modules/Virtualization/libs/libfdt/src/
Diterators.rs44 fn next(&mut self) -> Option<Self::Item> { in next() method
45 let next = self.node.next_compatible(self.compatible).ok()?; in next() localVariable
47 if let Some(node) = next { in next()
51 next in next()
72 fn next(&mut self) -> Option<Self::Item> { in next() method
73 Some(Self::Item::from_be_bytes(self.chunks.next()?.try_into().ok()?)) in next()
124 fn next(&mut self) -> Option<Self::Item> { in next() method
167 fn next(&mut self) -> Option<Self::Item> { in next() method
168 let next = self.reg.next()?; in next() localVariable
169 let addr = usize::try_from(next.addr).ok()?; in next()
[all …]
/packages/modules/Bluetooth/system/osi/src/
Dlist.cc10 struct list_node_t* next; member
99 node->next = prev_node->next; in list_insert_after()
101 prev_node->next = node; in list_insert_after()
113 node->next = list->head; in list_prepend()
127 node->next = NULL; in list_append()
133 list->tail->next = node; in list_append()
147 list_node_t* next = list_free_node_(list, list->head); in list_remove() local
148 if (list->tail == list->head) list->tail = next; in list_remove()
149 list->head = next; in list_remove()
153 for (list_node_t *prev = list->head, *node = list->head->next; node; in list_remove()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapResponseParser.java88 final int next = in.peek(); in peek() local
89 if (next == -1) { in peek()
92 return next; in peek()
102 int next = in.read(); in readByte() local
103 if (next == -1) { in readByte()
106 return next; in readByte()
182 final int next = readByte(); in expect() local
183 if (expected != next) { in expect()
186 "Expected %04x (%c) but got %04x (%c)", (int) expected, expected, next, (char) next)); in expect()
261 final int next = peek(); in parseResponse() local
[all …]
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/
DPushBackIteratorTest.java44 assertEquals("Zero", iterator.next()); in test()
48 assertEquals("One", iterator.next()); in test()
54 assertEquals("Zero", iterator.next()); in test()
56 assertEquals("One", iterator.next()); in test()
60 assertEquals("Two", iterator.next()); in test()
62 assertEquals("Three", iterator.next()); in test()
64 assertEquals("Four", iterator.next()); in test()
67 assertThrows(NoSuchElementException.class, iterator::next); in test()
72 assertEquals("Four", iterator.next()); in test()
79 assertEquals("One", iterator.next()); in removeNotSupported()
[all …]
/packages/modules/GeoTZ/tzs2storage/src/test/java/com/android/timezone/location/storage/tzs2range/write/
DPushBackIteratorTest.java43 assertEquals("Zero", iterator.next()); in test()
47 assertEquals("One", iterator.next()); in test()
53 assertEquals("Zero", iterator.next()); in test()
55 assertEquals("One", iterator.next()); in test()
59 assertEquals("Two", iterator.next()); in test()
61 assertEquals("Three", iterator.next()); in test()
63 assertEquals("Four", iterator.next()); in test()
66 assertThrows(NoSuchElementException.class, iterator::next); in test()
71 assertEquals("Four", iterator.next()); in test()
78 assertEquals("One", iterator.next()); in removeNotSupported()
[all …]
/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java85 final HeaderHolder filesHeaderHolder = (HeaderHolder) itemsIter.next(); in validateDefaultState_TimerRingtonePicker()
89 final AddCustomRingtoneHolder addNewHolder = (AddCustomRingtoneHolder) itemsIter.next(); in validateDefaultState_TimerRingtonePicker()
92 final HeaderHolder systemHeaderHolder = (HeaderHolder) itemsIter.next(); in validateDefaultState_TimerRingtonePicker()
96 final RingtoneHolder silentHolder = (RingtoneHolder) itemsIter.next(); in validateDefaultState_TimerRingtonePicker()
100 final RingtoneHolder defaultHolder = (RingtoneHolder) itemsIter.next(); in validateDefaultState_TimerRingtonePicker()
123 final HeaderHolder filesHeaderHolder = (HeaderHolder) itemsIter.next(); in validateDefaultState_AlarmRingtonePicker()
127 final AddCustomRingtoneHolder addNewHolder = (AddCustomRingtoneHolder) itemsIter.next(); in validateDefaultState_AlarmRingtonePicker()
130 final HeaderHolder systemHeaderHolder = (HeaderHolder) itemsIter.next(); in validateDefaultState_AlarmRingtonePicker()
134 final RingtoneHolder silentHolder = (RingtoneHolder) itemsIter.next(); in validateDefaultState_AlarmRingtonePicker()
138 final RingtoneHolder defaultHolder = (RingtoneHolder) itemsIter.next(); in validateDefaultState_AlarmRingtonePicker()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DRecurringRunner.java92 private void postAt(long next) { in postAt() argument
98 if (DEBUG) Log.i(TAG, "Next run of " + mName + " at " + new Date(next)); in postAt()
99 long delay = Math.max(next - now, 0); in postAt()
113 Log.w(TAG, "Scheduling a future run of " + mName + " at " + new Date(next) + "failed"); in postAt()
127 long next = getSharedPreferences().getLong(mName, System.currentTimeMillis()); in getNextRunTime() local
128 if (next > System.currentTimeMillis() + mIntervalMs) { in getNextRunTime()
129 next = resetNextRunTime(); in getNextRunTime()
131 return next; in getNextRunTime()
135 long next = System.currentTimeMillis() + mIntervalMs; in resetNextRunTime() local
136 getSharedPreferences().edit().putLong(mName, next).apply(); in resetNextRunTime()
[all …]
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Dframing.c104 INLINE OI_CHAR crc_iterate(uint8_t oldcrc, uint8_t next) { in crc_iterate() argument
107 idx = oldcrc ^ next; in crc_iterate()
118 INLINE OI_CHAR crc_iterate_top4(uint8_t oldcrc, uint8_t next) { in crc_iterate_top4() argument
121 idx = (oldcrc ^ next) >> 4; in crc_iterate_top4()
134 INLINE uint8_t crc_iterate_top4(uint8_t oldcrc, uint8_t next) { in crc_iterate_top4() argument
135 return (oldcrc << 4) ^ crc8_narrow[(oldcrc ^ next) >> 4]; in crc_iterate_top4()
139 INLINE uint8_t crc_iterate(uint8_t crc, uint8_t next) { in crc_iterate() argument
140 crc = (crc << 4) ^ crc8_narrow[(crc ^ next) >> 4]; in crc_iterate()
141 crc = (crc << 4) ^ crc8_narrow[((crc >> 4) ^ next) & 0xf]; in crc_iterate()
147 INLINE uint8_t crc_iterate(uint8_t crc, uint8_t next) { in crc_iterate() argument
[all …]
/packages/services/Car/tests/CarTelemetryApp/src/com/android/car/cartelemetryapp/
DConfigParser.java117 eventType = parser.next(); in getConfigs()
167 int eventType = parser.next(); in parseMetricsConfig()
178 eventType = parser.next(); in parseMetricsConfig()
193 int eventType = parser.next(); in parseSubscribers()
203 eventType = parser.next(); in parseSubscribers()
232 int eventType = parser.next(); in parseSubscriber()
240 eventType = parser.next(); in parseSubscriber()
292 int eventType = parser.next(); in parseVehiclePropertyPublisher()
297 parser.next(); in parseVehiclePropertyPublisher()
308 parser.next(); in parseVehiclePropertyPublisher()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java39 double[] next = null; in calculatetCurve() local
48 next = points[pivot + 1]; in calculatetCurve()
49 if (x <= next[0]) { in calculatetCurve()
51 double x2 = next[0]; in calculatetCurve()
53 double y2 = next[1]; in calculatetCurve()
70 curve[i][0] = (float) (next[0]); in calculatetCurve()
71 curve[i][1] = (float) (next[1]); in calculatetCurve()
79 double[] next = null; in getValue() local
90 next = mPoints[pivot + 1]; in getValue()
92 double x2 = next[0]; in getValue()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTestingSettingsBroadcastReceiverTest.java54 final Intent next = Shadows.shadowOf(mApplication).getNextStartedActivity(); in onReceive_nullIntent_shouldNotCrash() local
55 assertThat(next).isNull(); in onReceive_nullIntent_shouldNotCrash()
65 final Intent next = Shadows.shadowOf(mApplication).getNextStartedActivity(); in onReceive_wrongIntent_shouldNotStartActivity() local
66 assertThat(next).isNull(); in onReceive_wrongIntent_shouldNotStartActivity()
76 final Intent next = Shadows.shadowOf(mApplication).getNextStartedActivity(); in onReceive_correctIntent_shouldStartActivity() local
77 assertThat(next).isNotNull(); in onReceive_correctIntent_shouldStartActivity()
78 final String dest = next.getComponent().getClassName(); in onReceive_correctIntent_shouldStartActivity()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/manifest/
DAppManifestConfigParser.java55 parser.next(); in getConfig()
58 parser.next(); in getConfig()
60 parser.next(); in getConfig()
64 parser.next(); in getConfig()
69 parser.next(); in getConfig()
82 parser.next(); in getConfig()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/features/
DPriorityDescendingComparatorTest.kt63 assertThat(iterator.next()).isEqualTo(expectedOrderIterator.next()) in testInsertedAscendingElementsAreOrderedDescending()
86 assertThat(iterator.next()).isEqualTo(expectedOrderIterator.next()) in testInsertedElementsShuffledAreOrderedDescending()
106 assertThat(iterator.next()).isEqualTo(expectedOrderIterator.next()) in testInsertedElementsDescendingAreOrderedDescending()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_uid.cc33 struct uid_set_node_t* next; member
51 node = node->next; in uid_set_destroy()
63 node = node->next; in uid_set_find_or_create_node()
69 node->next = set->head; in uid_set_find_or_create_node()
99 node = node->next; in uid_set_read_and_clear()
117 node = node->next; in uid_set_read_and_clear()
Dbtif_sock_l2cap.cc47 struct packet *next, *prev; member
54 struct l2cap_socket* next; // link to next list item member
120 sock->first_packet = p->next; in packet_get_head_l()
158 p->next = sock->first_packet; in packet_put_head_l()
160 if (p->next) in packet_put_head_l()
161 p->next->prev = p; in packet_put_head_l()
180 p->next = NULL; in packet_put_tail_l()
184 p->prev->next = p; in packet_put_tail_l()
202 while (sock && sock->id != id) sock = sock->next; in btsock_l2cap_find_by_id_l()
215 sock = sock->next; in btsock_l2cap_find_by_conn_uuid_l()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/
DMockRandom.java65 protected synchronized int next(int bits) { in next() method in MockRandom
86 double next = mDoubleValues[mNextDoubleIndex]; in nextDouble() local
88 return next; in nextDouble()
117 long next = mLongValues[mNextLongIndex]; in nextLong() local
119 return next; in nextLong()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DFederatedExampleIteratorTest.java127 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_1); in testNormalHasGetNextResultSuccess()
129 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_2); in testNormalHasGetNextResultSuccess()
149 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_1); in testGetNextResultSuccess()
151 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_2); in testGetNextResultSuccess()
154 ExecutionException.class, () -> runInBackgroundAndWait(mIterator::next)); in testGetNextResultSuccess()
173 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_1); in testNextResultSuccess()
174 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_2); in testNextResultSuccess()
177 ExecutionException.class, () -> runInBackgroundAndWait(mIterator::next)); in testNextResultSuccess()
218 assertThat(runInBackgroundAndWait(mIterator::next)).isEqualTo(EXAMPLE_1); in testCloseAfterNext()
235 runInBackgroundAndWait(mIterator::next); in testExampleStoreIteratorReturnsErrorWhenCallNext()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DBmessageParser.java114 prop = mParser.next(); in parse()
160 prop = mParser.next(); in parseProperties()
208 prop = mParser.next(); in parseEnvelope()
237 return mParser.next(); in parseEnvelope()
259 prop = mParser.next(); in parseBody()
320 prop = mParser.next(true); in parseBody()
353 prop = mParser.next(); in parseBody()
366 prop = mParser.next(); in parseBody()
372 return mParser.next(); in parseBody()
381 prop = mParser.next(); in extractVcard()
[all …]
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DOemCarServiceHelper.java92 parser.next(); in parseAudioManagementConfiguration()
102 while (parser.next() != XmlPullParser.END_TAG) { in parseAudioManagementConfiguration()
182 while (parser.next() != XmlPullParser.END_TAG) { in parseFocusInteractions()
195 while (parser.next() != XmlPullParser.END_TAG) { in parseFocusInteraction()
201 parser.next(); in parseFocusInteraction()
219 while (parser.next() != XmlPullParser.END_TAG) { in parseExclusiveOrRejectFocusAttributes()
251 while (parser.next() != XmlPullParser.END_TAG) { in parseDuckingInteractions()
263 while (parser.next() != XmlPullParser.END_TAG) { in parseDuckingInteraction()
268 parser.next(); in parseDuckingInteraction()
287 while (parser.next() != XmlPullParser.END_TAG) { in parseToDuckAttributes()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DJavaExampleStoreTest.java70 assertThat(nativeIterator.next()).isEqualTo(data1.toByteArray()); in testCreateExampleIterator_success()
71 assertThat(nativeIterator.next()).isEqualTo(data2.toByteArray()); in testCreateExampleIterator_success()
75 assertThat(nativeIterator.next()).hasLength(0); in testCreateExampleIterator_success()
88 assertThrows(InterruptedException.class, () -> iterator.next()); in testCreateExampleIterator_interruptedIterator()
102 assertThrows(ErrorStatusException.class, () -> javaExampleIterator.next()); in testCreateExampleIterator_throwingIterator()
120 public byte[] next() { in next() method in JavaExampleStoreTest.FakeExampleIterator
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary_utils.cpp34 std::vector<DicNode> next; in getMaxProbabilityOfExactMatches() local
48 next.emplace_back(dicNode); in getMaxProbabilityOfExactMatches()
49 next.back().advanceDigraphIndex(); in getMaxProbabilityOfExactMatches()
52 processChildDicNodes(dictionaryStructurePolicy, baseLowerCodePoint, &dicNode, &next); in getMaxProbabilityOfExactMatches()
55 current.swap(next); in getMaxProbabilityOfExactMatches()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPathMatcher.java46 Node next = current.getChild(segments[i]); in match() local
47 if (next == null) { in match()
48 next = current.getChild("*"); in match()
49 if (next != null) { in match()
55 current = next; in match()
/packages/modules/Virtualization/pvmfw/src/
Dfdt.rs152 let range = memory.next().ok_or_else(|| { in read_and_validate_memory_range()
156 if memory.next().is_some() { in read_and_validate_memory_range()
209 if opp_nodes.next().is_some() {
296 if cpu_nodes.next().is_some() {
312 let Some(node) = nodes.next() else { in read_vcpufreq_info()
316 if nodes.next().is_some() { in read_vcpufreq_info()
321 let reg = regs.next().ok_or(FdtError::NotFound)?; in read_vcpufreq_info()
350 let next = node.next_compatible(oppcompat)?.ok_or(FdtError::NoSpace)?; localVariable
353 return next.nop();
356 let mut next_subnode = next.first_subnode()?;
[all …]
/packages/modules/Permission/PermissionController/iconloaderlib/src_full_lib/com/android/launcher3/icons/
DIconFactory.java40 sPool = m.next; in obtain()
41 m.next = null; in obtain()
62 private IconFactory next; field in IconFactory
80 next = sPool; in recycle()
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DXmlUtils.java44 eventType = parser.next(); in readThisArrayMapXml()
80 eventType = parser.next(); in readThisListXml()
99 parser.next(); in readThisStringArrayXml()
127 eventType = parser.next(); in readThisStringArrayXml()
146 while ((eventType = parser.next()) != XmlPullParser.END_DOCUMENT) { in readThisValueXml()
167 parser.next(); in readThisValueXml()
181 while ((eventType = parser.next()) != XmlPullParser.END_DOCUMENT) { in readThisValueXml()

12345678910>>...30