Home
last modified time | relevance | path

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

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DMetadata.java62 void setProfilePriority(int profile, int priority) { in setProfilePriority() argument
65 profilePriorities.a2dp_priority = priority; in setProfilePriority()
68 profilePriorities.a2dp_sink_priority = priority; in setProfilePriority()
71 profilePriorities.hfp_priority = priority; in setProfilePriority()
74 profilePriorities.hfp_client_priority = priority; in setProfilePriority()
77 profilePriorities.hid_host_priority = priority; in setProfilePriority()
80 profilePriorities.pan_priority = priority; in setProfilePriority()
83 profilePriorities.pbap_priority = priority; in setProfilePriority()
86 profilePriorities.pbap_client_priority = priority; in setProfilePriority()
89 profilePriorities.map_priority = priority; in setProfilePriority()
[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.java369 int priority; in getProfilePriority() local
378 priority = mBluetoothA2dpSink.getPriority(device); in getProfilePriority()
381 priority = mBluetoothHeadsetClient.getPriority(device); in getProfilePriority()
384 priority = mBluetoothMapClient.getPriority(device); in getProfilePriority()
387 priority = mBluetoothPbapClient.getPriority(device); in getProfilePriority()
391 priority = BluetoothProfile.PRIORITY_UNDEFINED; in getProfilePriority()
396 + device.getAddress() + ") = " + priority); in getProfilePriority()
397 return priority; in getProfilePriority()
407 public void setProfilePriority(int profile, BluetoothDevice device, int priority) { in setProfilePriority() argument
414 + device.getAddress() + ") to " + priority); in setProfilePriority()
[all …]
DBluetoothProfileDeviceManager.java508 public synchronized void setDeviceConnectionPriority(BluetoothDevice device, int priority) { in setDeviceConnectionPriority() argument
509 if (device == null || priority < 0 || priority > mPrioritizedDevices.size() in setDeviceConnectionPriority()
510 || getDeviceConnectionPriority(device) == priority) return; in setDeviceConnectionPriority()
513 if (priority > mPrioritizedDevices.size()) priority = mPrioritizedDevices.size(); in setDeviceConnectionPriority()
515 logd("Set connection priority of " + device + " to " + priority); in setDeviceConnectionPriority()
516 mPrioritizedDevices.add(priority, device); in setDeviceConnectionPriority()
573 private boolean setProfilePriority(BluetoothDevice device, int priority) { in setProfilePriority() argument
574 logd("Set " + device + " stack priority to " + Utils.getProfilePriorityName(priority)); in setProfilePriority()
576 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/apps/UnifiedEmail/src/com/android/mail/providers/
DParticipantInfo.java33 public int priority; field in ParticipantInfo
38 public ParticipantInfo(String name, String email, int priority, boolean readConversation) { in ParticipantInfo() argument
41 this.priority = priority; in ParticipantInfo()
55 return Objects.hashCode(name, email, priority, readConversation); in hashCode()
73 priority = in.readInt(); in ParticipantInfo()
86 out.writeInt(priority); in writeToParcel()
95 ", priority = " + priority + in toString()
DConversation.java81 public int priority; field in Conversation
185 dest.writeInt(priority); in writeToParcel()
211 priority = in.readInt(); in Conversation()
287 priority = cursor.getInt(UIProvider.CONVERSATION_PRIORITY_COLUMN); in Conversation()
326 priority = other.priority; in Conversation()
350 int sendingState, int priority, boolean read, in Conversation() argument
365 this.priority = priority; in Conversation()
443 public Builder setPriority(int priority) { in setPriority() argument
444 mPriority = priority; in setPriority()
636 priority = (Integer) val; in applyCachedValues()
[all …]
/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/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/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java359 int priority = getPriority(device); in okToConnect() local
366 } else if (priority != BluetoothProfile.PRIORITY_UNDEFINED in okToConnect()
367 && priority != BluetoothProfile.PRIORITY_ON in okToConnect()
368 && priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) { in okToConnect()
370 Log.w(TAG, "okToConnect: return false, priority=" + priority); in okToConnect()
452 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
455 Log.d(TAG, "Saved priority " + device + " = " + priority); in setPriority()
458 .setProfilePriority(device, BluetoothProfile.HEARING_AID, priority); in setPriority()
885 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
890 return service.setPriority(device, priority); in setPriority()
/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/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java376 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
381 return service.setPriority(device, priority); in setPriority()
521 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
527 Log.d(TAG, "Saved priority " + device + " = " + priority); in setPriority()
530 .setProfilePriority(device, BluetoothProfile.HID_HOST, priority); in setPriority()
816 int priority = getPriority(device); in okToConnect() local
823 } else if (priority != BluetoothProfile.PRIORITY_UNDEFINED in okToConnect()
824 && priority != BluetoothProfile.PRIORITY_ON in okToConnect()
825 && priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) { in okToConnect()
827 Log.w(TAG, "okToConnect: return false, priority=" + priority); in okToConnect()
/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/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java354 int priority = getPriority(device); in okToConnect() local
361 } else if (priority != BluetoothProfile.PRIORITY_UNDEFINED in okToConnect()
362 && priority != BluetoothProfile.PRIORITY_ON in okToConnect()
363 && priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) { in okToConnect()
365 Log.w(TAG, "okToConnect: return false, priority=" + priority); in okToConnect()
623 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
626 Log.d(TAG, "Saved priority " + device + " = " + priority); in setPriority()
629 .setProfilePriority(device, BluetoothProfile.A2DP, priority); in setPriority()
1221 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
1226 return service.setPriority(device, priority); in setPriority()
/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/pbapclient/
DPbapClientService.java256 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
261 return service.setPriority(device, priority); in setPriority()
372 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
378 Log.d(TAG, "Saved priority " + device + " = " + priority); in setPriority()
381 .setProfilePriority(device, BluetoothProfile.PBAP_CLIENT, priority); in setPriority()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java174 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
179 return service.setPriority(device, priority); in setPriority()
321 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() argument
324 Log.d(TAG, "Saved priority " + device + " = " + priority); in setPriority()
327 .setProfilePriority(device, BluetoothProfile.A2DP_SINK, priority); in setPriority()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java602 public String priority = null; field in BluetoothMapContentObserver.Event
649 String subject, String senderName, String priority) { in Event() argument
661 this.priority = priority; in Event()
666 String subject, String senderName, String priority, long conversationID, in Event() argument
685 this.priority = priority; in Event()
689 Event(String eventType, String uci, TYPE msgType, String name, String priority, in Event() argument
698 this.priority = priority; in Event()
769 if (priority != null) { in encode()
770 xmlEvtReport.attribute("", "priority", priority); in encode()
1129 + evt.subject + " " + evt.senderName + " " + evt.priority); in sendEvent()
[all …]
/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()

12345