Home | History | Annotate | Download | only in launcher2

Lines Matching full:callbacks

112     private WeakReference<Callbacks> mCallbacks;
151 public interface Callbacks {
771 public void initialize(Callbacks callbacks) {
773 mCallbacks = new WeakReference<Callbacks>(callbacks);
862 Callbacks callbacks = mCallbacks.get();
863 if (callbacks != null) {
864 callbacks.bindSearchablesChanged();
898 Callbacks callbacks = mCallbacks.get();
899 if (callbacks != null) {
901 if (!callbacks.setLoadOnResume()) {
1112 final Callbacks cbk = mCallbacks.get();
1192 * Gets the callbacks object. If we've been stopped, or if the launcher object
1193 * has somehow been garbage collected, return null instead. Pass in the Callbacks
1195 * a new Callbacks object around then also return null. This will save us from
1198 Callbacks tryGetCallbacks(Callbacks oldCallbacks) {
1208 final Callbacks callbacks = mCallbacks.get();
1209 if (callbacks != oldCallbacks) {
1212 if (callbacks == null) {
1217 return callbacks;
1654 private void bindWorkspaceItems(final Callbacks oldCallbacks,
1670 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1671 if (callbacks != null) {
1672 callbacks.bindItems(workspaceItems, start, start+chunkSize);
1687 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1688 if (callbacks != null) {
1689 callbacks.bindFolders(folders);
1706 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1707 if (callbacks != null) {
1708 callbacks.bindAppWidget(widget);
1729 final Callbacks oldCallbacks = mCallbacks.get();
1777 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1778 if (callbacks != null) {
1779 callbacks.startBinding();
1791 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1792 if (callbacks != null) {
1793 callbacks.onPageBoundSynchronously(currentScreen);
1809 Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1810 if (callbacks != null) {
1811 callbacks.finishBindingItems();
1848 final Callbacks oldCallbacks = mCallbacks.get();
1862 final Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1863 if (callbacks != null) {
1864 callbacks.bindAllApplications(list);
1885 final Callbacks oldCallbacks = mCallbacks.get();
1949 final Callbacks callbacks = tryGetCallbacks(oldCallbacks);
1956 if (callbacks != null) {
1958 callbacks.bindAllApplications(added);
1960 callbacks.bindAppsAdded(added);
2077 final Callbacks callbacks = mCallbacks != null ? mCallbacks.get() : null;
2078 if (callbacks == null) {
2087 Callbacks cb = mCallbacks != null ? mCallbacks.get() : null;
2088 if (callbacks == cb && cb != null) {
2089 callbacks.bindAppsAdded(addedFinal);
2098 Callbacks cb = mCallbacks != null ? mCallbacks.get() : null;
2099 if (callbacks == cb && cb != null) {
2100 callbacks.bindAppsUpdated(modifiedFinal);
2114 Callbacks cb = mCallbacks != null ? mCallbacks.get() : null;
2115 if (callbacks == cb && cb != null) {
2116 callbacks.bindComponentsRemoved(removedPackageNames,
2128 Callbacks cb = mCallbacks != null ? mCallbacks.get() : null;
2129 if (callbacks == cb && cb != null) {
2130 callbacks.bindPackagesUpdated(widgetsAndShortcuts);