Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java243 public void initialize(Callbacks callbacks) { in initialize() argument
245 mCallbacks = new WeakReference<Callbacks>(callbacks); in initialize()
334 final Callbacks callbacks = mCallbacks != null ? mCallbacks.get() : null; in onReceive() local
335 if (callbacks == null) { in onReceive()
344 callbacks.bindPackageAdded(addedFinal); in onReceive()
352 callbacks.bindPackageUpdated(packageName, modifiedFinal); in onReceive()
360 callbacks.bindPackageRemoved(packageName, removedFinal); in onReceive()
594 final Callbacks callbacks = mCallbacks.get(); in tryGetCallbacks() local
595 if (callbacks == null) { in tryGetCallbacks()
600 return callbacks; in tryGetCallbacks()
[all …]
/packages/apps/Email/src/com/android/email/mail/
DStore.java65 public static Store newInstance(String uri, Context context, PersistentDataCallbacks callbacks) in newInstance() argument
71 PersistentDataCallbacks callbacks) in instantiateStore() argument
80 o = m.invoke(null, uri, context, callbacks); in instantiateStore()
170 PersistentDataCallbacks callbacks) in getInstance() argument
176 store = instantiateStore(info.mClassName, uri, context, callbacks); in getInstance()
184 store.setPersistentDataCallbacks(callbacks); in getInstance()
263 protected void setPersistentDataCallbacks(PersistentDataCallbacks callbacks) { in setPersistentDataCallbacks() argument
DFolder.java52 public abstract void open(OpenMode mode, PersistentDataCallbacks callbacks) in open() argument
139 MessageUpdateCallbacks callbacks) throws MessagingException; in copyMessages() argument
/packages/apps/Email/tests/src/com/android/email/mail/
DMockFolder.java31 MessageUpdateCallbacks callbacks) { in copyMessages() argument
113 public void open(OpenMode mode, PersistentDataCallbacks callbacks) { in open() argument
/packages/apps/Email/tests/src/com/android/email/mail/store/
DLocalStoreUnitTests.java312 Store.PersistentDataCallbacks callbacks = mStore.getPersistentCallbacks(); in testStorePersistentCallbacks() local
315 assertEquals("the-default", callbacks.getPersistentString(TEST_KEY, "the-default")); in testStorePersistentCallbacks()
318 callbacks.setPersistentString(TEST_KEY, TEST_STRING); in testStorePersistentCallbacks()
319 callbacks.setPersistentString(TEST_KEY_2, TEST_STRING_2); in testStorePersistentCallbacks()
337 Folder.PersistentDataCallbacks callbacks = mFolder.getPersistentCallbacks(); in testFolderPersistentStorage() local
341 callbacks.setPersistentString("key1", "value-1-1"); in testFolderPersistentStorage()
342 callbacks.setPersistentString("key2", "value-1-2"); in testFolderPersistentStorage()
347 assertEquals("value-1-1", callbacks.getPersistentString("key1", null)); in testFolderPersistentStorage()
348 assertEquals("value-1-2", callbacks.getPersistentString("key2", null)); in testFolderPersistentStorage()
353 assertEquals("value-1-3", callbacks.getPersistentString("key3", "value-1-3")); in testFolderPersistentStorage()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/
DExchangeStore.java55 public static Store newInstance(String uri, Context context, PersistentDataCallbacks callbacks) in newInstance() argument
57 return new ExchangeStore(uri, context, callbacks); in newInstance()
66 private ExchangeStore(String _uri, Context context, PersistentDataCallbacks callbacks) in ExchangeStore() argument
DPop3Store.java88 public static Store newInstance(String uri, Context context, PersistentDataCallbacks callbacks) in newInstance() argument
226 public synchronized void open(OpenMode mode, PersistentDataCallbacks callbacks) in open() argument
834 public void copyMessages(Message[] msgs, Folder folder, MessageUpdateCallbacks callbacks) in copyMessages() argument
DImapStore.java109 public static Store newInstance(String uri, Context context, PersistentDataCallbacks callbacks) in newInstance() argument
317 public void open(OpenMode mode, PersistentDataCallbacks callbacks) in open() argument
479 MessageUpdateCallbacks callbacks) throws MessagingException { in copyMessages() argument
DLocalStore.java99 public static Store newInstance(String uri, Context context, PersistentDataCallbacks callbacks) in newInstance() argument
581 public void open(OpenMode mode, PersistentDataCallbacks callbacks) in open() argument
1102 public void copyMessages(Message[] msgs, Folder folder, MessageUpdateCallbacks callbacks) in copyMessages() argument