/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipSessionTrackerTest.java | 102 DialogAttributes attr = new DialogAttributes(); in testEarlyDialogToConfirmed() local 104 SipMessage inviteRequest = generateSipRequest(SipMessageUtils.INVITE_SIP_METHOD, attr); in testEarlyDialogToConfirmed() 105 filterMessage(inviteRequest, attr); in testEarlyDialogToConfirmed() 107 verifyContainsCallIds(mTrackerUT.getEarlyDialogs(), attr); in testEarlyDialogToConfirmed() local 109 SipMessage inviteTrying = generateSipResponse("100", "Trying", attr); in testEarlyDialogToConfirmed() 110 filterMessage(inviteTrying, attr); in testEarlyDialogToConfirmed() 112 verifyContainsCallIds(mTrackerUT.getEarlyDialogs(), attr); in testEarlyDialogToConfirmed() local 115 attr.setToTag(); in testEarlyDialogToConfirmed() 118 SipMessage inviteRinging = generateSipResponse("180", "Ringing", attr); in testEarlyDialogToConfirmed() 119 filterMessage(inviteRinging, attr); in testEarlyDialogToConfirmed() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | Themes.java | 31 public static int getAttrColor(Context context, int attr) { in getAttrColor() argument 32 return getAttrColor(context, /*styleResId=*/ 0, attr); in getAttrColor() 36 public static int getAttrColor(Context context, @StyleRes int styleResId, int attr) { in getAttrColor() argument 37 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColor() 48 public static ColorStateList getAttrColorStateList(Context context, int attr) { in getAttrColorStateList() argument 49 return getAttrColorStateList(context, /*styleResId=*/ 0, attr); in getAttrColorStateList() 58 int attr) { in getAttrColorStateList() argument 59 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColorStateList() 68 public static boolean getAttrBoolean(Context context, int attr) { in getAttrBoolean() argument 69 return getAttrBoolean(context, /*styleResId=*/ 0, attr); in getAttrBoolean() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyDrawParams.java | 84 public void updateParams(final int keyHeight, @Nullable final KeyVisualAttributes attr) { in updateParams() argument 85 if (attr == null) { in updateParams() 89 if (attr.mTypeface != null) { in updateParams() 90 mTypeface = attr.mTypeface; in updateParams() 94 attr.mLetterSize, attr.mLetterRatio, mLetterSize); in updateParams() 96 attr.mLabelSize, attr.mLabelRatio, mLabelSize); in updateParams() 97 mLargeLetterSize = selectTextSize(keyHeight, attr.mLargeLetterRatio, mLargeLetterSize); in updateParams() 98 mHintLetterSize = selectTextSize(keyHeight, attr.mHintLetterRatio, mHintLetterSize); in updateParams() 100 attr.mShiftedLetterHintRatio, mShiftedLetterHintSize); in updateParams() 101 mHintLabelSize = selectTextSize(keyHeight, attr.mHintLabelRatio, mHintLabelSize); in updateParams() [all …]
|
D | KeyPreviewView.java | 117 { R.attr.state_has_morekeys } 120 { R.attr.state_left_edge }, 121 { R.attr.state_left_edge, R.attr.state_has_morekeys } 124 { R.attr.state_right_edge }, 125 { R.attr.state_right_edge, R.attr.state_has_morekeys }
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 442 ipp_attribute_t *attr; in print_col() local 445 for (attr = ippFirstAttribute(col); attr; attr = ippNextAttribute(col)) { in print_col() 446 switch (ippGetValueTag(attr)) { in print_col() 449 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 450 LOGD(" %s(%s%s)= %d ", ippGetName(attr), in print_col() 451 ippGetCount(attr) > 1 ? "1setOf " : "", in print_col() 452 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col() 456 for (i = 0; i < ippGetCount(attr); i++) { in print_col() 457 if (ippGetBoolean(attr, i)) { in print_col() 458 LOGD(" %s(%s%s)= true ", ippGetName(attr), in print_col() [all …]
|
D | ippstatus_monitor.c | 288 ipp_attribute_t *attr; in _cancel() local 325 attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER); in _cancel() 326 if (attr != NULL) { in _cancel() 327 job_id = ippGetInteger(attr, 0); in _cancel() 333 attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM); in _cancel() 334 if (attr != NULL) { in _cancel() 335 ipp_jstate_t jobState = (ipp_jstate_t)ippGetInteger(attr, 0); in _cancel() 339 attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD); in _cancel() 340 if (attr != NULL) { in _cancel() 342 for (idx = 0; idx < ippGetCount(attr); idx++) { in _cancel() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/uxr/ |
D | DrawableStateViewTest.java | 85 new int[] { android.R.attr.state_enabled }, in test_drawablestateview_methods_work() 96 new int[] { android.R.attr.state_enabled }); in test_drawablestateview_methods_work() 100 button.setExtraDrawableState(new int[] { R.attr.state_ux_restricted }, null); in test_drawablestateview_methods_work() 107 android.R.attr.state_enabled, in test_drawablestateview_methods_work() 108 R.attr.state_ux_restricted in test_drawablestateview_methods_work() 116 new int[] { R.attr.state_ux_restricted }, in test_drawablestateview_methods_work() 117 new int[] { android.R.attr.state_enabled }); in test_drawablestateview_methods_work() 123 new int[] { R.attr.state_ux_restricted }, in test_drawablestateview_methods_work() 124 new int[] { android.R.attr.state_enabled }); in test_drawablestateview_methods_work() 134 button.setExtraDrawableState(new int[] { R.attr.state_ux_restricted }, null); in test_setExtraDrawableState_calledFirst() [all …]
|
/packages/services/Car/car-admin-ui-lib/src/main/java/com/android/car/admin/ui/ |
D | UserAvatarView.java | 49 int attr = a.getIndex(i); in UserAvatarView() local 50 if (attr == R.styleable.UserAvatarView_avatarPadding) { in UserAvatarView() 51 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView() 52 } else if (attr == R.styleable.UserAvatarView_frameWidth) { in UserAvatarView() 53 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView() 54 } else if (attr == R.styleable.UserAvatarView_framePadding) { in UserAvatarView() 55 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView() 56 } else if (attr == R.styleable.UserAvatarView_frameColor) { in UserAvatarView() 57 setFrameColor(a.getColorStateList(attr)); in UserAvatarView() 58 } else if (attr == R.styleable.UserAvatarView_badgeDiameter) { in UserAvatarView() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | Themes.java | 83 new int[]{android.R.attr.fontFamily}); in getDefaultBodyFont() 90 return getDimension(context, android.R.attr.dialogCornerRadius, in getDialogCornerRadius() 94 public static float getDimension(Context context, int attr, float defaultValue) { in getDimension() argument 95 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension() 102 return getAttrColor(context, android.R.attr.colorAccent); in getColorAccent() 107 return getAttrColor(context, android.R.attr.colorBackground); in getColorBackground() 112 return getAttrColor(context, android.R.attr.colorBackgroundFloating); in getColorBackgroundFloating() 115 public static int getAttrColor(Context context, int attr) { in getAttrColor() argument 116 return GraphicsUtils.getAttrColor(context, attr); in getAttrColor() 119 public static boolean getAttrBoolean(Context context, int attr) { in getAttrBoolean() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/theme/base/impl/ |
D | AospThemeImpl.java | 59 android.R.attr.colorPrimary, in AospThemeImpl() 60 android.R.attr.colorPrimaryDark, in AospThemeImpl() 61 android.R.attr.colorAccent, in AospThemeImpl() 62 android.R.attr.textColorPrimary, in AospThemeImpl() 63 android.R.attr.textColorSecondary, in AospThemeImpl() 64 android.R.attr.textColorPrimaryInverse, in AospThemeImpl() 65 android.R.attr.textColorHint, in AospThemeImpl() 66 android.R.attr.colorBackground, in AospThemeImpl() 67 android.R.attr.colorBackgroundFloating, in AospThemeImpl() 68 R.attr.colorIcon, in AospThemeImpl() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | SwitchCompatUtils.java | 72 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchThumbColorStateList() 75 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchThumbColorStateList() 81 androidx.appcompat.R.attr.colorSwitchThumbNormal); in getSwitchThumbColorStateList() 92 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchTrackColorStateList() 93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f); in getSwitchTrackColorStateList() 95 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchTrackColorStateList() 100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f); in getSwitchTrackColorStateList() 106 final int attr) { in getThemeAttrColor() argument 107 if (context.getTheme().resolveAttribute(attr, typedValue, true)) { in getThemeAttrColor() 119 final int attr, final float alpha) { in getThemeAttrColor() argument [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsListDrawableState.java | 23 FIRST(new int[]{android.R.attr.state_first}), 24 FIRST_EXPANDED(new int[]{android.R.attr.state_first, android.R.attr.state_expanded}), 25 MIDDLE(new int[]{android.R.attr.state_middle}), 26 MIDDLE_EXPANDED(new int[]{android.R.attr.state_middle, android.R.attr.state_expanded}), 27 LAST(new int[]{android.R.attr.state_last}), 28 SINGLE(new int[]{android.R.attr.state_single});
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | CarrierIdProvider.java | 391 for (CarrierIdProto.CarrierAttribute attr : id.carrierAttribute) { in updateDatabaseFromPb() 401 convertCarrierAttrToContentValues(cv, cvs, attr, 0); in updateDatabaseFromPb() 433 CarrierIdProto.CarrierAttribute attr, int index) { in convertCarrierAttrToContentValues() argument 443 for (String str : attr.mccmncTuple) { in convertCarrierAttrToContentValues() 445 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues() 451 for (String str : attr.imsiPrefixXpattern) { in convertCarrierAttrToContentValues() 453 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues() 459 for (String str : attr.gid1) { in convertCarrierAttrToContentValues() 461 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues() 467 for (String str : attr.gid2) { in convertCarrierAttrToContentValues() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
D | ExternalAccountType.java | 365 String attr = parser.getAttributeName(i); in inflate() local 367 LogUtil.d(TAG, attr + "=" + value); in inflate() 368 if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) { in inflate() 370 } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) { in inflate() 372 } else if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate() 374 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate() 376 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate() 378 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate() 380 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate() 382 } else if (ATTR_DATA_SET.equals(attr)) { in inflate() [all …]
|
/packages/apps/TV/src/com/android/tv/parental/ |
D | ContentRatingsParser.java | 120 String attr = parser.getAttributeName(i); in parse() local 121 if (ATTR_VERSION_CODE.equals(attr)) { in parse() 190 String attr = parser.getAttributeName(i); in parseRatingSystemDefinition() local 191 switch (attr) { in parseRatingSystemDefinition() 210 + attr in parseRatingSystemDefinition() 266 String attr = parser.getAttributeName(i); in parseRatingDefinition() local 267 switch (attr) { in parseRatingDefinition() 300 + attr in parseRatingDefinition() 336 String attr = parser.getAttributeName(i); in parseSubRatingDefinition() local 337 switch (attr) { in parseSubRatingDefinition() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | ExternalAccountType.java | 327 String attr = parser.getAttributeName(i); in inflate() local 330 Log.d(TAG, attr + "=" + value); in inflate() 332 if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate() 334 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate() 336 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate() 338 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate() 340 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate() 342 } else if (ATTR_DATA_SET.equals(attr)) { in inflate() 344 } else if (ATTR_EXTENSION_PACKAGE_NAMES.equals(attr)) { in inflate() 346 } else if (ATTR_ACCOUNT_TYPE.equals(attr)) { in inflate() [all …]
|
/packages/modules/Connectivity/Tethering/jni/ |
D | com_android_networkstack_tethering_BpfUtils.cpp | 210 nlattr attr; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() member 216 nlattr attr; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() member 218 nlattr attr; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() member 222 nlattr attr; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() member 226 nlattr attr; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() member 249 .attr = in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 258 .attr = in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 265 .attr = in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 274 .attr = in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 285 .attr = in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ThemeUtils.kt | 38 fun resolveColor(context: Context, @AttrRes attr: Int): Int = in resolveColor() 39 resolveColor(context, attr, stateSet = null) in resolveColor() 51 fun resolveColor(context: Context, @AttrRes attr: Int, @AttrRes stateSet: IntArray?): Int { in resolveColor() 54 TEMP_ATTR[0] = attr in resolveColor() 77 fun resolveDrawable(context: Context, @AttrRes attr: Int): Drawable? { in resolveDrawable() 80 TEMP_ATTR[0] = attr in resolveDrawable()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/ |
D | CarUiUtils.java | 81 public static int getAttrResourceId(Context context, int attr) { in getAttrResourceId() argument 82 return getAttrResourceId(context, /*styleResId=*/ 0, attr); in getAttrResourceId() 89 public static int getAttrResourceId(Context context, @StyleRes int styleResId, int attr) { in getAttrResourceId() argument 90 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrResourceId() 267 public static int getAttr(@NonNull Context context, int attr, int fallbackAttr) { in getAttr() argument 269 context.getTheme().resolveAttribute(attr, value, true); in getAttr() 271 return attr; in getAttr() 317 sRestrictedState = new int[] { R.attr.state_ux_restricted }; in makeAllViewsUxRestricted() 320 R.attr.state_ux_restricted, in makeAllViewsUxRestricted()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 265 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr); 465 (status, key, attr) -> { 469 assertEquals(attributes, attr); 481 (status, key, attr) -> { 485 assertEquals(attributes.assignedV4Address, attr.assignedV4Address); 487 attr.assignedV4AddressExpiry); 488 assertEquals(attributes.cluster, attr.cluster); 489 assertEquals(attributes.mtu, attr.mtu); 490 assertEquals(attributes2.dnsAddresses, attr.dnsAddresses); 497 (status, key, attr) -> { [all …]
|
/packages/modules/adb/tls/tests/ |
D | tls_connection_test.cpp | 233 for (auto& attr : issuer) { in GetCAIssuerList() local 234 CHECK(X509_NAME_add_entry_by_NID(name.get(), attr.nid, MBSTRING_ASC, in GetCAIssuerList() 235 attr.val.data(), attr.val.size(), -1, 0)); in GetCAIssuerList() 552 for (auto& attr : issuer) { in TEST_F() local 553 EXPECT_EQ(X509_NAME_get_text_by_NID(name, attr.nid, in TEST_F() 555 attr.val.size()); in TEST_F() 556 std::vector<uint8_t> out(buf, buf + attr.val.size()); in TEST_F() 557 EXPECT_EQ(out, attr.val); in TEST_F()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeSessionConfiguration.java | 95 for (ConfigAttribute attr : configPayload.recognizedAttributeList) { in IkeSessionConfiguration() 96 if (attr.isEmptyValue()) continue; in IkeSessionConfiguration() 97 switch (attr.attributeType) { in IkeSessionConfiguration() 99 ConfigAttributeAppVersion appVersionAttr = (ConfigAttributeAppVersion) attr; in IkeSessionConfiguration() 103 ConfigAttributeIpv4Pcscf ip4Pcscf = (ConfigAttributeIpv4Pcscf) attr; in IkeSessionConfiguration() 107 ConfigAttributeIpv6Pcscf ip6Pcscf = (ConfigAttributeIpv6Pcscf) attr; in IkeSessionConfiguration()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | FooterPreference.kt | 33 constructor(c: Context, a: AttributeSet, attr: Int): super(c, a, attr) 34 constructor(c: Context, a: AttributeSet, attr: Int, res: Int): super(c, a, attr, res)
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | PlayPauseStopImageView.java | 41 private static final int[] STATE_PAUSE = {R.attr.state_pause}; 42 private static final int[] STATE_STOP = {R.attr.state_stop}; 43 private static final int[] STATE_PLAY = {R.attr.state_play}; 44 private static final int[] STATE_DISABLED = {R.attr.state_disabled};
|
/packages/apps/Nfc/nci/jni/ |
D | CondVar.cpp | 42 pthread_condattr_t attr; in CondVar() local 43 pthread_condattr_init(&attr); in CondVar() 44 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in CondVar() 46 int const res = pthread_cond_init(&mCondition, &attr); in CondVar()
|