Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 251) sorted by relevance

1234567891011

/packages/apps/Browser/src/com/android/browser/util/
DThreadedCursorAdapter.java110 LoadContainer container = (LoadContainer) msg.obj; in ThreadedCursorAdapter()
111 if (container == null) { in ThreadedCursorAdapter()
114 View view = container.view.get(); in ThreadedCursorAdapter()
116 || container.owner != ThreadedCursorAdapter.this in ThreadedCursorAdapter()
117 || container.position != msg.what in ThreadedCursorAdapter()
119 || container.generation != mGeneration) { in ThreadedCursorAdapter()
122 container.loaded = true; in ThreadedCursorAdapter()
123 bindView(view, container.bind_object); in ThreadedCursorAdapter()
145 private void loadRowObject(int position, LoadContainer container) { in loadRowObject() argument
146 if (container == null in loadRowObject()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java269 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container, in addOrMoveItemInDatabase() argument
271 if (item.container == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
273 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
276 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
292 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
351 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP && in updateItemInDatabaseHelper()
352 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in updateItemInDatabaseHelper()
354 if (!sBgFolders.containsKey(item.container)) { in updateItemInDatabaseHelper()
358 item.container + ", not in the list of folders"; in updateItemInDatabaseHelper()
368 if (modelItem.container == LauncherSettings.Favorites.CONTAINER_DESKTOP || in updateItemInDatabaseHelper()
[all …]
DFocusHelper.java121 private static ViewGroup getAppsCustomizePage(ViewGroup container, int index) { in getAppsCustomizePage() argument
122 ViewGroup page = (ViewGroup) ((PagedView) container).getPageAt(index); in getAppsCustomizePage()
137 final PagedView container = (PagedView) parent.getParent(); in handlePagedViewGridLayoutWidgetKeyEvent() local
138 final TabHost tabHost = findTabHostParent(container); in handlePagedViewGridLayoutWidgetKeyEvent()
142 final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parent)); in handlePagedViewGridLayoutWidgetKeyEvent()
143 final int pageCount = container.getChildCount(); in handlePagedViewGridLayoutWidgetKeyEvent()
164 newParent = getAppsCustomizePage(container, pageIndex - 1); in handlePagedViewGridLayoutWidgetKeyEvent()
181 newParent = getAppsCustomizePage(container, pageIndex + 1); in handlePagedViewGridLayoutWidgetKeyEvent()
219 View.OnClickListener clickListener = (View.OnClickListener) container; in handlePagedViewGridLayoutWidgetKeyEvent()
229 newParent = getAppsCustomizePage(container, pageIndex - 1); in handlePagedViewGridLayoutWidgetKeyEvent()
[all …]
DLauncher.java334 long container; field in Launcher.PendingAddArguments
599 completeAddApplication(args.intent, args.container, args.screen, args.cellX, in completeAdd()
606 completeAddShortcut(args.intent, args.container, args.screen, args.cellX, in completeAdd()
612 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); in completeAdd()
674 if (resultCode == RESULT_OK && mPendingAddInfo.container != ItemInfo.NO_ID) { in onActivityResult()
678 args.container = mPendingAddInfo.container; in onActivityResult()
709 completeAddAppWidget(appWidgetId, mPendingAddInfo.container, in completeTwoStageWidgetDrop()
953 mPendingAddInfo.container = pendingAddContainer; in restoreState()
1072 void completeAddApplication(Intent data, long container, int screen, int cellX, int cellY) { in completeAddApplication() argument
1074 final CellLayout layout = getCellLayout(container, screen); in completeAddApplication()
[all …]
DWorkspace.java493 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) { in addInScreen() argument
494 addInScreen(child, container, screen, x, y, spanX, spanY, false); in addInScreen()
509 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY, in addInScreen() argument
511 if (container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in addInScreen()
520 if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in addInScreen()
564 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY); in addInScreen()
1947 void addApplicationShortcut(ShortcutInfo info, CellLayout target, long container, int screen,
1953 addInScreen(view, container, screen, cellXY[0], cellXY[1], 1, 1, insertAtFirst);
1954 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen, cellXY[0],
2094 boolean createUserFolderIfNecessary(View newView, long container, CellLayout target,
[all …]
DItemInfo.java61 long container = NO_ID; field in ItemInfo
132 container = info.container; in ItemInfo()
169 values.put(LauncherSettings.Favorites.CONTAINER, container); in onAddToDatabase()
219 return "Item(id=" + this.id + " type=" + this.itemType + " container=" + this.container in toString()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java298 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in findNextAvailableIconSpaceInScreen()
563 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container, in addOrMoveItemInDatabase() argument
565 if (item.container == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
567 addItemToDatabase(context, item, container, screenId, cellX, cellY, false); in addOrMoveItemInDatabase()
570 moveItemInDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
586 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
681 if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP && in updateItemArrays()
682 item.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in updateItemArrays()
684 if (!sBgFolders.containsKey(item.container)) { in updateItemArrays()
688 item.container + ", not in the list of folders"; in updateItemArrays()
[all …]
DFocusHelper.java63 private static ViewGroup getAppsCustomizePage(ViewGroup container, int index) { in getAppsCustomizePage() argument
64 ViewGroup page = (ViewGroup) ((PagedView) container).getPageAt(index); in getAppsCustomizePage()
93 final PagedView container = (PagedView) parentLayout.getParent(); in handleAppsCustomizeKeyEvent() local
96 … final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parentLayout)); in handleAppsCustomizeKeyEvent()
97 final int pageCount = container.getChildCount(); in handleAppsCustomizeKeyEvent()
118 newParent = getAppsCustomizePage(container, pageIndex - 1); in handleAppsCustomizeKeyEvent()
120 container.snapToPage(pageIndex - 1); in handleAppsCustomizeKeyEvent()
140 newParent = getAppsCustomizePage(container, pageIndex + 1); in handleAppsCustomizeKeyEvent()
142 container.snapToPage(pageIndex + 1); in handleAppsCustomizeKeyEvent()
184 newParent = getAppsCustomizePage(container, pageIndex - 1); in handleAppsCustomizeKeyEvent()
[all …]
DLauncher.java367 long container; field in Launcher.PendingAddArguments
715 if (args.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in completeAdd()
723 completeAddShortcut(args.intent, args.container, screenId, args.cellX, in completeAdd()
727 completeAddAppWidget(args.appWidgetId, args.container, screenId, null, null); in completeAdd()
811 if (mPendingAddInfo.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in handleActivityResult()
858 if (resultCode == RESULT_OK && mPendingAddInfo.container != ItemInfo.NO_ID) { in handleActivityResult()
890 args.container = info.container; in preparePendingAddArgs()
932 completeAddAppWidget(appWidgetId, mPendingAddInfo.container, in completeTwoStageWidgetDrop()
1313 mPendingAddInfo.container = pendingAddContainer; in restoreState()
1504 private void completeAddShortcut(Intent data, long container, long screenId, int cellX, in completeAddShortcut() argument
[all …]
DWorkspace.java963 void addInScreen(View child, long container, long screenId, in addInScreen() argument
965 addInScreen(child, container, screenId, x, y, spanX, spanY, false, false); in addInScreen()
970 void addInScreenFromBind(View child, long container, long screenId, int x, int y, in addInScreenFromBind() argument
972 addInScreen(child, container, screenId, x, y, spanX, spanY, false, true); in addInScreenFromBind()
976 void addInScreen(View child, long container, long screenId, int x, int y, int spanX, int spanY, in addInScreen() argument
978 addInScreen(child, container, screenId, x, y, spanX, spanY, insert, false); in addInScreen()
996 void addInScreen(View child, long container, long screenId, int x, int y, int spanX, int spanY, in addInScreen() argument
998 if (container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in addInScreen()
1012 if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in addInScreen()
2831 void addApplicationShortcut(ShortcutInfo info, CellLayout target, long container, long screenId, in addApplicationShortcut() argument
[all …]
DItemInfo.java63 public long container = NO_ID; field in ItemInfo
140 container = info.container; in copyFrom()
158 values.put(LauncherSettings.Favorites.CONTAINER, container); in onAddToDatabase()
212 return "Item(id=" + this.id + " type=" + this.itemType + " container=" + this.container in toString()
/packages/apps/Browser/src/com/android/browser/
DBaseUi.java342 View container = tab.getViewContainer(); in attachTabToContentView() local
347 (FrameLayout) container.findViewById(R.id.webview_wrapper); in attachTabToContentView()
355 parent = (ViewGroup) container.getParent(); in attachTabToContentView()
358 parent.removeView(container); in attachTabToContentView()
360 mContentView.addView(container, COVER_SCREEN_PARAMS); in attachTabToContentView()
369 View container = tab.getViewContainer(); in removeTabFromContentView() local
377 (FrameLayout) container.findViewById(R.id.webview_wrapper); in removeTabFromContentView()
379 mContentView.removeView(container); in removeTabFromContentView()
390 View container = tab.getViewContainer(); in onSetWebView() local
391 if (container == null) { in onSetWebView()
[all …]
DPieControl.java85 protected void attachToContainer(FrameLayout container) { in attachToContainer() argument
94 container.addView(mPie); in attachToContainer()
97 protected void removeFromContainer(FrameLayout container) { in removeFromContainer() argument
98 container.removeView(mPie); in removeFromContainer()
101 protected void forceToTop(FrameLayout container) { in forceToTop() argument
103 container.removeView(mPie); in forceToTop()
104 container.addView(mPie); in forceToTop()
/packages/apps/Tag/src/com/android/apps/tag/record/
DSmartPoster.java163 LinearLayout container = new LinearLayout(activity); in getView() local
164 container.setOrientation(LinearLayout.VERTICAL); in getView()
165 container.setLayoutParams(new LayoutParams( in getView()
168 container.addView(mTitleRecord.getView(activity, inflater, container, offset)); in getView()
169 inflater.inflate(R.layout.tag_divider, container); in getView()
170 container.addView(mUriRecord.getView(activity, inflater, container, offset)); in getView()
171 return container; in getView()
DRecordUtils.java79 LinearLayout container = new LinearLayout(activity); in getViewsForIntent() local
80 container.setOrientation(LinearLayout.VERTICAL); in getViewsForIntent()
81 container.setLayoutParams(new LayoutParams( in getViewsForIntent()
90 if (container.getChildCount() > 0) { in getViewsForIntent()
91 inflater.inflate(R.layout.tag_divider, container); in getViewsForIntent()
95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent()
98 return container; in getViewsForIntent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardView.java126 final View container = getContainerView(); in showMoreKeysPanel() local
129 final int x = pointX - getDefaultCoordX() - container.getPaddingLeft() - getPaddingLeft(); in showMoreKeysPanel()
130 final int y = pointY - container.getMeasuredHeight() + container.getPaddingBottom() in showMoreKeysPanel()
135 final int maxX = parentView.getMeasuredWidth() - container.getMeasuredWidth(); in showMoreKeysPanel()
138 container.setX(panelX); in showMoreKeysPanel()
139 container.setY(panelY); in showMoreKeysPanel()
141 mOriginX = x + container.getPaddingLeft(); in showMoreKeysPanel()
142 mOriginY = y + container.getPaddingTop(); in showMoreKeysPanel()
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DNotificationListenerActivity.java201 FrameLayout container = (FrameLayout) view.findViewById(R.id.remote_view); in getView() local
205 if (container.getTag() instanceof StatusBarNotification && in getView()
206 container.getChildCount() > 0) { in getView()
208 StatusBarNotification old = (StatusBarNotification) container.getTag(); in getView()
213 View content = container.getChildAt(0); in getView()
214 container.removeView(content); in getView()
222 container.setTag(sbn); in getView()
223 container.removeAllViews(); in getView()
224 container.addView(child); in getView()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DMtpPagerAdapter.java77 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
79 super.finishUpdate(container); in finishUpdate()
88 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
90 container.removeView(v); in destroyItem()
96 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
102 v = (MtpFullscreenView) mInflater.inflate(R.layout.ingest_fullsize, container, false); in instantiateItem()
107 container.addView(v); in instantiateItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiPalettesAdapter.java91 public void setPrimaryItem(final ViewGroup container, final int position, in setPrimaryItem() argument
105 public Object instantiateItem(final ViewGroup container, final int position) { in instantiateItem() argument
117 final LayoutInflater inflater = LayoutInflater.from(container.getContext()); in instantiateItem()
119 R.layout.emoji_keyboard_page, container, false /* attachToRoot */); in instantiateItem()
122 container.addView(keyboardView); in instantiateItem()
133 public void destroyItem(final ViewGroup container, final int position, in destroyItem() argument
144 container.removeView((View)object); in destroyItem()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DViewsStateBundle.java115 SparseArray<Parcelable> container = childStates.getSparseParcelableArray(key); in loadView() local
116 if (container != null) { in loadView()
117 view.restoreHierarchyState(container); in loadView()
129 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveViewUnchecked() local
130 view.saveHierarchyState(container); in saveViewUnchecked()
131 childStates.putSparseParcelableArray(key, container); in saveViewUnchecked()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java90 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
263 View container = mMainView.findViewById(R.id.state_panel_container); in showImageStatePanel() local
265 if (container == null) { in showImageStatePanel()
267 container = activity.getMainStatePanelContainer(R.id.state_panel_container); in showImageStatePanel()
271 if (container == null) { in showImageStatePanel()
278 container.setVisibility(View.VISIBLE); in showImageStatePanel()
285 container.setVisibility(View.GONE); in showImageStatePanel()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DFragmentStatePagerAdapter2.java57 public void startUpdate(ViewGroup container) { in startUpdate() argument
61 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
80 mCurTransaction.add(container.getId(), fragment); in instantiateItem()
86 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
98 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
112 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorPanel.java65 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
123 View container = mMainView.findViewById(R.id.state_panel_container); in showImageStatePanel() local
126 if (container == null) { in showImageStatePanel()
128 container = activity.getMainStatePanelContainer(R.id.state_panel_container); in showImageStatePanel()
133 if (container == null) { in showImageStatePanel()
144 container.setVisibility(View.VISIBLE); in showImageStatePanel()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java73 public void startUpdate(ViewGroup container) { in startUpdate() argument
77 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
103 mCurTransaction.add(container.getId(), fragment); in instantiateItem()
109 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
129 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
143 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
/packages/apps/Terminal/src/com/android/terminal/
DTerminalActivity.java89 public Object instantiateItem(ViewGroup container, int position) {
90 final TerminalView view = new TerminalView(container.getContext());
101 container.addView(view);
106 public void destroyItem(ViewGroup container, int position, Object object) {
118 container.removeView(view);

1234567891011