Home
last modified time | relevance | path

Searched refs:parentKey (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java261 public Builder(View containerView, Key parentKey, KeyboardView parentKeyboardView) { in Builder() argument
269 mParentKey = parentKey; in Builder()
273 && !parentKey.noKeyPreview() && parentKey.mMoreKeys.length == 1; in Builder()
286 width = getMaxKeyWidth(parentKeyboardView, parentKey, mParams.mDefaultKeyWidth); in Builder()
290 if (parentKey.needsDividersInMoreKeys()) { in Builder()
297 mParams.setParameters(parentKey.mMoreKeys.length, parentKey.getMoreKeysColumn(), in Builder()
298 width, height, parentKey.mX + parentKey.mWidth / 2, in Builder()
299 parentKeyboardView.getMeasuredWidth(), parentKey.isFixedColumnOrderMoreKeys(), in Builder()
303 private static int getMaxKeyWidth(KeyboardView view, Key parentKey, int minKeyWidth) { in getMaxKeyWidth() argument
306 + (parentKey.hasLabelsInMoreKeys() ? minKeyWidth * LABEL_PADDING_RATIO : 0)); in getMaxKeyWidth()
[all …]
DLatinKeyboardView.java512 private boolean openMoreKeysKeyboardIfRequired(Key parentKey, PointerTracker tracker) { in openMoreKeysKeyboardIfRequired() argument
521 if (parentKey == null) in openMoreKeysKeyboardIfRequired()
523 return onLongPress(parentKey, tracker); in openMoreKeysKeyboardIfRequired()
527 protected MoreKeysPanel onCreateMoreKeysPanel(Key parentKey) { in onCreateMoreKeysPanel() argument
528 if (parentKey.mMoreKeys == null) in onCreateMoreKeysPanel()
537 final Keyboard moreKeysKeyboard = new MoreKeysKeyboard.Builder(container, parentKey, this) in onCreateMoreKeysPanel()
553 protected boolean onLongPress(Key parentKey, PointerTracker tracker) { in onLongPress() argument
557 final int primaryCode = parentKey.mCode; in onLongPress()
558 if (parentKey.hasEmbeddedMoreKey()) { in onLongPress()
559 final int embeddedCode = parentKey.mMoreKeys[0].mCode; in onLongPress()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMailboxFragmentAdapter.java517 MailboxFragmentLoader(Context context, long accountId, long parentKey) { in MailboxFragmentLoader() argument
519 (parentKey != Mailbox.NO_MAILBOX) in MailboxFragmentLoader()
523 new String[] { Long.toString(accountId), Long.toString(parentKey) }, in MailboxFragmentLoader()
527 mParentKey = parentKey; in MailboxFragmentLoader()
/packages/apps/Email/src/com/android/email/mail/store/
DImapStore.java328 long parentKey = Mailbox.NO_MAILBOX; in createHierarchy() local
334 parentKey = parentMailbox.mId; in createHierarchy()
339 mailbox.mParentKey = parentKey; in createHierarchy()