Lines Matching refs:type

64  * The services are referred to by type V and are made available via the
196 private void notifyListener(final V type, final int userId, final boolean removed) {
198 Log.d(TAG, "notifyListener: " + type + " is " + (removed ? "removed" : "added"));
213 listener2.onServiceChanged(type, userId, removed);
219 * Value type that describes a Service. The information within can be used
223 public final V type;
228 public ServiceInfo(V type, ComponentName componentName, int uid) {
229 this.type = type;
236 return "ServiceInfo: " + type + ", " + componentName + ", uid " + uid;
242 * @param type the account type of the authenticator
243 * @return the AuthenticatorInfo that matches the account type or null if none is present
245 public ServiceInfo<V> getServiceInfo(V type, int userId) {
252 return user.services.get(type);
334 Integer previousUid = user.persistentServices.get(info.type);
337 user.services.put(info.type, info);
338 user.persistentServices.put(info.type, info.uid);
340 notifyListener(info.type, userId, false /* removed */);
346 user.services.put(info.type, info);
348 || !containsTypeAndUid(serviceInfos, info.type, previousUid)) {
356 user.services.put(info.type, info);
357 user.persistentServices.put(info.type, info.uid);
358 notifyListener(info.type, userId, false /* removed */);
392 private boolean containsType(ArrayList<ServiceInfo<V>> serviceInfos, V type) {
394 if (serviceInfos.get(i).type.equals(type)) {
402 private boolean containsTypeAndUid(ArrayList<ServiceInfo<V>> serviceInfos, V type, int uid) {
405 if (serviceInfo.type.equals(type) && serviceInfo.uid == uid) {
429 int type;
430 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT
431 && type != XmlPullParser.START_TAG) {