Home
last modified time | relevance | path

Searched refs:groupId (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCsipDeviceManager.java56 final int groupId = getBaseGroupId(newDevice.getDevice()); in initCsipDeviceIfNeeded() local
57 if (isValidGroupId(groupId)) { in initCsipDeviceIfNeeded()
58 log("initCsipDeviceIfNeeded: " + newDevice + " (group: " + groupId + ")"); in initCsipDeviceIfNeeded()
60 newDevice.setGroupId(groupId); in initCsipDeviceIfNeeded()
85 final int groupId = newDevice.getGroupId(); in setMemberDeviceIfNeeded() local
86 if (isValidGroupId(groupId)) { in setMemberDeviceIfNeeded()
87 final CachedBluetoothDevice mainDevice = getCachedDevice(groupId); in setMemberDeviceIfNeeded()
101 private boolean isValidGroupId(int groupId) { in isValidGroupId() argument
102 return groupId != BluetoothCsipSetCoordinator.GROUP_ID_INVALID; in isValidGroupId()
112 public CachedBluetoothDevice getCachedDevice(int groupId) { in getCachedDevice() argument
[all …]
DCachedBluetoothDeviceManager.java436 private synchronized boolean shouldPairByCsip(BluetoothDevice device, int groupId) { in shouldPairByCsip() argument
439 boolean groupExists = mCsipDeviceManager.isExistedGroupId(groupId); in shouldPairByCsip()
442 + ", groupExists=" + groupExists + ", groupId=" + groupId); in shouldPairByCsip()
450 private synchronized boolean checkLateBonding(int groupId) { in checkLateBonding() argument
451 CachedBluetoothDevice firstDevice = mCsipDeviceManager.getFirstMemberDevice(groupId); in checkLateBonding()
453 Log.d(TAG, "No first device in group: " + groupId); in checkLateBonding()
495 public synchronized void pairDeviceByCsip(BluetoothDevice device, int groupId) { in pairDeviceByCsip() argument
496 if (!shouldPairByCsip(device, groupId)) { in pairDeviceByCsip()
499 Log.d(TAG, "Bond " + device.getAnonymizedAddress() + " groupId=" + groupId + " by CSIP "); in pairDeviceByCsip()
501 mIsLateBonding = checkLateBonding(groupId); in pairDeviceByCsip()
[all …]
DHapClientProfile.java375 public void selectPresetForGroup(int groupId, int presetIndex) { in selectPresetForGroup() argument
380 mService.selectPresetForGroup(groupId, presetIndex); in selectPresetForGroup()
413 public void switchToNextPresetForGroup(int groupId) { in switchToNextPresetForGroup() argument
418 mService.switchToNextPresetForGroup(groupId); in switchToNextPresetForGroup()
451 public void switchToPreviousPresetForGroup(int groupId) { in switchToPreviousPresetForGroup() argument
457 mService.switchToPreviousPresetForGroup(groupId); in switchToPreviousPresetForGroup()
534 public void setPresetNameForGroup(int groupId, int presetIndex, @NonNull String name) { in setPresetNameForGroup() argument
539 mService.setPresetNameForGroup(groupId, presetIndex, name); in setPresetNameForGroup()
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java49 final int groupId = 541; in testGroupId() local
54 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); in testGroupId()
56 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); in testGroupId()
58 Assert.assertEquals(groupId, item.getGroupId()); in testGroupId()
59 Assert.assertEquals(groupId, item2.getGroupId()); in testGroupId()
60 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId)); in testGroupId()
61 Assert.assertEquals(item2Index, mMenu.findGroupIndex(groupId, item1Index + 1)); in testGroupId()
111 final int groupId = 1; in testCheckable() local
112 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1"); in testCheckable()
113 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2"); in testCheckable()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordLoggerFake.java46 int buzzBeepBlink, InstanceId groupId) { in CallRecord() argument
52 groupInstanceId = groupId; in CallRecord()
55 CallRecord(NotificationRecord r, int position, int buzzBeepBlink, InstanceId groupId) { in CallRecord() argument
61 groupInstanceId = groupId; in CallRecord()
95 @Nullable NotificationRecord old, int position, int buzzBeepBlink, InstanceId groupId) { in prepareToLogNotificationPosted() argument
97 old, position, buzzBeepBlink, groupId); in prepareToLogNotificationPosted()
98 CallRecord callRecord = new CallRecord(r, old, position, buzzBeepBlink, groupId); in prepareToLogNotificationPosted()
122 InstanceId groupId) { in logNotificationAdjusted() argument
123 mCalls.add(new CallRecord(r, position, buzzBeepBlink, groupId)); in logNotificationAdjusted()
DNotificationRecordTest.java114 private final String groupId = "group"; field in NotificationRecordTest
791 false /* lights */, false /* defaultLights */, groupId /* group */); in testNotificationStats()
839 false /* lights */, false /* defaultLights */, groupId /* group */); in testDirectRepliedAddsLifetimeExtensionFlag()
853 false /* lights */, false /* defaultLights */, groupId /* group */); in testSmartRepliedAddsLifetimeExtensionFlag()
865 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment()
883 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_appImportanceUpdatesSentiment()
895 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
912 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_userLocked()
930 false /* lights */, false /* defaultLights */, groupId /* group */); in testProposedImportance()
948 false /* lights */, false /* defaultLights */, groupId /* group */); in testAppImportance_returnsCorrectly()
[all …]
/frameworks/base/core/java/android/view/
DMenu.java176 public MenuItem add(int groupId, int itemId, int order, CharSequence title); in add() argument
193 public MenuItem add(int groupId, int itemId, int order, @StringRes int titleRes); in add() argument
235 SubMenu addSubMenu(final int groupId, final int itemId, int order, final CharSequence title); in addSubMenu() argument
250 SubMenu addSubMenu(int groupId, int itemId, int order, @StringRes int titleRes); in addSubMenu() argument
303 public int addIntentOptions(int groupId, int itemId, int order, in addIntentOptions() argument
321 public void removeGroup(int groupId); in removeGroup() argument
/frameworks/base/core/java/android/widget/
DBaseExpandableListAdapter.java80 public long getCombinedChildId(long groupId, long childId) { in getCombinedChildId() argument
81 return 0x8000000000000000L | ((groupId & 0x7FFFFFFF) << 32) | (childId & 0xFFFFFFFF); in getCombinedChildId()
95 public long getCombinedGroupId(long groupId) { in getCombinedGroupId() argument
96 return (groupId & 0x7FFFFFFF) << 32; in getCombinedGroupId()
DExpandableListAdapter.java194 long getCombinedChildId(long groupId, long childId); in getCombinedChildId() argument
208 long getCombinedGroupId(long groupId); in getCombinedGroupId() argument
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java62 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() argument
63 return add(groupId, itemId, order, mContext.getResources().getString(titleRes)); in add()
66 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() argument
68 groupId, itemId, 0, order, title); in add()
73 public int addIntentOptions(int groupId, int itemId, int order, in addIntentOptions() argument
82 removeGroup(groupId); in addIntentOptions()
92 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions()
113 public SubMenu addSubMenu(int groupId, int itemId, int order, in addSubMenu() argument
119 public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes) { in addSubMenu() argument
207 public void removeGroup(int groupId) { in removeGroup() argument
[all …]
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumeGroupTest.java108 int groupId = aps.getVolumeGroupIdForAudioAttributes(aa); in testGetVolumeGroups() local
109 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups()
118 avgId, groupId); in testGetVolumeGroups()
140 int groupId = aps.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetVolumeGroups() local
141 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups()
148 avgId, groupId); in testGetVolumeGroups()
DAudioManagerTest.java158 int groupId = strategy.getVolumeGroupIdForAudioAttributes(aa); in testGetAndValidateVolumeGroups() local
159 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups()
165 audioVolumeGroup.getId(), groupId); in testGetAndValidateVolumeGroups()
188 int groupId = strategy.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetAndValidateVolumeGroups() local
189 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups()
196 audioVolumeGroup.getId(), groupId); in testGetAndValidateVolumeGroups()
/frameworks/base/services/core/jni/
Dcom_android_server_fingerprint_FingerprintService.cpp133 static jint nativeEnroll(JNIEnv* env, jobject clazz, jbyteArray token, jint groupId, jint timeout) { in nativeEnroll() argument
134 ALOG(LOG_VERBOSE, LOG_TAG, "nativeEnroll(gid=%d, timeout=%d)\n", groupId, timeout); in nativeEnroll()
142 reinterpret_cast<const hw_auth_token_t*>(tokenData), groupId, timeout); in nativeEnroll()
159 static jint nativeAuthenticate(JNIEnv* env, jobject clazz, jlong sessionId, jint groupId) { in nativeAuthenticate() argument
160 ALOG(LOG_VERBOSE, LOG_TAG, "nativeAuthenticate(sid=%" PRId64 ", gid=%d)\n", sessionId, groupId); in nativeAuthenticate()
161 int ret = gContext.device->authenticate(gContext.device, sessionId, groupId); in nativeAuthenticate()
171 static jint nativeRemove(JNIEnv* env, jobject clazz, jint fingerId, jint groupId) { in nativeRemove() argument
172 ALOG(LOG_VERBOSE, LOG_TAG, "nativeRemove(fid=%d, gid=%d)\n", fingerId, groupId); in nativeRemove()
175 finger.gid = groupId; in nativeRemove()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DHidlToAidlCallbackConverter.java41 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) { in onEnrollResult() argument
56 public void onAuthenticated(long deviceId, int fingerId, int groupId, in onAuthenticated() argument
76 public void onRemoved(long deviceId, int fingerId, int groupId, int remaining) { in onRemoved() argument
81 public void onEnumerate(long deviceId, int fingerId, int groupId, int remaining) { in onEnumerate() argument
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java532 int groupId = mInteractivityByGroupId.keyAt(i); in onWakefulnessChangeFinished() local
536 handleLateInteractiveChange(groupId); in onWakefulnessChangeFinished()
546 private void handleEarlyInteractiveChange(int groupId) { in handleEarlyInteractiveChange() argument
548 Interactivity interactivity = mInteractivityByGroupId.get(groupId); in handleEarlyInteractiveChange()
550 Slog.e(TAG, "no Interactivity entry for groupId:" + groupId); in handleEarlyInteractiveChange()
555 mHandler.post(() -> mPolicy.startedWakingUp(groupId, changeReason)); in handleEarlyInteractiveChange()
557 mHandler.post(() -> mPolicy.startedGoingToSleep(groupId, changeReason)); in handleEarlyInteractiveChange()
655 private void handleLateInteractiveChange(int groupId) { in handleLateInteractiveChange() argument
657 Interactivity interactivity = mInteractivityByGroupId.get(groupId); in handleLateInteractiveChange()
659 Slog.e(TAG, "no Interactivity entry for groupId:" + groupId); in handleLateInteractiveChange()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplayMapper.java372 public DisplayGroup getDisplayGroupLocked(int groupId) { in getDisplayGroupLocked() argument
373 return mDisplayGroups.get(groupId); in getDisplayGroupLocked()
844 final int groupId = mDisplayGroups.keyAt(i); in updateLogicalDisplaysLocked() local
846 final boolean wasPreviouslyUpdated = mUpdatedDisplayGroups.indexOfKey(groupId) > -1; in updateLogicalDisplaysLocked()
850 mUpdatedDisplayGroups.delete(groupId); in updateLogicalDisplaysLocked()
852 mDisplayGroupsToUpdate.put(groupId, DISPLAY_GROUP_EVENT_REMOVED); in updateLogicalDisplaysLocked()
856 mDisplayGroupsToUpdate.put(groupId, DISPLAY_GROUP_EVENT_ADDED); in updateLogicalDisplaysLocked()
857 } else if (mUpdatedDisplayGroups.get(groupId) != changeCount) { in updateLogicalDisplaysLocked()
858 mDisplayGroupsToUpdate.put(groupId, DISPLAY_GROUP_EVENT_CHANGED); in updateLogicalDisplaysLocked()
860 mUpdatedDisplayGroups.put(groupId, changeCount); in updateLogicalDisplaysLocked()
[all …]
DDisplayGroup.java35 DisplayGroup(int groupId) { in DisplayGroup() argument
36 mGroupId = groupId; in DisplayGroup()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java350 final int groupId = readIntArg(); in setGroupVolume() local
353 + groupId + ", " + index + ", 0)"); in setGroupVolume()
354 am.setVolumeGroupVolumeIndex(groupId, index, 0); in setGroupVolume()
361 final int groupId = readIntArg(); in adjGroupVolume() local
364 + groupId + ", " + direction + ", 0)"); in adjGroupVolume()
365 am.adjustVolumeGroupVolume(groupId, direction, 0); in adjGroupVolume()
/frameworks/av/media/libaudioclient/include/media/
DVolumeGroupAttributes.h35 VolumeGroupAttributes(volume_group_t groupId, in VolumeGroupAttributes() argument
38 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) { in VolumeGroupAttributes()
/frameworks/av/media/libaudioclient/
DVolumeGroupAttributes.cpp54 aidl.groupId = VALUE_OR_RETURN(legacy2aidl_volume_group_t_int32_t(legacy.getGroupId())); in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx()
60 return VolumeGroupAttributes(VALUE_OR_RETURN(aidl2legacy_int32_t_volume_group_t(aidl.groupId)), in aidl2legacy_AudioAttributesEx_VolumeGroupAttributes()
DAudioVolumeGroup.cpp49 aidl.groupId = VALUE_OR_RETURN(legacy2aidl_volume_group_t_int32_t(legacy.getId())); in legacy2aidl_AudioVolumeGroup()
65 VALUE_OR_RETURN(aidl2legacy_int32_t_volume_group_t(aidl.groupId)), in aidl2legacy_AudioVolumeGroup()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DViewerConfigProtoBuilder.kt49 val groupId = groupIds[log.logGroup] ?: error("missing group id") in <lambda>() constant
57 .setGroupId(groupId) in <lambda>()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprint.java29 public Fingerprint(CharSequence name, int groupId, int fingerId, long deviceId) { in Fingerprint() argument
31 mGroupId = groupId; in Fingerprint()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java165 public long getCombinedGroupId(long groupId) { in getCombinedGroupId() argument
166 return groupId << 16 | 0x0000FFFF; in getCombinedGroupId()
170 public long getCombinedChildId(long groupId, long childId) { in getCombinedChildId() argument
171 return groupId << 16 | childId; in getCombinedChildId()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordLoggerImpl.java42 InstanceId groupId) { in logNotificationAdjusted() argument
46 position, buzzBeepBlink, groupId)); in logNotificationAdjusted()

1234