Home
last modified time | relevance | path

Searched refs:Controller (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Email/tests/src/com/android/email/
DControllerProviderOpsTests.java76 public static class TestController extends Controller {
88 assertEquals("", Controller.getMailboxServerName(mContext, -1)); in testGetMailboxServerName()
90 assertEquals("Inbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName()
91 assertEquals("Outbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName()
92 assertEquals("Trash", Controller.getMailboxServerName(mContext, Mailbox.TYPE_TRASH)); in testGetMailboxServerName()
93 assertEquals("Sent", Controller.getMailboxServerName(mContext, Mailbox.TYPE_SENT)); in testGetMailboxServerName()
94 assertEquals("Junk", Controller.getMailboxServerName(mContext, Mailbox.TYPE_JUNK)); in testGetMailboxServerName()
99 assertEquals("Inbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName()
100 assertEquals("Outbox", Controller.getMailboxServerName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName()
101 assertEquals("Trash", Controller.getMailboxServerName(mContext, Mailbox.TYPE_TRASH)); in testGetMailboxServerName()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMailboxFinder.java19 import com.android.email.Controller;
44 private final Controller mController;
49 private Controller.Result mControllerResults; // Not final, we null it out when done.
79 mController = Controller.getInstance(context); in MailboxFinder()
126 private class ControllerResults extends Controller.Result {
261 /* package */ Controller.Result getControllerResultsForTest() { in getControllerResultsForTest()
DEmailActivity.java33 import com.android.email.Controller;
70 private Controller mController;
71 private Controller.Result mControllerResult;
196 mController = Controller.getInstance(this); in onCreate()
362 private class ControllerResult extends Controller.Result {
DActivityHelper.java27 import com.android.email.Controller;
96 Controller.getInstance(context).deleteMessage(messageId); in deleteMessage()
103 Controller.getInstance(context).moveMessages(messageIds, newMailboxId); in moveMessages()
DMessagesAdapter.java29 import com.android.email.Controller;
409 Controller controller = Controller.getInstance(mContext); in loadInBackground()
DMessageViewFragmentBase.java59 import com.android.email.Controller;
145 private Controller mController;
267 mController = Controller.getInstance(mContext); in onCreate()
458 protected final Controller getController() { in getController()
1758 private class ControllerResults extends Controller.Result {
/packages/apps/Email/tests/src/com/android/email/activity/
DMailboxFinderTest.java24 import com.android.email.Controller;
67 Controller.injectMockControllerForTest(mMockController); in setUp()
81 Controller.injectMockControllerForTest(null); in tearDown()
87 private static void checkControllerResultRemoved(Controller controller) { in checkControllerResultRemoved()
88 for (Controller.Result callback : controller.getResultCallbacksForTest()) { in checkControllerResultRemoved()
393 private static class MockController extends Controller {
DUIControllerTwoPaneRefreshTaskTest.java20 import com.android.email.Controller;
46 mRefreshManager = new MockRefreshManager(getContext(), Controller.getInstance(getContext()), in setUp()
162 Context context, Controller controller, Clock clock, Handler handler) { in MockRefreshManager()
/packages/apps/Email/src/com/android/email/service/
DMailService.java37 import com.android.email.Controller;
90 Controller mController;
91 private final Controller.Result mControllerCallback = new ControllerResults();
153 mController = Controller.getInstance(this); in onStartCommand()
284 Controller.getInstance(getApplication()).removeResultCallback(mControllerCallback); in onDestroy()
419 private boolean syncOneAccount(Controller controller, long checkAccountId, int startId) { in syncOneAccount()
617 class ControllerResults extends Controller.Result {
DPopImapSyncAdapterService.java33 import com.android.email.Controller;
101 Controller.getInstance(context).updateMailbox(accountId, mailboxId, false); in performSync()
/packages/apps/Browser/src/com/android/browser/
DBrowserActivity.java83 private Controller createController() { in createController()
84 Controller controller = new Controller(this); in createController()
97 Controller getController() { in getController()
98 return (Controller) mController; in getController()
DUploadHandler.java45 private Controller mController;
47 public UploadHandler(Controller controller) { in UploadHandler()
196 mController.getActivity().startActivityForResult(intent, Controller.FILE_SELECTED); in startActivity()
203 Controller.FILE_SELECTED); in startActivity()
DIntentHandler.java55 private Controller mController;
59 public IntentHandler(Activity browser, Controller controller) { in IntentHandler()
267 Controller controller, Intent intent) { in handleWebSearchIntent()
291 Controller controller, String inUrl, Bundle appData, in handleWebSearchRequest()
DNfcHandler.java39 final Controller mController;
45 public static void register(Activity activity, Controller controller) { in register()
64 public NfcHandler(Controller controller) { in NfcHandler()
DCrashRecoveryHandler.java55 private Controller mController;
63 public static CrashRecoveryHandler initialize(Controller controller) { in initialize()
76 private CrashRecoveryHandler(Controller controller) { in CrashRecoveryHandler()
DBreadCrumbView.java45 public interface Controller { interface in BreadCrumbView
50 private Controller mController;
105 public void setController(Controller ctl) { in setController()
DNetworkStateHandler.java37 Controller mController;
44 public NetworkStateHandler(Activity activity, Controller controller) { in NetworkStateHandler()
/packages/apps/Email/src/com/android/email/
DRefreshManager.java60 private final Controller mController;
61 private final Controller.Result mControllerResult;
171 sInstance = new RefreshManager(context, Controller.getInstance(context), in getInstance()
177 protected RefreshManager(Context context, Controller controller, Clock clock, in RefreshManager()
355 private class ControllerResult extends Controller.Result {
DController.java75 public class Controller { class
77 private static Controller sInstance;
121 protected Controller(Context _context) { in Controller() method in Controller
150 public synchronized static Controller getInstance(Context _context) { in getInstance()
152 sInstance = new Controller(_context); in getInstance()
162 public synchronized static void injectMockControllerForTest(Controller mockController) { in injectMockControllerForTest()
/packages/apps/Browser/tests/src/com/android/browser/
DIntentHandlerTests.java41 Controller controller = getActivity().getController(); in testSwitchToTabWithUrl()
61 Controller controller = getActivity().getController(); in testShortcut()
88 Controller controller = getActivity().getController(); in testApplication()
140 intent.putExtra(Controller.NO_CRASH_RECOVERY, true); in sendIntent()
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DGroupsListFragment.java44 Controller mController;
48 public interface Controller { interface in GroupsListFragment
54 public void setController(Controller controller) { in setController()
DContactsListFragment.java49 public interface Controller { interface in ContactsListFragment
53 Controller mController;
121 public void setController(Controller controller) { in setController()
DContactFragment.java95 private Controller mController;
144 public ContactFragment(Uri uri, ContactFragment.Controller controller) { in ContactFragment()
233 public interface Controller { interface in ContactFragment
238 public static final class DefaultController implements Controller {
268 public void setController(Controller controller) { in setController()
/packages/apps/Browser/src/com/android/browser/view/
DBookmarkExpandableView.java47 implements BreadCrumbView.Controller {
58 private BreadCrumbView.Controller mBreadcrumbController;
205 public void setBreadcrumbController(BreadCrumbView.Controller controller) { in setBreadcrumbController()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysPanel.java22 public interface Controller { interface
53 public void showMoreKeysPanel(View parentView, Controller controller, int pointX, in showMoreKeysPanel()

123