Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/summary/
DDeferredAction.java27 public final int priority; field in DeferredAction
29 public DeferredAction(String deferredNotificationDescription, boolean completed, int priority) { in DeferredAction() argument
32 this.priority = priority; in DeferredAction()
40 return priority - o.priority; in compareTo()
DSummaryAction.java28 public final int priority; field in SummaryAction
40 int priority, in SummaryAction() argument
50 this.priority = priority; in SummaryAction()
68 return priority - o.priority; in compareTo()
/frameworks/base/services/core/java/com/android/server/display/mode/
DVotesStorage.java68 int priority = globalVotesLocal.keyAt(i); in getVotes() local
69 if (!votesLocal.contains(priority)) { in getVotes()
70 votesLocal.put(priority, globalVotesLocal.valueAt(i)); in getVotes()
77 void updateGlobalVote(int priority, @Nullable Vote vote) { in updateGlobalVote() argument
78 updateVote(GLOBAL_ID, priority, vote); in updateGlobalVote()
82 void updateVote(int displayId, int priority, @Nullable Vote vote) { in updateVote() argument
85 + ", priority=" + Vote.priorityToString(priority) in updateVote()
88 if (priority < Vote.MIN_PRIORITY || priority > Vote.MAX_PRIORITY) { in updateVote()
90 + " priority=" + Vote.priorityToString(priority) in updateVote()
103 votes.put(priority, vote); in updateVote()
[all …]
/frameworks/base/core/java/android/window/
DWindowOnBackInvokedDispatcher.java103 @Priority int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback()
104 if (mChecker.checkApplicationCallbackRegistration(priority, callback)) { in registerOnBackInvokedCallback()
105 registerOnBackInvokedCallbackUnchecked(callback, priority); in registerOnBackInvokedCallback()
114 @NonNull OnBackInvokedCallback callback, @Priority int priority) { in registerOnBackInvokedCallbackUnchecked() argument
116 mImeDispatcher.registerOnBackInvokedCallback(priority, callback); in registerOnBackInvokedCallbackUnchecked()
119 if (!mOnBackInvokedCallbacks.containsKey(priority)) { in registerOnBackInvokedCallbackUnchecked()
120 mOnBackInvokedCallbacks.put(priority, new ArrayList<>()); in registerOnBackInvokedCallbackUnchecked()
122 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in registerOnBackInvokedCallbackUnchecked()
135 mAllCallbacks.put(callback, priority); in registerOnBackInvokedCallbackUnchecked()
138 && mAllCallbacks.get(previousTopCallback) <= priority)) { in registerOnBackInvokedCallbackUnchecked()
[all …]
DProxyOnBackInvokedDispatcher.java63 int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback() argument
68 if (mChecker.checkApplicationCallbackRegistration(priority, callback)) { in registerOnBackInvokedCallback()
69 registerOnBackInvokedCallbackUnchecked(callback, priority); in registerOnBackInvokedCallback()
94 @NonNull OnBackInvokedCallback callback, int priority) { in registerOnBackInvokedCallbackUnchecked() argument
96 mCallbacks.add(Pair.create(callback, priority)); in registerOnBackInvokedCallbackUnchecked()
98 if (priority <= PRIORITY_SYSTEM) { in registerOnBackInvokedCallbackUnchecked()
101 mActualDispatcher.registerOnBackInvokedCallback(priority, callback); in registerOnBackInvokedCallbackUnchecked()
125 int priority = callbackPair.second; in transferCallbacksToDispatcher() local
126 if (priority >= PRIORITY_DEFAULT) { in transferCallbacksToDispatcher()
127 mActualDispatcher.registerOnBackInvokedCallback(priority, callbackPair.first); in transferCallbacksToDispatcher()
DImeOnBackInvokedDispatcher.java81 @OnBackInvokedDispatcher.Priority int priority, in registerOnBackInvokedCallback()
93 bundle.putInt(RESULT_KEY_PRIORITY, priority); in registerOnBackInvokedCallback()
134 int priority = resultData.getInt(RESULT_KEY_PRIORITY); in receive() local
138 callback, priority, callbackId, receivingDispatcher); in receive()
146 @OnBackInvokedDispatcher.Priority int priority, in registerReceivedCallback() argument
150 new ImeOnBackInvokedCallback(iCallback, callbackId, priority); in registerReceivedCallback()
152 receivingDispatcher.registerOnBackInvokedCallbackUnchecked(imeCallback, priority); in registerReceivedCallback()
195 @Priority int priority) { in ImeOnBackInvokedCallback() argument
198 mPriority = priority; in ImeOnBackInvokedCallback()
/frameworks/hardware/interfaces/schedulerservice/1.0/
DISchedulingPolicyService.hal25 * Request real-time priority for a specific thread in a process.
29 * @param priority Value within [Priority:MIN, Priority:MAX]
31 * @return success whether or not priority was successfully set
33 requestPriority(int32_t pid, int32_t tid, int32_t priority)
37 * Must return 0 if no priority is allowed.
39 * @return priority Max priority that can be set with
42 getMaxAllowedPriority() generates (int32_t priority);
/frameworks/base/core/java/com/android/internal/os/
DAndroidPrintStream.java29 private final int priority; field in AndroidPrintStream
39 public AndroidPrintStream(int priority, String tag) { in AndroidPrintStream() argument
44 this.priority = priority; in AndroidPrintStream()
49 Log.println(priority, tag, line); in log()
/frameworks/ex/framesequence/jni/utils/
Dlog.h242 #define ALOG(priority, tag, ...) \ argument
243 LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
250 #define LOG_PRI(priority, tag, ...) \ argument
251 __android_log_print(priority, tag, __VA_ARGS__)
258 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument
259 __android_log_vprint(priority, NULL, tag, fmt, args)
266 #define IF_ALOG(priority, tag) \ argument
267 if (__android_log_assert(ANDROID_##priority, tag))
/frameworks/base/services/core/java/com/android/server/pm/pkg/component/
DParsedPermissionGroupImpl.java39 private int priority; field in ParsedPermissionGroupImpl
57 dest.writeInt(priority); in writeToParcel()
66 this.priority = in.readInt(); in ParsedPermissionGroupImpl()
90 int priority) { in ParsedPermissionGroupImpl() argument
95 this.priority = priority; in ParsedPermissionGroupImpl()
122 return priority; in getPriority()
151 priority = value; in setPriority()
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp67 bool checkPriority(int32_t *priority) in checkPriority() argument
69 if (*priority < 0) { in checkPriority()
70 ALOGI("negative priority %d, should be >= 0.", *priority); in checkPriority()
102 int32_t SoundPool::load(int fd, int64_t offset, int64_t length, int32_t priority) in load() argument
105 __func__, fd, (long long)offset, (long long)length, priority); in load()
107 return mSoundManager.load(fd, offset, length, priority); in load()
118 int32_t priority, int32_t loop, float rate, int32_t playerIId) in play() argument
121 __func__, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
127 || checkPriority(&priority) in play()
139 sound, soundID, leftVolume, rightVolume, priority, loop, rate, playerIId); in play()
[all …]
/frameworks/base/media/java/android/media/
DSoundPool.java195 public int load(String path, int priority) { in load() argument
202 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); in load()
226 public int load(Context context, int resId, int priority) { in load() argument
230 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
248 public int load(AssetFileDescriptor afd, int priority) { in load() argument
254 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
274 public int load(FileDescriptor fd, long offset, long length, int priority) { in load() argument
275 return _load(fd, offset, length, priority); in load()
315 int priority, int loop, float rate) { in play() argument
318 return _play(soundID, leftVolume, rightVolume, priority, loop, rate, getPlayerIId()); in play()
[all …]
/frameworks/base/core/java/android/util/
DLogPrinter.java40 public LogPrinter(int priority, String tag) { in LogPrinter() argument
41 mPriority = priority; in LogPrinter()
50 public LogPrinter(int priority, String tag, int buffer) { in LogPrinter() argument
51 mPriority = priority; in LogPrinter()
DLog.java401 public static int println(@Level int priority, @Nullable String tag, @NonNull String msg) { in println() argument
402 return println_native(LOG_ID_MAIN, priority, tag, msg); in println()
422 public static native int println_native(int bufID, int priority, String tag, String msg); in println_native() argument
440 public static int logToRadioBuffer(@Level int priority, @Nullable String tag, in logToRadioBuffer() argument
442 return println_native(LOG_ID_RADIO, priority, tag, message); in logToRadioBuffer()
458 public static int printlns(int bufID, int priority, @Nullable String tag, @NonNull String msg, in printlns() argument
460 ImmediateLogWriter logWriter = new ImmediateLogWriter(bufID, priority, tag); in printlns()
517 private int priority; field in Log.ImmediateLogWriter
526 public ImmediateLogWriter(int bufID, int priority, String tag) { in ImmediateLogWriter() argument
528 this.priority = priority; in ImmediateLogWriter()
[all …]
DLogWriter.java44 public LogWriter(int priority, String tag) { in LogWriter() argument
45 mPriority = priority; in LogWriter()
54 public LogWriter(int priority, String tag, int buffer) { in LogWriter() argument
55 mPriority = priority; in LogWriter()
/frameworks/native/services/schedulerservice/
DSchedulingPolicyService.cpp38 Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) { in requestPriority() argument
39 if (priority < static_cast<int32_t>(Priority::MIN) || in requestPriority()
40 priority > static_cast<int32_t>(Priority::MAX)) { in requestPriority()
50 int value = ::android::requestPriority(pid, tid, priority, false /* isForApp */); in requestPriority()
/frameworks/native/services/vr/performanced/
Dperformance_service.cpp161 .priority = fifo_medium, in PerformanceService()
166 .priority = fifo_medium + 3, in PerformanceService()
171 .priority = fifo_medium, in PerformanceService()
176 .priority = fifo_medium, in PerformanceService()
181 .priority = fifo_medium + 2, in PerformanceService()
186 .priority = fifo_low, in PerformanceService()
191 .priority = fifo_low, in PerformanceService()
196 .priority = fifo_low + 1, in PerformanceService()
201 .priority = fifo_medium + 2, in PerformanceService()
207 .priority = fifo_medium + 1, in PerformanceService()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DDumpsysEntry.kt37 val priority: DumpPriority constant
42 override val priority: DumpPriority, constant in com.android.systemui.dump.DumpsysEntry.DumpableEntry
51 override val priority: DumpPriority = DumpPriority.NORMAL constant in com.android.systemui.dump.DumpsysEntry.LogBufferEntry
60 override val priority: DumpPriority = DumpPriority.NORMAL constant in com.android.systemui.dump.DumpsysEntry.TableLogBufferEntry
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/pidf/
DContact.java53 public void setPriority(Double priority) { in setPriority() argument
54 mPriority = priority; in setPriority()
95 String priority = parser.getAttributeValue(XmlPullParser.NO_NAMESPACE, "priority"); in parse() local
96 if (!TextUtils.isEmpty(priority)) { in parse()
97 mPriority = Double.parseDouble(priority); in parse()
/frameworks/base/telephony/java/android/telephony/
DAvailableNetworkInfo.java193 public AvailableNetworkInfo(int subId, int priority, @NonNull List<String> mccMncs, in AvailableNetworkInfo() argument
195 this(subId, priority, mccMncs, bands, in AvailableNetworkInfo()
200 private AvailableNetworkInfo(int subId, @AvailableNetworkInfoPriority int priority, in AvailableNetworkInfo() argument
204 mPriority = priority; in AvailableNetworkInfo()
300 public @NonNull Builder setPriority(@AvailableNetworkInfoPriority int priority) { in setPriority() argument
301 if (priority > AvailableNetworkInfo.PRIORITY_LOW in setPriority()
302 || priority < AvailableNetworkInfo.PRIORITY_HIGH) { in setPriority()
305 mPriority = priority; in setPriority()
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/
DClientProfile.java155 public void setPriority(int priority) { in setPriority() argument
156 if (priority < 0) { in setPriority()
159 mPriority = priority; in setPriority()
165 public void overwritePriority(int priority) { in overwritePriority() argument
166 if (priority < 0) { in overwritePriority()
170 mPriority = priority; in overwritePriority()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerThreadPriorityBooster.java95 int priority = (mAppTransitionRunning || mBoundsAnimationRunning) in updatePriorityLocked() local
97 setBoostToPriority(priority); in updatePriorityLocked()
98 setThreadPriority(mAnimationThreadId, priority); in updatePriorityLocked()
99 setThreadPriority(mSurfaceAnimationThreadId, priority); in updatePriorityLocked()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DBinderFuzzFunctions.h51 int priority;
54 priority = fdp->ConsumeIntegralInRange<int>(-20, 19);
56 priority = fdp->ConsumeIntegralInRange<int>(1, 99);
58 bbinder->setMinSchedulerPolicy(policy, priority);
/frameworks/base/services/core/java/com/android/server/
DThreadPriorityBooster.java73 protected void setBoostToPriority(int priority) { in setBoostToPriority() argument
77 mBoostToPriority = priority; in setBoostToPriority()
81 if (prevPriority != priority) { in setBoostToPriority()
82 setThreadPriority(state.tid, priority); in setBoostToPriority()
/frameworks/av/media/module/libmediatranscoding/tests/
DAdjustableMaxPriorityQueue_tests.cpp229 int32_t priority; in TEST() member
239 if (lhs->priority != rhs->priority) { in TEST()
240 return lhs->priority < rhs->priority; in TEST()
271 EXPECT_EQ(3, topSession->priority); in TEST()
279 EXPECT_EQ(2, topSession2->priority); in TEST()
284 sessionIdToSessionMap[1]->priority = 4; in TEST()
287 EXPECT_EQ(4, topSession3->priority); in TEST()

12345678910>>...15