Home | History | Annotate | Download | only in pinyin

Lines Matching refs:xrp

303         KeyCommonAttributes(XmlResourceParser xrp) {
304 mXrp = xrp;
332 XmlResourceParser xrp = r.getXml(resourceId);
334 KeyCommonAttributes attrDef = new KeyCommonAttributes(xrp);
335 KeyCommonAttributes attrKey = new KeyCommonAttributes(xrp);
343 mXmlEventType = xrp.next();
347 String attribute = xrp.getName();
349 Drawable skbBg = getDrawable(xrp, XMLATTR_SKB_BG, null);
350 Drawable balloonBg = getDrawable(xrp,
352 Drawable popupBg = getDrawable(xrp, XMLATTR_POPUP_BG,
360 float xMargin = getFloat(xrp, XMLATTR_KEY_XMARGIN, 0);
361 float yMargin = getFloat(xrp, XMLATTR_KEY_YMARGIN, 0);
365 globalColor = getColor(xrp, XMLATTR_COLOR, 0);
366 globalColorHl = getColor(xrp, XMLATTR_COLOR_HIGHLIGHT,
368 globalColorBalloon = getColor(xrp,
371 int id = getInteger(xrp, XMLATTR_ID, KEYTYPE_ID_LAST);
372 Drawable bg = getDrawable(xrp, XMLATTR_KEYTYPE_BG, null);
373 Drawable hlBg = getDrawable(xrp, XMLATTR_KEYTYPE_HLBG,
375 int color = getColor(xrp, XMLATTR_COLOR, globalColor);
376 int colorHl = getColor(xrp, XMLATTR_COLOR_HIGHLIGHT,
378 int colorBalloon = getColor(xrp, XMLATTR_COLOR_BALLOON,
391 int keyCode = getInteger(xrp, XMLATTR_KEY_CODE, 0);
392 Drawable icon = getDrawable(xrp, XMLATTR_KEY_ICON, null);
393 Drawable iconPopup = getDrawable(xrp,
400 int keyId = this.getInteger(xrp, XMLATTR_ID, -1);
408 mKeyXPos = getFloat(xrp, XMLATTR_START_POS_X, 0);
409 mKeyYPos = getFloat(xrp, XMLATTR_START_POS_Y, 0);
411 SoftKey softKey = getSoftKey(xrp, attrKey);
417 if (!mNextEventFetched) mXmlEventType = xrp.next();
419 xrp.close();
433 XmlResourceParser xrp = mContext.getResources().getXml(resourceId);
441 KeyCommonAttributes attrDef = new KeyCommonAttributes(xrp);
442 KeyCommonAttributes attrSkb = new KeyCommonAttributes(xrp);
443 KeyCommonAttributes attrRow = new KeyCommonAttributes(xrp);
444 KeyCommonAttributes attrKeys = new KeyCommonAttributes(xrp);
445 KeyCommonAttributes attrKey = new KeyCommonAttributes(xrp);
455 mXmlEventType = xrp.next();
459 String attr = xrp.getName();
463 int skbTemplateId = xrp.getAttributeResourceValue(null,
476 boolean cacheFlag = getBoolean(xrp,
478 boolean stickyFlag = getBoolean(xrp,
481 boolean isQwerty = getBoolean(xrp, XMLATTR_QWERTY,
483 boolean isQwertyUpperCase = getBoolean(xrp,
491 mKeyXMargin = getFloat(xrp, XMLATTR_KEY_XMARGIN,
493 mKeyYMargin = getFloat(xrp, XMLATTR_KEY_YMARGIN,
495 skbBg = getDrawable(xrp, XMLATTR_SKB_BG, null);
496 popupBg = getDrawable(xrp, XMLATTR_POPUP_BG, null);
497 balloonBg = getDrawable(xrp, XMLATTR_BALLOON_BG, null);
513 mKeyXPos = getFloat(xrp, XMLATTR_START_POS_X, 0);
514 mKeyYPos = getFloat(xrp, XMLATTR_START_POS_Y, mKeyYPos);
515 int rowId = getInteger(xrp, XMLATTR_ROW_ID,
524 String splitter = xrp.getAttributeValue(null,
527 String labels = xrp.getAttributeValue(null,
529 String codes = xrp.getAttributeValue(null,
580 int keyId = this.getInteger(xrp, XMLATTR_ID, -1);
584 softKey = getSoftKey(xrp, attrKey);
599 attr = xrp.getName();
610 String attr = xrp.getName();
620 if (!mNextEventFetched) mXmlEventType = xrp.next();
622 xrp.close();
633 // Caller makes sure xrp and r are valid.
634 private SoftKey getSoftKey(XmlResourceParser xrp,
637 int keyCode = getInteger(xrp, XMLATTR_KEY_CODE, 0);
638 String keyLabel = getString(xrp, XMLATTR_KEY_LABEL, null);
639 Drawable keyIcon = getDrawable(xrp, XMLATTR_KEY_ICON, null);
640 Drawable keyIconPopup = getDrawable(xrp, XMLATTR_KEY_ICON_POPUP, null);
641 int popupSkbId = xrp.getAttributeResourceValue(null,
666 mXmlEventType = xrp.next();
671 mAttrTmp = xrp.getName();
700 XmlResourceParser xrp = attrKey.mXrp;
701 int stateId = getInteger(xrp, XMLATTR_TOGGLE_STATE_ID, 0);
704 String keyLabel = getString(xrp, XMLATTR_KEY_LABEL, null);
705 int keyTypeId = getInteger(xrp, XMLATTR_KEY_TYPE, KEYTYPE_ID_LAST);
708 keyCode = getInteger(xrp, XMLATTR_KEY_CODE, defKeyCode);
710 keyCode = getInteger(xrp, XMLATTR_KEY_CODE, 0);
712 Drawable icon = getDrawable(xrp, XMLATTR_KEY_ICON, null);
713 Drawable iconPopup = getDrawable(xrp, XMLATTR_KEY_ICON_POPUP, null);
728 boolean repeat = getBoolean(xrp, XMLATTR_KEY_REPEAT, attrKey.repeat);
729 boolean balloon = getBoolean(xrp, XMLATTR_KEY_BALLOON, attrKey.balloon);
735 mXmlEventType = xrp.next();
738 mXmlEventType = xrp.next();
741 String attr = xrp.getName();
753 private int getInteger(XmlResourceParser xrp, String name, int defValue) {
754 int resId = xrp.getAttributeResourceValue(null, name, 0);
757 s = xrp.getAttributeValue(null, name);
770 private int getColor(XmlResourceParser xrp, String name, int defValue) {
771 int resId = xrp.getAttributeResourceValue(null, name, 0);
774 s = xrp.getAttributeValue(null, name);
787 private String getString(XmlResourceParser xrp, String name, String defValue) {
788 int resId = xrp.getAttributeResourceValue(null, name, 0);
790 return xrp.getAttributeValue(null, name);
796 private float getFloat(XmlResourceParser xrp, String name, float defValue) {
797 int resId = xrp.getAttributeResourceValue(null, name, 0);
799 String s = xrp.getAttributeValue(null, name);
817 private boolean getBoolean(XmlResourceParser xrp, String name,
819 String s = xrp.getAttributeValue(null, name);
829 private Drawable getDrawable(XmlResourceParser xrp, String name,
831 int resId = xrp.getAttributeResourceValue(null, name, 0);