Home
last modified time | relevance | path

Searched refs:views (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupChildrenTest.java138 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/
DPeopleTileViewHelper.java251 RemoteViews views = setCommonRemoteViewsFields(viewsForTile, maxAvatarSize); in getViews() local
252 return setLaunchIntents(views); in getViews()
334 RemoteViews views; in createSuppressedView() local
336 views = new RemoteViews(mContext.getPackageName(), in createSuppressedView()
339 views = new RemoteViews(mContext.getPackageName(), in createSuppressedView()
344 views.setImageViewBitmap(R.id.icon, disabledBitmap); in createSuppressedView()
345 return views; in createSuppressedView()
348 private void setMaxLines(RemoteViews views, boolean showSender) { in setMaxLines() argument
359 views.getLayoutId() == R.layout.people_tile_large_with_status_content; in setMaxLines()
367 views.setInt(R.id.text_content, "setMaxLines", maxLines); in setMaxLines()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java170 RemoteViews views = new RemoteViews(landscape, portrait); in parcelSize_differentOrientation() local
171 assertTrue(getParcelSize(views) < (getParcelSize(landscape) + getParcelSize(portrait))); in parcelSize_differentOrientation() argument
172 assertEquals(getParcelSize(views), getParcelSize(views.clone())); in parcelSize_differentOrientation()
185 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_view_test_bad_1);
187 views.applyAsync(mContext, mContainer, AsyncTask.THREAD_POOL_EXECUTOR, listener);
195 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_views_test);
196 views.setTextViewText(R.id.text, "Dummy");
198 View syncView = views.apply(mContext, mContainer);
201 views.applyAsync(mContext, mContainer, AsyncTask.THREAD_POOL_EXECUTOR, listener);
209 RemoteViews views = new RemoteViews(mPackage, R.layout.remote_views_viewstub);
[all …]
DRemoteViewsAdapterTest.java128 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/
DSuggestionsAdapter.java317 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/
DPendingHostUpdate.java35 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()
DAppWidgetHost.java83 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument
84 if (isLocalBinder() && views != null) { in updateAppWidget()
85 views = views.clone(); in updateAppWidget()
91 Message msg = handler.obtainMessage(HANDLE_UPDATE, appWidgetId, 0, views); in updateAppWidget()
234 updateAppWidgetView(update.appWidgetId, update.views); in startListening()
418 RemoteViews views; in createView() local
420 views = sService.getAppWidgetViews(mContextOpPackageName, appWidgetId); in createView()
424 view.updateAppWidget(views); in createView()
479 void updateAppWidgetView(int appWidgetId, RemoteViews views) { in updateAppWidgetView() argument
485 v.updateAppWidget(views); in updateAppWidgetView()
DAppWidgetManager.java535 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { in updateAppWidget() argument
540 mService.updateAppWidgetIds(mPackageName, appWidgetIds, views); in updateAppWidget()
609 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget() argument
613 updateAppWidget(new int[] { appWidgetId }, views); in updateAppWidget()
640 public void partiallyUpdateAppWidget(int[] appWidgetIds, RemoteViews views) { in partiallyUpdateAppWidget() argument
645 mService.partiallyUpdateAppWidgetIds(mPackageName, appWidgetIds, views); in partiallyUpdateAppWidget()
675 public void partiallyUpdateAppWidget(int appWidgetId, RemoteViews views) { in partiallyUpdateAppWidget() argument
679 partiallyUpdateAppWidget(new int[] { appWidgetId }, views); in partiallyUpdateAppWidget()
695 public void updateAppWidget(ComponentName provider, RemoteViews views) { in updateAppWidget() argument
700 mService.updateAppWidgetProvider(provider, views); in updateAppWidget()
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/
DTestAppWidgetProvider.java50 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/core/java/android/view/translation/
DUiTranslationController.java111 TranslationSpec targetSpec, List<AutofillId> views, in updateUiTranslationState() argument
119 + (DEBUG ? (", views: " + views + ", spec: " + uiTranslationSpec) : "")); in updateUiTranslationState()
122 if (views != null) { in updateUiTranslationState()
123 setLastRequestAutofillIdsLocked(views); in updateUiTranslationState()
130 mViewsToPadContent.addAll(views); in updateUiTranslationState()
140 UiTranslationController.this, sourceSpec, targetSpec, views)); in updateUiTranslationState()
142 onUiTranslationStarted(mTranslators.get(specs), views); in updateUiTranslationState() local
198 private void setLastRequestAutofillIdsLocked(List<AutofillId> views) { in setLastRequestAutofillIdsLocked() argument
205 mLastRequestAutofillIds.addAll(views); in setLastRequestAutofillIdsLocked()
469 List<AutofillId> views) { in createTranslatorAndStart() argument
[all …]
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetProvider.java58 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/
DFragmentTransition.java374 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 …]
DActivityTransitionCoordinator.java413 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/tests/coretests/src/android/widget/listview/
DAdjacentListsWithAdjacentISVsInside.java88 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/tests/src/com/android/systemui/people/
DPeopleTileViewHelperTest.java166 RemoteViews views = getPeopleTileViewHelper(PERSON_TILE_WITHOUT_NOTIFICATION).getViews(); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() local
167 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden()
211 RemoteViews views = getPeopleTileViewHelper(tileWithLastInteraction).getViews(); in testCreateRemoteViewsWithLastInteractionTime() local
212 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTime()
283 RemoteViews views = getPeopleTileViewHelper(tileWithAvailabilityAndNewStory).getViews(); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored() local
284 View result = views.apply(mContext, null); in testCreateRemoteViewsWithGameTypeOnlyIsIgnored()
355 RemoteViews views = getPeopleTileViewHelper(tileWithStatusTemplate).getViews(); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored() local
356 View result = views.apply(mContext, null); in testCreateRemoteViewsWithBirthdayTypeOnlyIsNotIgnored()
439 RemoteViews views = getPeopleTileViewHelper(tileWithStatusTemplate).getViews(); in testCreateRemoteViewsWithStatusTemplate() local
440 View result = views.apply(mContext, null); in testCreateRemoteViewsWithStatusTemplate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/
DShadeViewDiffer.kt43 private val views = mutableMapOf<View, ShadeNode>() in <lambda>() constant
68 fun getViewLabel(view: View): String = views[view]?.label ?: view.toString() in <lambda>()
78 views[childView]?.let { childNode -> in <lambda>()
103 views.remove(childNode.controller.view) in <lambda>()
167 views[node.view] = node in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapperTest.java56 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.custom_view_dark); in testBackgroundPersists() local
57 View v = views.apply(mContext, null); in testBackgroundPersists()
62 views.reapply(mContext, v); in testBackgroundPersists()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java68 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/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl54 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument
58 in RemoteViews views); in partiallyUpdateAppWidgetIds() argument
59 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); in updateAppWidgetProvider() argument
DIAppWidgetHost.aidl26 void updateAppWidget(int appWidgetId, in RemoteViews views); in updateAppWidget() argument
/frameworks/base/core/java/android/view/
DFocusFinder.java822 public void sort(View[] views, int start, int end, ViewGroup root, boolean isRtl) { in sort() argument
836 views[i].getDrawingRect(next); in sort()
837 root.offsetDescendantRectToMyCoords(views[i], next); in sort()
838 mRectByView.put(views[i], next); in sort()
842 Arrays.sort(views, start, count, mTopsComparator); in sort()
844 int sweepBottom = mRectByView.get(views[start]).bottom; in sort()
848 Rect currRect = mRectByView.get(views[sweepIdx]); in sort()
852 Arrays.sort(views, rowStart, sweepIdx, mSidesComparator); in sort()
863 Arrays.sort(views, rowStart, sweepIdx, mSidesComparator); in sort()
877 public static void sort(View[] views, int start, int end, ViewGroup root, boolean isRtl) { in sort() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationHeaderViewWrapper.java311 protected void addTransformedViews(View... views) { in addTransformedViews() argument
312 for (View view : views) { in addTransformedViews()
319 protected void addViewsTransformingToSimilar(View... views) { in addViewsTransformingToSimilar() argument
320 for (View view : views) { in addViewsTransformingToSimilar()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt97 private val views: Sequence<View> in <lambda>() constant in com.android.systemui.statusbar.events.PrivacyDotViewController
214 views.forEach { it.layoutParams.height = height } in <lambda>()
225 views.forEach { corner -> in <lambda>()
240 views.forEach { corner -> in <lambda>()
345 views.forEach { corner -> in <lambda>()
496 views.forEach { it.requestLayout() } in <lambda>()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/
D.gitignore6 # We need the built .class files to load custom views and R class.
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java518 RemoteViews views = new RemoteViews(mContext.getPackageName(), in maskWidgetsViewsLocked() local
559 views.setOnClickPendingIntent(android.R.id.background, in maskWidgetsViewsLocked()
567 views.setImageViewIcon(R.id.work_widget_app_icon, icon); in maskWidgetsViewsLocked()
569 views.setViewVisibility(R.id.work_widget_badge_icon, View.INVISIBLE); in maskWidgetsViewsLocked()
575 if (widget.replaceWithMaskedViewsLocked(views)) { in maskWidgetsViewsLocked()
1409 RemoteViews views) { in updateAppWidgetIds() argument
1414 updateAppWidgetIds(callingPackage, appWidgetIds, views, false); in updateAppWidgetIds()
1419 RemoteViews views) { in partiallyUpdateAppWidgetIds() argument
1424 updateAppWidgetIds(callingPackage, appWidgetIds, views, true); in partiallyUpdateAppWidgetIds()
1463 public void updateAppWidgetProvider(ComponentName componentName, RemoteViews views) { in updateAppWidgetProvider() argument
[all …]

123