/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ConfigurationContainerTests.java | 60 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 …]
|
D | WindowContainerTests.java | 112 final TestWindowContainer root = builder.setLayer(0).build(); in testAdd() local 114 final TestWindowContainer layer1 = root.addChildWindow(builder.setLayer(1)); in testAdd() 115 final TestWindowContainer secondLayer1 = root.addChildWindow(builder.setLayer(1)); in testAdd() 116 final TestWindowContainer layer2 = root.addChildWindow(builder.setLayer(2)); in testAdd() 117 final TestWindowContainer layerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd() 118 final TestWindowContainer layerNeg2 = root.addChildWindow(builder.setLayer(-2)); in testAdd() 119 final TestWindowContainer secondLayerNeg1 = root.addChildWindow(builder.setLayer(-1)); in testAdd() 120 final TestWindowContainer layer0 = root.addChildWindow(builder.setLayer(0)); in testAdd() 122 assertEquals(7, root.getChildrenCount()); in testAdd() 124 assertEquals(root, layer1.getParentWindow()); in testAdd() [all …]
|
D | DisplayAreaTest.java | 157 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/ |
D | PathTest.cpp | 41 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/ |
D | ComposeInitializerImpl.kt | 29 override fun onAttachedToWindow(root: View) { in onAttachedToWindow() 30 if (ViewTreeLifecycleOwner.get(root) != 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() 69 ViewTreeLifecycleOwner.set(root, lifecycleOwner) in onAttachedToWindow() 70 ViewTreeSavedStateRegistryOwner.set(root, savedStateRegistryOwner) in onAttachedToWindow() 73 override fun onDetachedFromWindow(root: View) { in onDetachedFromWindow() 74 (ViewTreeLifecycleOwner.get(root) as ViewLifecycleOwner).onDestroy() in onDetachedFromWindow() 75 ViewTreeLifecycleOwner.set(root, null) in onDetachedFromWindow() [all …]
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 222 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/ |
D | WindowManagerGlobal.java | 297 final ViewRootImpl root = mRoots.get(i); in getRootView() local 298 if (name.equals(getWindowName(root))) return root.getView(); in getRootView() 301 final ViewRootImpl root = mWindowlessRoots.get(i); in getRootView() local 302 if (name.equals(getWindowName(root))) return root.getView(); in getRootView() 335 ViewRootImpl root; in addView() local 391 root = new ViewRootImpl(view.getContext(), display); in addView() 393 root = new ViewRootImpl(view.getContext(), display, in addView() 400 mRoots.add(root); in addView() 405 root.setView(view, wparams, panelParentView, userId); in addView() 431 ViewRootImpl root = mRoots.get(index); in updateViewLayout() local [all …]
|
D | FocusFinder.java | 79 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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ViewGroupFadeHelper.kt | 44 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/ |
D | DpiTestActivity.java | 82 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | Asn1DecoderTest.java | 45 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/services/tests/servicestests/src/com/android/server/content/ |
D | ObserverNodeTest.java | 68 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/av/media/libeffects/factory/ |
D | EffectsConfigLoader.c | 38 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/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | DisplayListLayersActivity.java | 43 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/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | UninstallAppProgressFragment.java | 45 final View root = inflater.inflate(R.layout.uninstall_progress, container, false); in onCreateView() local 47 View snippetView = root.findViewById(R.id.app_snippet); in onCreateView() 50 mDeviceManagerButton = (Button) root.findViewById(R.id.device_manager_button); in onCreateView() 51 mUsersButton = (Button) root.findViewById(R.id.users_button); in onCreateView() 75 mOkButton = (Button) root.findViewById(R.id.ok_button); in onCreateView() 78 return root; in onCreateView() 102 final View root = getView(); in showCompletion() local 103 root.findViewById(R.id.progress_view).setVisibility(View.GONE); in showCompletion() 104 root.findViewById(R.id.status_view).setVisibility(View.VISIBLE); in showCompletion() 105 ((TextView) root.findViewById(R.id.status_text)).setText(statusText); in showCompletion() [all …]
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | AssignableFrom.java | 23 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/ |
D | AssistVisualizer.java | 140 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/ |
D | ExternalStorageProviderTest.java | 60 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ |
D | NodeSpecBuilder.kt | 50 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/tools/preload/ |
D | WritePreloadedClassFile.java | 49 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/compile/slang/tests/F_root_compute_really_bad/ |
D | stderr.txt.expect | 1 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/av/media/libnblog/ |
D | ReportPerformance.cpp | 46 Json::Value& root = *rootPtr; in dumpToJson() local 47 root["ioHandle"] = data.threadInfo.id; in dumpToJson() 48 root["type"] = NBLog::threadTypeToString(data.threadInfo.type); in dumpToJson() 49 root["frameCount"] = (Json::Value::Int)data.threadParams.frameCount; in dumpToJson() 50 root["sampleRate"] = (Json::Value::Int)data.threadParams.sampleRate; in dumpToJson() 51 root["workMsHist"] = data.workHist.toString(); in dumpToJson() 52 root["latencyMsHist"] = data.latencyHist.toString(); in dumpToJson() 53 root["warmupMsHist"] = data.warmupHist.toString(); in dumpToJson() 54 root["underruns"] = (Json::Value::Int64)data.underruns; in dumpToJson() 55 root["overruns"] = (Json::Value::Int64)data.overruns; in dumpToJson() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | WallpaperController.kt | 65 rootView?.let { root -> in <lambda>() method 66 if (root.isAttachedToWindow && root.windowToken != null) { in <lambda>() 67 wallpaperManager.setWallpaperZoomOut(root.windowToken, zoomOut) in <lambda>() 69 Log.i(TAG, "Won't set zoom. Window not attached $root") in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/compose/ |
D | ComposeInitializerTest.kt | 39 val root = TestWindowRoot(context) in testCanAddComposeViewInInitializedWindow() constant 41 runOnMainThreadAndWaitForIdleSync { ViewUtils.attachView(root) } in testCanAddComposeViewInInitializedWindow() 42 assertThat(root.isAttachedToWindow).isTrue() in testCanAddComposeViewInInitializedWindow() 44 runOnMainThreadAndWaitForIdleSync { root.addView(ComposeView(context)) } in testCanAddComposeViewInInitializedWindow() 46 runOnMainThreadAndWaitForIdleSync { ViewUtils.detachView(root) } in testCanAddComposeViewInInitializedWindow()
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | LoginTest.java | 102 final View root = activity.getWindow().getDecorView(); in testOnVisibilityAggregated_visibleChanged() local 103 final View username = root.findViewById(R.id.username); in testOnVisibilityAggregated_visibleChanged() 111 final View root = activity.getWindow().getDecorView(); in testOnVisibilityAggregated_visibleChanged_noService() local 112 final View username = root.findViewById(R.id.username); in testOnVisibilityAggregated_visibleChanged_noService() 122 final View root = activity.getWindow().getDecorView(); in testOnVisibilityAggregated_visibleChanged_noOptions() local 123 final View username = root.findViewById(R.id.username); in testOnVisibilityAggregated_visibleChanged_noOptions() 132 final View root = activity.getWindow().getDecorView(); in testOnVisibilityAggregated_visibleChanged_notImportant() local 133 final View username = root.findViewById(R.id.username); in testOnVisibilityAggregated_visibleChanged_notImportant()
|