/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3DeviceInjectionMethods.cpp | 32 wp<Camera3Device> parent) in Camera3DeviceInjectionMethods() argument 33 : mParent(parent) { in Camera3DeviceInjectionMethods() 54 sp<Camera3Device> parent = mParent.promote(); in injectionInitialize() local 55 if (parent == nullptr) { in injectionInitialize() 89 std::unique_ptr<ResultMetadataQueue>& resQueue = parent->mResultMetadataQueue; in injectionInitialize() 118 new HalInterface(session, queue, parent->mUseHalBufManager, in injectionInitialize() 119 parent->mSupportOfflineProcessing); in injectionInitialize() 140 sp<Camera3Device> parent = mParent.promote(); in injectCamera() local 141 if (parent == nullptr) { in injectCamera() 146 nsecs_t maxExpectedDuration = parent->getExpectedInFlightDuration(); in injectCamera() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewClippingUtil.java | 42 ViewGroup parent = (ViewGroup) transformedView.getParent(); in setClippingDeactivated() local 47 ArraySet<View> clipSet = (ArraySet<View>) parent.getTag(CLIP_CLIPPING_SET); in setClippingDeactivated() 50 parent.setTagInternal(CLIP_CLIPPING_SET, clipSet); in setClippingDeactivated() 52 Boolean clipChildren = (Boolean) parent.getTag(CLIP_CHILDREN_TAG); in setClippingDeactivated() 54 clipChildren = parent.getClipChildren(); in setClippingDeactivated() 55 parent.setTagInternal(CLIP_CHILDREN_TAG, clipChildren); in setClippingDeactivated() 57 Boolean clipToPadding = (Boolean) parent.getTag(CLIP_TO_PADDING); in setClippingDeactivated() 59 clipToPadding = parent.getClipToPadding(); in setClippingDeactivated() 60 parent.setTagInternal(CLIP_TO_PADDING, clipToPadding); in setClippingDeactivated() 65 parent.setClipChildren(clipChildren); in setClippingDeactivated() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | ViewShowHidePerfTest.java | 75 private void createNestedLinearLayoutTree(Context context, LinearLayout parent, 79 parent.setBackgroundColor((mColorToggle < 2) ? Color.RED : Color.BLUE); 84 … parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL); 89 parent.addView(child, new LinearLayout.LayoutParams( 141 void run(BenchmarkState state, int width, int height, ViewGroup parent, View child); in run() argument 148 FrameLayout parent = new FrameLayout(getContext()); in testParentWithChild() local 149 mActivityRule.getActivity().setContentView(parent); in testParentWithChild() 153 layout(width, height, parent); in testParentWithChild() 155 callback.run(state, width, height, parent, mChild); in testParentWithChild() 173 testParentWithChild((state, width, height, parent, child) -> { in testRemove() argument [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SetFrameRateTest.cpp | 206 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 210 addChild(parent, child1); in TEST_P() 215 EXPECT_EQ(FRAME_RATE_TREE, parent->getFrameRateForLayerTree()); in TEST_P() 221 EXPECT_EQ(FRAME_RATE_NO_VOTE, parent->getFrameRateForLayerTree()); in TEST_P() 231 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local 235 addChild(parent, child1); in TEST_P() 240 parent->setFrameRate(FRAME_RATE_VOTE3); in TEST_P() 242 EXPECT_EQ(FRAME_RATE_VOTE3, parent->getFrameRateForLayerTree()); in TEST_P() 248 EXPECT_EQ(FRAME_RATE_VOTE3, parent->getFrameRateForLayerTree()); in TEST_P() 254 EXPECT_EQ(FRAME_RATE_VOTE3, parent->getFrameRateForLayerTree()); in TEST_P() [all …]
|
/frameworks/base/core/java/android/view/ |
D | GhostView.java | 45 final ViewGroup parent = (ViewGroup) mView.getParent(); in GhostView() local 47 parent.invalidate(); in GhostView() 83 final ViewGroup parent = (ViewGroup) mView.getParent(); in onDetachedFromWindow() local 84 if (parent != null) { in onDetachedFromWindow() 85 parent.invalidate(); in onDetachedFromWindow() 91 ViewGroup parent = (ViewGroup) view.getParent(); in calculateMatrix() local 93 parent.transformMatrixToGlobal(matrix); in calculateMatrix() 94 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY()); in calculateMatrix() 123 FrameLayout parent = new FrameLayout(view.getContext()); in addGhost() local 124 parent.setClipChildren(false); in addGhost() [all …]
|
D | ViewStub.java | 258 ViewGroup parent = (ViewGroup) getParent(); in setVisibilityAsync() local 259 return new ViewReplaceRunnable(inflateViewNoAdd(parent)); in setVisibilityAsync() 265 private View inflateViewNoAdd(ViewGroup parent) { in inflateViewNoAdd() argument 272 final View view = factory.inflate(mLayoutResource, parent, false); in inflateViewNoAdd() 280 private void replaceSelfWithView(View view, ViewGroup parent) { in replaceSelfWithView() argument 281 final int index = parent.indexOfChild(this); in replaceSelfWithView() 282 parent.removeViewInLayout(this); in replaceSelfWithView() 286 parent.addView(view, index, layoutParams); in replaceSelfWithView() 288 parent.addView(view, index); in replaceSelfWithView() 304 final ViewGroup parent = (ViewGroup) viewParent; in inflate() local [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerTypeTransaction_test.cpp | 44 sp<SurfaceControl> parent = in TEST_P() local 47 Transaction().setCrop(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 58 Transaction().reparent(layerB, parent).apply(); in TEST_P() 66 captureArgs.layerHandle = parent->getHandle(); in TEST_P() 73 sp<SurfaceControl> parent = in TEST_P() local 82 parent.get())); in TEST_P() 85 .setColor(parent, half3{0.0f, 0.0f, 0.0f}) in TEST_P() 87 .show(parent) in TEST_P() 88 .setCrop(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)) in TEST_P() 92 Transaction().setRelativeLayer(childLayer, parent, -1).setLayer(childLayer, 1).apply(); in TEST_P() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | RenderNodeTests.cpp | 45 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() local 50 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 53 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST() 55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 60 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST() 62 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 65 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST() 72 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() local 78 EXPECT_TRUE(parent->isValid()); in TEST() 80 EXPECT_TRUE(parent->nothingToDraw()); in TEST() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/ |
D | ContentWidget.java | 44 View parent = this; in onAttachedToWindow() local 45 while (parent != null) { in onAttachedToWindow() 46 if (parent.getId() == android.R.id.content && parent instanceof ViewGroup) { in onAttachedToWindow() 49 if (parent.getParent() instanceof ViewGroup) { in onAttachedToWindow() 50 parent = (ViewGroup) parent.getParent(); in onAttachedToWindow()
|
/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 733 private void runChangeTransition(final ViewGroup parent, View newView, final int changeReason) { in runChangeTransition() argument 767 final ViewTreeObserver observer = parent.getViewTreeObserver(); in runChangeTransition() 772 int numChildren = parent.getChildCount(); in runChangeTransition() 775 final View child = parent.getChildAt(i); in runChangeTransition() 779 setupChangeAnimation(parent, changeReason, baseAnimator, duration, child); in runChangeTransition() 783 ViewGroup tempParent = parent; in runChangeTransition() 800 CleanupCallback callback = new CleanupCallback(layoutChangeListenerMap, parent); in runChangeTransition() 802 parent.addOnAttachStateChangeListener(callback); in runChangeTransition() 830 private void setupChangeAnimation(final ViewGroup parent, final int changeReason, in setupChangeAnimation() argument 953 parent.requestTransitionStart(LayoutTransition.this); in setupChangeAnimation() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | BaseMenuPresenter.java | 84 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() local 85 if (parent == null) return; in updateMenuView() 95 final View convertView = parent.getChildAt(childIndex); in updateMenuView() 98 final View itemView = getItemView(item, convertView, parent); in updateMenuView() 113 while (childIndex < parent.getChildCount()) { in updateMenuView() 114 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView() 140 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument 141 parent.removeViewAt(childIndex); in filterLeftoverView() 158 public MenuView.ItemView createItemView(ViewGroup parent) { in createItemView() argument 159 return (MenuView.ItemView) mSystemInflater.inflate(mItemLayoutRes, parent, false); in createItemView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | HybridGroupManager.java | 59 View contentView, ViewGroup parent) { in inflateHybridViewWithStyle() argument 66 inflater.inflate(layout, parent, false); in inflateHybridViewWithStyle() 67 parent.addView(hybrid); in inflateHybridViewWithStyle() 71 private TextView inflateOverflowNumber(ViewGroup parent) { in inflateOverflowNumber() argument 74 R.layout.hybrid_overflow_number, parent, false); in inflateOverflowNumber() 75 parent.addView(numberView); in inflateOverflowNumber() 93 ViewGroup parent) { in bindFromNotification() argument 95 R.style.HybridNotification, parent); in bindFromNotification() 101 int style, ViewGroup parent) { in bindFromNotificationWithStyle() argument 103 reusableView = inflateHybridViewWithStyle(style, contentView, parent); in bindFromNotificationWithStyle() [all …]
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | DividerItemDecoration.java | 103 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument 107 final int childCount = parent.getChildCount(); in onDraw() 108 final int width = parent.getWidth(); in onDraw() 111 final View view = parent.getChildAt(childViewIndex); in onDraw() 112 if (shouldDrawDividerBelow(view, parent)) { in onDraw() 122 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument 123 if (shouldDrawDividerBelow(view, parent)) { in getItemOffsets() 128 private boolean shouldDrawDividerBelow(View view, RecyclerView parent) { in shouldDrawDividerBelow() argument 129 final RecyclerView.ViewHolder holder = parent.getChildViewHolder(view); in shouldDrawDividerBelow() 131 final int lastItemIndex = parent.getAdapter().getItemCount() - 1; in shouldDrawDividerBelow() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
D | ButtonItemTest.java | 48 private ViewGroup parent; field in ButtonItemTest 54 parent = new LinearLayout(context); in setUp() 83 final Button button = item.createButton(parent); in testCreateButton() 96 .that(item.createButton(parent).getId()) in testButtonItemSetsItsId() 103 final Button button = item.createButton(parent); in testCreateButtonTwice() 108 final Button button2 = item.createButton(parent); in testCreateButtonTwice() 120 final Button button = item.createButton(parent); in testSetEnabledTrue() 130 final Button button = item.createButton(parent); in testSetEnabledFalse() 140 final Button button = item.createButton(parent); in testSetText() 154 final Button button = item.createButton(parent); in testSetTheme() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 55 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality() argument 56 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() argument 58 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength() argument 59 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() argument 61 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase() argument 62 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() argument 64 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase() argument 65 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() argument 67 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters() argument 68 int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLetters() argument [all …]
|
/frameworks/base/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/ |
D | CollapsingToolbarBaseActivity.java | 82 final ViewGroup parent = findViewById(R.id.content_frame); in setContentView() local 83 if (parent != null) { in setContentView() 84 parent.removeAllViews(); in setContentView() 86 LayoutInflater.from(this).inflate(layoutResID, parent); in setContentView() 91 final ViewGroup parent = findViewById(R.id.content_frame); in setContentView() local 92 if (parent != null) { in setContentView() 93 parent.addView(view); in setContentView() 99 final ViewGroup parent = findViewById(R.id.content_frame); in setContentView() local 100 if (parent != null) { in setContentView() 101 parent.addView(view, params); in setContentView()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineAlignmentCenterGravityTest.java | 57 final View parent = (View) mButton1.getParent(); in testChildrenAligned() local 58 ViewAsserts.assertTopAligned(mButton1, parent); in testChildrenAligned() 59 ViewAsserts.assertTopAligned(mButton2, parent); in testChildrenAligned() 60 ViewAsserts.assertTopAligned(mButton3, parent); in testChildrenAligned() 61 ViewAsserts.assertBottomAligned(mButton1, parent); in testChildrenAligned() 62 ViewAsserts.assertBottomAligned(mButton2, parent); in testChildrenAligned() 63 ViewAsserts.assertBottomAligned(mButton3, parent); in testChildrenAligned()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ViewGroupFadeHelper.kt | 90 var parent = excludedView.parent as ViewGroup? in <lambda>() variable 92 while (parent != null) { in <lambda>() 93 for (i in 0 until parent.childCount) { in <lambda>() 94 val child = parent.getChildAt(i) in <lambda>() 99 if (parent == root) { in <lambda>() 102 viewContainingExcludedView = parent in <lambda>() 103 parent = parent.parent as ViewGroup? in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ |
D | SectionHeaderController.kt | 34 fun reinflateView(parent: ViewGroup) in <lambda>() 58 override fun reinflateView(parent: ViewGroup) { in reinflateView() 62 if (_view.parent === parent) { in reinflateView() 63 oldPos = parent.indexOfChild(_view) in reinflateView() 64 parent.removeView(_view) in reinflateView() 69 parent, in reinflateView() 76 parent.addView(inflated, oldPos) in reinflateView()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationLoaders.java | 48 ClassLoader parent, String classLoaderName) { in getClassLoader() argument 50 librarySearchPath, libraryPermittedPath, parent, classLoaderName, in getClassLoader() 57 ClassLoader parent, String classLoaderName, in getClassLoaderWithSharedLibraries() argument 61 libraryPermittedPath, parent, zip, classLoaderName, sharedLibraries, in getClassLoaderWithSharedLibraries() 74 ClassLoader parent, String classLoaderName, List<ClassLoader> sharedLibraries) { in getSharedLibraryClassLoaderWithSharedLibraries() argument 75 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries() 88 librarySearchPath, libraryPermittedPath, parent, classLoaderName, sharedLibraries, in getSharedLibraryClassLoaderWithSharedLibraries() 94 ClassLoader parent, String cacheKey, in getClassLoader() argument 106 if (parent == null) { in getClassLoader() 107 parent = baseParent; in getClassLoader() [all …]
|
/frameworks/base/sax/java/android/sax/ |
D | Children.java | 30 Element getOrCreate(Element parent, String uri, String localName) { in getOrCreate() argument 37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 56 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 91 Child(Element parent, String uri, String localName, int depth, in Child() argument 93 super(parent, uri, localName, depth); in Child()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSectionsManager.kt | 70 reinflateViews(LayoutInflater.from(parent.context)) in <lambda>() 74 private lateinit var parent: NotificationStackScrollLayout in <lambda>() variable 98 fun initialize(parent: NotificationStackScrollLayout, layoutInflater: LayoutInflater) { in <lambda>() 101 this.parent = parent in <lambda>() 114 if (view.parent === parent) { in <lambda>() 115 oldPos = parent.indexOfChild(view) in <lambda>() 116 parent.removeView(view) in <lambda>() 119 val inflated = layoutInflater.inflate(layoutResId, parent, false) as T in <lambda>() 121 parent.addView(inflated, oldPos) in <lambda>() 128 .map { NotificationSection(parent, it) } in <lambda>() [all …]
|
/frameworks/base/services/incremental/ |
D | path.h | 70 std::string_view relativize(std::string_view parent, std::string_view nested); 71 inline std::string_view relativize(const char* parent, const char* nested) { in relativize() argument 72 return relativize(std::string_view(parent), std::string_view(nested)); in relativize() 74 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize() argument 75 return relativize(parent, std::string_view(nested)); in relativize() 77 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize() argument 78 return relativize(std::string_view(parent), nested); in relativize() 81 std::string_view relativize(std::string&& parent, std::string_view nested) = delete; 82 std::string_view relativize(std::string_view parent, std::string&& nested) = delete;
|
/frameworks/base/startop/apps/test/src/ |
D | SystemServerBenchmarks.java | 57 static void initializeBenchmarks(Activity parent, BenchmarkRunner benchmarks) { in initializeBenchmarks() argument 58 final String packageName = parent.getPackageName(); in initializeBenchmarks() 60 PackageManager pm = parent.getPackageManager(); in initializeBenchmarks() 102 ComponentName component = new ComponentName(parent, parent.getClass()); in initializeBenchmarks() 146 ActivityManager am = (ActivityManager) parent.getSystemService(Context.ACTIVITY_SERVICE); in initializeBenchmarks() 154 PendingIntent pi = PendingIntent.getActivity(parent, 0, new Intent(), 0); in initializeBenchmarks() 159 PowerManager pwr = (PowerManager) parent.getSystemService(Context.POWER_SERVICE); in initializeBenchmarks() 166 AppOpsManager appOps = (AppOpsManager) parent.getSystemService(Context.APP_OPS_SERVICE); in initializeBenchmarks() 184 UserManager userManager = (UserManager) parent.getSystemService(Context.USER_SERVICE); in initializeBenchmarks() 193 ConnectivityManager cm = (ConnectivityManager) parent in initializeBenchmarks()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewLayerInvalidationActivity.java | 126 private void randomInvalidator(ViewGroup parent) { in randomInvalidator() argument 127 for (int i = 0; i < parent.getChildCount(); ++i) { in randomInvalidator() 128 View child = parent.getChildAt(i); in randomInvalidator() 142 LinearLayout parent = (LinearLayout) view; in collectLinearLayouts() local 143 linearLayouts.add(parent); in collectLinearLayouts() 144 for (int i = 0; i < parent.getChildCount(); ++i) { in collectLinearLayouts() 145 collectLinearLayouts(parent.getChildAt(i)); in collectLinearLayouts() 157 ViewGroup parent = (ViewGroup) view; in collectTextViews() local 158 for (int i = 0; i < parent.getChildCount(); ++i) { in collectTextViews() 159 collectTextViews(parent.getChildAt(i)); in collectTextViews()
|