Lines Matching refs:idx

228             int idx = nativeGetAttributeIndex(mParseState, namespace, name);
229 if (idx >= 0) {
231 + namespace + ":" + name + " index = " + idx);
233 "Namespace=" + getAttributeNamespace(idx)
234 + "Name=" + getAttributeName(idx)
235 + ", Value=" + getAttributeValue(idx));
236 return getAttributeValue(idx);
320 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
321 if (idx >= 0) {
322 return getAttributeListValue(idx, options, defaultValue);
328 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
329 if (idx >= 0) {
330 return getAttributeBooleanValue(idx, defaultValue);
336 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
337 if (idx >= 0) {
338 return getAttributeResourceValue(idx, defaultValue);
344 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
345 if (idx >= 0) {
346 return getAttributeIntValue(idx, defaultValue);
353 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
354 if (idx >= 0) {
355 return getAttributeUnsignedIntValue(idx, defaultValue);
361 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
362 if (idx >= 0) {
363 return getAttributeFloatValue(idx, defaultValue);
368 public int getAttributeListValue(int idx,
370 int t = nativeGetAttributeDataType(mParseState, idx);
371 int v = nativeGetAttributeData(mParseState, idx);
378 public boolean getAttributeBooleanValue(int idx,
380 int t = nativeGetAttributeDataType(mParseState, idx);
385 return nativeGetAttributeData(mParseState, idx) != 0;
389 public int getAttributeResourceValue(int idx, int defaultValue) {
390 int t = nativeGetAttributeDataType(mParseState, idx);
394 return nativeGetAttributeData(mParseState, idx);
398 public int getAttributeIntValue(int idx, int defaultValue) {
399 int t = nativeGetAttributeDataType(mParseState, idx);
404 return nativeGetAttributeData(mParseState, idx);
408 public int getAttributeUnsignedIntValue(int idx, int defaultValue) {
409 int t = nativeGetAttributeDataType(mParseState, idx);
414 return nativeGetAttributeData(mParseState, idx);
418 public float getAttributeFloatValue(int idx, float defaultValue) {
419 int t = nativeGetAttributeDataType(mParseState, idx);
424 nativeGetAttributeData(mParseState, idx));
518 private static final native int nativeGetAttributeNamespace(long state, int idx);
520 private static final native int nativeGetAttributeName(long state, int idx);
522 private static final native int nativeGetAttributeResource(long state, int idx);
524 private static final native int nativeGetAttributeDataType(long state, int idx);
526 private static final native int nativeGetAttributeData(long state, int idx);
528 private static final native int nativeGetAttributeStringValue(long state, int idx);