/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsRegistrationAttributesTest.java | 44 ImsRegistrationAttributes attr = new ImsRegistrationAttributes.Builder( in testRegistrationTypeToTransportAttr() local 48 attr.getRegistrationTechnology()); in testRegistrationTypeToTransportAttr() 50 attr.getTransportType()); in testRegistrationTypeToTransportAttr() 51 assertEquals(0, (attr.getAttributeFlags() in testRegistrationTypeToTransportAttr() 53 assertEquals(featureTags, attr.getFeatureTags()); in testRegistrationTypeToTransportAttr() 56 attr = new ImsRegistrationAttributes.Builder( in testRegistrationTypeToTransportAttr() 59 attr.getRegistrationTechnology()); in testRegistrationTypeToTransportAttr() 61 attr.getTransportType()); in testRegistrationTypeToTransportAttr() 62 assertEquals(0, (attr.getAttributeFlags() in testRegistrationTypeToTransportAttr() 64 assertNotNull(attr.getFeatureTags()); in testRegistrationTypeToTransportAttr() [all …]
|
D | SipMessageUtils.java | 171 public static SipMessage generateSipRequest(String requestMethod, SipDialogAttributes attr) { in generateSipRequest() argument 172 return generateSipRequest(requestMethod, attr.fromHeader, attr.toHeader, in generateSipRequest() 173 attr.toUri, attr.branchId, attr.callId, attr.fromTag, attr.getToTag(), in generateSipRequest() 174 attr.getAcceptContactTags()); in generateSipRequest() 178 SipDialogAttributes attr) { in generateSipResponse() argument 179 return generateSipResponse(statusCode, statusString, attr.fromHeader, in generateSipResponse() 180 attr.toHeader, attr.branchId, attr.callId, attr.fromTag, attr.getToTag()); in generateSipResponse()
|
D | SipDelegateManagerTest.java | 1043 SipDialogAttributes attr = new SipDialogAttributes(); in testCloseActiveDialog() local 1044 sendChatInvite(attr, ifaces); in testCloseActiveDialog() 1054 receive200OkResponse(attr, ifaces); in testCloseActiveDialog() 1056 sendAck(attr, ifaces); in testCloseActiveDialog() 1058 sendByeRequest(attr, ifaces); in testCloseActiveDialog() 1065 ifaces.delegateConn.sendCleanupSession(attr.callId); in testCloseActiveDialog() 1066 ifaces.delegate.verifyCleanupSession(attr.callId); in testCloseActiveDialog() 1088 SipDialogAttributes attr = new SipDialogAttributes(); in testReceivedActiveDialogClose() local 1089 receiveChatInvite(attr, ifaces); in testReceivedActiveDialogClose() 1099 send200OkResponse(attr, ifaces); in testReceivedActiveDialogClose() [all …]
|
/cts/tests/tests/print/src/android/print/pdf/cts/ |
D | PrintedPdfDocumentTest.java | 58 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS).build(); in createWithNullMediaSize() local 59 assertException(() -> new PrintedPdfDocument(sContext, attr), NullPointerException.class); in createWithNullMediaSize() 64 PrintAttributes attr = new PrintAttributes.Builder() in createWithNullMargins() local 66 assertException(() -> new PrintedPdfDocument(sContext, attr), in createWithNullMargins() 72 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in createWithNullContext() local 76 PrintedPdfDocument doc = new PrintedPdfDocument(null, attr); in createWithNullContext() 82 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in startPage() local 85 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in startPage() 93 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in oneMilPageSize() local 96 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in oneMilPageSize() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | VibrationAttributesTest.java | 60 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testCreate() local 61 assertEquals(attr.getUsage(), VibrationAttributes.USAGE_ALARM); in testCreate() 62 assertEquals(attr.getUsageClass(), VibrationAttributes.USAGE_CLASS_ALARM); in testCreate() 63 assertEquals(attr.getFlags(), 0); in testCreate() 64 assertEquals(attr.getAudioUsage(), AudioAttributes.USAGE_ALARM); in testCreate() 72 VibrationAttributes attr = new VibrationAttributes.Builder(tmp, null).build(); in testGetAudioUsageReturnOriginalUsage() local 73 assertEquals(attr.getUsage(), VibrationAttributes.USAGE_COMMUNICATION_REQUEST); in testGetAudioUsageReturnOriginalUsage() 74 assertEquals(attr.getAudioUsage(), AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY); in testGetAudioUsageReturnOriginalUsage() 79 VibrationAttributes attr = new VibrationAttributes.Builder() in testGetAudioUsageUnknownReturnsBasedOnVibrationUsage() local 81 assertEquals(attr.getUsage(), VibrationAttributes.USAGE_NOTIFICATION); in testGetAudioUsageUnknownReturnsBasedOnVibrationUsage() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/ |
D | poc.cpp | 80 audio_attributes_t attr; in getOutputForAttr() local 81 memset(&attr, 0xff, sizeof(attr)); in getOutputForAttr() 82 attr.flags = AUDIO_FLAG_NONE; in getOutputForAttr() 83 memset(attr.tags, 0x41, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE); in getOutputForAttr() 84 data.write(&attr, sizeof(attr)); in getOutputForAttr()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | WidgetAttributeTest.kt | 74 toolbar1.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack() 80 toolbar1.getAttributeResolutionStack(android.R.attr.titleMarginEnd) in testGetAttributeResolutionStack() 90 toolbar2.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack() 98 toolbar2.getAttributeResolutionStack(android.R.attr.titleMarginEnd) in testGetAttributeResolutionStack() 108 textview1.getAttributeResolutionStack(android.R.attr.textColor) in testGetAttributeResolutionStack() 111 textview1.getAttributeResolutionStack(android.R.attr.textSize) in testGetAttributeResolutionStack() 120 viewAnimator.getAttributeResolutionStack(android.R.attr.outAnimation) in testGetAttributeResolutionStack() 134 attributeMapProgressBar[android.R.attr.minWidth]!!.toInt()) in testGetAttributeSourceResourceMap() 136 attributeMapProgressBar[android.R.attr.maxWidth]!!.toInt()) in testGetAttributeSourceResourceMap() 138 attributeMapProgressBar[android.R.attr.progressTint]!!.toInt()) in testGetAttributeSourceResourceMap() [all …]
|
D | DigitalClockTest.java | 131 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local 132 assertNotNull(attr); in getAttributeSet() 133 return attr; in getAttributeSet()
|
D | AnalogClockTest.java | 169 new int[][] { {android.R.attr.state_checked}, {}}, in testSetDialTintList() 202 new int[][] { {android.R.attr.state_checked}, {}}, in testSetHourHandTintList() 235 new int[][] { {android.R.attr.state_active}, {}}, in testSetMinuteHandTintList() 268 new int[][] { {android.R.attr.state_checked}, {}}, in testSetSecondHandTintList()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | PaintDrawableTest.java | 129 AttributeSet attr = getAttributeSet(parser); in testInflateTag() local 130 assertNotNull(attr); in testInflateTag() 140 assertTrue(paintDrawable.inflateTag("padding", mResources, parser, attr)); in testInflateTag() 145 attr = getAttributeSet(parser); in testInflateTag() 146 assertNotNull(attr); in testInflateTag() 147 assertFalse(new MyPaintDrawable().inflateTag("", mResources, parser, attr)); in testInflateTag() 152 new MyPaintDrawable().inflateTag(null, mResources, parser, attr); in testInflateTag() 161 new MyPaintDrawable().inflateTag("padding", null, parser, attr); in testInflateTag() 169 attr = getAttributeSet(parser); in testInflateTag() 170 assertNotNull(attr); in testInflateTag() [all …]
|
D | StateListDrawableTest.java | 99 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testAddState() 120 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChange() 133 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange() 142 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange() 145 assertFalse(mMockDrawable.onStateChange(new int[] { android.R.attr.state_focused })); in testOnStateChange() 160 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChangeWithWildCardAtFirst() 165 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChangeWithWildCardAtFirst() 279 new int[]{ android.R.attr.state_focused, - android.R.attr.state_pressed }); in testInflate() 302 new int[]{ - android.R.attr.state_pressed, android.R.attr.state_focused }); in testInflate()
|
D | DefaultFocusHighlightTest.java | 71 private static final int[] NO_STATE_FOCUSED = new int[] { android.R.attr.state_enabled }; 72 private static final int[] ONLY_STATE_FOCUSED = new int[] { android.R.attr.state_focused }; 74 new int[] { android.R.attr.state_focused, android.R.attr.state_hovered }; 76 new int[] { android.R.attr.state_focused, -android.R.attr.state_hovered }; 78 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled }; 81 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled };
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | WatchPercentageScreenDimenTest.java | 65 android.R.attr.listPreferredItemPaddingEnd in test_10() 86 android.R.attr.dialogPreferredPadding, in test_15() 87 android.R.attr.listPreferredItemPaddingLeft, in test_15() 88 android.R.attr.listPreferredItemPaddingRight, in test_15() 89 android.R.attr.listPreferredItemPaddingStart in test_15()
|
/cts/suite/audio_quality/lib/src/task/ |
D | ModelBuilder.cpp | 253 const XMLAttribute* attr = elem.FirstAttribute(); in parseAttributes() local 255 if (attr == NULL) { in parseAttributes() 258 android::String8 name(attr->Name()); in parseAttributes() 259 android::String8 value(attr->Value()); in parseAttributes() 262 attr->Name(), attr->Value(), task.getType()); in parseAttributes() 265 attr = attr->Next(); in parseAttributes()
|
/cts/tests/tests/graphics/assets/shaders/ |
D | passthrough_vsh.glsl | 5 layout (location = 1) in vec2 attr; 8 texcoord = attr;
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 94 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 99 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 113 (attributeMapRootView.get(android.R.attr.orientation)).intValue()); in testGetAttributeSourceResourceMap() 119 (attributeMapView1.get(android.R.attr.padding)).intValue()); in testGetAttributeSourceResourceMap() 121 (attributeMapView1.get(android.R.attr.paddingLeft)).intValue()); in testGetAttributeSourceResourceMap() 123 (attributeMapView1.get(android.R.attr.paddingTop)).intValue()); in testGetAttributeSourceResourceMap()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | TestThemeHelper.java | 93 mCustomColor = getColor(theme, R.attr.customColor); in TestThemeHelper() 94 mColorBackground = getColor(theme, android.R.attr.colorBackground); in TestThemeHelper() 95 mNavigationBarColor = getColor(theme, android.R.attr.navigationBarColor); in TestThemeHelper() 96 mStatusBarColor = getColor(theme, android.R.attr.statusBarColor); in TestThemeHelper() 97 mWindowBackground = getDrawableColor(theme, android.R.attr.windowBackground); in TestThemeHelper()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | StateSetTest.java | 52 int[] stateSet = {android.R.attr.state_window_focused, in testDump() 53 android.R.attr.state_pressed, in testDump() 54 android.R.attr.state_selected, in testDump() 55 android.R.attr.state_focused, in testDump() 56 android.R.attr.state_enabled, in testDump()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 88 final TypedArray ta = mResTheme.obtainStyledAttributes(new int[] { R.attr.testString }); in testObtainStyledAttributesWithInlineStringInTheme() 137 TypedArray t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase() 149 t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase() 179 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 185 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 191 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | TestTheme.java | 199 mName = getString(theme, R.attr.themeName); in setTheme() 200 mBaseColor = getColor(theme, R.attr.themeBaseColor); in setTheme() 204 mColorBackground = getColor(theme, android.R.attr.colorBackground); in setTheme() 205 mNavigationBarColor = getColor(theme, android.R.attr.navigationBarColor); in setTheme() 206 mStatusBarColor = getColor(theme, android.R.attr.statusBarColor); in setTheme() 207 mWindowBackground = getDrawableColor(theme, android.R.attr.windowBackground); in setTheme()
|
/cts/hostsidetests/securitybulletin/res/ |
D | cve_2021_0691.sh | 2 echo -n 'u:r:system_app:s0' > /proc/self/attr/current
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowTest.java | 236 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local 237 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes() 238 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes() 239 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes() 240 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes() 251 attr = mWindow.getAttributes(); in testAccessAttributes() 252 assertEquals(width, attr.width); in testAccessAttributes() 253 assertEquals(height, attr.height); in testAccessAttributes() 254 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes() 255 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes() [all …]
|
D | DragDropTest.java | 618 private boolean drawableStateContains(int resourceId, int attr) { in drawableStateContains() argument 620 .anyMatch(x -> x == attr); in drawableStateContains() 634 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_can_accept)); in testDrawableState() 640 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 641 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_can_accept)); in testDrawableState() 647 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 653 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 659 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 665 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | ScaleAnimationTest.java | 76 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 77 assertNotNull(attr); in testConstructors() 78 new ScaleAnimation(mActivity, attr); in testConstructors()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShadowTests.java | 82 android.R.attr.spotShadowAlpha, in testShadowResources() 83 android.R.attr.ambientShadowAlpha, in testShadowResources()
|