Home
last modified time | relevance | path

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

1234

/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.java45 public CarModeApp(int priority, @NonNull String packageName) { in CarModeApp() argument
46 mPriority = priority; in CarModeApp()
60 public void setPriority(int priority) { in setPriority() argument
61 mPriority = priority; in setPriority()
102 public void handleEnterCarMode(@IntRange(from = 0) int priority, @NonNull String packageName) { in handleEnterCarMode()
103 if (mCarModeApps.stream().anyMatch(c -> c.getPriority() == priority)) { in handleEnterCarMode()
105 priority, getCarModePriorityString()); in handleEnterCarMode()
115 Log.i(this, "handleEnterCarMode: packageName=%s, priority=%d", packageName, priority); in handleEnterCarMode()
117 + priority); in handleEnterCarMode()
118 mCarModeApps.add(new CarModeApp(priority, packageName)); in handleEnterCarMode()
[all …]
DSystemStateHelper.java50 void onCarModeChanged(int priority, String packageName, boolean isCarMode); in onCarModeChanged() argument
61 int priority = intent.getIntExtra(UiModeManager.EXTRA_PRIORITY,
66 priority, callingPackage);
67 onEnterCarMode(priority, callingPackage);
69 int priority = intent.getIntExtra(UiModeManager.EXTRA_PRIORITY,
74 priority, callingPackage);
75 onExitCarMode(priority, callingPackage);
194 private void onEnterCarMode(int priority, String packageName) { in onEnterCarMode() argument
198 listener.onCarModeChanged(priority, packageName, true /* isCarMode */); in onEnterCarMode()
202 private void onExitCarMode(int priority, String packageName) { in onExitCarMode() argument
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DPrioritizedFutureTask.java32 final int priority; field in PrioritizedFutureTask
34 public PrioritizedFutureTask(Callable<T> callable, int priority) { in PrioritizedFutureTask() argument
37 this.priority = priority; in PrioritizedFutureTask()
42 if (this.priority != other.priority) { in compareTo()
43 return this.priority < other.priority ? -1 : 1; in compareTo()
/packages/services/Car/service/src/com/android/car/
DCarBluetoothUserService.java358 int priority; in getProfilePriority() local
369 priority = mBluetoothA2dpSink.getPriority(device); in getProfilePriority()
372 priority = mBluetoothHeadsetClient.getPriority(device); in getProfilePriority()
375 priority = mBluetoothMapClient.getPriority(device); in getProfilePriority()
378 priority = mBluetoothPbapClient.getPriority(device); in getProfilePriority()
382 priority = BluetoothProfile.PRIORITY_UNDEFINED; in getProfilePriority()
389 + device.getAddress() + ") = " + priority); in getProfilePriority()
390 return priority; in getProfilePriority()
401 public void setProfilePriority(int profile, BluetoothDevice device, int priority) { in setProfilePriority() argument
408 + device.getAddress() + ") to " + priority); in setProfilePriority()
[all …]
DBluetoothProfileDeviceManager.java523 public void setDeviceConnectionPriority(BluetoothDevice device, int priority) { in setDeviceConnectionPriority() argument
525 if (device == null || priority < 0 || priority > mPrioritizedDevices.size() in setDeviceConnectionPriority()
526 || getDeviceConnectionPriority(device) == priority) return; in setDeviceConnectionPriority()
529 if (priority > mPrioritizedDevices.size()) priority = mPrioritizedDevices.size(); in setDeviceConnectionPriority()
531 logd("Set connection priority of " + device + " to " + priority); in setDeviceConnectionPriority()
532 mPrioritizedDevices.add(priority, device); in setDeviceConnectionPriority()
590 private boolean setProfilePriority(BluetoothDevice device, int priority) { in setProfilePriority() argument
591 logd("Set " + device + " stack priority to " + Utils.getProfilePriorityName(priority)); in setProfilePriority()
593 mBluetoothUserProxies.setProfilePriority(mProfileId, device, priority); in setProfilePriority()
DUtils.java118 static String getProfilePriorityName(int priority) { in getProfilePriorityName() argument
120 if (priority >= BluetoothProfile.PRIORITY_AUTO_CONNECT) { in getProfilePriorityName()
122 } else if (priority >= BluetoothProfile.PRIORITY_ON) { in getProfilePriorityName()
124 } else if (priority >= BluetoothProfile.PRIORITY_OFF) { in getProfilePriorityName()
129 return "(" + priority + ") " + name; in getProfilePriorityName()
/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/apps/PermissionController/src/com/android/packageinstaller/role/model/
DHomeRoleBehavior.java74 int priority = Integer.MIN_VALUE; in getFallbackHolder() local
85 if (resolveInfo.priority > priority) { in getFallbackHolder()
87 priority = resolveInfo.priority; in getFallbackHolder()
88 } else if (resolveInfo.priority == priority) { in getFallbackHolder()
/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/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/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/WallpaperPicker2/src/com/android/wallpaper/model/
DWallpaperCategory.java37 int priority) { in WallpaperCategory() argument
38 this(title, collectionId, 0, wallpapers, priority); in WallpaperCategory()
42 List<WallpaperInfo> wallpapers, int priority) { in WallpaperCategory() argument
43 super(title, collectionId, priority); in WallpaperCategory()
DImageCategory.java43 public ImageCategory(String title, String collectionId, int priority) { in ImageCategory() argument
44 super(title, collectionId, priority); in ImageCategory()
48 public ImageCategory(String title, String collectionId, int priority, int overlayIconResId) { in ImageCategory() argument
49 super(title, collectionId, priority); in ImageCategory()
DThirdPartyAppCategory.java40 int priority) { in ThirdPartyAppCategory() argument
44 priority); in ThirdPartyAppCategory() local
51 public static List<ThirdPartyAppCategory> getAll(Context context, int priority, in getAll() argument
91 priority); in getAll()
/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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestDialerActivity.java93 mPriorityView = findViewById(R.id.priority); in onCreate()
180 int priority; in enableCarMode() local
182 priority = Integer.parseInt(mPriorityView.getText().toString()); in enableCarMode()
189 uiModeManager.enableCarMode(priority, 0); in enableCarMode()
190 Toast.makeText(this, "Enabling car mode with priority " + priority, in enableCarMode()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java88 int notificationId, boolean doPopup, int priority) { in makeBasicNotification() argument
91 doPopup, priority, false); in makeBasicNotification()
97 long eventId, int notificationId, boolean doPopup, int priority, in buildBasicNotification() argument
114 notificationBuilder.setPriority(priority); in buildBasicNotification()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Data.java289 public final int priority; field in Cea708Data.CaptionWindow
304 int priority, in CaptionWindow() argument
317 this.priority = priority; in CaptionWindow()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPriorityThreadFactoryTest.java40 private void priorityTest(int priority) throws InterruptedException { in priorityTest() argument
41 ThreadFactory factory = new PriorityThreadFactory(priority); in priorityTest()
45 assertEquals(priority, r.getPriority()); in priorityTest()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java604 public String priority = null; field in BluetoothMapContentObserver.Event
651 String subject, String senderName, String priority) { in Event() argument
663 this.priority = priority; in Event()
668 String subject, String senderName, String priority, long conversationID, in Event() argument
687 this.priority = priority; in Event()
691 Event(String eventType, String uci, TYPE msgType, String name, String priority, in Event() argument
700 this.priority = priority; in Event()
771 if (priority != null) { in encode()
772 xmlEvtReport.attribute("", "priority", priority); in encode()
1131 + evt.subject + " " + evt.senderName + " " + evt.priority); in sendEvent()
[all …]
DBluetoothMapConvoContactElement.java74 int priority, String btUid) { in BluetoothMapConvoContactElement() argument
83 this.mPriority = priority; in BluetoothMapConvoContactElement()
125 public void setPriority(int priority) { in setPriority() argument
126 this.mPriority = priority; in setPriority()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothProfileDeviceManagerTest.java287 int priority = (int) arguments[2]; in captureDevicePriority()
288 mockDevicePriority(device, priority); in captureDevicePriority()
295 private void mockDevicePriority(BluetoothDevice device, int priority) throws Exception { in mockDevicePriority() argument
296 when(mMockProxies.getProfilePriority(mProfileId, device)).thenReturn(priority); in mockDevicePriority()
606 int priority = mProfileDeviceManager.getDeviceConnectionPriority(devices.get(i)); in testGetConnectionPriority_prioritiesReturned() local
607 Assert.assertEquals(i, priority); in testGetConnectionPriority_prioritiesReturned()
625 int priority = mProfileDeviceManager.getDeviceConnectionPriority(deviceNotPresent); in testGetConnectionPriorityDeviceNotInList_negativeOneReturned() local
626 Assert.assertEquals(-1, priority); in testGetConnectionPriorityDeviceNotInList_negativeOneReturned()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationEntry.java196 n.priority = Notification.PRIORITY_MAX; in calculateInitialImportance()
199 n.priority = clamp(n.priority, Notification.PRIORITY_MIN, in calculateInitialImportance()
201 switch (n.priority) { in calculateInitialImportance()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java174 private static BitwiseOutputStream createBearerDataStream(int messageId, int priority, in createBearerDataStream() argument
185 if (priority != -1) { in createBearerDataStream()
188 bos.write(2, (priority & 0x03)); in createBearerDataStream()
232 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage() argument
257 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); in createCmasSmsMessage()
282 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument
284 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); in createBroadcastSmsMessage()

1234