Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DConfigurationContainerTests.java60 final TestConfigurationContainer root = new TestConfigurationContainer(); in testConfigurationInit() local
61 assertEquals(EMPTY, root.getRequestedOverrideConfiguration()); in testConfigurationInit()
62 assertEquals(EMPTY, root.getMergedOverrideConfiguration()); in testConfigurationInit()
63 assertEquals(EMPTY, root.getConfiguration()); in testConfigurationInit()
66 final TestConfigurationContainer child1 = root.addChild(); in testConfigurationInit()
74 root.onRequestedOverrideConfigurationChanged(rootOverrideConfig); in testConfigurationInit()
75 final TestConfigurationContainer child2 = root.addChild(); in testConfigurationInit()
84 root.onConfigurationChanged(rootParentConfig); in testConfigurationInit()
88 final TestConfigurationContainer child3 = root.addChild(); in testConfigurationInit()
97 final TestConfigurationContainer root = new TestConfigurationContainer(); in testConfigurationChangeOnAddRemove() local
[all …]
DWindowContainerTests.java126 final TestWindowContainer root = builder.setLayer(0).build(); in testAdd() local
128 final TestWindowContainer layer1 = root.addChildWindow(builder.setLayer(1)); in testAdd()
129 final TestWindowContainer secondLayer1 = root.addChildWindow(builder.setLayer(1)); in testAdd()
130 final TestWindowContainer layer2 = root.addChildWindow(builder.setLayer(2)); in testAdd()
131 final TestWindowContainer layerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd()
132 final TestWindowContainer layerNeg2 = root.addChildWindow(builder.setLayer(-2)); in testAdd()
133 final TestWindowContainer secondLayerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd()
134 final TestWindowContainer layer0 = root.addChildWindow(builder.setLayer(0)); in testAdd()
136 assertEquals(7, root.getChildrenCount()); in testAdd()
138 assertEquals(root, layer1.getParentWindow()); in testAdd()
[all …]
DDisplayAreaTest.java157 final RootDisplayArea root = in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() local
167 root.addChild(da1, POSITION_BOTTOM); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
181 root.addChild(da3, POSITION_TOP); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
200 root.addChild(da5, POSITION_TOP); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
214 final RootDisplayArea root = in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() local
226 root.addChild(da1, POSITION_TOP); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
227 root.addChild(da2, POSITION_TOP); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
243 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
251 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
259 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
[all …]
/frameworks/compile/mclinker/unittests/
DPathTest.cpp41 std::string root(TOPDIR); in TEST_F() local
42 root += "/test/lit.cfg"; in TEST_F()
43 m_pTestee->assign(root); in TEST_F()
47 m_pTestee = new Path(root); in TEST_F()
52 const std::string root = "/luck"; in TEST_F() local
53 m_pTestee->assign(root); in TEST_F()
57 m_pTestee = new Path(root); in TEST_F()
62 const std::string root = "../././.."; in TEST_F() local
63 m_pTestee->assign(root); in TEST_F()
67 m_pTestee = new Path(root); in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/compose/facade/enabled/src/com/android/systemui/compose/
DComposeInitializerImpl.kt29 override fun onAttachedToWindow(root: View) { in onAttachedToWindow()
30 if (root.findViewTreeLifecycleOwner() != null) { in onAttachedToWindow()
31 error("root $root already has a LifecycleOwner") in onAttachedToWindow()
34 val parent = root.parent in onAttachedToWindow()
45 val lifecycleOwner = ViewLifecycleOwner(root) in onAttachedToWindow()
68 root.setViewTreeLifecycleOwner(lifecycleOwner) in onAttachedToWindow()
69 ViewTreeSavedStateRegistryOwner.set(root, savedStateRegistryOwner) in onAttachedToWindow()
72 override fun onDetachedFromWindow(root: View) { in onDetachedFromWindow()
73 (root.findViewTreeLifecycleOwner() as ViewLifecycleOwner).onDestroy() in onDetachedFromWindow()
74 root.setViewTreeLifecycleOwner(null) in onDetachedFromWindow()
[all …]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java222 final RootInfo root = new RootInfo(); in updateVolumesLocked() local
223 mRoots.put(rootId, root); in updateVolumesLocked()
225 root.rootId = rootId; in updateVolumesLocked()
226 root.volumeId = volume.id; in updateVolumesLocked()
227 root.storageUuid = storageUuid; in updateVolumesLocked()
228 root.flags = Root.FLAG_LOCAL_ONLY in updateVolumesLocked()
235 root.flags |= Root.FLAG_REMOVABLE_SD; in updateVolumesLocked()
237 root.flags |= Root.FLAG_REMOVABLE_USB; in updateVolumesLocked()
242 root.flags |= Root.FLAG_SUPPORTS_EJECT; in updateVolumesLocked()
246 root.flags |= Root.FLAG_ADVANCED; in updateVolumesLocked()
[all …]
/frameworks/base/core/java/android/view/
DFocusFinder.java79 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
80 return findNextFocus(root, focused, null, direction); in findNextFocus()
91 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() argument
93 return findNextFocus(root, null, mFocusedRect, direction); in findNextFocusFromRect()
96 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() argument
98 ViewGroup effectiveRoot = getEffectiveRoot(root, focused); in findNextFocus()
126 private ViewGroup getEffectiveRoot(ViewGroup root, View focused) { in getEffectiveRoot() argument
127 if (focused == null || focused == root) { in getEffectiveRoot()
128 return root; in getEffectiveRoot()
133 if (nextParent == root) { in getEffectiveRoot()
[all …]
DWindowManagerGlobal.java303 final ViewRootImpl root = mRoots.get(i); in getRootView() local
304 if (name.equals(getWindowName(root))) return root.getView(); in getRootView()
307 final ViewRootImpl root = mWindowlessRoots.get(i); in getRootView() local
308 if (name.equals(getWindowName(root))) return root.getView(); in getRootView()
341 ViewRootImpl root; in addView() local
397 root = new ViewRootImpl(view.getContext(), display); in addView()
399 root = new ViewRootImpl(view.getContext(), display, in addView()
406 mRoots.add(root); in addView()
411 root.setView(view, wparams, panelParentView, userId); in addView()
437 ViewRootImpl root = mRoots.get(index); in updateViewLayout() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DViewGroupFadeHelper.kt44 fun fadeOutAllChildrenExcept(root: ViewGroup, excludedView: View, duration: Long, in <lambda>()
48 val viewsToFadeOut = gatherViews(root, excludedView, visibilityIncluder) in <lambda>()
63 val previousSetAlpha = root.getTag( in <lambda>()
74 root.setTag(R.id.view_group_fade_helper_previous_value_tag, newAlpha) in <lambda>()
83 root.setTag(R.id.view_group_fade_helper_modified_views, viewsToFadeOut) in <lambda>()
84 root.setTag(R.id.view_group_fade_helper_animator, animator) in <lambda>()
87 private fun gatherViews(root: ViewGroup, excludedView: View, in <lambda>()
99 if (parent == root) { in <lambda>()
112 fun reset(root: ViewGroup) { in <lambda>()
114 val modifiedViews = root.getTag(R.id.view_group_fade_helper_modified_views) in <lambda>()
[all …]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java82 LinearLayout root = new LinearLayout(this); in onCreate() local
83 root.setOrientation(LinearLayout.VERTICAL); in onCreate()
89 addLabelToRoot(root, "Prescaled bitmap in drawable"); in onCreate()
90 addChildToRoot(root, layout); in onCreate()
96 addLabelToRoot(root, "Autoscaled bitmap in drawable"); in onCreate()
97 addChildToRoot(root, layout); in onCreate()
103 addLabelToRoot(root, "Prescaled resource drawable"); in onCreate()
104 addChildToRoot(root, layout); in onCreate()
107 addLabelToRoot(root, "Inflated layout"); in onCreate()
108 addChildToRoot(root, layout); in onCreate()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceSyncGroupController.java41 SurfaceSyncGroup root; in addToSyncGroup() local
45 root = new SurfaceSyncGroup(TAG + "-" + syncGroupToken.hashCode()); in addToSyncGroup()
47 root.addSyncCompleteCallback(Runnable::run, () -> { in addToSyncGroup()
55 new SurfaceSyncGroupData(Binder.getCallingUid(), root)); in addToSyncGroup()
57 root = syncGroupData.mSurfaceSyncGroup; in addToSyncGroup()
62 root.createTransactionReadyCallback(parentSyncGroupMerge); in addToSyncGroup()
66 outAddToSyncGroupResult.mParentSyncGroup = root.mISurfaceSyncGroup; in addToSyncGroup()
72 final SurfaceSyncGroup root; in markSyncGroupReady() local
85 root = syncGroupData.mSurfaceSyncGroup; in markSyncGroupReady()
89 root.markSyncReady(); in markSyncGroupReady()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java68 ObserverNode root = new ObserverNode(""); in testUri() local
83 root.addObserverLocked(uris[0], new TestObserver().getContentObserver(), false, root, in testUri()
86 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), true, root, in testUri()
92 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUri()
102 ObserverNode root = new ObserverNode(""); in testUriNotNotify() local
116 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), false, root, in testUriNotNotify()
122 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUriNotNotify()
142 final ObserverNode root = new ObserverNode(""); in testCluster() local
143 root.addObserverLocked(Uri.parse("content://authority/"), observer, in testCluster()
144 true, root, 0, 1000, myUserHandle); in testCluster()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DAsn1DecoderTest.java45 Asn1Node root = decoder.nextNode(); in testNormalOperation() local
47 assertTrue(root.isConstructed()); in testNormalOperation()
48 assertEquals(0xE3, root.getTag()); in testNormalOperation()
49 assertEquals(0x0E, root.getEncodedLength()); in testNormalOperation()
50 assertFalse(root.hasValue()); in testNormalOperation()
52 Asn1Node node = root.getChild(0x5A); in testNormalOperation()
53 assertEquals(1, root.getChildren().size()); in testNormalOperation()
54 assertEquals(1, root.getChildren(0x5A).size()); in testNormalOperation()
55 assertEquals(node, root.getChildren().get(0)); in testNormalOperation()
56 assertEquals(node, root.getChildren(0x5A).get(0)); in testNormalOperation()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDisplayListLayersActivity.java43 LinearLayout root = createContainer(); in onCreate() local
44 addChild(root, new LayerView(this, 0xffff0000, LAYER_TYPE_HARDWARE, "hardware"), in onCreate()
46 addChild(root, new LayerView(this, 0xff0000ff, LAYER_TYPE_SOFTWARE, "software"), in onCreate()
48 addChild(root, createButton(root), WRAP_CONTENT, WRAP_CONTENT); in onCreate()
50 setContentView(root); in onCreate()
53 private Button createButton(final LinearLayout root) { in createButton() argument
59 for (int i = 0; i < root.getChildCount(); i++) { in createButton()
60 View child = root.getChildAt(i); in createButton()
71 private void addChild(LinearLayout root, View child, int width, int height) { in addChild() argument
75 root.addView(child, params); in addChild()
/frameworks/av/media/libeffects/factory/
DEffectsConfigLoader.c38 static int loadLibraries(cnode *root);
39 static int loadLibrary(cnode *root, const char *name);
40 static int loadEffects(cnode *root);
43 static int addSubEffect(cnode *root);
60 cnode *root; in loadEffectConfigFile() local
67 root = config_node("", ""); in loadEffectConfigFile()
68 config_load(root, data); in loadEffectConfigFile()
69 loadLibraries(root); in loadEffectConfigFile()
70 loadEffects(root); in loadEffectConfigFile()
71 config_free(root); in loadEffectConfigFile()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgressFragment.java46 final View root = inflater.inflate(R.layout.uninstall_progress, container, false); in onCreateView() local
48 View snippetView = root.findViewById(R.id.app_snippet); in onCreateView()
51 mDeviceManagerButton = (Button) root.findViewById(R.id.device_manager_button); in onCreateView()
52 mUsersButton = (Button) root.findViewById(R.id.users_button); in onCreateView()
76 mOkButton = (Button) root.findViewById(R.id.ok_button); in onCreateView()
79 return root; in onCreateView()
103 final View root = getView(); in showCompletion() local
104 root.findViewById(R.id.progress_view).setVisibility(View.GONE); in showCompletion()
105 root.findViewById(R.id.status_view).setVisibility(View.VISIBLE); in showCompletion()
106 ((TextView) root.findViewById(R.id.status_text)).setText(statusText); in showCompletion()
[all …]
/frameworks/base/test-runner/src/android/test/suitebuilder/
DAssignableFrom.java23 private final Class<?> root; field in AssignableFrom
25 AssignableFrom(Class<?> root) { in AssignableFrom() argument
26 this.root = root; in AssignableFrom()
30 return root.isAssignableFrom(testMethod.getEnclosingClass()); in apply()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java140 void buildTextRects(AssistStructure.ViewNode root, int matrixStackIndex,
142 if (root.getVisibility() != View.VISIBLE) {
155 matrix.preTranslate(root.getLeft(), root.getTop());
156 int left = parentLeft + root.getLeft();
157 int top = parentTop + root.getTop();
158 Matrix transform = root.getTransformation();
162 if (root.getText() != null || root.getContentDescription() != null) {
163 TextEntry te = new TextEntry(root, parentLeft, parentTop, matrix);
166 final int N = root.getChildCount();
168 left -= root.getScrollX();
[all …]
/frameworks/base/packages/ExternalStorageProvider/tests/src/com/android/externalstorage/
DExternalStorageProviderTest.java60 final String root = "root"; in testGetPathFromDocId() local
62 String docId = root + ":" + path; in testGetPathFromDocId()
65 docId = root + ":" + path + "/"; in testGetPathFromDocId()
68 docId = root + ":"; in testGetPathFromDocId()
71 docId = root + ":./" + path; in testGetPathFromDocId()
75 docId = root + ":" + dotPath; in testGetPathFromDocId()
79 docId = root + ":" + twoDotPath; in testGetPathFromDocId()
/frameworks/base/tools/preload/
DWritePreloadedClassFile.java49 Root root = Root.fromFile(rootFile); in main() local
52 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
80 for (LoadedClass loadedClass : root.loadedClasses.values()) { in main()
98 for (Proc proc : root.processes.values()) { in main()
118 addAllClassesFrom("zygote", root, toPreload); in main()
130 root.toFile(rootFile); in main()
133 private static void addAllClassesFrom(String processName, Root root, in addAllClassesFrom() argument
135 for (Proc proc : root.processes.values()) { in addAllClassesFrom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/
DNodeSpecBuilder.kt50 val root = NodeSpecImpl(null, rootController) in <lambda>() constant
55 root.children.add(NodeSpecImpl(root, mediaContainerController)) in <lambda>()
75 root.children.add(NodeSpecImpl(root, headerController)) in <lambda>()
89 root.children.add(buildNotifNode(root, entry)) in <lambda>()
100 return@traceSection root in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DRecentTaskViewHolder.kt41 @Assisted private val root: ViewGroup, in <lambda>() constant in com.android.systemui.mediaprojection.appselector.view.RecentTaskViewHolder
47 ) : ViewHolder(root), ConfigurationListener, TaskPreviewSizeProvider.TaskPreviewSizeListener { in <lambda>()
49 val thumbnailView: MediaProjectionTaskView = root.requireViewById(R.id.task_thumbnail) in <lambda>()
50 private val iconView: ImageView = root.requireViewById(R.id.task_icon) in <lambda>()
71 root.contentDescription = label ?: root.context.getString(R.string.unknown) in <lambda>()
80 root.setOnClickListener(onClick) in <lambda>()
105 fun create(root: ViewGroup): RecentTaskViewHolder in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleEducationViewController.kt60 fun maybeShowManageEducation(bubble: BubbleViewProvider, root: ViewGroup) { in <lambda>()
62 showManageEducation(root) in <lambda>()
91 private fun showManageEducation(root: ViewGroup) { in <lambda>()
94 val eduView = createEducationView(root) in <lambda>()
98 root.addView(educationView) in <lambda>()
99 rootView = root in <lambda>()
123 private fun createEducationView(root: ViewGroup): BubblePopupView { in <lambda>()
125 LayoutInflater.from(context).inflate(R.layout.bubble_bar_manage_education, root, false) in <lambda>()
/frameworks/compile/slang/tests/F_root_compute_really_bad/
Dstderr.txt.expect1 root_compute_really_bad.rscript:4:5: error: Compute kernel root() is required to return a void type
2 root_compute_really_bad.rscript:5:31: error: In compute kernel root(), special parameter 'x' must b…
3 root_compute_really_bad.rscript:6:19: error: In compute kernel root(), parameter 'extra1' cannot ap…
4 root_compute_really_bad.rscript:6:36: error: In compute kernel root(), parameter 'extra2' cannot ap…
5 root_compute_really_bad.rscript:4:14: error: Compute kernel root() cannot have non-pointer paramete…
6 root_compute_really_bad.rscript:4:23: error: Compute kernel root() cannot have non-pointer paramete…
7 root_compute_really_bad.rscript:4:33: error: Compute kernel root() cannot have non-pointer paramete…
8 root_compute_really_bad.rscript:4:48: error: Compute kernel root() cannot have non-pointer paramete…
9 root_compute_really_bad.rscript:4:59: error: Compute kernel root() cannot have non-pointer paramete…
10 root_compute_really_bad.rscript:4:5: error: Compute kernel root() must have at least one parameter …
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DWallpaperController.kt67 rootView?.let { root -> in <lambda>() method
68 if (root.isAttachedToWindow && root.windowToken != null) { in <lambda>()
69 wallpaperManager.setWallpaperZoomOut(root.windowToken, zoomOut) in <lambda>()
71 Log.i(TAG, "Won't set zoom. Window not attached $root") in <lambda>()

12345678910>>...23