Home
last modified time | relevance | path

Searched refs:UiUtilities (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/email/activity/
DUiUtilitiesTests.java33 assertEquals("0B", UiUtilities.formatSize(getContext(), 0)); in testFormatSize()
34 assertEquals("1B", UiUtilities.formatSize(getContext(), 1)); in testFormatSize()
35 assertEquals("1023B", UiUtilities.formatSize(getContext(), 1023)); in testFormatSize()
36 assertEquals("1KB", UiUtilities.formatSize(getContext(), 1024)); in testFormatSize()
37 assertEquals("1023KB", UiUtilities.formatSize(getContext(), 1024 * 1024 - 1)); in testFormatSize()
38 assertEquals("1MB", UiUtilities.formatSize(getContext(), 1024 * 1024)); in testFormatSize()
39 assertEquals("1023MB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024 - 1)); in testFormatSize()
40 assertEquals("1GB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024)); in testFormatSize()
41 assertEquals("5GB", UiUtilities.formatSize(getContext(), 5L * 1024 * 1024 * 1024)); in testFormatSize()
48 assertEquals("-1", UiUtilities.getMessageCountForUi(c, -1, true)); in testGetMessageCountForUi()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DDebugFragment.java22 import com.android.email.activity.UiUtilities;
63 mVersionView = (TextView) UiUtilities.getView(view, R.id.version); in onCreateView()
67 mEnableDebugLoggingView = (CheckBox) UiUtilities.getView(view, R.id.debug_logging); in onCreateView()
70 mEnableExchangeLoggingView = (CheckBox) UiUtilities.getView(view, R.id.exchange_logging); in onCreateView()
72 (CheckBox) UiUtilities.getView(view, R.id.exchange_file_logging); in onCreateView()
88 UiUtilities.getView(view, R.id.clear_webview_cache).setOnClickListener(this); in onCreateView()
91 UiUtilities.getView(view, R.id.debug_disable_graphics_acceleration); in onCreateView()
96 UiUtilities.getView(view, R.id.debug_force_one_minute_refresh); in onCreateView()
101 UiUtilities.getView(view, R.id.debug_enable_strict_mode); in onCreateView()
DAccountSetupOptions.java41 import com.android.email.activity.UiUtilities;
84 mCheckFrequencyView = (Spinner) UiUtilities.getView(this, R.id.account_check_frequency); in onCreate()
85 mSyncWindowView = (Spinner) UiUtilities.getView(this, R.id.account_sync_window); in onCreate()
86 mDefaultView = (CheckBox) UiUtilities.getView(this, R.id.account_default); in onCreate()
87 mNotifyView = (CheckBox) UiUtilities.getView(this, R.id.account_notify); in onCreate()
88 mSyncContactsView = (CheckBox) UiUtilities.getView(this, R.id.account_sync_contacts); in onCreate()
89 mSyncCalendarView = (CheckBox) UiUtilities.getView(this, R.id.account_sync_calendar); in onCreate()
90 mSyncEmailView = (CheckBox) UiUtilities.getView(this, R.id.account_sync_email); in onCreate()
92 mBackgroundAttachmentsView = (CheckBox) UiUtilities.getView(this, in onCreate()
95 UiUtilities.getView(this, R.id.previous).setOnClickListener(this); in onCreate()
[all …]
DAccountSetupExchangeFragment.java39 import com.android.email.activity.UiUtilities;
113 mUsernameView = UiUtilities.getView(view, R.id.account_username); in onCreateView()
114 mPasswordView = UiUtilities.getView(view, R.id.account_password); in onCreateView()
115 mServerView = UiUtilities.getView(view, R.id.account_server); in onCreateView()
116 mPortView = (EditText) UiUtilities.getView(view, R.id.account_port); in onCreateView()
117 mSslSecurityView = UiUtilities.getView(view, R.id.account_ssl); in onCreateView()
119 mTrustCertificatesView = UiUtilities.getView(view, R.id.account_trust_certificates); in onCreateView()
120 mClientCertificateSelector = UiUtilities.getView(view, R.id.client_certificate_selector); in onCreateView()
154 ((TextView) UiUtilities.getView(view, R.id.device_id)).setText(deviceId); in onCreateView()
362 UiUtilities.setVisibilitySafe(getView(), R.id.account_trust_certificates_divider, mode); in onUseSslChanged()
[all …]
DAccountSetupOutgoingFragment.java39 import com.android.email.activity.UiUtilities;
101 mUsernameView = (EditText) UiUtilities.getView(view, R.id.account_username); in onCreateView()
102 mPasswordView = (EditText) UiUtilities.getView(view, R.id.account_password); in onCreateView()
103 mServerView = (EditText) UiUtilities.getView(view, R.id.account_server); in onCreateView()
104 mPortView = (EditText) UiUtilities.getView(view, R.id.account_port); in onCreateView()
105 mRequireLoginView = (CheckBox) UiUtilities.getView(view, R.id.account_require_login); in onCreateView()
106 mSecurityTypeView = (Spinner) UiUtilities.getView(view, R.id.account_security_type); in onCreateView()
309 UiUtilities.setVisibilitySafe(getView(), R.id.account_require_login_settings, visibility); in onCheckedChanged()
310 UiUtilities.setVisibilitySafe(getView(), R.id.account_require_login_settings_2, visibility); in onCheckedChanged()
DAccountSetupIncomingFragment.java39 import com.android.email.activity.UiUtilities;
112 mUsernameView = (EditText) UiUtilities.getView(view, R.id.account_username); in onCreateView()
113 mPasswordView = (EditText) UiUtilities.getView(view, R.id.account_password); in onCreateView()
114 mServerLabelView = (TextView) UiUtilities.getView(view, R.id.account_server_label); in onCreateView()
115 mServerView = (EditText) UiUtilities.getView(view, R.id.account_server); in onCreateView()
116 mPortView = (EditText) UiUtilities.getView(view, R.id.account_port); in onCreateView()
117 mSecurityTypeView = (Spinner) UiUtilities.getView(view, R.id.account_security_type); in onCreateView()
118 mDeletePolicyLabelView = (TextView) UiUtilities.getView(view, in onCreateView()
120 mDeletePolicyView = (Spinner) UiUtilities.getView(view, R.id.account_delete_policy); in onCreateView()
121 mImapPathPrefixSectionView = UiUtilities.getView(view, R.id.imap_path_prefix_section); in onCreateView()
[all …]
DAccountSetupOutgoing.java21 import com.android.email.activity.UiUtilities;
63 mNextButton = (Button) UiUtilities.getView(this, R.id.next); in onCreate()
65 UiUtilities.getView(this, R.id.previous).setOnClickListener(this); in onCreate()
DAccountSetupIncoming.java21 import com.android.email.activity.UiUtilities;
63 mNextButton = (Button) UiUtilities.getView(this, R.id.next); in onCreate()
65 UiUtilities.getView(this, R.id.previous).setOnClickListener(this); in onCreate()
DAccountSetupAccountType.java29 import com.android.email.activity.UiUtilities;
59 UiUtilities.getView(this, R.id.pop).setOnClickListener(this); in onCreate()
60 UiUtilities.getView(this, R.id.imap).setOnClickListener(this); in onCreate()
61 final Button exchangeButton = (Button) UiUtilities.getView(this, R.id.exchange); in onCreate()
DAccountSetupNames.java39 import com.android.email.activity.UiUtilities;
70 mDescription = (EditText) UiUtilities.getView(this, R.id.account_description); in onCreate()
71 mName = (EditText) UiUtilities.getView(this, R.id.account_name); in onCreate()
72 View accountNameLabel = UiUtilities.getView(this, R.id.account_name_label); in onCreate()
73 mNextButton = (Button) UiUtilities.getView(this, R.id.next); in onCreate()
DAccountSetupBasics.java48 import com.android.email.activity.UiUtilities;
219 mWelcomeView = (TextView) UiUtilities.getView(this, R.id.instructions); in onCreate()
220 mEmailView = (EditText) UiUtilities.getView(this, R.id.account_email); in onCreate()
221 mPasswordView = (EditText) UiUtilities.getView(this, R.id.account_password); in onCreate()
222 mDefaultView = (CheckBox) UiUtilities.getView(this, R.id.account_default); in onCreate()
247 mManualButton = (Button) UiUtilities.getView(this, R.id.manual_setup); in onCreate()
248 mNextButton = (Button) UiUtilities.getView(this, R.id.next); in onCreate()
688 UiUtilities.setVisibilitySafe(mDefaultView, View.VISIBLE); in onPostExecute()
689 UiUtilities.setVisibilitySafe(a, R.id.account_default_divider_1, View.VISIBLE); in onPostExecute()
690 UiUtilities.setVisibilitySafe(a, R.id.account_default_divider_2, View.VISIBLE); in onPostExecute()
DAccountSetupExchange.java21 import com.android.email.activity.UiUtilities;
95 mNextButton = (Button) UiUtilities.getView(this, R.id.next); in onCreate()
97 UiUtilities.getView(this, R.id.previous).setOnClickListener(this); in onCreate()
DAccountSettingsEditQuickResponsesFragment.java21 import com.android.email.activity.UiUtilities;
248 mQuickResponsesView = UiUtilities.getView(view, in onCreateView()
251 UiUtilities.getView(((ViewGroup) mQuickResponsesView.getParent()), R.id.empty_view); in onCreateView()
268 UiUtilities.getView(view, R.id.create_new).setOnClickListener(this); in onCreateView()
DGeneralPreferences.java30 import com.android.email.activity.UiUtilities;
56 if (UiUtilities.useTwoPane(getActivity())) { in onCreate()
DAccountServerBaseFragment.java35 import com.android.email.activity.UiUtilities;
152 UiUtilities.getView(view, R.id.cancel).setOnClickListener(this); in onCreateViewSettingsMode()
153 mProceedButton = (Button) UiUtilities.getView(view, R.id.done); in onCreateViewSettingsMode()
/packages/apps/Email/src/com/android/email/activity/
DMessageFileViewFragment.java60 UiUtilities.setVisibilitySafe(result, R.id.favorite, View.GONE); in onCreateView()
61 UiUtilities.setVisibilitySafe(result, R.id.reply, View.GONE); in onCreateView()
62 UiUtilities.setVisibilitySafe(result, R.id.reply_all, View.GONE); in onCreateView()
63 UiUtilities.setVisibilitySafe(result, R.id.forward, View.GONE); in onCreateView()
64 UiUtilities.setVisibilitySafe(result, R.id.more, View.GONE); in onCreateView()
DMessageViewFragment.java213 mFavoriteIcon = (ImageView) UiUtilities.getView(view, R.id.favorite); in onCreateView()
214 mReplyButton = UiUtilities.getView(view, R.id.reply); in onCreateView()
215 mReplyAllButton = UiUtilities.getView(view, R.id.reply_all); in onCreateView()
216 mForwardButton = UiUtilities.getViewOrNull(view, R.id.forward); in onCreateView()
217 mMeetingYes = UiUtilities.getView(view, R.id.accept); in onCreateView()
218 mMeetingMaybe = UiUtilities.getView(view, R.id.maybe); in onCreateView()
219 mMeetingNo = UiUtilities.getView(view, R.id.decline); in onCreateView()
220 mMoreButton = UiUtilities.getViewOrNull(view, R.id.more); in onCreateView()
234 UiUtilities.getView(view, R.id.invite_link).setOnClickListener(this); in onCreateView()
257 UiUtilities.setVisibilitySafe(mReplyAllButton, visibility); in enableReplyForwardButtons()
[all …]
DMessageViewFragmentBase.java287 mSubjectView = (TextView) UiUtilities.getView(view, R.id.subject); in onCreateView()
288 mFromNameView = (TextView) UiUtilities.getView(view, R.id.from_name); in onCreateView()
289 mFromAddressView = (TextView) UiUtilities.getView(view, R.id.from_address); in onCreateView()
290 mAddressesView = (TextView) UiUtilities.getView(view, R.id.addresses); in onCreateView()
291 mDateTimeView = (TextView) UiUtilities.getView(view, R.id.datetime); in onCreateView()
292 mMessageContentView = (WebView) UiUtilities.getView(view, R.id.message_content); in onCreateView()
293 mAttachments = (LinearLayout) UiUtilities.getView(view, R.id.attachments); in onCreateView()
294 mTabSection = UiUtilities.getView(view, R.id.message_tabs_section); in onCreateView()
295 mFromBadge = (ImageView) UiUtilities.getView(view, R.id.badge); in onCreateView()
296 mSenderPresenceView = (ImageView) UiUtilities.getView(view, R.id.presence); in onCreateView()
[all …]
DActionBarController.java219 UiUtilities.getView(mActionBarCustomView, R.id.account_spinner_container); in ActionBarController()
220 mAccountSpinner = UiUtilities.getView(mActionBarCustomView, R.id.account_spinner); in ActionBarController()
223 mAccountSpinnerLine1View = UiUtilities.getView(mActionBarCustomView, R.id.spinner_line_1); in ActionBarController()
224 mAccountSpinnerLine2View = UiUtilities.getView(mActionBarCustomView, R.id.spinner_line_2); in ActionBarController()
225 mAccountSpinnerCountView = UiUtilities.getView(mActionBarCustomView, R.id.spinner_count); in ActionBarController()
244 mSearchView = UiUtilities.getView(mSearchContainer, R.id.search_view); in initSearchViews()
449 UiUtilities.setVisibilitySafe(mSearchContainer, View.GONE); in updateTitle()
486 mAccountSpinnerCountView.setText(UiUtilities.getMessageCountForUi( in updateTitle()
DMessageListFragment.java370 mListPanel = UiUtilities.getView(root, R.id.list_panel); in onCreateView()
375 if (UiUtilities.useTwoPane(mActivity)) { in setLayout()
385 mSearchHeaderText = UiUtilities.getView(mSearchHeader, R.id.search_header_text); in initSearchHeader()
386 mSearchHeaderCount = UiUtilities.getView(mSearchHeader, R.id.search_count); in initSearchHeader()
429 UiUtilities.installFragment(this); in onActivityCreated()
479 UiUtilities.uninstallFragment(this); in onDestroyView()
1082 UiUtilities.setVisibilitySafe(mSearchHeader, View.GONE); in updateSearchHeader()
1097 mSearchHeaderCount.setText(UiUtilities.getMessageCountForUi( in updateSearchHeader()
1254 TextView title = UiUtilities.getView(mWarningContainer, R.id.message_title); in onSearchLoadTimeout()
1255 TextView message = UiUtilities.getView(mWarningContainer, R.id.message_warning); in onSearchLoadTimeout()
[all …]
DMessageCompose.java640 final View target = UiUtilities.getView(this, targetViewId); in setFocusShifter()
704 ViewGroup toParent = UiUtilities.getViewOrNull(this, R.id.to_content); in initViews()
713 mToView = UiUtilities.getView(this, R.id.to); in initViews()
714 mCcView = UiUtilities.getView(this, R.id.cc); in initViews()
715 mBccView = UiUtilities.getView(this, R.id.bcc); in initViews()
718 mFromView = UiUtilities.getView(this, R.id.from); in initViews()
719 mCcBccContainer = UiUtilities.getView(this, R.id.cc_bcc_wrapper); in initViews()
720 mSubjectView = UiUtilities.getView(this, R.id.subject); in initViews()
721 mMessageContentView = UiUtilities.getView(this, R.id.body_text); in initViews()
722 mAttachmentContentView = UiUtilities.getView(this, R.id.attachments); in initViews()
[all …]
DUiUtilities.java27 public class UiUtilities { class
28 private UiUtilities() { in UiUtilities() method in UiUtilities
DThreePaneLayout.java168 if (mIsSearchResult && UiUtilities.showTwoPaneSearchResults(getContext())) { in onRestoreInstanceState()
241 if (mIsSearchResult && UiUtilities.showTwoPaneSearchResults(getContext())) { in setIsSearch()
250 return !mIsSearchResult || UiUtilities.showTwoPaneSearchResults(getContext()); in shouldShowMailboxList()
DEmailActivity.java159 if (UiUtilities.useTwoPane(this)) { in initUIController()
162 && !UiUtilities.showTwoPaneSearchResults(this)) { in initUIController()
/packages/apps/Email/src/com/android/email/view/
DCertificateSelector.java33 import com.android.email.activity.UiUtilities;
77 mAliasText = UiUtilities.getView(this, R.id.certificate_alias); in onFinishInflate()
78 mSelectButton = UiUtilities.getView(this, R.id.select_button); in onFinishInflate()

12