/cts/tools/cts-api-coverage/src/com/android/cts/apicommon/ |
D | ApiXmlHandler.java | 63 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 65 super.startElement(uri, localName, name, attributes); in startElement() 67 mCurrentPackageName = getValue(attributes, "name"); in startElement() 74 if (isEnum(attributes)) { in startElement() 79 mCurrentClassName = getValue(attributes, "name"); in startElement() 80 mDeprecated = isDeprecated(attributes); in startElement() 81 String superClass = attributes.getValue("extends"); in startElement() 83 mCurrentClassName, mDeprecated, is(attributes, "abstract"), superClass); in startElement() 87 mCurrentInterfaceName = attributes.getValue("name"); in startElement() 89 mDeprecated = isDeprecated(attributes); in startElement() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmEventTest.java | 30 HashMap<String, Object> attributes = new HashMap<String, Object>(3); in testGetAttribute() local 31 attributes.put("Hello World", attributes); in testGetAttribute() 32 attributes.put("Hello", "World"); in testGetAttribute() 33 attributes.put("World", ""); in testGetAttribute() 38 checkGetAttributeWithEventType(attributes, null, true); in testGetAttribute() 39 checkGetAttributeWithEventType(attributes, "", true); in testGetAttribute() 40 checkGetAttributeWithEventType(attributes, "Hello", true); in testGetAttribute() 41 checkGetAttributeWithEventType(attributes, "World", true); in testGetAttribute() 42 checkGetAttributeWithEventType(attributes, "Hello World", true); in testGetAttribute() 47 checkGetAttributeWithEventType(attributes, null, false); in testGetAttribute() [all …]
|
D | DrmInfoRequestTest.java | 66 HashMap<String, Object> attributes = new HashMap<String, Object>(3); in testPutAndGetKeys() local 67 attributes.put("Hello", ""); in testPutAndGetKeys() 68 attributes.put("World", null); in testPutAndGetKeys() 69 attributes.put("Hello World", "Hello World"); in testPutAndGetKeys() 73 Iterator<String> keys = attributes.keySet().iterator(); in testPutAndGetKeys() 76 request.put(key, attributes.get(key)); in testPutAndGetKeys() 83 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 89 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 94 Collection<Object> vals = attributes.values(); in testPutAndGetKeys()
|
D | DrmInfoTest.java | 77 HashMap<String, Object> attributes = new HashMap<String, Object>(3); in testPutAndGetKeys() local 78 attributes.put("Hello", ""); in testPutAndGetKeys() 79 attributes.put("World", null); in testPutAndGetKeys() 80 attributes.put("Hello World", "Hello World"); in testPutAndGetKeys() 84 Iterator<String> keys = attributes.keySet().iterator(); in testPutAndGetKeys() 87 info.put(key, attributes.get(key)); in testPutAndGetKeys() 94 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys() 100 assertEquals(info.get(key), attributes.get(key)); in testPutAndGetKeys() 105 Collection<Object> vals = attributes.values(); in testPutAndGetKeys()
|
/cts/common/device-side/bedstead/testapp/tools/index/ |
D | index_testapps.py | 57 def __init__(self, name, attributes, children): argument 59 self.attributes = attributes 63 return "Element(" + self.name + " " + str(self.attributes) + ")" 93 attributes = {} 114 attributes[attribute_name] = attribute_value 122 return Element(name, attributes, children) 135 android_app.package_name = root.attributes["package"] 136 android_app.sharedUserId = root.attributes.get("sharedUserId", "") 142 android_app.test_only = application_element.attributes.get("testOnly", "false") == "true" 143 android_app.label = application_element.attributes.get("label", "") [all …]
|
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/ |
D | CameraAttributesTest.java | 50 CameraAttributes attributes = new CameraAttributes.Builder(anchorPointInWorldSpace, in testCreateCameraAttributesRequest() local 61 assertThat(attributes.getAnchorPointInWorldSpace()).isEqualTo(anchorPointInWorldSpace); in testCreateCameraAttributesRequest() 62 assertThat(attributes.getAnchorPointInOutputUvSpace()).isEqualTo( in testCreateCameraAttributesRequest() 64 assertThat(attributes.getCameraOrbitYawDegrees()).isEqualTo(yaw); in testCreateCameraAttributesRequest() 65 assertThat(attributes.getCameraOrbitPitchDegrees()).isEqualTo(pitch); in testCreateCameraAttributesRequest() 66 assertThat(attributes.getDollyDistanceInWorldSpace()).isEqualTo(dolly); in testCreateCameraAttributesRequest() 67 assertThat(attributes.getVerticalFovDegrees()).isEqualTo(fov); in testCreateCameraAttributesRequest() 68 assertThat(attributes.getFrustumNearInWorldSpace()).isEqualTo(frustumNear); in testCreateCameraAttributesRequest() 69 assertThat(attributes.getFrustumFarInWorldSpace()).isEqualTo(frustumFar); in testCreateCameraAttributesRequest() 73 attributes.writeToParcel(parcel, 0); in testCreateCameraAttributesRequest()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | CtsReportHandler.java | 52 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 54 super.startElement(uri, localName, name, attributes); in startElement() 60 mTestSuiteBld.setName(attributes.getValue(NAME_TAG)); in startElement() 61 mTestPackageBld.setName(attributes.getValue(NAME_TAG)); in startElement() 63 if (null != attributes.getValue(NAME_TAG)) { in startElement() 64 mTestPackageBld.setAbi(attributes.getValue(ABI_TAG)); in startElement() 68 mTestCaseBld.setName(attributes.getValue(NAME_TAG)); in startElement() 72 testBld.setName(attributes.getValue(NAME_TAG)); in startElement() 73 testBld.setResult(attributes.getValue(RESULT_TAG)); in startElement()
|
D | TestModuleConfigHandler.java | 59 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 61 super.startElement(uri, localName, name, attributes); in startElement() 64 if (null != attributes.getValue(DESCRIPTION_TAG)) { in startElement() 65 mFileMetadata.setDescription(attributes.getValue(DESCRIPTION_TAG)); in startElement() 71 mTestCase.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 74 mTargetPreparer.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 77 option.setName(attributes.getValue(NAME_TAG)); in startElement() 78 option.setValue(attributes.getValue(VALUE_TAG)); in startElement() 79 String keyStr = attributes.getValue(KEY_TAG); in startElement()
|
D | DexDepsXmlHandler.java | 55 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 57 super.startElement(uri, localName, name, attributes); in startElement() 59 mCurrentPackageName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 62 mCurrentClassName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 66 mCurrentMethodName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 69 mCurrentParameterTypes.add(ApiXmlHandler.getValue(attributes, "type")); in startElement()
|
D | TestSuiteContentReport.java | 168 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 170 super.startElement(uri, localName, name, attributes); in startElement() 174 localName, attributes.getValue(NAME_TAG), attributes.getValue(VALUE_TAG)); in startElement() 175 if (EXCLUDE_FILTER_TAG.equals(attributes.getValue(NAME_TAG))) { in startElement() 176 String kfFilter = attributes.getValue(VALUE_TAG).replace(' ', '.'); in startElement()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | TestModuleConfigHandler.java | 60 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 62 super.startElement(uri, localName, name, attributes); in startElement() 66 if (null != attributes.getValue(DESCRIPTION_TAG)) { in startElement() 67 mTestModuleConfig.setDescription(attributes.getValue(DESCRIPTION_TAG)); in startElement() 74 mTestCase.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 78 mTargetPreparer.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 82 option.setName(attributes.getValue(NAME_TAG)); in startElement() 83 option.setValue(attributes.getValue(VALUE_TAG)); in startElement() 84 String keyStr = attributes.getValue(KEY_TAG); in startElement()
|
D | XmlHandler.java | 78 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 80 super.startElement(uri, localName, name, attributes); in startElement() 88 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement() 94 eleBuilder.setValue(attributes.getValue(GID_TAG)); in startElement() 100 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement() 101 String uid = attributes.getValue(UID_TAG); in startElement() 111 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement() 112 String file = attributes.getValue(FILE_TAG); in startElement() 122 mPermissionsBuilder.setName(attributes.getValue(PACKAGE_TAG)); in startElement() 126 mPermissionsBuilder.setName(attributes.getValue(PACKAGE_TAG)); in startElement() [all …]
|
D | TestSuiteTradefedParser.java | 137 public void startElement(String uri, String localName, String name, Attributes attributes) in startElement() argument 139 super.startElement(uri, localName, name, attributes); in startElement() 140 if (EXCLUDE_FILTER_TAG.equals(attributes.getValue(NAME_TAG))) { in startElement() 141 String kfFilter = attributes.getValue(VALUE_TAG).replace(' ', '.'); in startElement()
|
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/ |
D | TranslucentFloatingActivity.java | 32 WindowManager.LayoutParams attributes = getWindow().getAttributes(); in onCreate() local 33 attributes.alpha = 0; in onCreate() 34 attributes.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL; in onCreate() 35 attributes.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND; in onCreate() 36 getWindow().setAttributes(attributes); in onCreate()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | DevicesForAttributesTest.java | 180 final AudioAttributes[] attributes = { MEDIA_ATTR, COMMUNICATION_ATTR }; in testListenerWithMultipleAttributes() local 182 new DevicesForAttributesListener[attributes.length]; in testListenerWithMultipleAttributes() 184 for (int i = 0; i < attributes.length; ++i) { in testListenerWithMultipleAttributes() 187 attributes[i], Executors.newSingleThreadExecutor(), listeners[i]); in testListenerWithMultipleAttributes() 194 final AudioMix[] mixes = new AudioMix[attributes.length]; in testListenerWithMultipleAttributes() 197 for (int i = 0; i < attributes.length; ++i) { in testListenerWithMultipleAttributes() 198 mixes[i] = makeMixFromAttr(attributes[i]); in testListenerWithMultipleAttributes() 206 final AudioRecord[] recorders = new AudioRecord[attributes.length]; in testListenerWithMultipleAttributes() 208 for (int i = 0; i < attributes.length; ++i) { in testListenerWithMultipleAttributes() 217 listeners[i].mDevicesForAttributes.get(attributes[i]); in testListenerWithMultipleAttributes() [all …]
|
D | AudioAttributesTest.java | 166 AudioAttributes attributes = getAudioAttributesWithEmergencySystemUsage(); in testGetUsage_returnsUnknownWhenSystemUsageSet() local 168 assertEquals(AudioAttributes.USAGE_UNKNOWN, attributes.getUsage()); in testGetUsage_returnsUnknownWhenSystemUsageSet() 173 AudioAttributes attributes = new AudioAttributes.Builder() in testGetSystemUsage_returnsSetUsage() local 177 assertEquals(AudioAttributes.USAGE_MEDIA, getSystemUsage(attributes)); in testGetSystemUsage_returnsSetUsage() 183 AudioAttributes attributes = new AudioAttributes.Builder() in testSpatializationAttr() local 188 attributes.getSpatializationBehavior()); in testSpatializationAttr() 192 AudioAttributes attributes = new AudioAttributes.Builder() in testSpatializationAttr() local 197 attributes.isContentSpatialized()); in testSpatializationAttr() 359 private static int getSystemUsage(AudioAttributes attributes) in getSystemUsage() argument 362 return (int) getSystemUsageMethod.invoke(attributes); in getSystemUsage()
|
D | AudioFocusTest.java | 302 final AudioAttributes[] attributes = { ATTR_DRIVE_DIR, ATTR_MEDIA }; in testAudioFocusRequestGainLoss() local 303 doTestTwoPlayersGainLoss(AudioManager.AUDIOFOCUS_GAIN, attributes, false /*no handler*/); in testAudioFocusRequestGainLoss() 308 final AudioAttributes[] attributes = { ATTR_DRIVE_DIR, ATTR_MEDIA }; in testAudioFocusRequestGainLossHandler() local 309 doTestTwoPlayersGainLoss(AudioManager.AUDIOFOCUS_GAIN, attributes, true /*with handler*/); in testAudioFocusRequestGainLossHandler() 314 final AudioAttributes[] attributes = { ATTR_DRIVE_DIR, ATTR_MEDIA }; in testAudioFocusRequestGainLossTransient() local 315 doTestTwoPlayersGainLoss(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT, attributes, in testAudioFocusRequestGainLossTransient() 321 final AudioAttributes[] attributes = { ATTR_DRIVE_DIR, ATTR_MEDIA }; in testAudioFocusRequestGainLossTransientHandler() local 322 doTestTwoPlayersGainLoss(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT, attributes, in testAudioFocusRequestGainLossTransientHandler() 329 final AudioAttributes[] attributes = { ATTR_DRIVE_DIR, ATTR_MEDIA }; in testAudioFocusRequestGainLossTransientDuck() local 330 doTestTwoPlayersGainLoss(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK, attributes, in testAudioFocusRequestGainLossTransientDuck() [all …]
|
D | AudioMixingRuleTest.java | 342 AudioAttributes attributes = item.getAudioAttributes(); 344 && attributes != null && attributes.getCapturePreset() == audioSource; 367 AudioAttributes attributes = item.getAudioAttributes(); 369 && attributes != null && attributes.getUsage() == usage;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
D | ShaderHelper.java | 177 …kProgram(final int vertexShaderHandle, final int fragmentShaderHandle, final String[] attributes) { in createAndLinkProgram() argument 188 if (attributes != null) { in createAndLinkProgram() 189 final int size = attributes.length; in createAndLinkProgram() 191 GLES20.glBindAttribLocation(programHandle, i, attributes[i]); in createAndLinkProgram()
|
/cts/tests/tests/sax/src/android/sax/cts/ |
D | ElementTest.java | 84 public void start(Attributes attributes) { in testParse() 85 assertEquals(Y2009, attributes.getValue(0)); in testParse() 96 public void start(Attributes attributes) { in testParse() 97 assertEquals(Y2000, attributes.getValue(0)); in testParse() 107 public void start(Attributes attributes) { in testParse()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | StableUrisTest.java | 272 final Bundle attributes = generateAttributes(seed++); in setAttributes() local 273 updateMedia(entry.getValue(), attributes); in setAttributes() local 281 attributes.putAll(autoGeneratedAttributes); in setAttributes() 282 fileToAttributes.put(entry.getKey(), attributes); in setAttributes() local 284 entry.getKey(), attributes)); in setAttributes() 290 final Bundle attributes = new Bundle(); in generateAttributes() local 291 attributes.putString(MediaStore.MediaColumns.IS_FAVORITE, seed % 2 == 0 ? "1" : "0"); in generateAttributes() 292 attributes.putString(MediaStore.MediaColumns.IS_PENDING, seed % 3 == 0 ? "1" : "0"); in generateAttributes() 294 attributes.putString(MediaStore.MediaColumns.IS_TRASHED, in generateAttributes() 297 return attributes; in generateAttributes() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | NullTextView.java | 31 public NullTextView(Context context, AttributeSet attributes) { in NullTextView() argument 32 super(context, attributes); in NullTextView()
|
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/ |
D | mockspellchecker.proto | 24 // If the string matches 'match', SuggestionsInfo with attributes and suggestions are appended. 27 optional int32 attributes = 2; field
|
/cts/tools/utils/cts/ |
D | tools.py | 72 self.attributes = {'name': package_name, 'AndroidFramework': 'Android 1.0', 91 self.attributes[name] = value 97 for (attr, value) in self.attributes.iteritems():
|
/cts/libs/webkit-shared/src/android/webkit/cts/ |
D | SharedSdkWebServer.java | 179 public String getSetCookieUrl(String path, String key, String value, String attributes) { 181 return mWebServer.getSetCookieUrl(path, key, value, attributes);
|