Lines Matching refs:idx

226             int idx = nativeGetAttributeIndex(mParseState, namespace, name);
227 if (idx >= 0) {
229 + namespace + ":" + name + " index = " + idx);
231 "Namespace=" + getAttributeNamespace(idx)
232 + "Name=" + getAttributeName(idx)
233 + ", Value=" + getAttributeValue(idx));
234 return getAttributeValue(idx);
318 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
319 if (idx >= 0) {
320 return getAttributeListValue(idx, options, defaultValue);
326 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
327 if (idx >= 0) {
328 return getAttributeBooleanValue(idx, defaultValue);
334 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
335 if (idx >= 0) {
336 return getAttributeResourceValue(idx, defaultValue);
342 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
343 if (idx >= 0) {
344 return getAttributeIntValue(idx, defaultValue);
351 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
352 if (idx >= 0) {
353 return getAttributeUnsignedIntValue(idx, defaultValue);
359 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
360 if (idx >= 0) {
361 return getAttributeFloatValue(idx, defaultValue);
366 public int getAttributeListValue(int idx,
368 int t = nativeGetAttributeDataType(mParseState, idx);
369 int v = nativeGetAttributeData(mParseState, idx);
376 public boolean getAttributeBooleanValue(int idx,
378 int t = nativeGetAttributeDataType(mParseState, idx);
383 return nativeGetAttributeData(mParseState, idx) != 0;
387 public int getAttributeResourceValue(int idx, int defaultValue) {
388 int t = nativeGetAttributeDataType(mParseState, idx);
392 return nativeGetAttributeData(mParseState, idx);
396 public int getAttributeIntValue(int idx, int defaultValue) {
397 int t = nativeGetAttributeDataType(mParseState, idx);
402 return nativeGetAttributeData(mParseState, idx);
406 public int getAttributeUnsignedIntValue(int idx, int defaultValue) {
407 int t = nativeGetAttributeDataType(mParseState, idx);
412 return nativeGetAttributeData(mParseState, idx);
416 public float getAttributeFloatValue(int idx, float defaultValue) {
417 int t = nativeGetAttributeDataType(mParseState, idx);
422 nativeGetAttributeData(mParseState, idx));
516 private static final native int nativeGetAttributeNamespace(long state, int idx);
518 private static final native int nativeGetAttributeName(long state, int idx);
520 private static final native int nativeGetAttributeResource(long state, int idx);
522 private static final native int nativeGetAttributeDataType(long state, int idx);
524 private static final native int nativeGetAttributeData(long state, int idx);
526 private static final native int nativeGetAttributeStringValue(long state, int idx);