OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mimeTypes
(Results
1 - 25
of
88
) sorted by null
1
2
3
4
/frameworks/support/core-utils/java/android/support/v4/content/
MimeTypeFilter.java
112
@Nullable String[]
mimeTypes
, @NonNull String filter) {
113
if (
mimeTypes
== null) {
118
for (String mimeType :
mimeTypes
) {
133
@Nullable String[]
mimeTypes
, @NonNull String filter) {
134
if (
mimeTypes
== null) {
140
for (String mimeType :
mimeTypes
) {
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
MimeTest.java
48
Assert.assertNull(NanoHTTPD.
mimeTypes
().get("notExistent"));
59
NanoHTTPD.
mimeTypes
().put("flv", "video/manualOverwrite");
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
MimeTypes.java
23
public final class
MimeTypes
{
25
private
MimeTypes
() {}
49
public static String findCommonMimeType(List<String>
mimeTypes
) {
50
String[] commonType = splitMimeType(
mimeTypes
.get(0));
55
for (int i = 1; i <
mimeTypes
.size(); i++) {
56
String[] type =
mimeTypes
.get(i).split("/");
RootInfo.java
94
public String
mimeTypes
;
118
mimeTypes
= null;
139
mimeTypes
= DurableUtils.readNullableString(in);
158
DurableUtils.writeNullableString(out,
mimeTypes
);
195
root.
mimeTypes
= getCursorString(cursor, Root.COLUMN_MIME_TYPES);
201
derivedMimeTypes = (
mimeTypes
!= null) ?
mimeTypes
.split("\n") : null;
DocumentInfo.java
364
public static void addMimeTypes(ContentResolver resolver, Uri uri, Set<String>
mimeTypes
) {
367
mimeTypes
.add(resolver.getType(uri));
370
mimeTypes
.addAll(Arrays.asList(streamTypes));
/packages/apps/Messaging/src/com/android/messaging/datamodel/
GalleryBoundCursorLoader.java
45
private static String createSelection(final String[]
mimeTypes
, Integer[] mediaTypes) {
46
return Media.MIME_TYPE + " IN ('" + Joiner.on("','").join(
mimeTypes
) + "') AND "
/frameworks/base/media/java/android/media/
MediaScannerConnection.java
192
ClientProxy(String[] paths, String[]
mimeTypes
, OnScanCompletedListener client) {
194
mMimeTypes =
mimeTypes
;
231
* @param
mimeTypes
Optional array of MIME types for each path.
238
public static void scanFile(Context context, String[] paths, String[]
mimeTypes
,
240
ClientProxy client = new ClientProxy(paths,
mimeTypes
, callback);
/frameworks/base/core/java/android/content/
ClipDescription.java
102
* @param
mimeTypes
An array of MIME types this data is available as.
104
public ClipDescription(CharSequence label, String[]
mimeTypes
) {
105
if (
mimeTypes
== null) {
106
throw new NullPointerException("
mimeTypes
is null");
109
mMimeTypes = new ArrayList<String>(Arrays.asList(
mimeTypes
));
238
void addMimeTypes(String[]
mimeTypes
) {
239
for (int i=0; i!=
mimeTypes
.length; i++) {
240
final String mimeType =
mimeTypes
[i];
ClipData.java
674
* @param
mimeTypes
An array of MIME types this data is available as.
677
public ClipData(CharSequence label, String[]
mimeTypes
, Item item) {
678
mClipDescription = new ClipDescription(label,
mimeTypes
);
789
String[]
mimeTypes
= getMimeTypes(resolver, uri);
790
return new ClipData(label,
mimeTypes
, item);
801
String[]
mimeTypes
= null;
[
all
...]
/developers/build/prebuilts/gradle/CommitContentSampleApp/app/src/main/java/com/example/android/commitcontent/app/
MainActivity.java
197
final String[]
mimeTypes
; // our own copy of contentMimeTypes.
200
mimeTypes
= new String[0];
203
mimeTypes
= Arrays.copyOf(contentMimeTypes, contentMimeTypes.length);
209
EditorInfoCompat.setContentMimeTypes(editorInfo,
mimeTypes
);
216
inputContentInfo, flags, opts,
mimeTypes
);
/developers/samples/android/input/keyboard/CommitContentSampleApp/app/src/main/java/com/example/android/commitcontent/app/
MainActivity.java
197
final String[]
mimeTypes
; // our own copy of contentMimeTypes.
200
mimeTypes
= new String[0];
203
mimeTypes
= Arrays.copyOf(contentMimeTypes, contentMimeTypes.length);
209
EditorInfoCompat.setContentMimeTypes(editorInfo,
mimeTypes
);
216
inputContentInfo, flags, opts,
mimeTypes
);
/development/samples/browseable/CommitContentSampleApp/src/com.example.android.commitcontent.app/
MainActivity.java
197
final String[]
mimeTypes
; // our own copy of contentMimeTypes.
200
mimeTypes
= new String[0];
203
mimeTypes
= Arrays.copyOf(contentMimeTypes, contentMimeTypes.length);
209
EditorInfoCompat.setContentMimeTypes(editorInfo,
mimeTypes
);
216
inputContentInfo, flags, opts,
mimeTypes
);
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/view/inputmethod/
CommitContentSupport.java
200
final String[]
mimeTypes
; // our own copy of contentMimeTypes.
203
mimeTypes
= new String[0];
206
mimeTypes
= Arrays.copyOf(contentMimeTypes, contentMimeTypes.length);
212
EditorInfoCompat.setContentMimeTypes(editorInfo,
mimeTypes
);
219
inputContentInfo, flags, opts,
mimeTypes
);
/development/samples/ApiDemos/src/com/example/android/apis/content/
ClipboardSample.java
131
String[]
mimeTypes
= clip != null ? clip.getDescription().filterMimeTypes("*/*") : null;
132
if (
mimeTypes
!= null) {
134
for (int i=0; i<
mimeTypes
.length; i++) {
138
mMimeTypes.append(
mimeTypes
[i]);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
ProvidersCacheTest.java
165
private static RootInfo buildForMimeTypes(String...
mimeTypes
) {
167
root.derivedMimeTypes =
mimeTypes
;
/prebuilts/go/darwin-x86/src/mime/
type.go
16
mimeTypes
map[string]string // ".Z" => "application/x-compress"
31
mimeTypes
= mixExt
107
if v :=
mimeTypes
[ext]; v != "" {
178
mimeTypes
[extension] = mimeType
/prebuilts/go/linux-x86/src/mime/
type.go
16
mimeTypes
map[string]string // ".Z" => "application/x-compress"
31
mimeTypes
= mixExt
107
if v :=
mimeTypes
[ext]; v != "" {
178
mimeTypes
[extension] = mimeType
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
AttachmentsView.java
277
final String[]
mimeTypes
= contentResolver.getStreamTypes(contentUri, "*/*");
278
if (
mimeTypes
!= null &&
mimeTypes
.length > 0) {
279
attachment.virtualMimeType =
mimeTypes
[0];
/cts/tests/tests/content/src/android/content/cts/
ClipboardManagerTest.java
241
String...
mimeTypes
) {
243
assertEquals(
mimeTypes
.length, description.getMimeTypeCount());
246
assertEquals(
mimeTypes
[i], description.getMimeType(i));
/packages/apps/CertInstaller/src/com/android/certinstaller/
CertInstallerMain.java
107
final String[]
mimeTypes
= MIME_MAPPINGS.keySet().toArray(new String[0]);
110
openIntent.putExtra(Intent.EXTRA_MIME_TYPES,
mimeTypes
);
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java
424
Set<String>
mimeTypes
= new HashSet<String>();
425
mimeTypes
.add("image/*");
426
mimeTypes
.add("text/*");
427
mimeTypes
.add("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
431
for (String mimeType :
mimeTypes
) {
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java
424
Set<String>
mimeTypes
= new HashSet<String>();
425
mimeTypes
.add("image/*");
426
mimeTypes
.add("text/*");
427
mimeTypes
.add("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
431
for (String mimeType :
mimeTypes
) {
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
MyCloudProvider.java
424
Set<String>
mimeTypes
= new HashSet<String>();
425
mimeTypes
.add("image/*");
426
mimeTypes
.add("text/*");
427
mimeTypes
.add("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
431
for (String mimeType :
mimeTypes
) {
/development/samples/NotePad/src/com/example/android/notepad/
NotePadProvider.java
384
String[]
mimeTypes
= getStreamTypes(uri, mimeTypeFilter);
387
if (
mimeTypes
!= null) {
416
openPipeHelper(uri,
mimeTypes
[0], opts, c, this), 0,
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
SimpleWebServer.java
76
mimeTypes
();
155
String[]
mimeTypes
= info.getMimeTypes();
156
for (String mime :
mimeTypes
) {
184
mimeTypes
().put(extension, mimeType);
Completed in 1152 milliseconds
1
2
3
4