Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 537) sorted by relevance

12345678910>>...22

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMultiLineTexture.java32 private MultiLineTexture(Layout layout) { in MultiLineTexture() argument
33 super(layout.getWidth(), layout.getHeight()); in MultiLineTexture()
34 mLayout = layout; in MultiLineTexture()
41 Layout layout = new StaticLayout(text, 0, text.length(), paint, in newInstance() local
44 return new MultiLineTexture(layout); in newInstance()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DEffectToolFactory.java76 R.layout.photoeditor_scale_seekbar); in createScalePicker()
82 return (ColorSeekBar) createPanelTool(R.layout.photoeditor_color_seekbar); in createColorPicker()
86 return (DoodleView) createFullscreenTool(R.layout.photoeditor_doodle_view); in createDoodleView()
90 return (TouchView) createFullscreenTool(R.layout.photoeditor_touch_view); in createTouchView()
94 return (FlipView) createFullscreenTool(R.layout.photoeditor_flip_view); in createFlipView()
98 return (RotateView) createFullscreenTool(R.layout.photoeditor_rotate_view); in createRotateView()
102 return (CropView) createFullscreenTool(R.layout.photoeditor_crop_view); in createCropView()
/packages/apps/Launcher2/src/com/android/launcher2/
DFocusHelper.java544 final CellLayout layout = (CellLayout) workspace.getChildAt(pageIndex); in handleHotseatButtonKeyEvent() local
545 final CellLayoutChildren children = layout.getChildrenLayout(); in handleHotseatButtonKeyEvent()
546 final View newIcon = getIconInDirection(layout, children, -1, 1); in handleHotseatButtonKeyEvent()
576 private static ArrayList<View> getCellLayoutChildrenSortedSpatially(CellLayout layout, in getCellLayoutChildrenSortedSpatially() argument
579 final int cellCountX = layout.getCountX(); in getCellLayoutChildrenSortedSpatially()
616 private static View getIconInDirection(CellLayout layout, ViewGroup parent, int i, in getIconInDirection() argument
618 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent); in getIconInDirection()
621 private static View getIconInDirection(CellLayout layout, ViewGroup parent, View v, in getIconInDirection() argument
623 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent); in getIconInDirection()
632 private static View getClosestIconOnLine(CellLayout layout, ViewGroup parent, View v, in getClosestIconOnLine() argument
[all …]
DWorkspace.java458 final CellLayout layout; in addInScreen() local
460 layout = mLauncher.getHotseat().getLayout(); in addInScreen()
482 layout = (CellLayout) getChildAt(screen); in addInScreen()
503 if (!layout.addViewToCellLayout(child, insert ? 0 : -1, childId, lp, markCellsAsOccupied)) { in addInScreen()
1337 final CellLayout layout = (CellLayout) getChildAt(i);
1338 layout.setChildrenDrawnWithCacheEnabled(true);
1339 layout.setChildrenDrawingCacheEnabled(true);
1346 final CellLayout layout = (CellLayout) getChildAt(i);
1347 layout.setChildrenDrawnWithCacheEnabled(false);
1350 layout.setChildrenDrawingCacheEnabled(false);
[all …]
DAppsCustomizePagedView.java296 PagedViewCellLayout layout = (PagedViewCellLayout) getPageAt(currentPage); in getMiddleComponentIndexOnCurrentPage() local
297 PagedViewCellLayoutChildren childrenLayout = layout.getChildrenLayout(); in getMiddleComponentIndexOnCurrentPage()
305 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(currentPage); in getMiddleComponentIndexOnCurrentPage() local
307 int childCount = layout.getChildCount(); in getMiddleComponentIndexOnCurrentPage()
613 CellLayout layout = (CellLayout) workspace.getChildAt(currentScreen); in onDropCompleted() local
615 if (layout != null) { in onDropCompleted()
616 layout.calculateSpans(itemInfo); in onDropCompleted()
618 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY); in onDropCompleted()
673 private void setVisibilityOnChildren(ViewGroup layout, int visibility) { in setVisibilityOnChildren() argument
674 int childCount = layout.getChildCount(); in setVisibilityOnChildren()
[all …]
DCachedTextView.java88 final Layout layout = getLayout(); in buildAndUpdateCache() local
93 mTextCacheLeft = layout.getLineLeft(0) - getCacheLeftPadding(); in buildAndUpdateCache()
94 mTextCacheTop = top + layout.getLineTop(0) - mPaddingV - getCacheTopPadding(); in buildAndUpdateCache()
101 Math.min(left + layout.getLineRight(0) + mPaddingH, mScrollX + mRight - mLeft) + in buildAndUpdateCache()
103 final float textCacheBottom = top + layout.getLineBottom(0) + mPaddingV + in buildAndUpdateCache()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DEffectsMenu.java50 return R.layout.photoeditor_effects_menu; in childLayoutId()
54 setToggleRunnalbe(listener, R.id.exposure_button, R.layout.photoeditor_effects_exposure); in setOnToggleListener()
55 setToggleRunnalbe(listener, R.id.artistic_button, R.layout.photoeditor_effects_artistic); in setOnToggleListener()
56 setToggleRunnalbe(listener, R.id.color_button, R.layout.photoeditor_effects_color); in setOnToggleListener()
57 setToggleRunnalbe(listener, R.id.fix_button, R.layout.photoeditor_effects_fix); in setOnToggleListener()
/packages/apps/Email/src/com/android/email/
DRecipientAdapter.java37 r.getDrawable(R.drawable.chip_delete), def, R.layout.more_item, in RecipientAdapter()
38 R.layout.chips_alternate_item, in RecipientAdapter()
42 R.layout.copy_chip_dialog_layout); in RecipientAdapter()
64 return R.layout.chips_recipient_dropdown_item; in getItemLayout()
69 return R.layout.chips_waiting_for_directory_search; in getWaitingForDirectorySearchLayout()
/packages/apps/Gallery/src/com/android/camera/
DActionMenuButton.java75 final Layout layout = getLayout(); in draw() local
80 rect.set(left + layout.getLineLeft(0) - PADDING_H, in draw()
81 top + layout.getLineTop(0) - PADDING_V, in draw()
82 Math.min(left + layout.getLineRight(0) + PADDING_H, in draw()
84 top + layout.getLineBottom(0) + PADDING_V); in draw()
/packages/apps/Mms/src/com/android/mms/model/
DLayoutModel.java20 import com.android.mms.layout.LayoutManager;
21 import com.android.mms.layout.LayoutParameters;
183 public void changeTo(int layout) { in changeTo() argument
192 if (mLayoutType != layout) { in changeTo()
193 switch (layout) { in changeTo()
197 mLayoutType = layout; in changeTo()
204 mLayoutType = layout; in changeTo()
209 Log.w(TAG, "Unknown layout type: " + layout); in changeTo()
/packages/apps/Camera/src/com/android/camera/ui/
DZoomControlBar.java128 mBar.layout(0, mTotalIconHeight, width, mHeight - mTotalIconHeight); in onLayout()
139 mZoomOut.layout(0, 0, width, mIconHeight); in onLayout()
140 mZoomIn.layout(0, mHeight - mIconHeight, width, mHeight); in onLayout()
143 mZoomIn.layout(0, 0, width, mIconHeight); in onLayout()
144 mZoomOut.layout(0, mHeight - mIconHeight, width, mHeight); in onLayout()
148 mZoomSlider.layout(0, (pos - sliderHeight / 2), in onLayout()
DIndicatorControlBar.java94 mCameraPicker.layout(0, padding, width, padding + width); in onLayout()
100 mZoomControl.layout(0, offset, width, bottom - top - offset); in onLayout()
103 mSecondLevelIcon.layout(0, bottom - top - offset, width, bottom - top); in onLayout()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperActivity.java42 setContentView(R.layout.live_wallpaper_base); in onCreate()
131 View layout = inflater.inflate(R.layout.live_wallpaper_list, container, false); in generateView() local
135 (AdapterView<BaseAdapter>) layout.findViewById(android.R.id.list); in generateView()
138 adapterView.setEmptyView(layout.findViewById(android.R.id.empty)); in generateView()
139 return layout; in generateView()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java110 mStaticBackground.layout(0, 0, right - left, bottom - top);
123 mAlbumSetView.layout(0, slotViewTop, right - left, slotViewBottom);
222 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onConfigurationChanged() local
223 if (layout.getVisibility() == View.VISIBLE) { in onConfigurationChanged()
224 layout.removeAllViews(); in onConfigurationChanged()
225 layout.addView(mFooterContent); in onConfigurationChanged()
242 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onPause() local
243 layout.removeAllViews(); in onPause()
244 layout.setVisibility(View.INVISIBLE); in onPause()
266 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onResume() local
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowActivity.java90 Node layout = children.item(0); in isMMSConformance() local
91 if (layout == null || !"layout".equals(layout.getNodeName())) { in isMMSConformance()
95 NodeList layoutChildren = layout.getChildNodes(); in isMMSConformance()
160 setContentView(R.layout.slideshow); in onCreate()
202 LayoutModel layout = model.getLayout(); in onCreate()
203 if (layout != null) { in onCreate()
204 RegionModel imageRegion = layout.getImageRegion(); in onCreate()
209 RegionModel textRegion = layout.getTextRegion(); in onCreate()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsageBarPreference.java39 setLayoutResource(R.layout.preference_memoryusage); in UsageBarPreference()
44 setLayoutResource(R.layout.preference_memoryusage); in UsageBarPreference()
49 setLayoutResource(R.layout.preference_memoryusage); in UsageBarPreference()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DExportOptionsDialog.java68 final View myView = vi.inflate(R.layout.export_options_dialog_view, null); in create()
112 context, android.R.layout.simple_spinner_item); in prepareContent()
113 sizeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in prepareContent()
125 android.R.layout.simple_spinner_item); in prepareContent()
126 qualityAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in prepareContent()
/packages/apps/Browser/src/com/android/browser/view/
DPieListView.java42 public void layout(int anchorX, int anchorY, boolean left, float angle) { in layout() method in PieListView
43 super.layout(anchorX, anchorY, left, angle); in layout()
58 view.layout(mLeft, top, mLeft + mChildWidth, top + mChildHeight); in layoutChildrenLinear()
DPieStackView.java62 public void layout(int anchorX, int anchorY, boolean left, float angle) { in layout() method in PieStackView
63 super.layout(anchorX, anchorY, left, angle); in layout()
80 view.layout(x, top, x + mChildWidth, top + mChildHeight); in layoutChildrenLinear()
/packages/apps/Tag/src/com/android/apps/tag/
DTagViewer.java51 setContentView(R.layout.tag_viewer); in onCreate()
86 TextView empty = (TextView) inflater.inflate(R.layout.tag_text, content, false); in buildTagViews()
97 TextView empty = (TextView) inflater.inflate(R.layout.tag_text, content, false); in buildTagViews()
104 inflater.inflate(R.layout.tag_divider, content, true); in buildTagViews()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DInputModeSwitcher.java421 int layout = (mInputMode & MASK_SKB_LAYOUT); in getSkbLayout() local
423 switch (layout) { in getSkbLayout()
633 int layout = (mInputMode & MASK_SKB_LAYOUT); in requestBackToPreviousSkb() local
635 if (0 != layout && 0 != lastLayout) { in requestBackToPreviousSkb()
742 int layout = (mInputMode & MASK_SKB_LAYOUT); in prepareToggleStates() local
746 if (MASK_SKB_LAYOUT_PHONE != layout) { in prepareToggleStates()
750 if (MASK_SKB_LAYOUT_QWERTY == layout) { in prepareToggleStates()
759 if (MASK_SKB_LAYOUT_QWERTY == layout) { in prepareToggleStates()
768 } else if (MASK_SKB_LAYOUT_SYMBOL1 == layout) { in prepareToggleStates()
771 } else if (MASK_SKB_LAYOUT_SYMBOL2 == layout) { in prepareToggleStates()
/packages/apps/Calendar/src/com/android/calendar/
DRecipientAdapter.java48 return R.layout.chips_recipient_dropdown_item; in getItemLayout()
53 return R.layout.chips_waiting_for_directory_search; in getWaitingForDirectorySearchLayout()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java123 LinearLayout layout = reminderItems.get(index); in reminderItemsToReminders() local
124 Spinner minuteSpinner = (Spinner) layout.findViewById(R.id.reminder_minutes_value); in reminderItemsToReminders()
125 Spinner methodSpinner = (Spinner) layout.findViewById(R.id.reminder_method_value); in reminderItemsToReminders()
209 int resource = android.R.layout.simple_spinner_item; in setReminderSpinnerLabels()
211 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in setReminderSpinnerLabels()
238 LinearLayout reminderItem = (LinearLayout) inflater.inflate(R.layout.edit_reminder_item, in addReminder()
/packages/apps/Contacts/src/com/android/contacts/widget/
DPinnedHeaderListDemoActivity.java57 return inflater.inflate(R.layout.list_section, null); in newHeaderView()
70 return inflater.inflate(android.R.layout.simple_list_item_1, null); in newView()
82 View view = inflater.inflate(R.layout.list_section, parent, false); in getPinnedHeaderView()
101 setContentView(R.layout.pinned_header_list_demo); in onCreate()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DAudioTrackLinearLayout.java102 final View titleBarView = inflate(getContext(), R.layout.audio_track_action_bar, null); in onCreateActionMode()
210 final View beginView = inflate(getContext(), R.layout.empty_timeline_item, null); in AudioTrackLinearLayout()
220 final View endView = inflate(context, R.layout.empty_timeline_item, null); in AudioTrackLinearLayout()
230 mAddAudioTrackButtonView = inflate(getContext(), R.layout.add_audio_track_button, null); in AudioTrackLinearLayout()
353 R.layout.audio_track_item, null); in addAudioTrack()
515 childView.layout(left, 0, left, mAudioTrackHeight); in onLayout()
517 childView.layout(left, 0, left + mHalfParentWidth, mAudioTrackHeight); in onLayout()
551 childView.layout(trackLeft, 0, trackLeft + width, mAudioTrackHeight); in onLayout()
555 childView.layout(left, 0, left + mAddAudioTrackButtonWidth, in onLayout()
560 childView.layout(left, 0, left + leftViewWidth, mAudioTrackHeight); in onLayout()
[all …]

12345678910>>...22