/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupChildrenTest.java | 138 final View[] views = new View[24]; in testRemoveChildren() local 140 for (int i = 0; i < views.length; i++) { in testRemoveChildren() 141 views[i] = createView(String.valueOf(i + 1)); in testRemoveChildren() 142 mGroup.addView(views[i]); in testRemoveChildren() 145 for (int i = views.length - 1; i >= 0; i--) { in testRemoveChildren() 148 ViewAsserts.assertGroupNotContains(mGroup, views[i]); in testRemoveChildren() 149 assertNull(views[i].getParent()); in testRemoveChildren() 159 final View[] views = new View[24]; in testRemoveChildrenBulk() local 161 for (int i = 0; i < views.length; i++) { in testRemoveChildrenBulk() 162 views[i] = createView(String.valueOf(i + 1)); in testRemoveChildrenBulk() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | PeopleTileViewHelper.java | 256 RemoteViews views = setCommonRemoteViewsFields(viewsForTile, maxAvatarSize); in getViews() local 257 return setLaunchIntents(views); in getViews() 340 RemoteViews views; in createSuppressedView() local 342 views = new RemoteViews(mContext.getPackageName(), in createSuppressedView() 345 views = new RemoteViews(mContext.getPackageName(), in createSuppressedView() 351 views.setImageViewBitmap(R.id.icon, disabledBitmap); in createSuppressedView() 352 return views; in createSuppressedView() 355 private void setMaxLines(RemoteViews views, boolean showSender) { in setMaxLines() argument 366 views.getLayoutId() == R.layout.people_tile_large_with_status_content; in setMaxLines() 374 views.setInt(R.id.text_content, "setMaxLines", maxLines); in setMaxLines() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsTest.java | 178 RemoteViews views = new RemoteViews(landscape, portrait); in parcelSize_differentOrientation() local 179 assertTrue(getParcelSize(views) < (getParcelSize(landscape) + getParcelSize(portrait))); in parcelSize_differentOrientation() argument 180 assertEquals(getParcelSize(views), getParcelSize(views.clone())); in parcelSize_differentOrientation() 193 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_view_test_bad_1); 195 views.applyAsync(mContext, mContainer, AsyncTask.THREAD_POOL_EXECUTOR, listener); 203 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_views_test); 204 views.setTextViewText(R.id.text, "Dummy"); 206 View syncView = views.apply(mContext, mContainer); 209 views.applyAsync(mContext, mContainer, AsyncTask.THREAD_POOL_EXECUTOR, listener); 217 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_views_viewstub); [all …]
|
D | RemoteViewsAdapterTest.java | 128 factory.views[0].set(createViews("updated")); in viewReplaced_after_mainView_loaded() 220 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.remote_views_text); in createViews() local 221 views.setTextViewText(R.id.text, text); in createViews() 222 return views; in createViews() 293 public LockedValue<RemoteViews>[] views; field in RemoteViewsAdapterTest.ViewsFactory 299 views = new LockedValue[count]; in ViewsFactory() 301 views[i] = new LockedValue<>(); in ViewsFactory() 322 return views[position].get(); in getViewAt()
|
/frameworks/base/core/java/android/widget/ |
D | SuggestionsAdapter.java | 317 ChildViewCache views = (ChildViewCache) view.getTag(); in bindView() local 323 if (views.mText1 != null) { in bindView() 325 setViewText(views.mText1, text1); in bindView() 327 if (views.mText2 != null) { in bindView() 339 if (views.mText1 != null) { in bindView() 340 views.mText1.setSingleLine(false); in bindView() 341 views.mText1.setMaxLines(2); in bindView() 344 if (views.mText1 != null) { in bindView() 345 views.mText1.setSingleLine(true); in bindView() 346 views.mText1.setMaxLines(1); in bindView() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | PendingHostUpdate.java | 35 RemoteViews views; field in PendingHostUpdate 39 public static PendingHostUpdate updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument 41 update.views = views; in updateAppWidget() 76 views = new RemoteViews(in); in PendingHostUpdate() 100 writeNullParcelable(views, dest, flags); in writeToParcel()
|
D | AppWidgetHost.java | 87 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument 88 if (isLocalBinder() && views != null) { in updateAppWidget() 89 views = views.clone(); in updateAppWidget() 95 Message msg = handler.obtainMessage(HANDLE_UPDATE, appWidgetId, 0, views); in updateAppWidget() 260 updateAppWidgetView(update.appWidgetId, update.views); in startListening() 505 void updateAppWidget(@Nullable RemoteViews views); in updateAppWidget() argument 566 RemoteViews views = null; in setListener() local 568 views = sService.getAppWidgetViews(mContextOpPackageName, appWidgetId); in setListener() 572 listener.updateAppWidget(views); in setListener() 587 void updateAppWidgetView(int appWidgetId, RemoteViews views) { in updateAppWidgetView() argument [all …]
|
D | AppWidgetManager.java | 620 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { in updateAppWidget() argument 626 view), views, "Error updating app widget views in background"); in updateAppWidget() 695 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument 699 updateAppWidget(new int[] { appWidgetId }, views); in updateAppWidget() 726 public void partiallyUpdateAppWidget(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidget() argument 732 appWidgetIds, view), views, in partiallyUpdateAppWidget() 760 public void partiallyUpdateAppWidget(int appWidgetId, RemoteViews views) { in partiallyUpdateAppWidget() argument 764 partiallyUpdateAppWidget(new int[] { appWidgetId }, views); in partiallyUpdateAppWidget() 780 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument 785 tryAdapterConversion(view -> mService.updateAppWidgetProvider(provider, view), views, in updateAppWidget() [all …]
|
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/ |
D | TestAppWidgetProvider.java | 50 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive() local 51 views.setTextViewText(R.id.oh_hai_text, "hai: " + SystemClock.elapsedRealtime()); in onReceive() 53 gm.updateAppWidget(appWidgetIds, views); in onReceive() 56 "com.android.tests.appwidgetprovider.TestAppWidgetProvider"), views); in onReceive()
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetProvider.java | 58 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive() local 59 views.setTextViewText(R.id.oh_hai_text, prefix + ": " + SystemClock.elapsedRealtime()); in onReceive() 61 gm.updateAppWidget(appWidgetIds, views); in onReceive() 64 "com.android.tests.appwidgethost.TestAppWidgetProvider"), views); in onReceive()
|
/frameworks/base/core/java/android/app/ |
D | FragmentTransition.java | 374 ArrayList<View> views = configureEnteringExitingViews( in scheduleTargetChange() 376 enteringViews.addAll(views); in scheduleTargetChange() 569 private static void addSharedElementsWithMatchingNames(ArrayList<View> views, in addSharedElementsWithMatchingNames() argument 574 views.add(view); in addSharedElementsWithMatchingNames() 922 ArrayList<View> views = new ArrayList<>(); in callSharedElementStartEnd() local 927 views.add(sharedElements.valueAt(i)); in callSharedElementStartEnd() 930 sharedElementCallback.onSharedElementStart(names, views, null); in callSharedElementStartEnd() 932 sharedElementCallback.onSharedElementEnd(names, views, null); in callSharedElementStartEnd() 945 final List<View> views = transition.getTargets(); in setSharedElementTargets() local 946 views.clear(); in setSharedElementTargets() [all …]
|
D | ActivityTransitionCoordinator.java | 413 protected static void removeExcludedViews(Transition transition, ArrayList<View> views) { in removeExcludedViews() argument 415 findIncludedViews(transition, views, included); in removeExcludedViews() 416 views.clear(); in removeExcludedViews() 417 views.addAll(included); in removeExcludedViews() 430 private static void findIncludedViews(Transition transition, ArrayList<View> views, in findIncludedViews() argument 435 final int numViews = views.size(); in findIncludedViews() 437 final View view = views.get(i); in findIncludedViews() 447 final int numViews = views.size(); in findIncludedViews() 449 final View view = views.get(i); in findIncludedViews() 760 protected void hideViews(ArrayList<View> views) { in hideViews() argument [all …]
|
/frameworks/base/core/java/android/view/translation/ |
D | UiTranslationController.java | 119 TranslationSpec targetSpec, List<AutofillId> views, in updateUiTranslationState() argument 127 + (isLoggable ? (", views: " + views + ", spec: " + uiTranslationSpec) : "")); in updateUiTranslationState() 130 if (views != null) { in updateUiTranslationState() 131 setLastRequestAutofillIdsLocked(views); in updateUiTranslationState() 138 mViewsToPadContent.addAll(views); in updateUiTranslationState() 148 UiTranslationController.this, sourceSpec, targetSpec, views)); in updateUiTranslationState() 150 onUiTranslationStarted(mTranslators.get(specs), views); in updateUiTranslationState() local 198 private void setLastRequestAutofillIdsLocked(List<AutofillId> views) { in setLastRequestAutofillIdsLocked() argument 205 mLastRequestAutofillIds.addAll(views); in setLastRequestAutofillIdsLocked() 491 List<AutofillId> views) { in createTranslatorAndStart() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleTileViewHelperTest.java | 171 RemoteViews views = getPeopleTileViewHelper(PERSON_TILE_WITHOUT_NOTIFICATION).getViews(); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() local 172 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() 216 RemoteViews views = getPeopleTileViewHelper(tileWithLastInteraction).getViews(); in testCreateRemoteViewsWithLastInteractionTime() local 217 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTime() 288 RemoteViews views = getPeopleTileViewHelper(tileWithAvailabilityAndNewStory).getViews(); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored() local 289 View result = views.apply(mContext, null); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored() 360 RemoteViews views = getPeopleTileViewHelper(tileWithStatusTemplate).getViews(); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored() local 361 View result = views.apply(mContext, null); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored() 444 RemoteViews views = getPeopleTileViewHelper(tileWithStatusTemplate).getViews(); in testCreateRemoteViewsWithStatusTemplate() local 445 View result = views.apply(mContext, null); in testCreateRemoteViewsWithStatusTemplate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | AdjacentListsWithAdjacentISVsInside.java | 88 private static View combineAdjacent(View... views) { in combineAdjacent() argument 89 if (views.length < 2) { in combineAdjacent() 93 final LinearLayout ll = new LinearLayout(views[0].getContext()); in combineAdjacent() 98 for (View view : views) { in combineAdjacent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardPreviewClockViewBinder.kt | 90 (clock.largeClock.layout.views + clock.smallClock.layout.views) in <lambda>() 97 (currentClock.largeClock.layout.views + in <lambda>() 98 currentClock.smallClock.layout.views) in <lambda>() 101 currentClock.largeClock.layout.views.forEach { in <lambda>() 106 currentClock.smallClock.layout.views.forEach { in <lambda>() 213 setVisibility(previewClock.largeClock.layout.views, largeClockVisibility) in <lambda>() 214 setVisibility(previewClock.smallClock.layout.views, smallClockVisibility) in <lambda>()
|
D | KeyguardClockViewBinder.kt | 145 clock.smallClock.layout.views.forEach { burnInLayer?.removeView(it) } in <lambda>() 148 clock.smallClock.layout.views.forEach { burnInLayer?.addView(it) } in <lambda>() 165 clock.smallClock.layout.views.forEach { in <lambda>() 169 clock.largeClock.layout.views.forEach { rootView.removeView(it) } in <lambda>() 182 clock.smallClock.layout.views.forEach { in <lambda>() 188 clock.largeClock.layout.views.forEach { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | ClockSection.kt | 52 views: Iterable<View>, in <lambda>() 54 ) = views.forEach { view -> this.setVisibility(view.id, visibility) } in <lambda>() 57 views: Iterable<View>, in setAlpha() 59 ) = views.forEach { view -> this.setAlpha(view.id, alpha) } in setAlpha() 111 setVisibility(getTargetClockFace(clock).views, VISIBLE) in buildConstraints() 112 setVisibility(getNonTargetClockFace(clock).views, GONE) in buildConstraints() 113 setAlpha(getTargetClockFace(clock).views, 1F) in buildConstraints() 114 setAlpha(getNonTargetClockFace(clock).views, 0F) in buildConstraints()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationCustomViewWrapperTest.java | 49 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.custom_view_dark); in testBackgroundPersists() local 50 View v = views.apply(mContext, null); in testBackgroundPersists() 55 views.reapply(mContext, v); in testBackgroundPersists()
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
D | MainActivityTest.java | 68 List<Map<Short, Object>> views = parser.getViews(); in testTextView() local 71 assertEquals(1, views.size()); in testTextView() 74 Map<Short, Object> textViewProperties = views.get(0); in testTextView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/ |
D | MediaProjectionRecentsViewController.kt | 62 private var views: Views? = null in <lambda>() variable in com.android.systemui.mediaprojection.appselector.view.MediaProjectionRecentsViewController 73 views?.root in <lambda>() 76 views = it in <lambda>() 82 views?.apply { in <lambda>() 215 views?.recentsContainer?.setTaskHeightSize() in <lambda>()
|
/frameworks/base/core/java/com/android/internal/appwidget/ |
D | IAppWidgetService.aidl | 55 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument 59 in RemoteViews views); in partiallyUpdateAppWidgetIds() argument 60 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); in updateAppWidgetProvider() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationMemoryViewWalkerTest.kt | 188 val views = RemoteViews(mContext.packageName, R.layout.custom_view_dark) in testViewWalker_customView() constant 189 views.setImageViewBitmap(R.id.custom_view_dark_image, bitmap) in testViewWalker_customView() 196 .setCustomContentView(views) in testViewWalker_customView() 197 .setCustomBigContentView(views) in testViewWalker_customView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/blueprints/transitions/ |
D | BaseBlueprintTransition.kt | 45 clock.largeClock.layout.views.forEach { view -> transition.excludeTarget(view, true) } in <lambda>() 46 clock.smallClock.layout.views.forEach { view -> transition.excludeTarget(view, true) } in <lambda>()
|
/frameworks/base/core/java/android/view/ |
D | FocusFinder.java | 833 public void sort(View[] views, int start, int end, ViewGroup root, boolean isRtl) { in sort() argument 847 views[i].getDrawingRect(next); in sort() 848 root.offsetDescendantRectToMyCoords(views[i], next); in sort() 849 mRectByView.put(views[i], next); in sort() 853 Arrays.sort(views, start, count, mTopsComparator); in sort() 855 int sweepBottom = mRectByView.get(views[start]).bottom; in sort() 859 Rect currRect = mRectByView.get(views[sweepIdx]); in sort() 863 Arrays.sort(views, rowStart, sweepIdx, mSidesComparator); in sort() 874 Arrays.sort(views, rowStart, sweepIdx, mSidesComparator); in sort() 888 public static void sort(View[] views, int start, int end, ViewGroup root, boolean isRtl) { in sort() argument [all …]
|