Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 77) sorted by relevance

1234

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DVectorDrawableTests.java87 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testInvalidateCache()
88 root.setBackgroundColor(Color.BLUE); in testInvalidateCache()
101 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testInvalidateCache()
105 root.getViewTreeObserver().addOnPreDrawListener( in testInvalidateCache()
116 root.getViewTreeObserver().removeOnPreDrawListener(this); in testInvalidateCache()
117 root.post(fence::countDown); in testInvalidateCache()
119 root.postInvalidate(); in testInvalidateCache()
DLayerTests.java123 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testLayerPaintAlphaChanged()
129 root.addView(child, new FrameLayout.LayoutParams(TEST_WIDTH, TEST_HEIGHT, in testLayerPaintAlphaChanged()
133 root.getViewTreeObserver().addOnPreDrawListener( in testLayerPaintAlphaChanged()
139 root.getChildAt(0).setAlpha(1.00f); in testLayerPaintAlphaChanged()
140 root.getViewTreeObserver().removeOnPreDrawListener(this); in testLayerPaintAlphaChanged()
141 root.post(fence::countDown); in testLayerPaintAlphaChanged()
143 root.postInvalidate(); in testLayerPaintAlphaChanged()
198 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testLayerClear()
199 root.setAlpha(0.5f); in testLayerClear()
207 root.addView(child); in testLayerClear()
[all …]
DBitmapTests.java114 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testChangeDuringRtAnimation()
118 root.addView(child); in testChangeDuringRtAnimation()
180 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testChangeDuringUiAnimation()
181 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation()
189 root.addView(child); in testChangeDuringUiAnimation()
202 root.setBackgroundColor(Color.RED); in testChangeDuringUiAnimation()
205 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation()
DAlphaBlendTest.java68 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testBlendAlphaNonOverlappingView()
69 root.setBackgroundColor(Color.BLACK); in testBlendAlphaNonOverlappingView()
76 root.addView(child); in testBlendAlphaNonOverlappingView()
DSurfaceViewTests.java100 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in testMovingWhiteSurfaceView()
101 mAnimator = createInfiniteAnimator(root, "translationY", 0, 50); in testMovingWhiteSurfaceView()
105 root.addView(surfaceViewA, new FrameLayout.LayoutParams( in testMovingWhiteSurfaceView()
147 FrameLayout root = (FrameLayout) view.findViewById(R.id.frame_layout); in initializeView() local
151 root.addView(mSurfaceView, new FrameLayout.LayoutParams( in initializeView()
/cts/suite/audio_quality/lib/src/task/
DModelBuilder.cpp94 const XMLElement* root; in parseTestDescriptionXml() local
95 if ((root = doc.FirstChildElement("case")) != NULL) { in parseTestDescriptionXml()
96 return parseCase(*root); in parseTestDescriptionXml()
97 } else if (!caseOnly && ((root = doc.FirstChildElement("batch")) != NULL)) { in parseTestDescriptionXml()
98 return parseBatch(*root, xmlFileName); in parseTestDescriptionXml()
181 TaskCase* ModelBuilder::parseCase(const XMLElement& root) in parseCase() argument
184 return reinterpret_cast<TaskCase*>(parseGeneric(root, 0)); in parseCase()
188 TaskBatch* ModelBuilder::parseBatch(const XMLElement& root, const android::String8& xmlFileName) in parseBatch() argument
196 if (!parseAttributes(root, *batch.get())) { in parseBatch()
200 const XMLElement* inc = root.FirstChildElement("include"); in parseBatch()
/cts/tests/tests/sax/src/android/sax/cts/
DElementTest.java72 RootElement root = new RootElement(ATOM_NAMESPACE, FEED); in testParse() local
73 assertNotNull(root); in testParse()
74 Element name = root.getChild(ATOM_NAMESPACE, NAME); in testParse()
82 Element entry1 = root.getChild(ATOM_NAMESPACE, ENTRY1); in testParse()
94 Element entry2 = root.requireChild(ATOM_NAMESPACE, ENTRY2); in testParse()
122 xmlReader.setContentHandler(root.getContentHandler()); in testParse()
DRootElementTest.java28 RootElement root = new RootElement(ATOM_NAMESPACE, FEED); in testRoot() local
29 assertNotNull(root.getContentHandler()); in testRoot()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDumpOnFailure.java89 Path root = getDumpRoot(description);
90 File rootFile = root.toFile();
92 throw new RuntimeException("Unable to create " + root);
97 Log.i(TAG, "Dumping " + root + "/" + fileName);
98 BitmapUtils.saveBitmap(entry.getValue(), root.toString(), fileName);
/cts/tests/tests/view/src/android/view/cts/
DViewAnimationMatrixTest.java69 final View root = activity.mRoot; in testAnimationMatrixAppliedDuringDrawing() local
75 waitForDraw(root); in testAnimationMatrixAppliedDuringDrawing()
76 Bitmap bitmap = captureView(root, view.getWidth(), view.getHeight()); in testAnimationMatrixAppliedDuringDrawing()
85 final View root = activity.mRoot; in testAnimationMatrixClearedWithPassingNull() local
90 waitForDraw(root); in testAnimationMatrixClearedWithPassingNull()
91 Bitmap bitmap = captureView(root, view.getWidth(), view.getHeight()); in testAnimationMatrixClearedWithPassingNull()
DView_InitialFocusTest.java65 View root = activity.findViewById(R.id.main_view); in getInitialAndFirstFocus() local
66 View initial = root.findFocus(); in getInitialAndFirstFocus()
68 View first = root.findFocus(); in getInitialAndFirstFocus()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/tradefed/
DCtsTradefedTest.java63 File root = FileUtil.createTempDir("root"); in testSuiteInfoLoad() local
64 System.setProperty(PROPERTY_NAME, root.getAbsolutePath()); in testSuiteInfoLoad()
65 File base = new File(root, "android-cts"); in testSuiteInfoLoad()
77 FileUtil.recursiveDelete(root); in testSuiteInfoLoad()
/cts/tools/utils/
Dandroid_api_description_splitter.py87 self.root = self.doc.documentElement
121 self.__removeAllChild(self.root)
126 doc.appendChild(self.root)
128 self.root.appendChild(elem)
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderTestBase.kt201 val root: File = zipToDir("$providerName.apk") in <lambda>() constant in android.content.res.loader.cts.ResourcesLoaderTestBase.ZipAssetsProvider
204 val f = File(root, path) in <lambda>()
206 ParcelFileDescriptor.open(File(root, path), in <lambda>()
238 val root = File(context.filesDir, name.split('.')[0]) in <lambda>() constant
239 if (root.exists()) { in <lambda>()
240 return root in <lambda>()
243 root.mkdir() in <lambda>()
247 val file = File(root, entry.name) in <lambda>()
262 return root in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCaCertInstallViaIntentTest.java44 View root = getLayoutInflater().inflate(R.layout.ca_install_via_intent, null); in onCreate() local
45 setContentView(root); in onCreate()
51 mRunButton = root.findViewById(R.id.run_test_button); in onCreate()
DKeyChainTest.java110 View root = getLayoutInflater().inflate(R.layout.keychain_main, null); in onCreate() local
111 setContentView(root); in onCreate()
116 mInstructionView = (TextView) root.findViewById(R.id.test_instruction); in onCreate()
117 mLogView = (TextView) root.findViewById(R.id.test_log); in onCreate()
120 mNextButton = (Button) root.findViewById(R.id.action_next); in onCreate()
123 mResetButton = (Button) root.findViewById(R.id.action_reset); in onCreate()
126 mSkipButton = (Button) root.findViewById(R.id.action_skip); in onCreate()
/cts/libs/json/src/com/android/json/stream/
DNewlineDelimitedJsonWriter.java167 protected void beforeValue(boolean root) throws IOException { in beforeValue() argument
170 if (!root) { in beforeValue()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletFactory.java54 RootDoc root = getRootDoc(visibility, sourcepath, packageNames); in loadApi() local
56 IApi api = converter.convertDocletRoot(name, root, visibility, in loadApi()
117 RootDocImpl root = comp.getRootDocImpl(docLocale, encoding, showAccess, in getRootDoc() local
121 return root; in getRootDoc()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java136 final ViewGroup root = findViewById(R.id.display_content); in createVirtualDisplay() local
145 root.addView(surfaceView); in createVirtualDisplay()
151 final ViewGroup root = findViewById(android.R.id.content); in destroyVirtualDisplays() local
156 root.removeView(entry.surfaceView); in destroyVirtualDisplays()
217 final ViewGroup root = findViewById(android.R.id.content); in surfaceCreated()
219 root.removeView(entry.surfaceView); in surfaceCreated()
/cts/suite/audio_quality/lib/include/task/
DModelBuilder.h54 virtual TaskCase* parseCase(const tinyxml2::XMLElement& root);
55 …virtual TaskBatch* parseBatch(const tinyxml2::XMLElement& root, const android::String8& xmlFileNam…
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java157 AccessibilityNodeInfo root = window.getRoot(); in dumpAccessibilityNodeTreeOnLogcat() local
158 if (root == null) { in dumpAccessibilityNodeTreeOnLogcat()
162 roots.add(root); in dumpAccessibilityNodeTreeOnLogcat()
169 for (AccessibilityNodeInfo root : roots) { in dumpAccessibilityNodeTreeOnLogcat()
170 dumpTreeWithPrefix(root, ""); in dumpAccessibilityNodeTreeOnLogcat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java127 CharSequence instructionCharSequence, ViewGroup root) { in createAutoItem() argument
128 View item = inflater.inflate(R.layout.tv_item, root, false); in createAutoItem()
147 public static View createButtonItem(LayoutInflater inflater, ViewGroup root, int buttonTextId, in createButtonItem() argument
149 View item = inflater.inflate(R.layout.tv_item, root, false); in createButtonItem()
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesValidConfigTest.java114 Element root = dom.getDocumentElement(); in getExpectedCompatConfig() local
115 NodeList changeNodes = root.getElementsByTagName("compat-change"); in getExpectedCompatConfig()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java770 AccessibilityNodeInfo root = window.getRoot(); in assertSingleAccessibilityFocus() local
772 AccessibilityNodeInfo.FOCUS_ACCESSIBILITY), root); in assertSingleAccessibilityFocus() local
773 assertEquals(root.findFocus( in assertSingleAccessibilityFocus()
774 AccessibilityNodeInfo.FOCUS_ACCESSIBILITY), root); in assertSingleAccessibilityFocus() local
779 AccessibilityNodeInfo root = window.getRoot(); in assertSingleAccessibilityFocus() local
780 if (root != null) { in assertSingleAccessibilityFocus()
781 assertNull(root.findFocus( in assertSingleAccessibilityFocus()
879 AccessibilityNodeInfo root = window.getRoot();
880 if (root != null) {
881 root.performAction(
[all …]
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java64 X509Certificate root = loadCertificates(R.raw.intermediate_test_root)[0]; in getTrustManager() local
65 keystore.setEntry("root", new KeyStore.TrustedCertificateEntry(root), null); in getTrustManager()

1234