Methods Summary |
---|
public java.lang.Integer | getId(com.android.resources.ResourceType type, java.lang.String name)Returns a dynamic integer for the given resource type/name, creating it if it doesn't
already exist.
return getId(Pair.of(type, name));
|
public java.lang.Integer | getId(com.android.util.Pair resource)Returns a dynamic integer for the given resource type/name, creating it if it doesn't
already exist.
Integer value = mDynamicIds.get(resource);
if (value == null) {
value = ++mDynamicSeed;
mDynamicIds.put(resource, value);
mRevDynamicIds.put(value, resource);
}
return value;
|
public void | reset(int seed)
mDynamicIds.clear();
mRevDynamicIds.clear();
mDynamicSeed = seed;
|
public com.android.util.Pair | resolveId(int id)
return mRevDynamicIds.get(id);
|