Home
last modified time | relevance | path

Searched refs:pending (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DBackgroundRestrictedAlarmsTest.java83 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms() argument
85 AlarmManagerService.findAllUnrestrictedPendingBackgroundAlarmsLockedInner(pending, in runCheckAllPendingAlarms()
91 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() local
95 runCheckAllPendingAlarms(pending, alarmsToDeliver); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty()
97 assertEquals("", toString(pending)); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty()
103 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() local
105 addPendingAlarm(pending, 100001, "a1", false); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove()
109 runCheckAllPendingAlarms(pending, alarmsToDeliver); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove()
111 assertEquals("[100001: a1]", toString(pending)); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove()
117 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove() local
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/taskview/
DTaskViewTransitions.java203 PendingTransition pending = new PendingTransition(request.getType(), null, in handleRequest()
205 pending.mClaimed = transition; in handleRequest()
206 mPending.add(pending); in handleRequest()
265 PendingTransition pending = new PendingTransition( in setTaskViewVisible() local
267 mPending.add(pending); in setTaskViewVisible()
281 PendingTransition pending = new PendingTransition( in reorderTaskViewTask() local
283 mPending.add(pending); in reorderTaskViewTask()
323 final PendingTransition pending = mPending.get(0); in startNextTransition()
324 if (pending.mClaimed != null) { in startNextTransition()
328 pending.mClaimed = mTransitions.startTransition(pending.mType, pending.mWct, this); in startNextTransition()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java40 PendingIntent pending = PendingIntent.getBroadcast( in setDiscoverableAlarm() local
45 if (pending != null) { in setDiscoverableAlarm()
47 alarmManager.cancel(pending); in setDiscoverableAlarm()
50 pending = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_IMMUTABLE); in setDiscoverableAlarm()
52 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); in setDiscoverableAlarm()
60 PendingIntent pending = PendingIntent.getBroadcast( in cancelDiscoverableAlarm() local
62 if (pending != null) { in cancelDiscoverableAlarm()
67 alarmManager.cancel(pending); in cancelDiscoverableAlarm()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/taskview/
DTaskViewTransitionsTest.java110 TaskViewTransitions.PendingTransition pending = in testSetTaskBounds_taskVisible_boundsChangeTransaction() local
112 assertThat(pending).isNotNull(); in testSetTaskBounds_taskVisible_boundsChangeTransaction()
113 mTaskViewTransitions.startAnimation(pending.mClaimed, in testSetTaskBounds_taskVisible_boundsChangeTransaction()
136 TaskViewTransitions.PendingTransition pending = in testSetTaskBounds_taskVisibleWithPending_noTransaction() local
138 assertThat(pending).isNotNull(); in testSetTaskBounds_taskVisibleWithPending_noTransaction()
153 TaskViewTransitions.PendingTransition pending = in testSetTaskBounds_sameBounds_noTransaction() local
155 assertThat(pending).isNotNull(); in testSetTaskBounds_sameBounds_noTransaction()
156 mTaskViewTransitions.startAnimation(pending.mClaimed, in testSetTaskBounds_sameBounds_noTransaction()
217 TaskViewTransitions.PendingTransition pending = in testReorderTask_movedToFrontTransaction() local
219 assertThat(pending).isNotNull(); in testReorderTask_movedToFrontTransaction()
[all …]
/frameworks/av/media/module/bufferpool/1.0/
DBufferStatus.cpp119 std::list<BufferId> &pending, std::list<BufferId> &posted) { in postBufferRelease() argument
120 if (mValid && pending.size() > 0) { in postBufferRelease()
122 avail = std::min(avail, pending.size()); in postBufferRelease()
125 BufferId id = pending.front(); in postBufferRelease()
136 pending.pop_front(); in postBufferRelease()
145 std::list<BufferId> &pending, std::list<BufferId> &posted) { in postBufferStatusMessage() argument
148 size_t numPending = pending.size(); in postBufferStatusMessage()
152 BufferId id = pending.front(); in postBufferStatusMessage()
163 pending.pop_front(); in postBufferStatusMessage()
DBufferStatus.h109 std::list<BufferId> &pending, std::list<BufferId> &posted);
133 std::list<BufferId> &pending, std::list<BufferId> &posted);
/frameworks/base/services/companion/java/com/android/server/companion/transport/
DTransport.java155 final CompletableFuture<byte[]> pending = new CompletableFuture<>(); in sendMessage() local
162 pending.completeExceptionally(new IllegalArgumentException( in sendMessage()
166 return pending; in sendMessage()
183 final CompletableFuture<byte[]> pending = new CompletableFuture<>(); in requestForResponse() local
185 mPendingRequests.put(sequence, pending); in requestForResponse()
194 pending.completeExceptionally(e); in requestForResponse()
197 return pending; in requestForResponse()
202 final CompletableFuture<byte[]> pending = new CompletableFuture<>(); in sendAndForget() local
206 pending.complete(null); in sendAndForget()
208 pending.completeExceptionally(e); in sendAndForget()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DWorkCountTrackerTest.java122 public final SparseIntArray pending = new SparseIntArray(); field in WorkCountTrackerTest.Jobs
151 pending.put(type, pending.get(type) + 1); in addPending()
162 pending.put(type, pending.get(type) - 1); in removePending()
196 for (int i = 0; i < jobs.pending.size(); ++i) { in recount()
197 final int workType = jobs.pending.keyAt(i); in recount()
198 final int count = jobs.pending.valueAt(i); in recount()
209 for (int i = 0; i < jobs.pending.size(); ++i) { in hasStartablePendingJob()
210 if (jobs.pending.valueAt(i) > 0 in hasStartablePendingJob()
211 && mWorkCountTracker.canJobStart(jobs.pending.keyAt(i)) != WORK_TYPE_NONE) { in hasStartablePendingJob()
231 if (jobs.pending.get(workType) > 0) { in startPendingJobs()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java45 JobInfo pending = jobScheduler.getPendingJob(JOB_ID); in scheduleJob() local
52 if (pending != null && !pending.equals(jobInfo)) { in scheduleJob()
54 pending = null; in scheduleJob()
57 if (pending == null) { in scheduleJob()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationPersistenceTest.kt103 val pending = ArrayMap<String, DomainVerificationPkgState>().apply { in <lambda>() constant
112 return Triple(attached, pending, restored) in <lambda>()
117 val (attached, pending, restored) = mockWriteValues() in <lambda>() constant
119 DomainVerificationPersistence.writeToXml(it, attached, pending, restored, in <lambda>()
130 .containsExactlyElementsIn(attached.values() + pending.values) in <lambda>()
136 val (attached, pending, restored) = mockWriteValues() in <lambda>() constant
138 DomainVerificationPersistence.writeToXml(it, attached, pending, restored, in <lambda>()
165 val (attached, pending, restored) = mockWriteValues { "SIGNATURE_$it" } in <lambda>() constant
167 DomainVerificationPersistence.writeToXml(it, attached, pending, restored, in <lambda>()
176 .containsExactlyElementsIn(attached.values() + pending.values) in <lambda>()
/frameworks/av/media/module/bufferpool/2.0/
DBufferStatus.cpp132 std::list<BufferId> &pending, std::list<BufferId> &posted) { in postBufferRelease() argument
133 if (mValid && pending.size() > 0) { in postBufferRelease()
135 avail = std::min(avail, pending.size()); in postBufferRelease()
138 BufferId id = pending.front(); in postBufferRelease()
149 pending.pop_front(); in postBufferRelease()
181 std::list<BufferId> &pending, std::list<BufferId> &posted) { in postBufferStatusMessage() argument
184 size_t numPending = pending.size(); in postBufferStatusMessage()
188 BufferId id = pending.front(); in postBufferStatusMessage()
199 pending.pop_front(); in postBufferStatusMessage()
DBufferStatus.h116 std::list<BufferId> &pending, std::list<BufferId> &posted);
140 std::list<BufferId> &pending, std::list<BufferId> &posted);
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/
DCallbackUtils.kt35 private val pending = CountDownLatch(1) constant in android.companion.multidevices.CallbackUtils.AssociationCallback
44 pending.countDown() in onAssociationPending()
54 pending.countDown() in onFailure()
59 if (!pending.await(CALLBACK_TIMEOUT_SEC, SECONDS)) { in waitForPendingIntent()
/frameworks/av/media/libstagefright/
DRemoteMediaExtractor.cpp101 static std::list<sp<DataSource>> pending; variable
114 pending_added.wait(_lk, []{return !pending.empty();}); in closingThreadWorker()
115 ALOGV("worker thread wake up with %zu entries", pending.size()); in closingThreadWorker()
116 if (!pending.empty()) { in closingThreadWorker()
117 ds = pending.front(); in closingThreadWorker()
118 (void) pending.pop_front(); in closingThreadWorker()
146 pending.push_back(ds); in asyncDataSourceClose()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DLazyAlarmStore.java166 final ArrayList<Alarm> pending = new ArrayList<>(); in removePendingAlarms() local
183 pending.add(alarm); in removePendingAlarms()
194 for (int i = pending.size() - 1; i >= 0; i--) { in removePendingAlarms()
195 final Alarm pendingAlarm = pending.get(i); in removePendingAlarms()
202 pending.remove(i); in removePendingAlarms()
206 addAll(pending); in removePendingAlarms()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskOrganizerController.java804 PendingTaskEvent pending = pendingEvents.getPendingTaskEvent(task, in onTaskAppeared() local
806 if (pending == null) { in onTaskAppeared()
957 PendingTaskEvent pending = pendingEventsQueue in onTaskInfoChanged() local
959 if (pending == null) { in onTaskInfoChanged()
960 pending = new PendingTaskEvent(task, PendingTaskEvent.EVENT_INFO_CHANGED); in onTaskInfoChanged()
962 if (pending.mEventType != PendingTaskEvent.EVENT_INFO_CHANGED) { in onTaskInfoChanged()
969 pendingEventsQueue.removePendingTaskEvent(pending); in onTaskInfoChanged()
971 pending.mForce |= force; in onTaskInfoChanged()
972 pendingEventsQueue.addPendingTaskEvent(pending); in onTaskInfoChanged()
1181 PendingTaskEvent pending = pendingEventsQueue.getPendingTaskEvent( in handleInterceptBackPressedOnTaskRoot() local
[all …]
/frameworks/base/core/java/android/app/
DLoaderManager.java417 LoaderInfo pending = mPendingLoader; in onLoadCanceled() local
418 if (pending != null) { in onLoadCanceled()
422 if (DEBUG) Log.v(TAG, " Switching to pending loader: " + pending); in onLoadCanceled()
426 installLoader(pending); in onLoadCanceled()
446 LoaderInfo pending = mPendingLoader; in onLoadComplete() local
447 if (pending != null) { in onLoadComplete()
451 if (DEBUG) Log.v(TAG, " Switching to pending loader: " + pending); in onLoadComplete()
455 installLoader(pending); in onLoadComplete()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodRuleImpl.java193 final Throwable pending = sPendingUncaughtException.getAndSet(null); in maybeThrowPendingUncaughtException() local
194 if (pending != null) { in maybeThrowPendingUncaughtException()
197 "Found an uncaught exception during this test", pending); in maybeThrowPendingUncaughtException()
200 "Found an uncaught exception before this test started", pending); in maybeThrowPendingUncaughtException()
/frameworks/av/media/codec2/components/base/
DSimpleC2Component.cpp880 while (!queue->pending().empty()) { in flush_sm()
881 flushedWork->push_back(std::move(queue->pending().begin()->second)); in flush_sm()
882 queue->pending().erase(queue->pending().begin()); in flush_sm()
947 queue->pending().clear(); in stop()
968 queue->pending().clear(); in reset()
1001 if (queue->pending().count(frameIndex) == 0) { in finish()
1005 work = std::move(queue->pending().at(frameIndex)); in finish()
1006 queue->pending().erase(frameIndex); in finish()
1026 if (queue->pending().count(frameIndex) == 0) { in cloneAndSend()
1030 work->input.flags = queue->pending().at(frameIndex)->input.flags; in cloneAndSend()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerHistory.h60 void setModeChangePending(bool pending) { mModeChangePending = pending; } in setModeChangePending() argument
/frameworks/base/core/java/android/content/
DSyncStatusInfo.java138 public boolean pending; field in SyncStatusInfo
191 parcel.writeInt(pending ? 1 : 0); in writeToParcel()
246 pending = parcel.readInt() != 0; in SyncStatusInfo()
332 pending = other.pending; in copyFrom()
/frameworks/av/media/utils/
DTimerThread.cpp191 for (const auto& pending : analysis.pendingRequests) { in getSnapshotAnalysis() local
193 if (pending->tid == timeout->tid) { in getSnapshotAnalysis()
194 pendingExact.emplace_back(pending); in getSnapshotAnalysis()
199 if (pending->scheduled - timeout->scheduled < kPendingDuration) { in getSnapshotAnalysis()
200 pendingPossible.emplace_back(pending); in getSnapshotAnalysis()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTestPackageInstaller.java137 PendingIntent pending = PendingIntent.getBroadcast(mContext, sessionId, intent, in getIntentSender() local
139 return pending.getIntentSender(); in getIntentSender()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.md41 * Which broadcasts are pending dispatch to a given process. For example, an
71 limiting ourselves to a single pending _cold start_ reduces system-wide
75 any additional pending broadcasts to that process, aimed at batching dispatch
87 * A per-process queue that has a large number of pending broadcasts can risk
/frameworks/base/core/java/android/companion/
DAssociationInfo.java97 boolean notifyOnDeviceNearby, boolean revoked, boolean pending, long timeApprovedMs, in AssociationInfo() argument
118 mPending = pending; in AssociationInfo()
585 public Builder setPending(boolean pending) { in setPending() argument
586 mPending = pending; in setPending()

123