/packages/apps/Messaging/src/com/android/messaging/util/ |
D | AvatarUriUtil.java | 19 import android.net.Uri; 20 import android.net.Uri.Builder; 84 public static final Uri DEFAULT_BACKGROUND_AVATAR = new Uri.Builder().scheme(SCHEME) 87 private static final Uri BLANK_SIM_INDICATOR_INCOMING_URI = createSimIconUri("", 89 private static final Uri BLANK_SIM_INDICATOR_OUTGOING_URI = createSimIconUri("", 97 public static Uri createAvatarUri(@NonNull final List<ParticipantData> participants) { in createAvatarUri() 106 final ArrayList<Uri> avatarUris = new ArrayList<Uri>(numParticipants); in createAvatarUri() 119 public static Uri joinAvatarUriToGroup(@NonNull final List<Uri> avatarUris) { in joinAvatarUriToGroup() 124 final Uri firstAvatar = avatarUris.get(0); in joinAvatarUriToGroup() 135 final Uri uri = avatarUris.get(i); in joinAvatarUriToGroup() [all …]
|
D | UriUtil.java | 22 import android.net.Uri; 64 public static Uri getUriForResourceFile(final String path) { in getUriForResourceFile() 65 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); in getUriForResourceFile() 71 public static String getFilePathFromUri(final Uri uri) { in getFilePathFromUri() 81 public static boolean isLocalResourceUri(final Uri uri) { in isLocalResourceUri() 91 public static boolean isBugleAppResource(final Uri uri) { in isBugleAppResource() 96 public static boolean isFileUri(final Uri uri) { in isFileUri() 103 public static Uri getUriForResourceId(final Context context, final int resId) { in getUriForResourceId() 104 return new Uri.Builder() in getUriForResourceId() 114 public static boolean isLocalUri(@NonNull final Uri uri) { in isLocalUri() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/ |
D | MockUiProviderTests.java | 25 import android.net.Uri; 53 final Uri accountUri = MockUiProvider.getAccountsUri(); in testTraverseContentProvider() 60 final Uri accountsUri = MockUiProvider.getAccountsUri(); in testGetFolders() 64 ArrayList<Uri> folderUris = new ArrayList<Uri>(); in testGetFolders() 66 Uri foldersUri; in testGetFolders() 70 foldersUri = Uri.parse(cursor.getString(folderUriIndex)); in testGetFolders() 76 ArrayList<Uri> childUris = new ArrayList<Uri>(); in testGetFolders() 77 ArrayList<Uri> convUris = new ArrayList<Uri>(); in testGetFolders() 79 for (Uri u : folderUris) { in testGetFolders() 84 Uri childUri; in testGetFolders() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
D | PduCache.java | 22 import android.net.Uri; 30 public final class PduCache extends AbstractCache<Uri, PduCacheEntry> { 74 private final SparseArray<HashSet<Uri>> mMessageBoxes; 75 private final SimpleArrayMap<Long, HashSet<Uri>> mThreads; 76 private final HashSet<Uri> mUpdating; 79 mMessageBoxes = new SparseArray<HashSet<Uri>>(); in PduCache() 80 mThreads = new SimpleArrayMap<Long, HashSet<Uri>>(); in PduCache() 81 mUpdating = new HashSet<Uri>(); in PduCache() 95 public synchronized boolean put(Uri uri, PduCacheEntry entry) { in put() 97 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MessagingContentProvider.java | 25 import android.net.Uri; 64 public static final Uri CONVERSATIONS_URI = Uri.parse(CONTENT_AUTHORITY + CONVERSATIONS_QUERY); 65 static final Uri PARTS_URI = Uri.parse(CONTENT_AUTHORITY + DatabaseHelper.PARTS_TABLE); 70 static final Uri MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + MESSAGES_QUERY); 72 public static final Uri CONVERSATION_MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + 82 static final Uri CONVERSATION_PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY + 85 public static final Uri PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY + PARTICIPANTS_QUERY); 90 public static final Uri CONVERSATION_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY + 95 public static final Uri DRAFT_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY + 106 final Uri uri = Uri.parse(CONTENT_AUTHORITY); in notifyEverythingChanged() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
D | ContactLoaderTest.java | 20 import android.net.Uri; 94 private Contact assertLoadContact(Uri uri) { in assertLoadContact() 105 Contact result = assertLoadContact(Uri.EMPTY); in testEmptyUri() 110 Contact result = assertLoadContact(Uri.parse("content://wtf")); in testInvalidUri() 116 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithContactIdUri() 117 final Uri entityUri = Uri.withAppendedPath(baseUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithContactIdUri() 118 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithContactIdUri() 119 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, LOOKUP_KEY), in testLoadContactWithContactIdUri() 140 final Uri legacyUri = ContentUris.withAppendedId( in testLoadContactWithOldStyleUri() 141 Uri.parse("content://contacts"), RAW_CONTACT_ID); in testLoadContactWithOldStyleUri() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 22 import android.net.Uri; 53 private static final Uri URI_CONTACTS_ID_PHOTO = 54 Uri.parse("content://com.android.contacts/contacts/" + CONTACT_ID + "/photo"); 55 private static final Uri URI_CONTACTS_ID_DISPLAY_PHOTO = Uri 57 private static final Uri URI_CONTACTS_FILTER = 58 Uri.parse("content://com.android.contacts/contacts/filter/" + CONTACT_NAME); 59 private static final Uri URI_PHONES_FILTER = Uri 61 private static final Uri URI_CALLABLES_FILTER = Uri.parse( 63 private static final Uri URI_EMAILS_FILTER = Uri 65 private static final Uri URI_EMAILS_LOOKUP = [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | EmlAttachmentProvider.java | 29 import android.net.Uri; 81 private static Uri BASE_URI; 88 private Map<Uri, List<Uri>> mUriListMap; 93 private Map<Uri, Attachment> mUriAttachmentMap; 100 BASE_URI = new Uri.Builder().scheme("content").authority(authority).build(); in onCreate() 118 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() 130 final List<Uri> attachmentUris = mUriListMap.get(uri); in query() 131 for (final Uri attachmentUri : attachmentUris) { in query() 144 final Uri attachmentsListUri = getListUriFromAttachmentUri(uri); in query() 148 final List<Uri> attachmentUris = mUriListMap.get(attachmentsListUri); in query() [all …]
|
D | FolderWatcher.java | 22 import android.net.Uri; 46 private final List<Uri> mUris = new ArrayList<Uri>(); 48 private final Map<Uri, Folder> mInboxMap = new HashMap<Uri, Folder>(); 86 final List<Uri> newAccounts = new ArrayList<Uri>(allAccounts.length); in updateAccountList() 91 final List<Uri> uriCopy = Collections.unmodifiableList(Lists.newArrayList(mUris)); in updateAccountList() 92 for (final Uri previous : uriCopy) { in updateAccountList() 98 for (final Uri fresh : newAccounts) { in updateAccountList() 110 private void startWatching(Uri uri) { in startWatching() 126 private int insertAtNextEmptyLocation(Uri newElement) { in insertAtNextEmptyLocation() 127 Uri uri; in insertAtNextEmptyLocation() [all …]
|
D | MailAppProvider.java | 33 import android.net.Uri; 86 private final LinkedHashMap<Uri, AccountCacheEntry> mAccountCache = 87 new LinkedHashMap<Uri, AccountCacheEntry>(); 89 private final Map<Uri, CursorLoader> mCursorLoaderMap = Maps.newHashMap(); 136 public static Uri getAccountsUri() { in getAccountsUri() 137 return Uri.parse("content://" + sAuthority + "/"); in getAccountsUri() 175 final Uri uri = Uri.parse(accountQueryUri); in onCreate() 194 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, in query() 236 public Uri insert(Uri url, ContentValues values) { in insert() 241 public int update(Uri url, ContentValues values, String selection, in update() [all …]
|
D | Folder.java | 26 import android.net.Uri; 111 public Uri conversationListUri; 116 public Uri childFoldersListUri; 136 public Uri refreshUri; 176 public Uri loadMoreUri; 187 public Uri parent; 205 private Uri mUri; 210 private Uri mConversationListUri; 211 private Uri mChildFoldersListUri; 215 private Uri mRefreshUri; [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 24 import android.net.Uri; 63 private static HashMap<Uri, Uri> sSessionsToContentUris = new HashMap<>(); 64 private static HashMap<Uri, Uri> sContentUrisToSessions = new HashMap<>(); 65 private static LruCache<Uri, Bitmap> sSessionsToPlaceholderBitmap = 67 new LruCache<Uri, Bitmap>(20 * 1024 * 1024) { 69 protected int sizeOf(Uri key, Bitmap value) { 73 private static HashMap<Uri, Point> sSessionsToSizes = new HashMap<>(); 74 private static HashMap<Uri, Integer> sSessionsToPlaceholderVersions = new HashMap<>(); 91 public static Uri addImage(ContentResolver resolver, String title, long date, in addImage() 120 public static Uri addImage(ContentResolver resolver, String title, long date, in addImage() [all …]
|
/packages/apps/Camera2/src/com/android/camera/session/ |
D | CaptureSessionManager.java | 21 import android.net.Uri; 38 public void onSessionQueued(Uri mediaUri); in onSessionQueued() 44 public void onSessionUpdated(Uri mediaUri); in onSessionUpdated() 56 public void onSessionDone(Uri mediaUri); in onSessionDone() 59 … public void onSessionFailed(Uri mediaUri, int failureMessageId, boolean removeFromFilmstrip); in onSessionFailed() 62 public void onSessionCanceled(Uri mediaUri); in onSessionCanceled() 65 public void onSessionProgress(Uri mediaUri, int progress); in onSessionProgress() 68 public void onSessionProgressText(Uri mediaUri, int messageId); in onSessionProgressText() 105 public CaptureSession getSession(Uri sessionUri); in getSession() 118 public void putSession(Uri sessionUri, CaptureSession session); in putSession() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LegacyContactsProviderTest.java | 24 import android.net.Uri; 71 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert() 80 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate() 99 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete() 135 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testDefaultDisplayName() 141 final Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testPrimaryOrganization() 150 Uri orgUri1 = mResolver.insert(Organizations.CONTENT_URI, values); in testPrimaryOrganization() 157 Uri orgUri2 = mResolver.insert(Organizations.CONTENT_URI, values); in testPrimaryOrganization() 185 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testPrimaryPhone() 194 Uri phoneUri1 = mResolver.insert(Phones.CONTENT_URI, values); in testPrimaryPhone() [all …]
|
D | BaseContactsProvider2Test.java | 31 import android.net.Uri; 167 protected Uri setCallerIsSyncAdapter(Uri uri, Account account) { in setCallerIsSyncAdapter() 171 final Uri.Builder builder = uri.buildUpon(); in setCallerIsSyncAdapter() 178 protected int updateItem(Uri uri, long id, String... extras) { in updateItem() 179 Uri itemUri = ContentUris.withAppendedId(uri, id); in updateItem() 183 protected int updateItem(Uri uri, String... extras) { in updateItem() 210 final Uri uri = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account); in createGroup() 232 protected Uri insertOrganization(long rawContactId, ContentValues values) { in insertOrganization() 236 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) { in insertOrganization() 240 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary, in insertOrganization() [all …]
|
D | ContactsProvider2Test.java | 33 import android.net.Uri; 135 Uri enterpriseUri = Phone.ENTERPRISE_CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 139 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 140 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 152 Uri enterpriseUri = Phone.ENTERPRISE_CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 156 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 157 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 168 Uri enterpriseUri = Phone.ENTERPRISE_CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 171 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 172 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri() [all …]
|
D | VoicemailProviderTest.java | 22 import android.net.Uri; 72 private Uri voicemailUri() { in voicemailUri() 78 private Uri statusUri() { in statusUri() 84 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert() 96 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew() 118 Uri uri = insertVoicemail(); in testFileContent() 135 Uri uri = insertVoicemail(); in testUpdate() 153 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty() 165 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus() 176 final Uri ownVoicemail = insertVoicemail(); in testDeleteOwnPackageVoicemail_DeletesRow() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | SQLiteContentProvider.java | 28 import android.net.Uri; 44 private Set<Uri> mChangedUris; 58 mChangedUris = new HashSet<Uri>(); in onCreate() 76 public abstract Uri insertInTransaction(Uri uri, ContentValues values, in insertInTransaction() 83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() 90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() 97 protected void postNotifyUri(Uri uri) { in postNotifyUri() 103 public boolean isCallerSyncAdapter(Uri uri) { in isCallerSyncAdapter() 116 public Uri insert(Uri uri, ContentValues values) { in insert() 117 Uri result = null; in insert() [all …]
|
D | PhotoProvider.java | 29 import android.net.Uri; 57 static final Uri BASE_CONTENT_URI = new Uri.Builder().scheme("content").authority(AUTHORITY) 63 void notifyChange(Uri uri, boolean syncToNetwork); in notifyChange() 77 public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, TABLE); 97 public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, TABLE); 136 public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, TABLE); 173 public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, TABLE); 272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() 281 public String getType(Uri uri) { in getType() 292 public Uri insertInTransaction(Uri uri, ContentValues values, boolean callerIsSyncAdapter) { in insertInTransaction() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | NewOutgoingCallIntentBroadcasterTest.java | 26 import android.net.Uri; 94 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(voicemailNumber)); in testVoicemailCall() 100 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(Uri.parse(voicemailNumber)), in testVoicemailCall() 106 badCallActionHelper(Uri.parse("voicemail:18005551234"), DisconnectCause.OUTGOING_CANCELED); in testVoicemailCallWithBadAction() 111 badCallActionHelper(Uri.parse("tel:6505551234"), DisconnectCause.INVALID_NUMBER); in testTelCallWithBadCallAction() 116 badCallActionHelper(Uri.parse("sip:testuser@testsite.com"), DisconnectCause.INVALID_NUMBER); in testSipCallWithBadCallAction() 119 private void badCallActionHelper(Uri handle, int expectedCode) { in badCallActionHelper() 131 Uri handle = Uri.parse("tel:6505551234"); in testAlreadyDisconnectedCall() 145 Uri handle = Uri.parse("tel:"); in testNoNumberSupplied() 157 Uri handle = Uri.parse("tel:6505551911"); in testEmergencyCallWithNonDefaultDialer() [all …]
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreference.java | 21 import android.net.Uri; 52 private List<Uri> mEmergencyContacts = new ArrayList<Uri>(); 85 Uri newContact = contactPreference.getContactUri(); in onRemoveContactPreference() 87 List<Uri> updatedContacts = new ArrayList<Uri>(mEmergencyContacts); in onRemoveContactPreference() 100 public void addNewEmergencyContact(Uri contactUri) { in addNewEmergencyContact() 102 List<Uri> updatedContacts = new ArrayList<Uri>(mEmergencyContacts); in addNewEmergencyContact() 111 public List<Uri> getEmergencyContacts() { in getEmergencyContacts() 115 public void setEmergencyContacts(List<Uri> emergencyContacts) { in setEmergencyContacts() 131 Iterator<Uri> it = emergencyContacts.iterator(); in setEmergencyContacts() 144 private void addContactPreference(Uri contactUri) { in addContactPreference() [all …]
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
D | MockContentProvider.java | 25 import android.net.Uri; 45 private final Uri mUri; 59 public Query(Uri uri) { in Query() 124 public boolean equals(Uri uri, String[] projection, String selection, in equals() 175 private final Uri mUri; 178 public TypeQuery(Uri uri, String type) { in TypeQuery() 183 public Uri getUri() { in getUri() 196 public boolean equals(Uri uri) { in equals() 202 private final Uri mUri; 204 private final Uri mResultUri; [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | UriUtils.java | 19 import android.net.Uri; 32 public static boolean areEqual(Uri uri1, Uri uri2) { in areEqual() 43 public static Uri parseUriOrNull(String uriString) { in parseUriOrNull() 47 return Uri.parse(uriString); in parseUriOrNull() 51 public static String uriToString(Uri uri) { in uriToString() 55 public static boolean isEncodedContactUri(Uri uri) { in isEncodedContactUri() 70 public static Uri nullForNonContactsUri(Uri uri) { in nullForNonContactsUri() 80 public static String getLookupKeyFromUri(Uri lookupUri) { in getLookupKeyFromUri() 89 return (segments.size() < 3) ? null : Uri.encode(segments.get(2)); in getLookupKeyFromUri()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 25 import android.net.Uri; 66 void onPreviewSaved(Uri uri); in onPreviewSaved() 81 private final Uri mSourceUri; 84 private final Uri mSelectedImageUri; 132 public SaveImage(Context context, Uri sourceUri, Uri selectedImageUri, in SaveImage() 147 public static File getFinalSaveDirectory(Context context, Uri sourceUri) { in getFinalSaveDirectory() 159 public static File getNewFile(Context context, Uri sourceUri) { in getNewFile() 176 Uri srcContentUri) { in deleteAuxFiles() 221 public Object getPanoramaXMPData(Uri source, ImagePreset preset) { in getPanoramaXMPData() 244 public ExifInterface getExifData(Uri source) { in getExifData() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | UriUtils.java | 23 import android.net.Uri; 63 public static Uri getShortcutIconResourceUri(ShortcutIconResource iconResource) { in getShortcutIconResourceUri() 64 return Uri.parse(SCHEME_SHORTCUT_ICON_RESOURCE + SCHEME_DELIMITER + iconResource.packageName in getShortcutIconResourceUri() 72 public static boolean isAndroidResourceUri(Uri uri) { in isAndroidResourceUri() 79 public static boolean isAccountImageUri(Uri uri) { in isAccountImageUri() 83 public static String getAccountName(Uri uri) { in getAccountName() 91 public static Uri getAccountImageChangeNotifyUri(Uri uri) { in getAccountImageChangeNotifyUri() 97 return Uri.parse(notifyUri); in getAccountImageChangeNotifyUri() 108 public static boolean isContentUri(Uri uri) { in isContentUri() 116 public static boolean isShortcutIconResourceUri(Uri uri) { in isShortcutIconResourceUri() [all …]
|