Home
last modified time | relevance | path

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

12345678910

/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/
DDvrScheduleManagerTest.java55 long priority = 0; in testGetConflictingSchedules_noConflict() local
61 ++channelId, ++priority, 0L, 200L)); in testGetConflictingSchedules_noConflict()
66 ++channelId, ++priority, 0L, 100L)); in testGetConflictingSchedules_noConflict()
71 ++channelId, ++priority, 100L, 200L)); in testGetConflictingSchedules_noConflict()
76 ++channelId, ++priority, 0L, 100L)); in testGetConflictingSchedules_noConflict()
81 ++channelId, ++priority, 100L, 200L)); in testGetConflictingSchedules_noConflict()
87 long priority = 0; in testGetConflictingSchedules_noTuner() local
94 ++channelId, ++priority, 0L, 200L)); in testGetConflictingSchedules_noTuner()
99 ++channelId, ++priority, 0L, 100L)); in testGetConflictingSchedules_noTuner()
105 long priority = 0; in testGetConflictingSchedules_conflict() local
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCarModeTracker.java52 public CarModeApp(int priority, @NonNull String packageName) { in CarModeApp() argument
53 this(false, priority, packageName); in CarModeApp()
56 … private CarModeApp(boolean automotiveProjection, int priority, @NonNull String packageName) { in CarModeApp() argument
58 mPriority = priority; in CarModeApp()
112 public void handleEnterCarMode(@IntRange(from = 0) int priority, @NonNull String packageName) { in handleEnterCarMode()
113 if (mCarModeApps.stream().anyMatch(c -> c.getPriority() == priority)) { in handleEnterCarMode()
115 priority, getCarModePriorityString()); in handleEnterCarMode()
125 Log.i(this, "handleEnterCarMode: packageName=%s, priority=%d", packageName, priority); in handleEnterCarMode()
127 + priority); in handleEnterCarMode()
128 mCarModeApps.add(new CarModeApp(priority, packageName)); in handleEnterCarMode()
[all …]
DSystemStateHelper.java52 void onCarModeChanged(int priority, String packageName, boolean isCarMode); in onCarModeChanged() argument
83 int priority = intent.getIntExtra(UiModeManager.EXTRA_PRIORITY,
89 priority, callingPackage);
90 onEnterCarMode(priority, callingPackage);
92 int priority = intent.getIntExtra(UiModeManager.EXTRA_PRIORITY,
98 priority, callingPackage);
99 onExitCarMode(priority, callingPackage);
256 private void onEnterCarMode(int priority, String packageName) { in onEnterCarMode() argument
260 listener.onCarModeChanged(priority, packageName, true /* isCarMode */); in onEnterCarMode()
264 private void onExitCarMode(int priority, String packageName) { in onExitCarMode() argument
[all …]
/packages/services/Car/service/src/com/android/car/evs/
DCarEvsService.java302 public @CarEvsError int execute(int priority, int destination) { in execute() argument
307 return execute(priority, destination, serviceType, null, null); in execute()
310 public @CarEvsError int execute(int priority, int destination, int service) { in execute() argument
311 return execute(priority, destination, service, null, null); in execute()
314 public @CarEvsError int execute(int priority, int destination, in execute() argument
320 return execute(priority, destination, serviceType, null, callback); in execute()
323 public @CarEvsError int execute(int priority, int destination, int service, IBinder token, in execute() argument
346 result = handleTransitionToInactiveLocked(priority, service, callback); in execute()
350 result = handleTransitionToRequestedLocked(priority, service); in execute()
354 result = handleTransitionToActiveLocked(priority, service, token, callback); in execute()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_thread.h162 std::function<bool(thread_t* thread, int priority)> body{
163 [this](thread_t* thread, int priority) { return return_value; }};
164 bool operator()(thread_t* thread, int priority) { in operator()
165 return body(thread, priority); in operator()
175 std::function<bool(thread_t* thread, int priority)> body{
176 [this](thread_t* thread, int priority) { return return_value; }};
177 bool operator()(thread_t* thread, int priority) { in operator()
178 return body(thread, priority); in operator()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java91 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority() local
92 if (priority == null) { in getPhotoPriority()
93 priority = resolvePhotoPriority(accountType); in getPhotoPriority()
94 mPhotoPriorities.put(accountType, priority); in getPhotoPriority()
96 return priority; in getPhotoPriority()
143 int priority = DEFAULT_PRIORITY; in loadPhotoPriorityFromXml() local
164 priority = XmlUtils.convertValueToInt(parser.getAttributeValue(i), in loadPhotoPriorityFromXml()
178 return priority; in loadPhotoPriorityFromXml()
/packages/modules/Bluetooth/system/gd/common/
Dmulti_priority_queue.h52 void push(const T& t, int priority = 0) {
53 queues_[priority].push(t);
54 next_to_dequeue_.push(priority);
58 void push(T&& t, int priority = 0) {
59 queues_[priority].push(std::forward<T>(t));
60 next_to_dequeue_.push(priority);
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DWallpaperCategory.java47 int priority) { in WallpaperCategory() argument
48 this(title, collectionId, 0, wallpapers, priority); in WallpaperCategory()
52 List<WallpaperInfo> wallpapers, int priority) { in WallpaperCategory() argument
53 super(title, collectionId, priority); in WallpaperCategory()
60 List<WallpaperInfo> wallpapers, int priority) { in WallpaperCategory() argument
61 super(title, collectionId, priority); in WallpaperCategory()
169 public Builder setPriorityIfEmpty(int priority) { in setPriorityIfEmpty() argument
171 mPriority = priority; in setPriorityIfEmpty()
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java129 for (int priority = CONTEXT_HIGHEST_PRIORITY; in CarVolume()
130 priority < contextVolumePriority.length; priority++) { in CarVolume()
131 mVolumePriorityByAudioContext.append(contextVolumePriority[priority], priority); in CarVolume()
212 int priority = contextPriorities.get(context, CONTEXT_NOT_PRIORITIZED); in findActiveContextWithHighestPriority() local
213 if (priority == CONTEXT_NOT_PRIORITIZED) { in findActiveContextWithHighestPriority()
217 if (priority < currentPriority) { in findActiveContextWithHighestPriority()
219 currentPriority = priority; in findActiveContextWithHighestPriority()
333 int priority = mVolumePriorityByAudioContext.get(contextId); in dumpSortedContexts() local
335 mCarAudioContext.toString(contextId), contextId, priority); in dumpSortedContexts()
/packages/services/Car/tests/carservice_unit_test/src/android/car/os/
DThreadPolicyWithPriorityUnitTest.java58 int priority = ThreadPolicyWithPriority.PRIORITY_MIN; in testThreadPolicyWithPriorityInvalidPolicy() local
61 () -> new ThreadPolicyWithPriority(policy, priority)); in testThreadPolicyWithPriorityInvalidPolicy()
70 int priority = ThreadPolicyWithPriority.PRIORITY_MIN - 1; in testThreadPolicyWithPriorityPriorityTooSmall() local
73 () -> new ThreadPolicyWithPriority(policy, priority)); in testThreadPolicyWithPriorityPriorityTooSmall()
82 int priority = ThreadPolicyWithPriority.PRIORITY_MAX + 1; in testThreadPolicyWithPriorityPriorityTooLarge() local
85 () -> new ThreadPolicyWithPriority(policy, priority)); in testThreadPolicyWithPriorityPriorityTooLarge()
/packages/services/Car/cpp/watchdog/server/src/
DThreadPriorityController.cpp66 int priority) { in setThreadPriority() argument
83 priority = 0; in setThreadPriority()
84 } else if (priority < PRIORITY_MIN || priority > PRIORITY_MAX) { in setThreadPriority()
88 priority, policy, PRIORITY_MIN, PRIORITY_MAX)); in setThreadPriority()
91 sched_param param{.sched_priority = priority}; in setThreadPriority()
125 result->priority = param.sched_priority; in getThreadPriority()
/packages/services/Car/car-lib/src/android/car/os/
DThreadPolicyWithPriority.java112 @SchedPolicy int policy, @IntRange(from = 0, to = 99) int priority) { in ThreadPolicyWithPriority()
118 priority = 0; in ThreadPolicyWithPriority()
119 } else if (priority < PRIORITY_MIN || priority > PRIORITY_MAX) { in ThreadPolicyWithPriority()
123 mPriority = priority; in ThreadPolicyWithPriority()
237 int priority = in.readInt(); in ThreadPolicyWithPriority() local
242 this.mPriority = priority; in ThreadPolicyWithPriority()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DPriorityLock.java33 public synchronized void lock(int priority) throws InterruptedException { in lock() argument
35 mPriorities.add(priority); in lock()
38 while (mLocked || priority < mPriorities.get(mPriorities.size() - 1)) { in lock()
42 mPriorities.remove((Integer) priority); in lock()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DCompanionManager.java357 public int getGattConnParameters(String address, int type, int priority) { in getGattConnParameters() argument
362 parameter = getGattConnParameterPrimary(type, priority); in getGattConnParameters()
365 parameter = getGattConnParameterSecondary(type, priority); in getGattConnParameters()
368 parameter = getGattConnParameterDefault(type, priority); in getGattConnParameters()
374 private int getGattConnParameterPrimary(int type, int priority) { in getGattConnParameterPrimary() argument
375 switch (priority) { in getGattConnParameterPrimary()
384 private int getGattConnParameterSecondary(int type, int priority) { in getGattConnParameterSecondary() argument
385 switch (priority) { in getGattConnParameterSecondary()
/packages/modules/Bluetooth/system/osi/src/
Dthread.cc149 bool thread_set_priority(thread_t* thread, int priority) { in thread_set_priority() argument
152 const int rc = setpriority(PRIO_PROCESS, thread->tid, priority); in thread_set_priority()
155 __func__, priority, thread->tid, rc); in thread_set_priority()
162 bool thread_set_rt_priority(thread_t* thread, int priority) { in thread_set_rt_priority() argument
166 rt_params.sched_priority = priority; in thread_set_rt_priority()
171 __func__, priority, thread->tid, strerror(errno)); in thread_set_rt_priority()
/packages/services/BuiltInPrintService/jni/lib/
Dplugin_db.c35 wprint_priority_t priority; member
64 _plugin[index].priority = plugin->priority; in plugin_add()
112 use = ((match == NULL) || (_plugin[i].priority < match->priority)); in plugin_search()
/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dthread.cc35 Thread::Thread(const std::string& name, const Priority priority) in Thread() argument
36 : name_(name), reactor_(), running_thread_(&Thread::run, this, priority) {} in Thread()
38 void Thread::run(Priority priority) { in run() argument
39 if (priority == Priority::REAL_TIME) { in run()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMessagesFilterTest.java50 byte priority = 5; in setPriority()
51 filter.setPriority(priority); in setPriority()
53 assertThat(filter.priority).isEqualTo(priority); in setPriority()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DHomeRoleBehavior.java82 int priority = Integer.MIN_VALUE; in getFallbackHolder() local
93 if (resolveInfo.priority > priority) { in getFallbackHolder()
95 priority = resolveInfo.priority; in getFallbackHolder()
96 } else if (resolveInfo.priority == priority) { in getFallbackHolder()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestScheduler.java151 LocalRequest(int type, int priority) { in LocalRequest() argument
154 mPriority = priority; in LocalRequest()
224 private IkeLocalRequest(int type, long remoteIkeSpi, int priority) { in IkeLocalRequest() argument
225 super(type, priority); in IkeLocalRequest()
255 int priority) { in ChildLocalRequest() argument
256 super(type, priority); in ChildLocalRequest()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidlUtils.cpp85 aidl_hal::ExecutionPreference preference, aidl_hal::Priority priority, int64_t halDeadline, in prepareModelBase() argument
112 if (!aidl_hal::utils::valid(priority)) { in prepareModelBase()
114 "invalid priority passed to prepareModelBase: " + toString(priority); in prepareModelBase()
139 [driver, preference, userId, priority, callback](aidl_hal::Model&& model) { in prepareModelBase()
142 preference, userId, priority); in prepareModelBase()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeDialerActivity.java72 mPriorityView = findViewById(R.id.priority); in onCreate()
122 int priority; in enableCarMode() local
124 priority = Integer.parseInt(mPriorityView.getText().toString()); in enableCarMode()
131 uiModeManager.enableCarMode(priority, 0); in enableCarMode()
132 Toast.makeText(this, "Enabling car mode with priority " + priority, in enableCarMode()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DExecutors.java71 public static Looper createAndStartNewLooper(String name, int priority) { in createAndStartNewLooper() argument
72 HandlerThread thread = new HandlerThread(name, priority); in createAndStartNewLooper()
104 public SimpleThreadFactory(String namePrefix, int priority) { in SimpleThreadFactory() argument
106 mPriority = priority; in SimpleThreadFactory()
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DRecordingTestUtils.java42 long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithPriorityAndPeriod() argument
45 .setPriority(priority) in createTestRecordingWithPriorityAndPeriod()
50 long id, long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithIdAndPriorityAndPeriod() argument
54 .setPriority(priority) in createTestRecordingWithIdAndPriorityAndPeriod()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.kt66 priority: Int in makeBasicNotification()
78 priority, false in makeBasicNotification()
93 priority: Int, in buildBasicNotification()
113 notificationBuilder.setPriority(priority) in buildBasicNotification()

12345678910