/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | VotesStatsReporter.java | 48 void reportVoteChanged(int displayId, int priority, @Nullable Vote vote) { in reportVoteChanged() argument 50 reportVoteRemoved(displayId, priority); in reportVoteChanged() 52 reportVoteAdded(displayId, priority, vote); in reportVoteChanged() 56 private void reportVoteAdded(int displayId, int priority, @NonNull Vote vote) { in reportVoteAdded() argument 59 TAG + "." + displayId + ":" + Vote.priorityToString(priority), maxRefreshRate); in reportVoteAdded() 62 DISPLAY_MODE_DIRECTOR_VOTE_CHANGED, displayId, priority, in reportVoteAdded() 68 private void reportVoteRemoved(int displayId, int priority) { in reportVoteRemoved() argument 70 TAG + "." + displayId + ":" + Vote.priorityToString(priority), -1); in reportVoteRemoved() 73 DISPLAY_MODE_DIRECTOR_VOTE_CHANGED, displayId, priority, in reportVoteRemoved() 84 for (int priority = Vote.MIN_PRIORITY; priority <= Vote.MAX_PRIORITY; priority++) { in reportVotesActivated() [all …]
|
D | VotesStorage.java | 73 int priority = globalVotesLocal.keyAt(i); in getVotes() local 74 if (!votesLocal.contains(priority)) { in getVotes() 75 votesLocal.put(priority, globalVotesLocal.valueAt(i)); in getVotes() 82 void updateGlobalVote(@Vote.Priority int priority, @Nullable Vote vote) { in updateGlobalVote() argument 83 updateVote(GLOBAL_ID, priority, vote); in updateGlobalVote() 87 void updateVote(int displayId, @Vote.Priority int priority, @Nullable Vote vote) { in updateVote() argument 90 + ", priority=" + Vote.priorityToString(priority) in updateVote() 93 if (priority < Vote.MIN_PRIORITY || priority > Vote.MAX_PRIORITY) { in updateVote() 95 + " priority=" + Vote.priorityToString(priority) in updateVote() 108 var currentVote = votes.get(priority); in updateVote() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Binder_test.cpp | 81 outPolicy->priority = reply.readInt32(); in getNonAidlSchedulingPolicy() 98 const int priority = sched_get_priority_min(policy); in TEST_F() local 104 ASSERT_EQ(priority, sfPolicy.priority); in TEST_F() 109 const int priority = sched_get_priority_min(policy); in TEST_F() local 115 ASSERT_EQ(priority, sfPolicy.priority); in TEST_F() 122 const int priority = sched_get_priority_min(policy); in TEST_F() local 128 ASSERT_EQ(priority, sfPolicy.priority); in TEST_F() 135 const int priority = sched_get_priority_min(policy); in TEST_F() local 141 ASSERT_EQ(priority, sfPolicy.priority); in TEST_F() 156 const int priority = sched_get_priority_min(policy); in SetUp() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/db/ |
D | CommunalWidgetDaoTest.kt | 70 val (widgetId, provider, priority) = widgetInfo1 in <lambda>() constant 74 priority = priority, in <lambda>() 83 val (widgetId, provider, priority) = widgetInfo1 in <lambda>() constant 87 priority = priority, in <lambda>() 98 val (widgetId, provider, priority) = it in <lambda>() constant 102 priority = priority, in <lambda>() 121 val (widgetId, provider, priority) = it in <lambda>() constant 125 priority = priority, in <lambda>() 147 val (widgetId, provider, priority) = it in <lambda>() constant 151 priority = priority, in <lambda>() [all …]
|
/frameworks/native/libs/binder/liblog_stub/include/log/ |
D | log.h | 34 constexpr bool __android_log_stub_is_loggable(android_LogPriority priority) { in __android_log_stub_is_loggable() argument 35 return ANDROID_LOG_STUB_MIN_PRIORITY <= priority; in __android_log_stub_is_loggable() 49 #define IF_ALOG(priority, tag) \ argument 50 if (__android_log_stub_is_loggable(ANDROID_##priority) && __ANDROID_LOG_STUB_IS_PRINT_PRESENT) 57 #define ALOG(priority, tag, fmt, ...) \ argument 62 IF_ALOG(priority, tag) { \ 63 __android_log_print(ANDROID_##priority, tag, "%s: " fmt "\n", \ 66 if constexpr (ANDROID_##priority == ANDROID_LOG_FATAL) std::abort(); \ 76 #define ALOG_IF(cond, priority, tag, ...) \ argument 78 ALOG(priority, tag, #cond ": " __VA_ARGS__)
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/summary/ |
D | DeferredAction.java | 27 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()
|
D | SummaryAction.java | 28 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/core/java/android/window/ |
D | ProxyOnBackInvokedDispatcher.java | 63 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()
|
D | ImeOnBackInvokedDispatcher.java | 93 @OnBackInvokedDispatcher.Priority int priority, in registerOnBackInvokedCallback() 103 bundle.putInt(RESULT_KEY_PRIORITY, priority); in registerOnBackInvokedCallback() 144 int priority = resultData.getInt(RESULT_KEY_PRIORITY); in receive() local 147 registerReceivedCallback(callback, priority, callbackId, receivingDispatcher); in receive() 156 @OnBackInvokedDispatcher.Priority int priority, in registerReceivedCallback() argument 160 if (priority == PRIORITY_SYSTEM) { in registerReceivedCallback() 165 priority = PRIORITY_DEFAULT; in registerReceivedCallback() 166 imeCallback = new DefaultImeOnBackAnimationCallback(iCallback, callbackId, priority); in registerReceivedCallback() 168 imeCallback = new ImeOnBackInvokedCallback(iCallback, callbackId, priority); in registerReceivedCallback() 171 receivingDispatcher.registerOnBackInvokedCallbackUnchecked(imeCallback, priority); in registerReceivedCallback() [all …]
|
D | WindowOnBackInvokedDispatcher.java | 161 @Priority int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback() 162 if (mChecker.checkApplicationCallbackRegistration(priority, callback)) { in registerOnBackInvokedCallback() 163 registerOnBackInvokedCallbackUnchecked(callback, priority); in registerOnBackInvokedCallback() 172 @NonNull OnBackInvokedCallback callback, @Priority int priority) { in registerOnBackInvokedCallbackUnchecked() argument 175 mImeDispatcher.registerOnBackInvokedCallback(priority, callback); in registerOnBackInvokedCallbackUnchecked() 188 if (!mOnBackInvokedCallbacks.containsKey(priority)) { in registerOnBackInvokedCallbackUnchecked() 189 mOnBackInvokedCallbacks.put(priority, new ArrayList<>()); in registerOnBackInvokedCallbackUnchecked() 191 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in registerOnBackInvokedCallbackUnchecked() 204 mAllCallbacks.put(callback, priority); in registerOnBackInvokedCallbackUnchecked() 207 && mAllCallbacks.get(previousTopCallback) <= priority)) { in registerOnBackInvokedCallbackUnchecked() [all …]
|
/frameworks/hardware/interfaces/schedulerservice/1.0/ |
D | ISchedulingPolicyService.hal | 25 * 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/ |
D | AndroidPrintStream.java | 30 private final int priority; field in AndroidPrintStream 40 public AndroidPrintStream(int priority, String tag) { in AndroidPrintStream() argument 45 this.priority = priority; in AndroidPrintStream() 50 Log.println(priority, tag, line); in log()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 67 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/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedPermissionGroupImpl.java | 39 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/java/android/media/ |
D | SoundPool.java | 195 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/native/services/vr/performanced/ |
D | performance_service.cpp | 161 .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/core/java/android/util/ |
D | LogPrinter.java | 41 public LogPrinter(int priority, String tag) { in LogPrinter() argument 42 mPriority = priority; in LogPrinter() 51 public LogPrinter(int priority, String tag, int buffer) { in LogPrinter() argument 52 mPriority = priority; in LogPrinter()
|
D | Log.java | 407 public static int println(@Level int priority, @Nullable String tag, @NonNull String msg) { in println() argument 408 return println_native(LOG_ID_MAIN, priority, tag, msg); in println() 428 public static native int println_native(int bufID, int priority, String tag, String msg); in println_native() argument 446 public static int logToRadioBuffer(@Level int priority, @Nullable String tag, in logToRadioBuffer() argument 448 return println_native(LOG_ID_RADIO, priority, tag, message); in logToRadioBuffer() 464 public static int printlns(int bufID, int priority, @Nullable String tag, @NonNull String msg, in printlns() argument 466 ImmediateLogWriter logWriter = new ImmediateLogWriter(bufID, priority, tag); in printlns() 523 private int priority; field in Log.ImmediateLogWriter 532 public ImmediateLogWriter(int bufID, int priority, String tag) { in ImmediateLogWriter() argument 534 this.priority = priority; in ImmediateLogWriter() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/ |
D | CommunalWidgetRepository.kt | 60 priority: Int, in <lambda>() 118 priority = rank.rank, in entries() 148 priority: Int, in addWidget() 187 priority = priority, in addWidget() 193 logger.i("Added widget ${provider.flattenToString()} at position $priority.") in addWidget() 297 priority = entry.priority, in mapToContentModel() 314 priority = entry.priority, in mapToContentModel() 326 priority = entry.priority, in mapToContentModel() 339 val priority: Int, constant in CommunalWidgetEntry
|
/frameworks/native/services/schedulerservice/ |
D | SchedulingPolicyService.cpp | 38 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/base/packages/SystemUI/src/com/android/systemui/communal/data/db/ |
D | CommunalWidgetDao.kt | 83 priority = defaultWidgets.size - index in <lambda>() 126 widgetIdToPriorityMap.forEach { (id, priority) -> in getWidgets() method 129 updateItemRank(widget.itemId, priority) in getWidgets() 135 fun addWidget(widgetId: Int, provider: ComponentName, priority: Int): Long { in addWidget() 139 priority = priority, in addWidget() 144 fun addWidget(widgetId: Int, componentName: String, priority: Int): Long { in addWidget() 148 itemId = insertItemRank(priority), in addWidget()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/ |
D | DumpsysEntry.kt | 37 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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/ |
D | CommunalWidgetRepositoryImplTest.kt | 142 priority = communalItemRankEntry.rank, in communalWidgets_queryWidgetsFromDb() 178 priority = 1, in communalWidgets_widgetsWithoutMatchingProvidersAreSkipped() 183 priority = 2, in communalWidgets_widgetsWithoutMatchingProvidersAreSkipped() 213 priority = 1, in communalWidgets_updatedWhenProvidersUpdate() 218 priority = 2, in communalWidgets_updatedWhenProvidersUpdate() 236 priority = 1, in communalWidgets_updatedWhenProvidersUpdate() 241 priority = 2, in communalWidgets_updatedWhenProvidersUpdate() 251 val priority = 1 in addWidget_allocateId_bindWidget_andAddToDb() constant 262 underTest.addWidget(provider, user, priority, kosmos.widgetConfiguratorSuccess) in addWidget_allocateId_bindWidget_andAddToDb() 266 verify(communalWidgetDao).addWidget(id, provider, priority) in addWidget_allocateId_bindWidget_andAddToDb() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | AvailableNetworkInfo.java | 193 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/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/pidf/ |
D | Contact.java | 53 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()
|