/aosp14/system/core/libcutils/include/cutils/ |
H A D | list.h | 27 struct listnode *next; member 36 .next = &(name), \ 44 for ((node) = (list)->next, (n) = (node)->next; \ 49 for (struct listnode* __n = ((node) = (list)->next)->next; (node) != (list); \ 54 node->next = node; in list_init() 60 item->next = head; in list_add_tail() 62 head->prev->next = item; in list_add_tail() 68 item->next = head->next; in list_add_head() 70 head->next->prev = item; in list_add_head() 71 head->next = item; in list_add_head() [all …]
|
/aosp14/system/core/libcutils/include_outside_system/cutils/ |
H A D | list.h | 27 struct listnode *next; member 36 .next = &(name), \ 44 for ((node) = (list)->next, (n) = (node)->next; \ 49 for (struct listnode* __n = ((node) = (list)->next)->next; (node) != (list); \ 54 node->next = node; in list_init() 60 item->next = head; in list_add_tail() 62 head->prev->next = item; in list_add_tail() 68 item->next = head->next; in list_add_head() 70 head->next->prev = item; in list_add_head() 71 head->next = item; in list_add_head() [all …]
|
/aosp14/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener_test.cpp | 119 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 284 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 307 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 313 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 320 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 326 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 332 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F() 464 while (tree.next() != android::ResXMLTree::START_TAG) { in TEST_F() 487 while (tree.next() != android::ResXMLTree::START_TAG) { in TEST_F() 508 while (tree.next() != android::ResXMLTree::START_TAG) { in TEST_F() [all …]
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | EventStreamTransformation.java | 69 EventStreamTransformation next = getNext(); in onMotionEvent() local 70 if (next != null) { in onMotionEvent() 82 EventStreamTransformation next = getNext(); in onKeyEvent() local 83 if (next != null) { in onKeyEvent() 84 next.onKeyEvent(event, policyFlags); in onKeyEvent() 94 EventStreamTransformation next = getNext(); in onAccessibilityEvent() local 95 if (next != null) { in onAccessibilityEvent() 96 next.onAccessibilityEvent(event); in onAccessibilityEvent() 120 EventStreamTransformation next = getNext(); in clearEvents() local 121 if (next != null) { in clearEvents() [all …]
|
/aosp14/system/core/libsparse/ |
H A D | backed_block.cpp | 60 return bb->next; in backed_block_iter_next() 123 struct backed_block* next = bb->next; in backed_block_list_destroy() local 125 bb = next; in backed_block_list_destroy() 141 for (end = start; end && end->next; end = end->next) in backed_block_list_move() 156 bb->next = end->next; in backed_block_list_move() 167 if (!bb->next || bb->next->block > start->block) { in backed_block_list_move() 168 end->next = bb->next; in backed_block_list_move() 223 a->next = b->next; in merge_bb() 253 for (; bb->next && bb->next->block < new_bb->block; bb = bb->next) in queue_bb() 259 new_bb->next = bb->next; in queue_bb() [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | MessageQueue.java | 319 Message next() { in next() method in MessageQueue 357 prevMsg.next = msg.next; in next() 495 msg.next = p; in postSyncBarrier() 498 msg.next = p; in postSyncBarrier() 525 p = p.next; in removeSyncBarrier() 533 prev.next = p.next; in removeSyncBarrier() 573 msg.next = p; in enqueueMessage() 615 p = p.next; in hasMessages() 632 p = p.next; in hasEqualMessages() 650 p = p.next; in hasMessages() [all …]
|
H A D | Broadcaster.java | 48 r.next = r; in request() 58 r = r.next; in request() 68 reg.next = r; in request() 70 r.prev.next = reg; in request() 118 r = r.next; in cancelRequest() 165 r = r.next; in dumpRegistrations() 191 r = r.next; in broadcast() 210 Registration next; field in Broadcaster.Registration
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | AttributionSource.java | 132 @Nullable AttributionSource next) { in AttributionSource() argument 148 @Nullable AttributionSource next) { in AttributionSource() argument 156 @Nullable AttributionSource next) { in AttributionSource() argument 164 mAttributionSourceState.next = (next != null) ? new AttributionSourceState[] in AttributionSource() 394 if (mAttributionSourceState.next != null in getNextUid() 396 return mAttributionSourceState.next[0].uid; in getNextUid() 407 if (mAttributionSourceState.next != null in getNextPackageName() 421 if (mAttributionSourceState.next != null in getNextAttributionTag() 435 if (mAttributionSourceState.next != null in getNextToken() 709 mAttributionSourceState.next = null; in build() [all …]
|
/aosp14/frameworks/base/tests/testables/src/android/testing/ |
H A D | TestWithLooperRule.java | 77 Statement next = base; in wrapMethodInStatement() local 79 while (next != null) { in wrapMethodInStatement() 80 switch (next.getClass().getSimpleName()) { in wrapMethodInStatement() 82 this.<List<FrameworkMethod>>wrapFieldMethodFor(next, in wrapMethodInStatement() 83 next.getClass(), "afters", method, target); in wrapMethodInStatement() 84 next = getNextStatement(next, "next"); in wrapMethodInStatement() 87 this.<List<FrameworkMethod>>wrapFieldMethodFor(next, in wrapMethodInStatement() 89 next = getNextStatement(next, "next"); in wrapMethodInStatement() 95 next = getNextStatement(next, "originalStatement"); in wrapMethodInStatement() 98 this.<FrameworkMethod>wrapFieldMethodFor(next, in wrapMethodInStatement() [all …]
|
H A D | TestableInstrumentation.java | 97 Message m = mManager.next(); in run() 168 Message next = mManager.next(); in startManaging() 170 while (next.getCallback() != this) { in startManaging() 171 mManager.execute(next); in startManaging() 172 mManager.recycle(next); in startManaging() 173 next = mManager.next(); in startManaging() 175 mManager.execute(next); in startManaging()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | MotionEventInjectorTest.java | 201 verifyNoMoreInteractions(next); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 207 verifyNoMoreInteractions(next); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 208 reset(next); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 215 verifyNoMoreInteractions(next); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 216 reset(next); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 258 reset(next); in testRegularEvent_afterGestureComplete_shouldPassToNext() 273 reset(next); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 276 verify(next).onMotionEvent( in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 306 reset(next); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() 311 verify(next).onMotionEvent( in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() [all …]
|
H A D | AccessibilityInputFilterTest.java | 192 assertNotNull(next); in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded() 196 for (int i = 1; next != null; i++) { in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded() 198 next = next.getNext(); in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded() 245 for (int i = 0; next != null; i++) { in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 247 next = next.getNext(); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 250 next = mEventHandler.get(SECOND_DISPLAY); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 253 for (int i = 1; next != null; i++) { in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 255 next = next.getNext(); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 453 while (next != null) { in getMagnificationGestureHandlerFromEventHandler() 455 return (MagnificationGestureHandler) next; in getMagnificationGestureHandlerFromEventHandler() [all …]
|
/aosp14/system/core/libcutils/ |
H A D | hashmap.cpp | 31 Entry* next; member 116 Entry* next = entry->next; in expandIfNecessary() local 120 entry = next; in expandIfNecessary() 144 Entry* next = entry->next; in hashmapFree() local 146 entry = next; in hashmapFree() 177 entry->next = NULL; in createEntry() 220 p = ¤t->next; in hashmapPut() 233 entry = entry->next; in hashmapGet() 255 p = ¤t->next; in hashmapRemove() 267 Entry *next = entry->next; in hashmapForEach() local [all …]
|
H A D | config_utils.cpp | 43 for(node = root->first_child; node; node = node->next) in config_find() 57 root->last_child->next = node; in _config_create() 118 char next; member 129 if(cs->next != 0) { in _lex() 130 c = cs->next; in _lex() 131 cs->next = 0; in _lex() 211 cs->next = *data; in _lex() 296 cs.next = 0; in config_load() 325 cur = cur->next; in config_free()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsHistoryIteratorTest.java | 90 assertThat(item = iterator.next()).isNotNull(); in testIterator() 93 assertThat(item = iterator.next()).isNotNull(); in testIterator() 98 assertThat(item = iterator.next()).isNotNull(); in testIterator() 103 assertThat(item = iterator.next()).isNotNull(); in testIterator() 109 assertThat(item = iterator.next()).isNotNull(); in testIterator() 116 assertThat(iterator.next()).isNull(); in testIterator() 138 assertThat(item = iterator.next()).isNotNull(); in tagsLongHistory() 143 assertThat(item = iterator.next()).isNotNull(); in tagsLongHistory() 149 assertThat(item = iterator.next()).isNotNull(); in tagsLongHistory() 178 assertThat(iterator.next()).isNull(); in tagsLongHistory() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
H A D | LocalEventLog.java | 200 it.next(); in iterate() 217 it.next(); in iterate() 222 LocalEventLog<T>.LogIterator next = null; in iterate() 224 if (it != null && (next == null || it.getTime() < next.getTime())) { in iterate() 225 next = it; in iterate() 229 if (next == null) { in iterate() 233 consumer.acceptLog(next.getTime(), next.getLog()); in iterate() 235 if (next.hasNext()) { in iterate() 236 next.next(); in iterate() 238 its.remove(next); in iterate() [all …]
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.cpp | 80 Page* next() { return mNextPage; } in next() function in android::uirenderer::LinearAllocator::Page 81 void setNext(Page* next) { mNextPage = next; } in setNext() argument 110 mDtorList = node->next; in ~LinearAllocator() 115 Page* next = p->next(); in ~LinearAllocator() local 119 p = next; in ~LinearAllocator() 182 node->next = mDtorList; in addToDestructionList() 192 previous->next = node->next; in runDestructorFor() 194 mDtorList = node->next; in runDestructorFor() 201 node = node->next; in runDestructorFor()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/users/ |
H A D | CreateUserDialogControllerTest.java | 80 next.performClick(); in positiveButton_grantAdminStage_noValue_OkButtonShouldBeDisabled() 98 next.performClick(); in positiveButton_MultipleAdminDisabled_shouldSkipGrantAdminStage() 116 next.performClick(); in editUserInfoController_shouldOnlyBeVisibleOnLastStage() 119 next.performClick(); in editUserInfoController_shouldOnlyBeVisibleOnLastStage() 136 next.performClick(); in positiveButton_MultipleAdminEnabled_shouldShowGrantAdminStage() 140 next.performClick(); in positiveButton_MultipleAdminEnabled_shouldShowGrantAdminStage() 186 next.performClick(); in cancelCallback_isNotCalled_whenNegativeButtonClickedOnSecondStage() 206 next.performClick(); in successCallback_isCalled_setNameAndAdminStatus() 208 next.performClick(); in successCallback_isCalled_setNameAndAdminStatus() 212 next.performClick(); in successCallback_isCalled_setNameAndAdminStatus() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskFragment.java | 1189 if (next == null || !next.canResumeByCompat()) { in resumeTopActivity() 1203 if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivity() 1291 } else if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivity() 1311 if (prev != null && prev != next && next.nowVisible) { in resumeTopActivity() 1340 next.packageName, false, next.mUserId); /* TODO: Verify if correct userid */ in resumeTopActivity() 1396 Slog.v(TAG_SWITCH, "Resume running: " + next + " stopped=" + next.mAppStopped in resumeTopActivity() 1411 if (!next.isVisibleRequested() || next.mAppStopped || lastActivityTranslucent) { in resumeTopActivity() 1462 if (!next.isVisibleRequested() || next.mAppStopped) { in resumeTopActivity() 1471 ClientTransaction.obtain(next.app.getThread(), next.token); in resumeTopActivity() 1493 EventLogTags.writeWmResumeActivity(next.mUserId, System.identityHashCode(next), in resumeTopActivity() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/permission/ |
H A D | PermissionManagerService.java | 997 if (next != null && next.getNext() != null in registerAttributionSource() 1152 if (next == null || next.getNext() == null) { in finishDataDelivery() 1161 current = next; in finishDataDelivery() 1285 if (next == null || next.getNext() == null) { in checkAppOpPermission() 1289 current = next; in checkAppOpPermission() 1329 permission, next.getUid(), next.getRenouncedPermissions())) { in checkRuntimePermission() 1353 && next != null && next.getNext() == null); in checkRuntimePermission() 1357 && (next == null || next.isTrusted(context)); in checkRuntimePermission() 1387 if (next == null || next.getNext() == null) { in checkRuntimePermission() 1506 && (next == null || next.isTrusted(context)); in checkOp() [all …]
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | Choreographer.java | 958 final CallbackRecord next = callbacks.next; in doCallbacks() local 1006 callback.next = null; in obtainCallbackLocked() 1372 CallbackRecord next = last.next; in extractDueCallbacksLocked() local 1373 while (next != null) { in extractDueCallbacksLocked() 1378 last = next; in extractDueCallbacksLocked() 1379 next = next.next; in extractDueCallbacksLocked() 1381 mHead = next; in extractDueCallbacksLocked() 1400 callback.next = entry.next; in addCallbackLocked() 1411 final CallbackRecord next = callback.next; in removeCallbacksLocked() local 1415 predecessor.next = next; in removeCallbacksLocked() [all …]
|
H A D | SoundEffectConstants.java | 160 int next = NAVIGATION_REPEAT_RANDOMIZER.nextInt( in nextNavigationRepeatSoundEffectId() local 162 if (next >= sLastNavigationRepeatSoundEffectId) { in nextNavigationRepeatSoundEffectId() 163 next++; in nextNavigationRepeatSoundEffectId() 165 sLastNavigationRepeatSoundEffectId = next; in nextNavigationRepeatSoundEffectId() 166 return AudioManager.getNthNavigationRepeatSoundEffect(next); in nextNavigationRepeatSoundEffectId()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BaseAppStateDurations.java | 111 T l = itl.next(), r = itr.next(); in add() 122 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add() 123 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add() 127 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add() 131 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add() 185 T l = itl.next(), r = itr.next(); in subtract() 196 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in subtract() 197 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in subtract() 201 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in subtract() 205 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in subtract()
|
H A D | BaseAppStateTimeEvents.java | 50 T l = itl.next(), r = itr.next(); in add() 56 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add() 57 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add() 60 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add() 63 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add()
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | Html.java | 294 int next; in encodeTextAlignmentByDiv() local 329 int next; in withinDiv() local 410 int next; in withinBlockquoteIndividual() local 413 if (next < 0) { in withinBlockquoteIndividual() 414 next = end; in withinBlockquoteIndividual() 468 next++; in withinBlockquoteIndividual() 476 int next; in withinBlockquoteConsecutive() local 479 if (next < 0) { in withinBlockquoteConsecutive() 485 while (next < end && text.charAt(next) == '\n') { in withinBlockquoteConsecutive() 487 next++; in withinBlockquoteConsecutive() [all …]
|