/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 49 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/core/java/android/view/ |
D | Menu.java | 176 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/com/android/internal/view/menu/ |
D | ActionMenu.java | 61 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() argument 62 return add(groupId, itemId, order, mContext.getResources().getString(titleRes)); in add() 65 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() argument 67 groupId, itemId, 0, order, title); in add() 72 public int addIntentOptions(int groupId, int itemId, int order, in addIntentOptions() argument 81 removeGroup(groupId); in addIntentOptions() 91 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions() 112 public SubMenu addSubMenu(int groupId, int itemId, int order, in addSubMenu() argument 118 public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes) { in addSubMenu() argument 206 public void removeGroup(int groupId) { in removeGroup() argument [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumeGroupTest.java | 78 int groupId = aps.getVolumeGroupIdForAudioAttributes(aa); in testGetVolumeGroups() local 79 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups() 88 avgId, groupId); in testGetVolumeGroups() 110 int groupId = aps.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetVolumeGroups() local 111 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups() 118 avgId, groupId); in testGetVolumeGroups()
|
D | AudioManagerTest.java | 129 int groupId = strategy.getVolumeGroupIdForAudioAttributes(aa); in testGetAndValidateVolumeGroups() local 130 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups() 136 audioVolumeGroup.getId(), groupId); in testGetAndValidateVolumeGroups() 159 int groupId = strategy.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetAndValidateVolumeGroups() local 160 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups() 167 audioVolumeGroup.getId(), groupId); in testGetAndValidateVolumeGroups()
|
/frameworks/base/core/java/android/widget/ |
D | BaseExpandableListAdapter.java | 80 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()
|
D | ExpandableListAdapter.java | 194 long getCombinedChildId(long groupId, long childId); in getCombinedChildId() argument 208 long getCombinedGroupId(long groupId); in getCombinedGroupId() argument
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/volume/ |
D | CarVolumeDialogImpl.java | 118 public void onGroupVolumeChanged(int zoneId, int groupId, int flags) { 127 VolumeItem volumeItem = mAvailableVolumeItems.get(groupId); 128 int value = getSeekbarValue(mCarAudioManager, groupId); 132 item -> item.getGroupId() == groupId); 145 mCurrentlyDisplayingGroupId = groupId; 165 for (int groupId = 0; groupId < volumeGroupCount; groupId++) { 167 mCarAudioManager.getUsagesForVolumeGroupId(groupId)); 170 if (groupId == 0) { 338 private void clearAllAndSetupDefaultCarVolumeLineItem(int groupId) { in clearAllAndSetupDefaultCarVolumeLineItem() argument 340 VolumeItem volumeItem = mAvailableVolumeItems.get(groupId); in clearAllAndSetupDefaultCarVolumeLineItem() [all …]
|
D | CarVolumeItem.java | 85 public void setGroupId(int groupId) { in setGroupId() argument 86 this.mGroupId = groupId; in setGroupId()
|
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/ |
D | FingerprintService.java | 132 ServiceListener listener, int targetUserId, int groupId, long opId, in FingerprintAuthClient() argument 135 super(context, daemon, halDeviceId, token, listener, targetUserId, groupId, opId, in FingerprintAuthClient() 204 final int groupId = userId; // default group for fingerprint enrollment in enroll() local 206 mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, groupId, in enroll() 230 public void authenticate(final IBinder token, final long opId, final int groupId, in authenticate() argument 233 updateActiveGroup(groupId, opPackageName); in authenticate() 237 mCurrentUserId, groupId, opId, restricted, opPackageName, in authenticate() 243 public void prepareForAuthentication(IBinder token, long opId, int groupId, in prepareForAuthentication() argument 247 updateActiveGroup(groupId, opPackageName); in prepareForAuthentication() 252 mCurrentUserId, groupId, opId, restricted, opPackageName, cookie, in prepareForAuthentication() [all …]
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
D | IFingerprintService.aidl | 57 …void enroll(IBinder token, in byte [] cryptoToken, int groupId, IFingerprintServiceReceiver receiv… in enroll() argument 64 void remove(IBinder token, int fingerId, int groupId, int userId, in remove() argument 68 void rename(int fingerId, int groupId, String name); in rename() argument 71 List<Fingerprint> getEnrolledFingerprints(int groupId, String opPackageName); in getEnrolledFingerprints() argument 83 boolean hasEnrolledFingerprints(int groupId, String opPackageName); in hasEnrolledFingerprints() argument
|
D | IFingerprintServiceReceiver.aidl | 25 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining); in onEnrollResult() argument 30 void onRemoved(long deviceId, int fingerId, int groupId, int remaining); in onRemoved() argument 31 void onEnumerated(long deviceId, int fingerId, int groupId, int remaining); in onEnumerated() argument
|
D | FingerprintManager.java | 827 int groupId = fingerprint.getGroupId(); in sendRemovedResult() local 829 if (groupId != reqGroupId) { in sendRemovedResult() 830 Slog.w(TAG, "Group id didn't match: " + groupId + " != " + reqGroupId); in sendRemovedResult() 837 private void sendEnumeratedResult(long deviceId, int fingerId, int groupId) { in sendEnumeratedResult() argument 839 mEnumerateCallback.onEnumerate(new Fingerprint(null, groupId, fingerId, deviceId)); in sendEnumeratedResult() 1017 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) { 1019 new Fingerprint(null, groupId, fingerId, deviceId)).sendToTarget(); 1044 public void onRemoved(long deviceId, int fingerId, int groupId, int remaining) { 1046 new Fingerprint(null, groupId, fingerId, deviceId)).sendToTarget(); 1050 public void onEnumerated(long deviceId, int fingerId, int groupId, int remaining) { [all …]
|
D | Fingerprint.java | 29 public Fingerprint(CharSequence name, int groupId, int fingerId, long deviceId) { in Fingerprint() argument 31 mGroupId = groupId; in Fingerprint()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_fingerprint_FingerprintService.cpp | 133 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionControllerTest.java | 683 ParcelUuid groupId = mSubscriptionControllerUT.createSubscriptionGroup( in testSetSubscriptionGroupWithModifyPermission() local 685 assertNotEquals(null, groupId); in testSetSubscriptionGroupWithModifyPermission() 691 assertNotEquals(groupId, newGroupId); in testSetSubscriptionGroupWithModifyPermission() 730 ParcelUuid groupId = mSubscriptionControllerUT.createSubscriptionGroup( in testCreateSubscriptionGroupWithCarrierPrivilegePermission() local 732 assertNotEquals(null, groupId); in testCreateSubscriptionGroupWithCarrierPrivilegePermission() 752 assertNotEquals(groupId, newGroupId); in testCreateSubscriptionGroupWithCarrierPrivilegePermission() 774 ParcelUuid groupId = mSubscriptionControllerUT.createSubscriptionGroup( in testAddSubscriptionIntoGroupWithCarrierPrivilegePermission() local 781 new int[] {2}, groupId, "packageName1"); in testAddSubscriptionIntoGroupWithCarrierPrivilegePermission() 793 new int[] {2}, groupId, "packageName2"); in testAddSubscriptionIntoGroupWithCarrierPrivilegePermission() 800 mSubscriptionControllerUT.addSubscriptionsIntoGroup(new int[] {2}, groupId, "packageName2"); in testAddSubscriptionIntoGroupWithCarrierPrivilegePermission() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 94 private final String groupId = "group"; field in NotificationRecordTest 592 false /* lights */, false /* defaultLights */, groupId /* group */); in testNotificationStats() 635 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment() 653 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_appImportanceUpdatesSentiment() 665 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate() 682 false /* lights */, false /* defaultLights */, groupId /* group */); in testUserSentiment_userLocked() 700 false /* lights */, false /* defaultLights */, groupId /* group */); in testAppImportance_returnsCorrectly() 814 false /* lights */, false /* defaultLights */, groupId /* group */); in testSmartActions() 830 false /* lights */, false /* defaultLights */, groupId /* group */); in testUpdateNotificationChannel() 846 false /* lights */, false /* defaultLights */, groupId /* group */); in testCalculateImportance_systemImportance() [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioAttributes.h | 32 AudioAttributes(volume_group_t groupId, in AudioAttributes() argument 35 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) {} in AudioAttributes()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeExpandableAdapter.java | 166 public long getCombinedGroupId(long groupId) { in getCombinedGroupId() argument 167 return groupId << 16 | 0x0000FFFF; in getCombinedGroupId() 171 public long getCombinedChildId(long groupId, long childId) { in getCombinedChildId() argument 172 return groupId << 16 | childId; in getCombinedChildId()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 251 public void registerClientGroupId(IMediaRouterClient client, String groupId) { in registerClientGroupId() argument 265 registerClientGroupIdLocked(client, groupId); in registerClientGroupId() 528 private void registerClientGroupIdLocked(IMediaRouterClient client, String groupId) { in registerClientGroupIdLocked() argument 535 if (TextUtils.equals(clientRecord.mGroupId, groupId)) { in registerClientGroupIdLocked() 542 clientRecord.mGroupId = groupId; in registerClientGroupIdLocked() 543 if (groupId != null) { in registerClientGroupIdLocked() 544 userRecord.addToGroup(groupId, clientRecord); in registerClientGroupIdLocked() 545 userRecord.mHandler.obtainMessage(UserHandler.MSG_UPDATE_SELECTED_ROUTE, groupId) in registerClientGroupIdLocked() 830 public void addToGroup(String groupId, ClientRecord clientRecord) { in addToGroup() argument 831 ClientGroup group = mClientGroupMap.get(groupId); in addToGroup() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | EnumerateClient.java | 35 BiometricServiceBase.ServiceListener listener, int groupId, int userId, in EnumerateClient() argument 37 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in EnumerateClient()
|
D | BiometricServiceBase.java | 221 IBinder token, ServiceListener listener, int targetUserId, int groupId, long opId, in AuthenticationClientImpl() argument 224 groupId, opId, restricted, owner, cookie, requireConfirmation); in AuthenticationClientImpl() 283 IBinder token, ServiceListener listener, int userId, int groupId, in EnrollClientImpl() argument 287 userId, groupId, cryptoToken, restricted, owner, getBiometricUtils(), in EnrollClientImpl() 303 ServiceListener listener, int templateId, int groupId, int userId, in InternalRemovalClient() argument 305 … super(context, getConstants(), daemon, halDeviceId, token, listener, templateId, groupId, in InternalRemovalClient() 329 ServiceListener listener, int groupId, int userId, boolean restricted, in InternalEnumerateClient() argument 332 super(context, getConstants(), daemon, halDeviceId, token, listener, groupId, userId, in InternalEnumerateClient() 474 int authenticate(long operationId, int groupId) throws RemoteException; in authenticate() argument 476 int remove(int groupId, int biometricId) throws RemoteException; in remove() argument [all …]
|
D | RemovalClient.java | 38 BiometricServiceBase.ServiceListener listener, int biometricId, int groupId, int userId, in RemovalClient() argument 40 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in RemovalClient()
|
/frameworks/base/core/java/android/provider/ |
D | Contacts.java | 481 long groupId = tryGetMyContactsGroupId(resolver); in addToMyContactsGroup() local 482 if (groupId == 0) { in addToMyContactsGroup() 486 return addToGroup(resolver, personId, groupId); in addToMyContactsGroup() 501 long groupId = 0; in addToGroup() local 507 groupId = groupsCursor.getLong(0); in addToGroup() 514 if (groupId == 0) { in addToGroup() 518 return addToGroup(resolver, personId, groupId); in addToGroup() 531 public static Uri addToGroup(ContentResolver resolver, long personId, long groupId) { in addToGroup() argument 534 values.put(GroupMembership.GROUP_ID, groupId); in addToGroup()
|
/frameworks/base/core/jni/ |
D | android_media_AudioProductStrategies.cpp | 91 int groupId = attr.getGroupId(); in convertAudioProductStrategiesFromNative() local 94 [groupId, streamType](const auto &iter) { in convertAudioProductStrategiesFromNative() 96 return frontAttr.getGroupId() == groupId && frontAttr.getStreamType() == streamType; in convertAudioProductStrategiesFromNative()
|