HomeSort by relevance Sort by last modified time
    Searched defs:uri (Results 451 - 475 of 2326) sorted by null

<<11121314151617181920>>

  /packages/apps/Music/src/com/android/music/
MediaPickerActivity.java 26 import android.net.Uri;
94 Uri uri; local
98 uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
102 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
107 setResult(RESULT_OK, new Intent().setData(ContentUris.withAppendedId(uri, mediaId)));
  /packages/apps/Nfc/src/com/android/nfc/
BeamShareActivity.java 32 import android.net.Uri;
50 * in ACTION_SHARE intents in either a content/file Uri,
53 * Text or Uri NdefRecord. The data is then passed on into
61 ArrayList<Uri> mUris;
69 mUris = new ArrayList<Uri>();
130 void tryUri(Uri uri) {
131 if (uri.getScheme().equalsIgnoreCase("content") ||
132 uri.getScheme().equalsIgnoreCase("file")) {
134 mUris.add(uri);
161 Uri uri = item.getUri(); local
181 final Uri uri = intent.getParcelableExtra(Intent.EXTRA_STREAM); local
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/beam/
BeamStatusReceiver.java 7 import android.net.Uri;
137 Uri uri = Uri.parse(uriString); local
138 if (uri != null && uri.getScheme() == null) {
139 uri = Uri.fromFile(new File(uri.getPath()));
141 mTransferManager.finishTransfer(true, uri, mimeType)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
PackageIconLoader.java 32 import android.net.Uri;
108 // It's not an integer, use it as a URI
109 Uri uri = Uri.parse(drawableId); local
110 if (ContentResolver.SCHEME_ANDROID_RESOURCE.equals(uri.getScheme())) {
112 drawable = new Now<Drawable>(getDrawable(uri));
114 drawable = new IconLaterTask(uri);
124 public Uri getIconUri(String drawableId) {
133 return Uri.parse(drawableId)
    [all...]
  /packages/apps/Settings/src/com/android/settings/
RingtonePreference.java 24 import android.net.Uri;
34 * The chosen ringtone's URI will be persisted as a string.
177 * By default, this saves the ringtone URI to the persistent storage as a
180 * @param ringtoneUri The chosen ringtone's {@link Uri}. Can be null.
182 protected void onSaveRingtone(Uri ringtoneUri) {
190 * By default, this restores the previous ringtone URI from the persistent
195 protected Uri onRestoreRingtone() {
197 return !TextUtils.isEmpty(uriString) ? Uri.parse(uriString) : null;
222 onSaveRingtone(Uri.parse(defaultValue));
231 Uri uri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI) local
    [all...]
  /packages/apps/Settings/src/com/android/settings/network/
TetherPreferenceController.java 27 import android.net.Uri;
144 .registerContentObserver(mAirplaneModeObserver.uri, false, mAirplaneModeObserver);
231 public final Uri uri; field in class:TetherPreferenceController.SettingObserver
235 uri = Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON);
239 public void onChange(boolean selfChange, Uri uri) {
240 super.onChange(selfChange, uri);
241 if (this.uri.equals(uri)) {
    [all...]
  /packages/apps/TV/src/com/android/tv/parental/
ContentRatingsParser.java 25 import android.net.Uri;
72 Uri uri = info.getXmlUri(); local
73 if (DEBUG) Log.d(TAG, "Parsing rating system for " + uri);
75 String packageName = uri.getAuthority();
76 int resId = (int) ContentUris.parseId(uri);
80 throw new IllegalArgumentException("Cannot get XML with URI " + uri);
85 // Catching all exceptions and print which URI is malformed XML with description
88 Log.w(TAG, "Error parsing XML " + uri, e)
    [all...]
  /packages/apps/TV/src/com/android/tv/tuner/
TunerPreferenceProvider.java 27 import android.net.Uri;
56 * Builds a Uri that points to a specific preference.
60 public static Uri buildPreferenceUri(String key) {
72 Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_PREFERENCES);
136 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
138 int match = sUriMatcher.match(uri);
145 cursor.setNotificationUri(getContext().getContentResolver(), uri); local
150 public String getType(Uri uri)
    [all...]
  /packages/apps/TV/src/com/android/tv/util/
BitmapUtils.java 27 import android.net.Uri;
88 Uri uri = Uri.parse(uriString).normalizeScheme(); local
89 boolean isResourceUri = isContentResolverUri(uri);
94 inputStream = context.getContentResolver().openInputStream(uri);
118 inputStream = context.getContentResolver().openInputStream(uri);
167 private static boolean isContentResolverUri(Uri uri) {
168 String scheme = uri.getScheme()
    [all...]
  /packages/apps/TV/tests/common/src/com/android/tv/testing/
ChannelUtils.java 24 import android.net.Uri;
52 Uri uri = TvContract.buildChannelsUriForInput(inputId); local
59 .query(uri, projections, null, null, null)) {
73 Uri channelsUri = TvContract.buildChannelsUriForInput(inputId);
84 Map<Uri, String> logos = new HashMap<>();
114 Uri uri; local
117 uri = resolver.insert(TvContract.Channels.CONTENT_URI, values);
120 uri = TvContract.buildChannelUri(rowId)
    [all...]
  /packages/apps/Tag/src/com/android/apps/tag/record/
SmartPoster.java 61 * "The URI record. This is the core of the Smart Poster, and all other
62 * records are just metadata about this record. There MUST be one URI
83 * save the URI as a bookmark or open a browser. The Action record is
94 * "The Type record. If the URI references an external entity (e.g., via
103 private SmartPoster(UriRecord uri, @Nullable TextRecord title,
106 mUriRecord = Preconditions.checkNotNull(uri);
138 UriRecord uri = Iterables.getOnlyElement(Iterables.filter(records, UriRecord.class)); local
144 return new SmartPoster(uri, title, image, action, type);
162 // Build a container to hold the title and the URI
173 // Just a URI, return a view for it directl
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/
NotificationActionIntentService.java 23 import android.net.Uri;
146 final Uri uri = message.uri; local
151 contentResolver.update(uri, values, null, null);
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
FolderPreferences.java 22 import android.net.Uri;
47 /** String value of the notification ringtone URI */
149 final Uri uri = Uri.parse(ringtoneUriString); local
150 if (RingtoneManager.isDefault(uri)) {
158 final Uri cursorUri = ContentUris.withAppendedId(
159 Uri.parse(cursor.getString(RingtoneManager.URI_COLUMN_INDEX)),
175 if (name.length() == 0 || RingtoneManager.isDefault(Uri.parse(name))) {
186 Uri uri = ContentUris.withAppendedId local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
FolderWatcher.java 22 import android.net.Uri;
44 public static final String FOLDER_URI = "FOLDER-URI";
46 private final List<Uri> mUris = new ArrayList<Uri>();
47 /** Map returning the default inbox folder for each URI */
48 private final Map<Uri, Folder> mInboxMap = new HashMap<Uri, Folder>();
86 final List<Uri> newAccounts = new ArrayList<Uri>(allAccounts.length);
91 final List<Uri> uriCopy = Collections.unmodifiableList(Lists.newArrayList(mUris))
127 Uri uri; local
196 final Uri uri = account.settings.defaultInbox; local
217 final Uri uri = Uri.parse(args.getString(FOLDER_URI)); local
228 final Uri uri = f.folderUri.getComparisonUri(); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ConversationCheckedSet.java 69 /** Map of Conversation URI to Conversation ID. */
186 mConversationUriToIdMap.put(info.uri.toString(), id);
ConversationViewState.java 20 import android.net.Uri;
41 private final Map<Uri, MessageViewState> mMessageViewStates = Maps.newHashMap();
71 final MessageViewState mvs = mMessageViewStates.get(m.uri);
76 MessageViewState mvs = mMessageViewStates.get(m.uri);
81 mMessageViewStates.put(m.uri, mvs);
85 final MessageViewState mvs = mMessageViewStates.get(m.uri);
90 MessageViewState mvs = mMessageViewStates.get(m.uri);
95 mMessageViewStates.put(m.uri, mvs);
106 final MessageViewState mvs = mMessageViewStates.get(m.uri);
111 MessageViewState mvs = mMessageViewStates.get(m.uri);
    [all...]
HelpFragment.java 26 import android.net.Uri;
62 final Uri helpUri = getActivity().getIntent()
87 // if we have no play store URI, hide that menu item
145 final Uri uri = Uri.parse(getString(R.string.app_url)); local
146 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
161 final Uri uri = Uri.parse(getString(R.string.privacy_policy_uri)) local
    [all...]
RecentFolderList.java 21 import android.net.Uri;
113 final Uri uri = mAccount.recentFolderListUri; local
114 if (!Utils.isEmpty(uri)) {
120 mContext.getContentResolver().update(uri, values, null, null);
219 * @param excludedFolderUri the uri of folder to be excluded (typically the current folder)
ThumbnailLoadTask.java 25 import android.net.Uri;
44 public class ThumbnailLoadTask extends AsyncTask<Uri, Void, Bitmap> {
70 final Uri thumbnailUri = attachment.thumbnailUri;
71 final Uri contentUri = attachment.contentUri;
72 final Uri uri = attachment.getIdentifierUri(); local
73 final Uri prevUri = (prevAttachment == null) ? null : prevAttachment.getIdentifierUri();
78 prevUri == null || !uri.equals(prevUri))) {
96 protected Bitmap doInBackground(Uri... params) {
105 private Bitmap loadBitmap(final Uri thumbnailUri)
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
TestProviderTests.java 27 import android.net.Uri;
80 Uri uri = new Uri.Builder().scheme("content").authority(TestProvider.AUTHORITY) local
87 ops.add(ContentProviderOperation.newInsert(uri).withValues(pony1).build());
89 ops.add(ContentProviderOperation.newInsert(uri).withValues(pony2).build());
94 private static Uri getPonyUri() {
95 return new Uri.Builder().scheme("content").authority(TestProvider.AUTHORITY)
101 Uri uri = getPonyUri() local
147 Uri uri = getPonyUri(); local
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
ContactEntryAdapter.java 20 import android.net.Uri;
44 public Uri uri; field in class:ContactEntryAdapter.Entry
57 p.writeParcelable(uri, 0);
71 uri = p.readParcelable(loader);
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
ContactLoader.java 16 import android.net.Uri;
32 Uri mLookupUri;
42 public Uri uri; field in class:ContactLoader.ContactData
63 // Undo the lookup URI
64 Uri contactUri = null;
75 result.uri = contactUri;
78 final Uri dataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY);
153 public ContactLoader(Context context, Uri lookupUri)
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
ContactsManagerTest.java 23 import android.net.Uri;
154 public Cursor query(final Uri uri, final String[] projection, final String selection,
156 return mQueryCursorMapForTestExpectations.get(uri.toString());
163 public void addQueryResult(final Uri uri, final MatrixCursor cursor) {
164 mQueryCursorMapForTestExpectations.put(uri.toString(), cursor);
PersonalDictionaryLookupTest.java 29 import android.net.Uri;
53 private HashSet<Uri> mAddedBackup;
59 mAddedBackup = new HashSet<Uri>();
65 for (Uri row : mAddedBackup) {
79 * @return the Uri for the given word
82 private Uri addWord(final String word, final Locale locale, int frequency, String shortcut) {
85 // Obtain an Uri for the given word.
89 Uri uri = Uri.withAppendedPath(UserDictionary.Words.CONTENT_URI local
373 Uri uri = addWord("foo", Locale.US, 17, null); local
412 Uri uri = addWord("foo", Locale.GERMANY, 17, "f"); local
457 Uri uri = addWord("foo", Locale.US, 17, null); local
    [all...]
  /packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
AllUriTest.java 21 import android.net.Uri;
45 insert for 'content://com.android.contacts/settings' failed: Must specify both or neither of ACCOUNT_NAME and ACCOUNT_TYPE; URI: content://com.android.contacts/settings?account_type=1, calling user: com.android.providers.contacts.tests2, calling package:com.android.providers.contacts.tests2
263 private static Uri getUri(String[] path) {
264 return Uri.parse(path[0]);
294 private String[] getColumns(Uri uri) {
295 try (Cursor c = mResolver.query(uri,
305 private void checkQueryExecutable(Uri uri,
309 try (Cursor c = mResolver.query(uri, projection, selection
374 final Uri uri = getUri(path); local
389 final Uri uri = getUri(path); local
455 final Uri uri = getUri(path); local
514 final Uri uri = getUri(path); local
531 final Uri uri = getUri(path); local
611 final Uri uri = getUri(path); local
650 final Uri uri = getUri(path); local
693 final Uri uri = getUri(path); local
    [all...]

Completed in 1470 milliseconds

<<11121314151617181920>>