Home
last modified time | relevance | path

Searched refs:DeviceLocalAccountTypeFactory (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountDisplayInfoFactory.java23 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
41 private final DeviceLocalAccountTypeFactory mDeviceAccountTypeFactory;
52 DeviceLocalAccountTypeFactory deviceAccountTypeFactory, in AccountDisplayInfoFactory()
58 mSimAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_SIM, accounts); in AccountDisplayInfoFactory()
59 mDeviceAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_DEVICE, accounts); in AccountDisplayInfoFactory()
69 DeviceLocalAccountTypeFactory.Util.isLocalAccountType(mDeviceAccountTypeFactory, in getAccountDisplayInfo()
94 return (type == DeviceLocalAccountTypeFactory.TYPE_SIM && mSimAccountCount == 1) in shouldUseTypeLabelForName()
95 || (type == DeviceLocalAccountTypeFactory.TYPE_DEVICE && mDeviceAccountCount == 1) in shouldUseTypeLabelForName()
100 private int countOfType(@DeviceLocalAccountTypeFactory.LocalAccountType int type, in countOfType()
DAccountTypeProvider.java18 import static com.android.contacts.util.DeviceLocalAccountTypeFactory.Util.isLocalAccountType;
29 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
54 private final DeviceLocalAccountTypeFactory mLocalAccountTypeFactory;
67 public AccountTypeProvider(Context context, DeviceLocalAccountTypeFactory localTypeFactory, in AccountTypeProvider()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DCp2DeviceLocalAccountLocatorTests.java33 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
50 new DeviceLocalAccountTypeFactory.Default(getContext()), in testShouldNotCrash()
80 final DeviceLocalAccountTypeFactory stubFactory = new FakeDeviceAccountTypeFactory() in test_getDeviceLocalAccounts_containsItemForEachDeviceAccount()
114 final DeviceLocalAccountTypeFactory stubFactory = new FakeDeviceAccountTypeFactory() in test_getDeviceLocalAccounts_includesAccountsFromSettings()
127 final DeviceLocalAccountTypeFactory stubFactory = new FakeDeviceAccountTypeFactory() in test_getDeviceLocalAccounts_includesAccountsFromGroups()
141 return createLocator(cursor, new DeviceLocalAccountTypeFactory.Default(mContext)); in createWithQueryResult()
145 DeviceLocalAccountTypeFactory localAccountTypeFactory) { in createLocator()
153 DeviceLocalAccountTypeFactory localAccountTypeFactory) { in createLocator()
/packages/apps/Contacts/src/com/android/contacts/util/
DDeviceLocalAccountTypeFactory.java32 public interface DeviceLocalAccountTypeFactory { interface
41 @DeviceLocalAccountTypeFactory.LocalAccountType int classifyAccount(String accountType); in classifyAccount()
52 public static boolean isLocalAccountType(DeviceLocalAccountTypeFactory factory, in isLocalAccountType()
59 class Default implements DeviceLocalAccountTypeFactory {
DAccountFilterUtil.java116 private DeviceLocalAccountTypeFactory mDeviceLocalFactory;
145 DeviceLocalAccountTypeFactory.Util.isLocalAccountType( in getFiltersForAccounts()
153 if (DeviceLocalAccountTypeFactory.Util.isLocalAccountType( in getFiltersForAccounts()
/packages/apps/Contacts/src/com/android/contacts/model/
DCp2DeviceLocalAccountLocator.java26 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
56 private final DeviceLocalAccountTypeFactory mAccountTypeFactory;
62 DeviceLocalAccountTypeFactory factory, in Cp2DeviceLocalAccountLocator()
102 if (DeviceLocalAccountTypeFactory.Util.isLocalAccountType( in addAccountsFromCursor()
/packages/apps/Contacts/src-bind/com/android/contactsbind/
DObjectFactory.java21 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
32 public static DeviceLocalAccountTypeFactory getDeviceLocalAccountTypeFactory(Context context) { in getDeviceLocalAccountTypeFactory()
33 return new DeviceLocalAccountTypeFactory.Default(context); in getDeviceLocalAccountTypeFactory()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DFakeDeviceAccountTypeFactory.java19 import com.android.contacts.util.DeviceLocalAccountTypeFactory;
24 public class FakeDeviceAccountTypeFactory implements DeviceLocalAccountTypeFactory {
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DAccountDisplayInfoFactoryTests.java159 return createFactoryForKnownTypes(new DeviceLocalAccountTypeFactory.Default(getContext())); in createFactoryForKnownTypes()
162 private AccountDisplayInfoFactory createFactoryForKnownTypes(DeviceLocalAccountTypeFactory in createFactoryForKnownTypes()
/packages/apps/Contacts/
Dproguard.flags93 -keep class com.android.contacts.util.DeviceLocalAccountTypeFactory { *; }
94 -keep class com.android.contacts.util.DeviceLocalAccountTypeFactory$* { *; }