Home
last modified time | relevance | path

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

12345678910>>...73

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java114 final Layout layout = textView.getLayout(); in extractFromTextViewInternal() local
115 if (layout == null) { in extractFromTextViewInternal()
131 if (layout.getLineCount() == 0) { in extractFromTextViewInternal()
136 layout.getLineBounds(0, lineBoundsWithoutOffset); in extractFromTextViewInternal()
167 final int minLine = layout.getLineForOffset(composingTextStart); in extractFromTextViewInternal()
168 final int maxLine = layout.getLineForOffset(composingTextEnd - 1); in extractFromTextViewInternal()
170 final int lineStart = layout.getLineStart(line); in extractFromTextViewInternal()
171 final int lineEnd = layout.getLineEnd(line); in extractFromTextViewInternal()
175 layout.getParagraphDirection(line) == Layout.DIR_LEFT_TO_RIGHT; in extractFromTextViewInternal()
177 layout.getPaint().getTextWidths(text, offsetStart, offsetEnd, widths); in extractFromTextViewInternal()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningActivity.java150 final GlifLayout layout = findViewById(R.id.setup_wizard_layout); in updateProvisioningFinalizedScreen() local
151 layout.findViewById(R.id.provisioning_progress).setVisibility(View.GONE); in updateProvisioningFinalizedScreen()
331 initializeLayoutParams(R.layout.provisioning_progress, null, customizationParams); in initializeUi()
334 final GlifLayout layout = findViewById(R.id.setup_wizard_layout); in initializeUi() local
335 setupEducationViews(layout); in initializeUi()
337 mNextButton = Utils.addNextButton(layout, v -> onNextButtonClicked()); in initializeUi()
340 handleSupportUrl(layout, customizationParams); in initializeUi()
343 private void setupEducationViews(GlifLayout layout) { in setupEducationViews() argument
344 final TextView header = layout.findViewById(R.id.suc_layout_title); in setupEducationViews()
349 final TextView progressLabel = layout.findViewById(R.id.provisioning_progress); in setupEducationViews()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAppPreferenceTest.java56 R.layout.preference_widget_master_switch); in createNewPreference_shouldSetLayout()
64 inflater.inflate(R.layout.preference_app, null)); in setChecked_shouldUpdateButtonCheckedState()
66 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in setChecked_shouldUpdateButtonCheckedState()
82 inflater.inflate(R.layout.preference_app, null)); in setSwitchEnabled_shouldUpdateButtonEnabledState()
84 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in setSwitchEnabled_shouldUpdateButtonEnabledState()
100 inflater.inflate(R.layout.preference_app, null)); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
102 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
115 inflater.inflate(R.layout.preference_app, null)); in clickWidgetView_shouldToggleButton()
119 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in clickWidgetView_shouldToggleButton()
135 inflater.inflate(R.layout.preference_app, null)); in clickWidgetView_shouldNotToggleButtonIfDisabled()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java152 int layoutId = R.layout.attachment_single_image; in createImagePreview()
155 layoutId = R.layout.attachment_single_image; in createImagePreview()
158 layoutId = R.layout.attachment_multiple_image; in createImagePreview()
161 layoutId = R.layout.attachment_chooser_image; in createImagePreview()
194 final View pendingItemView = layoutInflater.inflate(R.layout.attachment_pending_item, in createPendingAttachmentPreview()
211 int layoutId = R.layout.attachment_single_vcard; in createVCardPreview()
214 layoutId = R.layout.attachment_single_vcard; in createVCardPreview()
217 layoutId = R.layout.attachment_multiple_vcard; in createVCardPreview()
220 layoutId = R.layout.attachment_chooser_vcard; in createVCardPreview()
254 int layoutId = R.layout.attachment_single_audio; in createAudioPreview()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java210 final StaticLayout layout = this.mLayout; in onMeasure() local
212 final int height = layout.getHeight() + getPaddingTop() + getPaddingBottom(); in onMeasure()
214 int lineCount = layout.getLineCount(); in onMeasure()
216 width = Math.max((int) Math.ceil(layout.getLineWidth(i)), width); in onMeasure()
260 final StaticLayout layout = this.mLayout; in onDraw() local
261 if (layout == null) { in onDraw()
269 final int lineCount = layout.getLineCount(); in onDraw()
276 float previousBottom = layout.getLineTop(0); in onDraw()
286 bounds.left = layout.getLineLeft(i) - innerPaddingX + spacesPadding; in onDraw()
287 bounds.right = layout.getLineRight(i) + innerPaddingX; in onDraw()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
DTestsGermanDvorak.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.Dvorak;
22 import com.android.inputmethod.keyboard.layout.LayoutBase;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
25 import com.android.inputmethod.keyboard.layout.customizer.DvorakCustomizer;
26 import com.android.inputmethod.keyboard.layout.customizer.GermanCustomizer;
27 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
28 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsVietnamese.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
25 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
27 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsUkrainian.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.EastSlavic;
22 import com.android.inputmethod.keyboard.layout.LayoutBase;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
25 import com.android.inputmethod.keyboard.layout.customizer.EastSlavicCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
27 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsSwedishPcQwerty.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.PcQwerty;
23 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
24 import com.android.inputmethod.keyboard.layout.customizer.PcQwertyCustomizer;
25 import com.android.inputmethod.keyboard.layout.customizer.SwedishCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
27 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsTamilIN.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Symbols;
23 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
24 import com.android.inputmethod.keyboard.layout.Tamil;
25 import com.android.inputmethod.keyboard.layout.customizer.TamilCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
DTestsTamilLK.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Symbols;
23 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
24 import com.android.inputmethod.keyboard.layout.Tamil;
25 import com.android.inputmethod.keyboard.layout.customizer.TamilCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
DTestsEnglishIN.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
25 import com.android.inputmethod.keyboard.layout.customizer.EnglishCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
DTestsHinglish.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.SymbolsShifted;
25 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
DTestsRomanian.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
25 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsIcelandic.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
25 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsFrenchDvorak.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.Dvorak;
22 import com.android.inputmethod.keyboard.layout.LayoutBase;
23 import com.android.inputmethod.keyboard.layout.customizer.DvorakCustomizer;
24 import com.android.inputmethod.keyboard.layout.customizer.FrenchCustomizer.FrenchEuroCustomizer;
25 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
DTestsPolish.java17 package com.android.inputmethod.keyboard.layout.tests;
21 import com.android.inputmethod.keyboard.layout.LayoutBase;
22 import com.android.inputmethod.keyboard.layout.Qwerty;
23 import com.android.inputmethod.keyboard.layout.Symbols;
24 import com.android.inputmethod.keyboard.layout.customizer.LayoutCustomizer;
25 import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
26 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java96 view = mInflater.inflate(R.layout.notification_header_template, parent, false); in onCreateViewHolder()
100 view = mInflater.inflate(R.layout.notification_footer_template, parent, false); in onCreateViewHolder()
106 R.layout.group_notification_template, parent, false); in onCreateViewHolder()
111 .inflate(R.layout.group_summary_notification_template, parent, false); in onCreateViewHolder()
116 .inflate(R.layout.call_notification_template, parent, false); in onCreateViewHolder()
121 R.layout.car_emergency_notification_template, parent, false); in onCreateViewHolder()
126 R.layout.car_warning_notification_template, parent, false); in onCreateViewHolder()
133 R.layout.car_information_notification_template, parent, false); in onCreateViewHolder()
140 R.layout.car_information_notification_template_inner, parent, false); in onCreateViewHolder()
147 R.layout.message_notification_template_inner, parent, false); in onCreateViewHolder()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterSwitchPreferenceTest.java57 .isEqualTo(R.layout.preference_widget_master_switch); in createNewPreference_shouldSetLayout()
65 R.layout.preference_widget_master_switch, null)); in setChecked_shouldUpdateButtonCheckedState()
81 R.layout.preference_widget_master_switch, null)); in setSwitchEnabled_shouldUpdateButtonEnabledState()
97 R.layout.preference_widget_master_switch, null)); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
110 inflater.inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldToggleButton()
114 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in clickWidgetView_shouldToggleButton()
130 inflater.inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotToggleButtonIfDisabled()
134 inflater.inflate(R.layout.preference_widget_master_switch, widgetView, true); in clickWidgetView_shouldNotToggleButtonIfDisabled()
147 LayoutInflater.from(mContext).inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotifyPreferenceChanged()
167 .inflate(R.layout.preference_widget_master_switch, null)); in setDisabledByAdmin_hasEnforcedAdmin_shouldDisableButton()
[all …]
DMasterCheckBoxPreferenceTest.java56 .isEqualTo(R.layout.preference_widget_master_checkbox); in createNewPreference_shouldSetLayout()
63 R.layout.preference_widget_master_checkbox, null)); in setChecked_shouldUpdateCheckBoxCheckedState()
78 R.layout.preference_widget_master_checkbox, null)); in setEnabled_shouldUpdateCheckBoxEnabledState()
93 R.layout.preference_widget_master_checkbox, null)); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
110 R.layout.preference_widget_master_checkbox, null)); in onBindViewHolder_shouldSetCheckboxEnabledState()
128 inflater.inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldToggleCheckBox()
132 inflater.inflate(R.layout.preference_widget_master_checkbox, widgetView, true); in clickWidgetView_shouldToggleCheckBox()
147 inflater.inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotToggleCheckBoxIfDisabled()
151 inflater.inflate(R.layout.preference_widget_master_checkbox, widgetView, true); in clickWidgetView_shouldNotToggleCheckBoxIfDisabled()
163 LayoutInflater.from(mContext).inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotifyPreferenceChanged()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSetupChooseLockGeneric.java95 LinearLayout layout = (LinearLayout) findViewById(R.id.content_parent); in onCreate() local
96 layout.setFitsSystemWindows(false); in onCreate()
107 GlifPreferenceLayout layout = (GlifPreferenceLayout) view; in onViewCreated() local
108 layout.setDividerItemDecoration(new SettingsDividerItemDecoration(getContext())); in onViewCreated()
109 layout.setDividerInset(getContext().getResources().getDimensionPixelSize( in onViewCreated()
112 layout.setIcon(getContext().getDrawable(R.drawable.ic_lock)); in onViewCreated()
120 layout.setHeaderText(titleResource); in onViewCreated()
129 setHeaderView(R.layout.setup_choose_lock_generic_biometrics_header); in addHeaderView()
131 setHeaderView(R.layout.setup_choose_lock_generic_header); in addHeaderView()
152 GlifPreferenceLayout layout = (GlifPreferenceLayout) parent; in onCreateRecyclerView() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java261 CellLayout layout = (CellLayout) host.getParent().getParent(); in getSupportedResizeActions() local
263 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
264 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
274 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
275 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions()
288 CellLayout layout = (CellLayout) host.getParent().getParent(); in performResizeAction() local
289 layout.markCellsAsUnoccupiedForView(host); in performResizeAction()
293 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
294 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
304 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
[all …]
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutPickerController.java108 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick() local
109 if (layout != null) { in handlePreferenceTreeClick()
113 layout.getDescriptor()); in handlePreferenceTreeClick()
116 layout.getDescriptor()); in handlePreferenceTreeClick()
153 for (KeyboardLayout layout : mKeyboardLayouts) { in createPreferenceHierarchy()
155 pref.setTitle(layout.getLabel()); in createPreferenceHierarchy()
156 pref.setSummary(layout.getCollection()); in createPreferenceHierarchy()
157 pref.setKey(layout.getDescriptor()); in createPreferenceHierarchy()
159 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java382 CellLayout layout = (CellLayout) mDragInfo.cell.getParent().getParent(); in onDragStart() local
383 layout.markCellsAsUnoccupiedForView(mDragInfo.cell); in onDragStart()
510 .inflate(R.layout.search_container_workspace,firstPage, false); in bindAndInitFirstWorkspaceScreen()
569 R.layout.workspace_screen, this, false /* attachToRoot */); in insertNewWorkspaceScreen()
767 public int getIdForScreen(CellLayout layout) { in getIdForScreen() argument
768 int index = mWorkspaceScreens.indexOfValue(layout); in getIdForScreen()
1318 final CellLayout layout = (CellLayout) getPageAt(i); in enableHwLayersOnVisiblePages() local
1321 layout.enableHardwareLayer(enableLayer); in enableHwLayersOnVisiblePages()
1898 CellLayout layout = (CellLayout) cell.getParent().getParent(); in onDrop() local
1899 layout.markCellsAsOccupiedForView(cell); in onDrop()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DKeyboardLayoutPickerController.java108 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick() local
109 if (layout != null) { in handlePreferenceTreeClick()
113 layout.getDescriptor()); in handlePreferenceTreeClick()
116 layout.getDescriptor()); in handlePreferenceTreeClick()
153 for (KeyboardLayout layout : mKeyboardLayouts) { in createPreferenceHierarchy()
155 pref.setTitle(layout.getLabel()); in createPreferenceHierarchy()
156 pref.setSummary(layout.getCollection()); in createPreferenceHierarchy()
157 pref.setKey(layout.getDescriptor()); in createPreferenceHierarchy()
159 mPreferenceMap.put(pref, layout); in createPreferenceHierarchy()

12345678910>>...73