Home
last modified time | relevance | path

Searched refs:ContentType (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizeTabHost.java76 void setContentTypeImmediate(AppsCustomizePagedView.ContentType type) { in setContentTypeImmediate()
84 setContentTypeImmediate(AppsCustomizePagedView.ContentType.Applications); in selectAppsTab()
87 setContentTypeImmediate(AppsCustomizePagedView.ContentType.Widgets); in selectWidgetsTab()
197 private void onTabChangedEnd(AppsCustomizePagedView.ContentType type) { in onTabChangedEnd()
203 final AppsCustomizePagedView.ContentType type = getContentTypeForTabTag(tabId); in onTabChanged()
298 public void setCurrentTabFromContent(AppsCustomizePagedView.ContentType type) { in setCurrentTabFromContent()
307 public AppsCustomizePagedView.ContentType getContentTypeForTabTag(String tag) { in getContentTypeForTabTag()
309 return AppsCustomizePagedView.ContentType.Applications; in getContentTypeForTabTag()
311 return AppsCustomizePagedView.ContentType.Widgets; in getContentTypeForTabTag()
313 return AppsCustomizePagedView.ContentType.Applications; in getContentTypeForTabTag()
[all …]
DAppsCustomizePagedView.java160 public enum ContentType { enum in AppsCustomizePagedView
948 public void setContentType(ContentType type) { in setContentType()
949 if (type == ContentType.Widgets) { in setContentType()
951 } else if (type == ContentType.Applications) { in setContentType()
980 !tag.equals(tabHost.getTabTagForContentType(ContentType.Widgets))) { in updateCurrentTab()
981 tabHost.setCurrentTabFromContent(ContentType.Widgets); in updateCurrentTab()
983 !tag.equals(tabHost.getTabTagForContentType(ContentType.Applications))) { in updateCurrentTab()
984 tabHost.setCurrentTabFromContent(ContentType.Applications); in updateCurrentTab()
1607 if (!tag.equals(tabHost.getTabTagForContentType(ContentType.Applications))) {
1608 tabHost.setCurrentTabFromContent(ContentType.Applications);
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java158 public static class ContentType { class in BluetoothPbapObexServer
359 appParamValue.needTag = ContentType.PHONEBOOK; in onGet()
361 appParamValue.needTag = ContentType.INCOMING_CALL_HISTORY; in onGet()
363 appParamValue.needTag = ContentType.OUTGOING_CALL_HISTORY; in onGet()
365 appParamValue.needTag = ContentType.MISSED_CALL_HISTORY; in onGet()
368 appParamValue.needTag = ContentType.COMBINED_CALL_HISTORY; in onGet()
385 appParamValue.needTag = ContentType.PHONEBOOK; in onGet()
388 appParamValue.needTag = ContentType.INCOMING_CALL_HISTORY; in onGet()
391 appParamValue.needTag = ContentType.OUTGOING_CALL_HISTORY; in onGet()
394 appParamValue.needTag = ContentType.MISSED_CALL_HISTORY; in onGet()
[all …]
DBluetoothPbapVcardManager.java152 case BluetoothPbapObexServer.ContentType.PHONEBOOK: in getPhonebookSize()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppsCustomizeTabHost.java49 void setContentTypeImmediate(AppsCustomizePagedView.ContentType type) { in setContentTypeImmediate()
53 public void setCurrentTabFromContent(AppsCustomizePagedView.ContentType type) { in setCurrentTabFromContent()
84 public AppsCustomizePagedView.ContentType getContentTypeForTabTag(String tag) { in getContentTypeForTabTag()
86 return AppsCustomizePagedView.ContentType.Applications; in getContentTypeForTabTag()
88 return AppsCustomizePagedView.ContentType.Widgets; in getContentTypeForTabTag()
90 return AppsCustomizePagedView.ContentType.Applications; in getContentTypeForTabTag()
96 public String getTabTagForContentType(AppsCustomizePagedView.ContentType type) { in getTabTagForContentType()
97 if (type == AppsCustomizePagedView.ContentType.Applications) { in getTabTagForContentType()
99 } else if (type == AppsCustomizePagedView.ContentType.Widgets) { in getTabTagForContentType()
DAppsCustomizePagedView.java154 public enum ContentType { enum in AppsCustomizePagedView
158 private ContentType mContentType = ContentType.Applications;
281 if (mContentType == ContentType.Applications) { in getMiddleComponentIndexOnCurrentPage()
289 } else if (mContentType == ContentType.Widgets) { in getMiddleComponentIndexOnCurrentPage()
879 public void setContentType(ContentType type) { in setContentType()
881 if (mContentType != type || type == ContentType.Widgets) { in setContentType()
888 public ContentType getContentType() { in getContentType()
1282 if (mContentType == ContentType.Applications) { in syncPages()
1289 } else if (mContentType == ContentType.Widgets) { in syncPages()
1306 if (mContentType == ContentType.Widgets) { in syncPageItems()
[all …]
DLauncher.java2047 AppsCustomizePagedView.ContentType type = mAppsCustomizeContent.getContentType(); in onSaveInstanceState()
2485 AppsCustomizePagedView.ContentType.Applications) { in onBackPressed()
2622 showAllApps(true, AppsCustomizePagedView.ContentType.Applications, false); in onClickAllAppsButton()
2793 showAllApps(true, AppsCustomizePagedView.ContentType.Widgets, true); in onClickAddWidgetButton()
3316 AppsCustomizePagedView.ContentType contentType = mAppsCustomizeContent.getContentType(); in showAppsCustomizeHelper()
3321 final AppsCustomizePagedView.ContentType contentType) { in showAppsCustomizeHelper()
3344 Workspace.State workspaceState = contentType == AppsCustomizePagedView.ContentType.Widgets ? in showAppsCustomizeHelper()
3349 || contentType == AppsCustomizePagedView.ContentType.Widgets) { in showAppsCustomizeHelper()
3365 final boolean isWidgetTray = contentType == AppsCustomizePagedView.ContentType.Widgets; in showAppsCustomizeHelper()
3615 AppsCustomizePagedView.ContentType contentType = content.getContentType(); in hideAppsCustomizeHelper()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DSmilHelper.java54 import com.google.android.mms.ContentType;
106 ContentType.APP_SMIL.getBytes())) { in findSmilPart()
217 if (ContentType.isDrmType(contentType)) { in createSmilDocument()
221 if (contentType.equals(ContentType.TEXT_PLAIN) in createSmilDocument()
222 || contentType.equalsIgnoreCase(ContentType.APP_WAP_XHTML) in createSmilDocument()
223 || contentType.equals(ContentType.TEXT_HTML)) { in createSmilDocument()
228 } else if (ContentType.isImageType(contentType)) { in createSmilDocument()
233 } else if (ContentType.isVideoType(contentType)) { in createSmilDocument()
238 } else if (ContentType.isAudioType(contentType)) { in createSmilDocument()
DMediaModelFactory.java33 import com.google.android.mms.ContentType;
121 return new TextModel(context, ContentType.TEXT_PLAIN, null, regionModel); in createEmptyTextModel()
148 if (ContentType.isTextType(contentType)) { in getGenericMediaModel()
151 } else if (ContentType.isImageType(contentType)) { in getGenericMediaModel()
154 } else if (ContentType.isVideoType(contentType)) { in getGenericMediaModel()
157 } else if (ContentType.isAudioType(contentType)) { in getGenericMediaModel()
DCarrierContentRestriction.java30 import com.google.android.mms.ContentType;
39 sSupportedImageTypes = ContentType.getImageTypes();
40 sSupportedAudioTypes = ContentType.getAudioTypes();
41 sSupportedVideoTypes = ContentType.getVideoTypes();
DVideoModel.java42 import com.google.android.mms.ContentType;
125 if (mContentType.equals(ContentType.VIDEO_MP4) && !(TextUtils.isEmpty(mSrc))) { in initFromContentUri()
134 mContentType = ContentType.VIDEO_3GPP; in initFromContentUri()
DSlideshowModel.java55 import com.google.android.mms.ContentType;
181 if (ContentType.isVideoType(media.mContentType) in createFromPduBody()
183 || ContentType.isAudioType(media.mContentType) in createFromPduBody()
306 smilPart.setContentType(ContentType.APP_SMIL.getBytes()); in makePduBody()
DSlideModel.java37 import com.google.android.mms.ContentType;
105 if (TextUtils.isEmpty(contentType) || ContentType.TEXT_PLAIN.equals(contentType) in internalAdd()
106 || ContentType.TEXT_HTML.equals(contentType)) { in internalAdd()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditor.java32 import com.google.android.mms.ContentType;
78 mContext, ContentType.TEXT_PLAIN, generateTextSrc(mModel, size), in addNewSlide()
186 ContentType.TEXT_PLAIN, generateTextSrc(mModel, position), in changeText()
DSlideEditorActivity.java61 import com.google.android.mms.ContentType;
292 intent.setType(ContentType.IMAGE_UNSPECIFIED);
439 intent.setType(ContentType.IMAGE_UNSPECIFIED); in onOptionsItemSelected()
470 intent.setType(ContentType.VIDEO_UNSPECIFIED); in onOptionsItemSelected()
DComposeMessageActivity.java145 import com.google.android.mms.ContentType;
1416 if (ContentType.isImageType(type) || ContentType.isVideoType(type) || in haveSomethingToCopyToSDCard()
1417 ContentType.isAudioType(type) || DrmUtils.isDrmType(type)) { in haveSomethingToCopyToSDCard()
1481 … if (ContentType.isAudioType(mimeType) && DrmUtils.haveRightsForAction(part.getDataUri(), in isDrmRingtoneWithRights()
1570 if (!ContentType.isImageType(type) && !ContentType.isVideoType(type) && in copyPart()
1571 !ContentType.isAudioType(type)) { in copyPart()
1609 + (ContentType.isAudioType(type) ? Environment.DIRECTORY_RINGTONES : in copyPart()
DMessageUtils.java65 import com.google.android.mms.ContentType;
494 intent.setType(ContentType.AUDIO_AMR); in recordSound()
546 selectMediaByType(context, requestCode, ContentType.VIDEO_UNSPECIFIED, true); in selectVideo()
550 selectMediaByType(context, requestCode, ContentType.IMAGE_UNSPECIFIED, false); in selectImage()
DUriImage.java41 import com.google.android.mms.ContentType;
257 part.setContentType(ContentType.IMAGE_JPEG.getBytes()); in getResizedImageAsPart()
DMessageListItem.java73 import com.google.android.mms.ContentType;
543 if (contentType != null && ContentType.TEXT_HTML.equals(contentType)) { in formatMessage()
/packages/apps/Mms/src/com/android/mms/transaction/
DPushReceiver.java42 import com.google.android.mms.ContentType;
164 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
/packages/apps/Mms/src/com/android/mms/data/
DWorkingMessage.java71 import com.google.android.mms.ContentType;
724 text = new TextModel(mActivity, ContentType.TEXT_PLAIN, "text_0.txt", in syncTextToSlideshow()