/frameworks/base/wifi/tests/src/android/net/wifi/p2p/ |
D | WifiP2pGroupTest.java | 49 WifiP2pGroup group = new WifiP2pGroup(); in testSetterGetter() local 51 group.setInterface(INTERFACE); in testSetterGetter() 52 group.setNetworkId(NETWORK_ID); in testSetterGetter() 53 group.setNetworkName(NETWORK_NAME); in testSetterGetter() 54 group.setPassphrase(PASSPHRASE); in testSetterGetter() 55 group.setIsGroupOwner(false); in testSetterGetter() 56 group.setOwner(GROUP_OWNER); in testSetterGetter() 57 group.setFrequency(FREQUENCY); in testSetterGetter() 58 group.addClient(CLIENT_1.deviceAddress); in testSetterGetter() 59 group.addClient(CLIENT_2); in testSetterGetter() [all …]
|
D | WifiP2pGroupListTest.java | 50 WifiP2pGroup group = new WifiP2pGroup(); in createGroup() local 51 group.setNetworkId(networkId); in createGroup() 52 group.setNetworkName(networkName); in createGroup() 53 group.setPassphrase(passphrase); in createGroup() 54 group.setIsGroupOwner(isGo); in createGroup() 55 group.setOwner(goDev); in createGroup() 56 return group; in createGroup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupManager.java | 81 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in isGroupExpanded() local 82 if (group == null) { in isGroupExpanded() 85 return group.expanded; in isGroupExpanded() 89 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in setGroupExpanded() local 90 if (group == null) { in setGroupExpanded() 93 setGroupExpanded(group, expanded); in setGroupExpanded() 96 private void setGroupExpanded(NotificationGroup group, boolean expanded) { in setGroupExpanded() argument 97 group.expanded = expanded; in setGroupExpanded() 98 if (group.summary != null) { in setGroupExpanded() 100 listener.onGroupExpansionChanged(group.summary.getRow(), expanded); in setGroupExpanded() [all …]
|
D | NotificationGroupAlertTransferHelper.java | 132 public void onGroupCreated(NotificationGroup group, String groupKey) { 133 mGroupAlertEntries.put(groupKey, new GroupAlertEntry(group)); 137 public void onGroupRemoved(NotificationGroup group, String groupKey) { 142 public void onGroupSuppressionChanged(NotificationGroup group, boolean suppressed) { 144 if (mHeadsUpManager.isAlerting(group.summary.key)) { 145 handleSuppressedSummaryAlerted(group.summary, mHeadsUpManager); 150 if (group.summary == null) { 154 group.summary.notification)); 158 if (!mHeadsUpManager.isAlerting(group.summary.key)) { 159 alertNotificationWhenPossible(group.summary, mHeadsUpManager); [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pMetricsTest.java | 98 WifiP2pGroup group = new WifiP2pGroup(); in startAndEndGroupEventSucceeds() local 109 mWifiP2pMetrics.startGroupEvent(group); in startAndEndGroupEventSucceeds() 122 mWifiP2pMetrics.startGroupEvent(group); in startAndEndGroupEventSucceeds() 128 mWifiP2pMetrics.startGroupEvent(group); in startAndEndGroupEventSucceeds() 207 WifiP2pGroup group = new WifiP2pGroup(); in updateGroupEvent() local 208 group.setNetworkId(1); in updateGroupEvent() 210 mWifiP2pMetrics.startGroupEvent(group); in updateGroupEvent() 213 group.addClient("11:22:33:44:55:01"); in updateGroupEvent() 214 mWifiP2pMetrics.updateGroupEvent(group); in updateGroupEvent() 215 group.addClient("11:22:33:44:55:02"); in updateGroupEvent() [all …]
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | BatteryStatsParser.java | 55 if (lineMatcher.find() && lineMatcher.group(1) != null && lineMatcher.group(2) != null) { in parseLine() 56 if (lineMatcher.group(1).equals("0")) { in parseLine() 57 return "0," + lineMatcher.group(2) + "\n"; in parseLine() 59 Matcher timeMatcher = TIME_PATTERN.matcher(lineMatcher.group(1)); in parseLine() 61 Long time = getTime(lineMatcher.group(1)); in parseLine() 63 return time + "," + lineMatcher.group(2) + "\n"; in parseLine() 76 private Long getTime(String group) { in getTime() argument 77 if ("0".equals(group)) { in getTime() 80 Matcher timeMatcher = TIME_PATTERN.matcher(group); in getTime() 86 String[] matches = group.split("ms", -1); in getTime() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | VerifierDeviceIdentity.java | 130 final int group = (int) (input & 0x1F); in encodeBase32() local 133 encoded[--index] = alphabet[group]; in encodeBase32() 146 final int group = input[i]; in decodeBase32() local 153 if ('A' <= group && group <= 'Z') { in decodeBase32() 154 value = group - 'A'; in decodeBase32() 155 } else if ('2' <= group && group <= '7') { in decodeBase32() 156 value = group - ('2' - 26); in decodeBase32() 157 } else if (group == SEPARATOR) { in decodeBase32() 159 } else if ('a' <= group && group <= 'z') { in decodeBase32() 161 value = group - 'a'; in decodeBase32() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppTimeLimitController.java | 109 void addUsageGroup(UsageGroup group) { in addUsageGroup() argument 110 final int size = group.mObserved.length; in addUsageGroup() 112 ArrayList<UsageGroup> list = observedMap.get(group.mObserved[i]); in addUsageGroup() 115 observedMap.put(group.mObserved[i], list); in addUsageGroup() 117 list.add(group); in addUsageGroup() 122 void removeUsageGroup(UsageGroup group) { in removeUsageGroup() argument 123 final int size = group.mObserved.length; in removeUsageGroup() 125 final String observed = group.mObserved[i]; in removeUsageGroup() 128 list.remove(group); in removeUsageGroup() 661 final AppUsageLimitGroup group = (AppUsageLimitGroup) usageGroups.get(i); in getAppUsageLimit() local [all …]
|
/frameworks/base/tools/split-select/ |
D | RuleGenerator.cpp | 98 sp<Rule> RuleGenerator::generate(const SortedVector<SplitDescription>& group, size_t index) { in generate() argument 102 if (group[index].config.locale != 0) { in generate() 107 group[index].config.getBcp47Locale(str); in generate() 112 if (group[index].config.sdkVersion != 0) { in generate() 116 sdk->longArgs.add(group[index].config.sdkVersion - 1); in generate() 120 if (group[index].config.density != 0) { in generate() 123 allDensities.add(group[index].config.density); in generate() 125 const size_t groupSize = group.size(); in generate() 127 if (group[i].config.density != group[index].config.density) { in generate() 131 allDensities.add(group[j].config.density); in generate() [all …]
|
/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser_test.cpp | 87 <abi-group label="other" version-code-order="2"> 90 </abi-group> 91 <abi-group label="arm" version-code-order="1"> 94 </abi-group> 97 <screen-density-group label="large" version-code-order="2"> 101 </screen-density-group> 102 <screen-density-group label="alldpi" version-code-order="1"> 109 </screen-density-group> 112 <locale-group label="europe" version-code-order="1"> 117 </locale-group> [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingLayout.java | 217 MessagingGroup group = oldGroups.get(i); in removeGroups() local 218 if (!mGroups.contains(group)) { in removeGroups() 219 List<MessagingMessage> messages = group.getMessages(); in removeGroups() 221 mMessagingLinearLayout.removeTransientView(group); in removeGroups() 222 group.recycle(); in removeGroups() 225 boolean wasShown = group.isShown(); in removeGroups() 226 mMessagingLinearLayout.removeView(group); in removeGroups() 227 if (wasShown && !MessagingLinearLayout.isGone(group)) { in removeGroups() 228 mMessagingLinearLayout.addTransientView(group, 0); in removeGroups() 229 group.removeGroupAnimated(endRunnable); in removeGroups() [all …]
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipService.java | 139 for (SipSessionGroupExt group : mSipGroups.values()) { in getProfiles() 140 if (isCallerRadio || isCallerCreator(group)) { in getProfiles() 141 profiles.add(group.getLocalProfile()); in getProfiles() 178 SipSessionGroupExt group = createGroup(localProfile, in open3() local 181 group.openToReceiveCalls(); in open3() 190 private boolean isCallerCreator(SipSessionGroupExt group) { in isCallerCreator() argument 191 SipProfile profile = group.getLocalProfile(); in isCallerCreator() 195 private boolean isCallerCreatorOrRadio(SipSessionGroupExt group) { in isCallerCreatorOrRadio() argument 196 return (isCallerRadio() || isCallerCreator(group)); in isCallerCreatorOrRadio() 208 SipSessionGroupExt group = mSipGroups.get(localProfileUri); in close() local [all …]
|
/frameworks/base/core/jni/ |
D | android_graphics_drawable_VectorDrawable.cpp | 89 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(groupPtr); in addChild() local 91 group->addChild(child); in addChild() 169 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(groupPtr); in getGroupProperties() local 171 bool success = group->stagingProperties()->copyProperties(groupProperties, length); in getGroupProperties() 178 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(groupPtr); in updateGroupProperties() local 179 group->mutateStagingProperties()->updateProperties(rotate, pivotX, pivotY, scaleX, scaleY, in updateGroupProperties() 202 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(groupPtr); in getRotation() local 203 return group->stagingProperties()->getRotation(); in getRotation() 207 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(groupPtr); in setRotation() local 208 group->mutateStagingProperties()->setRotation(rotation); in setRotation() [all …]
|
D | android_media_AudioVolumeGroups.cpp | 62 JNIEnv *env, jobject *jGroup, const AudioVolumeGroup &group) in convertAudioVolumeGroupsFromNative() argument 73 jName = env->NewStringUTF(group.getName().c_str()); in convertAudioVolumeGroupsFromNative() 74 Id = static_cast<jint>(group.getId()); in convertAudioVolumeGroupsFromNative() 77 jLegacyStreamTypes = env->NewIntArray(group.getStreamTypes().size()); in convertAudioVolumeGroupsFromNative() 82 for (size_t streamIndex = 0; streamIndex < group.getStreamTypes().size(); streamIndex++) { in convertAudioVolumeGroupsFromNative() 83 jint jStream = group.getStreamTypes()[streamIndex]; in convertAudioVolumeGroupsFromNative() 88 numAttributes = group.getAudioAttributes().size(); in convertAudioVolumeGroupsFromNative() 95 auto attributes = group.getAudioAttributes()[j]; in convertAudioVolumeGroupsFromNative() 138 for (const auto &group : groups) { in android_media_AudioSystem_listAudioVolumeGroups() local 139 jStatus = convertAudioVolumeGroupsFromNative(env, &jGroup, group); in android_media_AudioSystem_listAudioVolumeGroups()
|
/frameworks/wilhelm/src/itf/ |
D | I3DGrouping.cpp | 22 static SLresult I3DGrouping_Set3DGroup(SL3DGroupingItf self, SLObjectItf group) in I3DGrouping_Set3DGroup() argument 27 C3DGroup *newGroup = (C3DGroup *) group; in I3DGrouping_Set3DGroup() 84 C3DGroup *group = thiz->mGroup; in I3DGrouping_Get3DGroup() local 85 *pGroup = (NULL != group) ? &group->mObject.mItf : NULL; in I3DGrouping_Get3DGroup() 109 C3DGroup *group = thiz->mGroup; in I3DGrouping_deinit() local 110 if (NULL != group) { in I3DGrouping_deinit() 112 IObject *groupObject = &group->mObject; in I3DGrouping_deinit() 114 assert(group->mMemberMask & mask); in I3DGrouping_deinit() 115 group->mMemberMask &= ~mask; in I3DGrouping_deinit()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pGroup.java | 121 mNetworkName = match.group(1); in WifiP2pGroup() 123 mFrequency = Integer.parseInt(match.group(2)); in WifiP2pGroup() 126 mPassphrase = match.group(4); in WifiP2pGroup() 127 mOwner = new WifiP2pDevice(match.group(5)); in WifiP2pGroup() 128 if (match.group(6) != null) { in WifiP2pGroup() 338 WifiP2pGroup group = new WifiP2pGroup(); 339 group.setNetworkName(in.readString()); 340 group.setOwner((WifiP2pDevice)in.readParcelable(null)); 341 group.setIsGroupOwner(in.readByte() == (byte)1); 344 group.addClient((WifiP2pDevice) in.readParcelable(null)); [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | VectorDrawable_Delegate.java | 272 VNativeObject group = VNativeObject.getDelegate(nodePtr); in nSetName() local 273 group.setName(name); in nSetName() 279 VGroup_Delegate group = VNativeObject.getDelegate(groupPtr); in nGetGroupProperties() local 283 properties.put(VGroup_Delegate.ROTATE_INDEX, group.getRotation()); in nGetGroupProperties() 284 properties.put(VGroup_Delegate.PIVOT_X_INDEX, group.getPivotX()); in nGetGroupProperties() 285 properties.put(VGroup_Delegate.PIVOT_Y_INDEX, group.getPivotY()); in nGetGroupProperties() 286 properties.put(VGroup_Delegate.SCALE_X_INDEX, group.getScaleX()); in nGetGroupProperties() 287 properties.put(VGroup_Delegate.SCALE_Y_INDEX, group.getScaleY()); in nGetGroupProperties() 288 properties.put(VGroup_Delegate.TRANSLATE_X_INDEX, group.getTranslateX()); in nGetGroupProperties() 289 properties.put(VGroup_Delegate.TRANSLATE_Y_INDEX, group.getTranslateY()); in nGetGroupProperties() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallback.java | 272 WifiP2pGroup group = new WifiP2pGroup(); in onGroupStarted() local 273 group.setInterface(groupIfName); in onGroupStarted() 277 group.setNetworkName(NativeUtil.removeEnclosingQuotes(quotedSsid)); in onGroupStarted() 283 group.setFrequency(frequency); in onGroupStarted() 284 group.setIsGroupOwner(isGo); in onGroupStarted() 285 group.setPassphrase(passphrase); in onGroupStarted() 288 group.setNetworkId(WifiP2pGroup.PERSISTENT_NET_ID); in onGroupStarted() 290 group.setNetworkId(WifiP2pGroup.TEMPORARY_NET_ID); in onGroupStarted() 302 group.setOwner(owner); in onGroupStarted() 303 mMonitor.broadcastP2pGroupStarted(mInterface, group); in onGroupStarted() [all …]
|
D | WifiP2pMetrics.java | 375 public void startGroupEvent(WifiP2pGroup group) { in startGroupEvent() argument 376 if (group == null) { in startGroupEvent() 391 if (group.getClientList().size() == 0) { in startGroupEvent() 398 mCurrentGroupEvent.netId = group.getNetworkId(); in startGroupEvent() 400 mCurrentGroupEvent.numConnectedClients = group.getClientList().size(); in startGroupEvent() 401 mCurrentGroupEvent.channelFrequency = group.getFrequency(); in startGroupEvent() 402 mCurrentGroupEvent.groupRole = group.isGroupOwner() in startGroupEvent() 412 public void updateGroupEvent(WifiP2pGroup group) { in updateGroupEvent() argument 413 if (group == null) { in updateGroupEvent() 423 if (mCurrentGroupEvent.netId != group.getNetworkId()) { in updateGroupEvent() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RadioGroupPreCheckedTest.java | 42 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); in testRadioButtonPreChecked() local 44 group.getCheckedRadioButtonId()); in testRadioButtonPreChecked() 59 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); in testRadioButtonChangePreChecked() local 61 group.getCheckedRadioButtonId()); in testRadioButtonChangePreChecked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 335 AppTimeLimitController.UsageGroup group = mController.getAppUsageGroup(UID, OBS_ID1); in testAppUsageObserver_Accumulation() local 337 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation() 344 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation() 356 assertEquals(0, group.getTimeLimitMs() - group.getUsageTimeMs()); in testAppUsageObserver_Accumulation() 370 AppTimeLimitController.UsageGroup group = mController.getSessionUsageGroup(UID, OBS_ID1); in testUsageSessionObserver_Accumulation() local 372 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation() 379 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation() 391 assertEquals(0, group.getTimeLimitMs() - group.getUsageTimeMs()); in testUsageSessionObserver_Accumulation() 405 AppTimeLimitController.UsageGroup group = getAppUsageLimitObserver(UID, OBS_ID1); in testAppUsageLimitObserver_Accumulation() local 407 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageLimitObserver_Accumulation() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | EngineBase.cpp | 136 auto addSupportedAttributesToGroup = [](auto &group, auto &volumeGroup, auto &strategy) { in loadAudioPolicyEngineConfig() argument 137 for (const auto &attr : group.attributesVect) { in loadAudioPolicyEngineConfig() 138 strategy->addAttributes({group.stream, volumeGroup->getId(), attr}); in loadAudioPolicyEngineConfig() 187 for (const auto &group : strategyConfig.attributesGroups) { in loadAudioPolicyEngineConfig() local 189 [&group](const auto &volumeGroup) { in loadAudioPolicyEngineConfig() 190 return group.volumeGroup == volumeGroup.second->getName(); }); in loadAudioPolicyEngineConfig() 196 if (group.stream >= AUDIO_STREAM_PUBLIC_CNT) { in loadAudioPolicyEngineConfig() 202 , __FUNCTION__, group.volumeGroup.c_str()); in loadAudioPolicyEngineConfig() 203 volumeConfig.name = group.volumeGroup; in loadAudioPolicyEngineConfig() 208 if (group.stream != AUDIO_STREAM_DEFAULT) { in loadAudioPolicyEngineConfig() [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumeGroupCallbackHelper.java | 36 void setExpectedVolumeGroup(int group) { in setExpectedVolumeGroup() argument 38 mExpectedVolumeGroupId = group; in setExpectedVolumeGroup() 42 public void onAudioVolumeGroupChanged(int group, int flags) { in onAudioVolumeGroupChanged() argument 43 if (group != mExpectedVolumeGroupId) { in onAudioVolumeGroupChanged() 51 Log.i(TAG, "callback for group: " + group + " already received"); in onAudioVolumeGroupChanged()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioStream.java | 87 public void join(AudioGroup group) { in join() argument 89 if (mGroup == group) { in join() 96 if (group != null) { in join() 97 group.add(this); in join() 98 mGroup = group; in join()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 56 private lateinit var group: NotificationChannelGroup variable in com.android.systemui.statusbar.notification.row.ChannelEditorDialogControllerTest 73 group = NotificationChannelGroup(TEST_GROUP_ID, TEST_GROUP_NAME) in setup() 77 .thenReturn(ParceledListSlice(listOf(group))) in setup() 85 group.channels = listOf(channel1, channel2) in testPrepareDialogForApp_noExtraChannels() 94 group.addChannel(channelDefault) in testPrepareDialogForApp_onlyDefaultChannel() 105 group.channels = listOf() in testPrepareDialogForApp_noProvidedChannels_noException() 116 group.channels = listOf(channel1, channel2, channel3, channel4) in testPrepareDialogForApp_retrievesUpTo4Channels() 127 group.channels = listOf(channel1, channel2) in testApply_demoteChannel() 146 group.channels = listOf(channel1, channel2) in testApply_demoteApp() 174 group.channels = listOf(channel1, channel2) in testSettingsClickListenerNull_noCrash()
|