Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 94) sorted by relevance

1234

/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsRegistrationAttributesTest.java72 ImsRegistrationAttributes attr = new ImsRegistrationAttributes.Builder( in testRegistrationTypeToTransportAttr() local
77 attr.getRegistrationTechnology()); in testRegistrationTypeToTransportAttr()
79 attr.getTransportType()); in testRegistrationTypeToTransportAttr()
80 assertEquals(0, (attr.getAttributeFlags() in testRegistrationTypeToTransportAttr()
82 assertEquals(featureTags, attr.getFeatureTags()); in testRegistrationTypeToTransportAttr()
84 assertNotNull(attr.getSipDetails()); in testRegistrationTypeToTransportAttr()
85 assertEquals(SipDetails.METHOD_REGISTER, attr.getSipDetails().getMethod()); in testRegistrationTypeToTransportAttr()
86 assertEquals(cseq, attr.getSipDetails().getCSeq()); in testRegistrationTypeToTransportAttr()
87 assertEquals(sipCode, attr.getSipDetails().getResponseCode()); in testRegistrationTypeToTransportAttr()
88 assertEquals(responsePhrase, attr.getSipDetails().getResponsePhrase()); in testRegistrationTypeToTransportAttr()
[all …]
DSipMessageUtils.java171 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()
DSipDelegateManagerTest.java428 SipDialogAttributes attr = new SipDialogAttributes(); in testSipDialogStateChanges() local
429 sendChatInvite(attr, ifaces); in testSipDialogStateChanges()
432 receive200OkResponse(attr, ifaces); in testSipDialogStateChanges()
438 sendAck(attr, ifaces); in testSipDialogStateChanges()
440 sendByeRequest(attr, ifaces); in testSipDialogStateChanges()
447 ifaces.delegateConn.sendCleanupSession(attr.callId); in testSipDialogStateChanges()
448 ifaces.delegate.verifyCleanupSession(attr.callId); in testSipDialogStateChanges()
514 SipDialogAttributes attr = new SipDialogAttributes(); in testSipDialogStateChangesOnMultipleDelegates() local
515 SipDialogAttributes invAttr = attr.fromExisting().copyWithNewBranch(); in testSipDialogStateChangesOnMultipleDelegates()
521 attr); in testSipDialogStateChangesOnMultipleDelegates()
[all …]
DPublishAttributesTest.java62 PublishAttributes attr = new PublishAttributes.Builder(PUBLISH_STATE_OK) in testAttributes() local
67 assertEquals(PUBLISH_STATE_OK, attr.getPublishState()); in testAttributes()
68 assertEquals(tuples.size(), attr.getPresenceTuples().size()); in testAttributes()
70 SipDetails received = attr.getSipDetails(); in testAttributes()
96 PublishAttributes attr = new PublishAttributes.Builder(PUBLISH_STATE_NOT_PUBLISHED) in testParcelUnparcel() local
101 attr.writeToParcel(parcel, 0); in testParcelUnparcel()
106 assertEquals(attr.getPublishState(), unparcelledAttr.getPublishState()); in testParcelUnparcel()
/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java58 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/vibrator/src/android/os/cts/
DVibrationAttributesTest.java87 VibrationAttributes attr = new VibrationAttributes.Builder(tmp).build(); in testCreateFromVibrationAttributes() local
88 assertEquals(attr.getUsage(), VibrationAttributes.USAGE_TOUCH); in testCreateFromVibrationAttributes()
89 assertEquals(attr.getUsageClass(), VibrationAttributes.USAGE_CLASS_FEEDBACK); in testCreateFromVibrationAttributes()
90 assertEquals(attr.getFlags(), 0); in testCreateFromVibrationAttributes()
91 assertEquals(attr.getAudioUsage(), AudioAttributes.USAGE_ASSISTANCE_SONIFICATION); in testCreateFromVibrationAttributes()
97 VibrationAttributes attr = new VibrationAttributes.Builder(audioAttributes).build(); in testCreateFromAudioAttributes() local
98 assertEquals(attr.getUsage(), VibrationAttributes.USAGE_ALARM); in testCreateFromAudioAttributes()
99 assertEquals(attr.getUsageClass(), VibrationAttributes.USAGE_CLASS_ALARM); in testCreateFromAudioAttributes()
100 assertEquals(attr.getFlags(), 0); in testCreateFromAudioAttributes()
101 assertEquals(attr.getAudioUsage(), AudioAttributes.USAGE_ALARM); in testCreateFromAudioAttributes()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/
Dpoc.cpp80 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/
DWidgetAttributeTest.kt74 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()
135 attributeMapProgressBar[android.R.attr.minWidth]!!.toInt() in testGetAttributeSourceResourceMap()
139 attributeMapProgressBar[android.R.attr.maxWidth]!!.toInt() in testGetAttributeSourceResourceMap()
143 attributeMapProgressBar[android.R.attr.progressTint]!!.toInt() in testGetAttributeSourceResourceMap()
[all …]
DDigitalClockTest.java140 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
141 assertNotNull(attr); in getAttributeSet()
142 return attr; in getAttributeSet()
DAnalogClockTest.java178 new int[][] { {android.R.attr.state_checked}, {}}, in testSetDialTintList()
211 new int[][] { {android.R.attr.state_checked}, {}}, in testSetHourHandTintList()
244 new int[][] { {android.R.attr.state_active}, {}}, in testSetMinuteHandTintList()
277 new int[][] { {android.R.attr.state_checked}, {}}, in testSetSecondHandTintList()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DPaintDrawableTest.java129 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 …]
DStateListDrawableTest.java99 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()
DDefaultFocusHighlightTest.java71 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/
DWatchPercentageScreenDimenTest.java65 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/tests/tests/graphics/assets/shaders/
Dpassthrough_vsh.glsl5 layout (location = 1) in vec2 attr;
8 texcoord = attr;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DPreferredMixerAttributesTestActivity.java143 AudioAttributes attr = new AudioAttributes.Builder() in displayTestResult() local
146 new MyPreferredMixerAttributesListener(attr, device.getId()); in displayTestResult()
151 if (!mAudioManager.setPreferredMixerAttributes(attr, device, mixerAttr)) { in displayTestResult()
170 if (!mixerAttr.equals(mAudioManager.getPreferredMixerAttributes(attr, device))) { in displayTestResult()
180 if (!mAudioManager.clearPreferredMixerAttributes(attr, device)) { in displayTestResult()
199 if (mAudioManager.getPreferredMixerAttributes(attr, device) != null) { in displayTestResult()
269 MyPreferredMixerAttributesListener(AudioAttributes attr, int deviceId) { in MyPreferredMixerAttributesListener() argument
270 mAttr = attr; in MyPreferredMixerAttributesListener()
/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java112 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack()
117 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack()
131 (attributeMapRootView.get(android.R.attr.orientation)).intValue()); in testGetAttributeSourceResourceMap()
137 (attributeMapView1.get(android.R.attr.padding)).intValue()); in testGetAttributeSourceResourceMap()
139 (attributeMapView1.get(android.R.attr.paddingLeft)).intValue()); in testGetAttributeSourceResourceMap()
141 (attributeMapView1.get(android.R.attr.paddingTop)).intValue()); in testGetAttributeSourceResourceMap()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DTestThemeHelper.java93 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/
DStateSetTest.java59 int[] stateSet = {android.R.attr.state_window_focused, in testDump()
60 android.R.attr.state_pressed, in testDump()
61 android.R.attr.state_selected, in testDump()
62 android.R.attr.state_focused, in testDump()
63 android.R.attr.state_enabled, in testDump()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DDomainSelectionServiceTestOnMockModem.java327 SelectionAttributes attr = testService.getSelectionAttributes(); in testDomainSelectionServiceEmergencyCall() local
328 assertNotNull(attr); in testDomainSelectionServiceEmergencyCall()
329 assertEquals(SELECTOR_TYPE_CALLING, attr.getSelectorType()); in testDomainSelectionServiceEmergencyCall()
330 assertTrue(attr.isEmergency()); in testDomainSelectionServiceEmergencyCall()
331 assertNotNull(attr.getAddress()); in testDomainSelectionServiceEmergencyCall()
332 assertNotNull(attr.getAddress().getSchemeSpecificPart()); in testDomainSelectionServiceEmergencyCall()
333 assertEquals(TEST_EMERGENCY_NUMBER, attr.getAddress().getSchemeSpecificPart()); in testDomainSelectionServiceEmergencyCall()
334 assertTrue(attr.getCsDisconnectCause() == NOT_VALID in testDomainSelectionServiceEmergencyCall()
335 || attr.getCsDisconnectCause() == NO_DISCONNECT_CAUSE_AVAILABLE); in testDomainSelectionServiceEmergencyCall()
336 assertNotNull(attr.getEmergencyRegistrationResult()); in testDomainSelectionServiceEmergencyCall()
DTestDomainSelectionService.java89 public void reselectDomain(@NonNull SelectionAttributes attr) { in reselectDomain() argument
93 mSelectionAttributes = attr; in reselectDomain()
127 public void onDomainSelection(@NonNull SelectionAttributes attr, in onDomainSelection() argument
131 mSelectionAttributes = attr; in onDomainSelection()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DTestTheme.java199 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/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java107 final TypedArray ta = mResTheme.obtainStyledAttributes(new int[] { R.attr.testString }); in testObtainStyledAttributesWithInlineStringInTheme()
159 TypedArray t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase()
171 t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase()
204 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
210 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
216 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
/cts/hostsidetests/securitybulletin/res/
Dcve_2021_0691.sh2 echo -n 'u:r:system_app:s0' > /proc/self/attr/current
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowTest.java260 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local
261 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes()
262 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes()
263 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes()
264 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes()
275 attr = mWindow.getAttributes(); in testAccessAttributes()
276 assertEquals(width, attr.width); in testAccessAttributes()
277 assertEquals(height, attr.height); in testAccessAttributes()
278 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes()
279 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes()
[all …]

1234