/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastContentProvider.java | 28 import android.net.Uri; 41 /** URI matcher for ContentProvider queries. */ 47 /** Content URI for notifying observers. */ 48 static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts/"); 50 /** URI matcher type to get all cell broadcasts. */ 53 /** URI matcher type to get a cell broadcast by ID. */ 82 * @param uri the URI to query. 91 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
ImportProcessor.java | 20 import android.net.Uri; 43 * Class for processing one import request from a user. Dropped after importing requested Uri(s). 57 private final List<Uri> mFailedUris = new ArrayList<Uri>(); 126 Log.i(LOG_TAG, "Canceled before actually handling parameter (" + request.uri + ")"); 132 * Note: this code assumes that a given Uri is able to be opened more than once, 145 final Uri uri = request.uri; local 161 if (uri != null) [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
FolderPickerActivity.java | 27 import android.net.Uri; 54 Uri uri = i.getData(); local 57 // If we've gotten a Uri, then this is a call from the UI in response to setupIntentUri 59 if (uri != null) { 60 String id = uri.getQueryParameter("account"); 62 LogUtils.w(TAG, "No account # in Uri?"); 69 LogUtils.w(TAG, "Invalid account # in Uri?"); 102 mAccountId = Long.parseLong(uiAccount.uri.getLastPathSegment()); 164 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, mAccountId) local 170 Uri uri = Uri.parse("content:\/\/" + EmailContent.AUTHORITY + "\/uifullfolders\/" + mAccountId); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationCursor.java | 31 import android.net.Uri; 97 * The index of the Uri whose data is reflected in the cached row. Updates/Deletes to this Uri 117 /** A mapping from Uri to updated ContentValues */ 163 private Uri qUri; 190 public ConversationCursor(Activity activity, Uri uri, boolean useInitialConversationLimit, 194 qUri = uri; 371 // uri as a key. 415 LogUtils.e(LOG_TAG, "Inserting duplicate conversation uri key: %s. " 631 Uri uri = qUri; local 969 final String uri = mUnderlyingCursor.getInnerUri(); local 1550 Uri uri = conv.uri; local 1752 Uri uri = underlyingUri.buildUpon() local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
ResponseCacheAdapterTest.java | 32 import java.net.URI; 95 public CacheResponse get(URI uri, String method, Map<String, List<String>> headers) throws IOException { 96 assertEquals(toUri(serverUrl), uri); 117 public CacheResponse get(URI uri, String method, Map<String, List<String>> headers) 119 assertEquals("https", uri.getScheme()); 120 assertEquals(toUri(serverUrl), uri); 146 public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException [all...] |
/frameworks/base/core/java/android/content/ |
ClipData.java | 22 import android.net.Uri; 53 * {@link #newUri(ContentResolver, CharSequence, Uri)}, and 57 * CharSequence of text, a single Intent object, or a Uri. See {@link Item} 84 * "content:" URIs. A content URI allows the recipient of a ClippedData item 87 * the available MIME types; {@link #newUri(ContentResolver, CharSequence, Uri)} 92 * if the clipboard contains a URI reference to an existing note, it copies 102 * ContentResolver {@link ContentResolver#getStreamTypes(Uri, String)} and 103 * {@link ContentResolver#openTypedAssetFileDescriptor(Uri, String, android.os.Bundle)} 105 * content URI can make available as a stream and retrieve the stream of data. 108 * itself uses this to try to retrieve a URI clip as a stream of text 321 Uri uri = getUri(); local 935 Uri uri = in.readInt() != 0 ? Uri.CREATOR.createFromParcel(in) : null; local [all...] |
/packages/providers/TvProvider/src/com/android/providers/tv/ |
TvProvider.java | 45 import android.net.Uri; 416 public String getType(Uri uri) { 417 switch (sUriMatcher.match(uri)) { 435 throw new IllegalArgumentException("Unknown URI " + uri); 440 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 442 if (needsToLimitPackage(uri) && !TextUtils.isEmpty(sortOrder)) { 443 throw new SecurityException("Sort order not allowed for " + uri); 472 c.setNotificationUri(getContext().getContentResolver(), uri); local 931 Uri uri = TvContract.buildChannelLogoUri(mChannelId); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapContentObserver.java | 50 import android.net.Uri; 108 private Uri mMessageUri = null; 171 mAuthority = Uri.parse(account.mBase_uri).getAuthority(); 172 mMessageUri = Uri.parse(account.mBase_uri + "/" + BluetoothMapContract.TABLE_MESSAGE); 213 public void onChange(boolean selfChange, Uri uri) { 215 + " Uri: " + uri.toString() + " selfchange: " + selfChange); 217 handleMsgListChanges(uri); 398 /* Use MmsSms Uri since the Sms Uri is not notified on deletes * 413 Uri uri = Uri.parse(mAccount.mBase_uri_no_account + "\/" + BluetoothMapContract.TABLE_MESSAGE); local 506 Uri uri = mMessageUri; local 825 Uri uri = Uri.parse(uriStr + BluetoothMapContract.TABLE_MESSAGE); local 911 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, handle); local 946 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, handle); local 990 Uri uri = ContentUris.withAppendedId(Sms.CONTENT_URI, handle); local 1025 Uri uri = ContentUris.withAppendedId(Sms.CONTENT_URI, handle); local 1101 Uri uri = Sms.Inbox.CONTENT_URI;\/\/ContentUris.withAppendedId(Sms.CONTENT_URI, handle); local 1112 Uri uri = ContentUris.withAppendedId(Mms.CONTENT_URI, handle); local 1120 Uri uri = mMessageUri; local 1135 Uri uri; field in class:BluetoothMapContentObserver.PushMsgInfo 1282 Uri uri; local 1368 Uri uri = Mms.CONTENT_URI; local 1425 Uri uri = Mms.CONTENT_URI; local 1889 Uri uri = Uri.parse(uriString); local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
RingtoneManagerTest.java | 29 import android.net.Uri; 46 private Uri mDefaultUri; 101 Uri uri = mRingtoneManager.getRingtoneUri(expectedPosition); local 102 assertEquals(expectedPosition, mRingtoneManager.getRingtonePosition(uri)); 105 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, uri); 106 assertEquals(uri, RingtoneManager.getActualDefaultRingtoneUri(mContext, 140 Uri uri = Uri.parse("android.resource://" + PKG + "/" + R.raw.john_cage) local [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/dom3/ |
NamespaceSupport.java | 47 * the Namespace URI that is automatically mapped to the "xml" prefix.
54 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
65 * <prefix, uri>. The default size can be set to anything
116 // bind "xml" prefix to the XML uri
119 // bind "xmlns" prefix to the XMLNS uri
155 public boolean declarePrefix(String prefix, String uri) {
171 fNamespace[i - 1] = uri;
183 // bind prefix to uri in current context
185 fNamespace[fNamespaceSize++] = uri;
213 public String getPrefix(String uri) {
[all...] |
/external/chromium_org/third_party/libxml/src/ |
check-xinclude-test-suite.py | 64 uri = test.prop('href') 67 if uri == None: 68 print "Test without ID:", uri 71 print "Test without URI:", id 74 print "Test without URI:", id 77 URI = basedir + "/" + uri 79 URI = uri 80 if os.access(URI, os.R_OK) == 0 [all...] |
/frameworks/av/media/libstagefright/http/ |
MediaHTTP.cpp | 46 const char *uri, 59 bool success = mHTTPConnection->connect(uri, &extHeaders); 62 mLastURI = uri; 174 String8 uri; local 175 if (OK == mHTTPConnection->getUri(&uri)) { 176 return uri;
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
BandwidthTestUtil.java | 131 String uri = server; local 132 if (!uri.endsWith("/")) { 133 uri += "/"; 135 uri += "upload"; 136 Log.d(LOG_TAG, "Upload url:" + uri); 137 HttpPost postRequest = new HttpPost(uri);
|
/frameworks/base/media/java/android/media/ |
MediaScannerConnection.java | 25 import android.net.Uri; 37 * media scanner service to return the Uri for a newly scanned file 50 public void scanCompleted(String path, Uri uri) { 53 client.onScanCompleted(path, uri); 67 * @param uri the Uri for the file if the scanning operation succeeded 70 public void onScanCompleted(String path, Uri uri); 89 * @param uri the Uri for the file if the scanning operation succeede [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
CoreSettingsObserver.java | 21 import android.net.Uri; 88 Uri uri = Settings.Secure.getUriFor(setting); local 90 uri, false, this); 94 Uri uri = Settings.System.getUriFor(setting); local 96 uri, false, this); 100 Uri uri = Settings.Global.getUriFor(setting); local 102 uri, false, this) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
ExportTestProvider.java | 23 import android.net.Uri; 98 public EntityIterator queryEntities(Uri uri, 100 TestCase.assertTrue(uri != null); 101 TestCase.assertTrue(ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())); 102 final String authority = uri.getAuthority(); 114 public Cursor query(Uri uri,String[] projection, 116 TestCase.assertTrue(VCardVerifier.CONTACTS_TEST_CONTENT_URI.equals(uri));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
MockHandler.java | 57 public void endElement(String uri, String localName, String name) throws SAXException { 58 logger.add("endElement", uri, localName, name); 101 public void startElement(String uri, String localName, String name, Attributes atts) 103 logger.add("startElement", uri, localName, name, atts); 106 public void startPrefixMapping(String prefix, String uri) throws SAXException { 107 logger.add("startPrefixMapping", prefix, uri);
|
/packages/apps/Camera/src/com/android/camera/ |
Storage.java | 23 import android.net.Uri; 79 public static Uri addImage(ContentResolver resolver, String title, 90 public static Uri addImage(ContentResolver resolver, String title, 111 Uri uri = null; local 113 uri = resolver.insert(Images.Media.EXTERNAL_CONTENT_URI, values); 122 return uri; 125 public static void deleteImage(ContentResolver resolver, Uri uri) { 127 resolver.delete(uri, null, null) [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
ContactsSyncAdapterService.java | 25 import android.net.Uri; 94 Uri uri = RawContacts.CONTENT_URI.buildUpon() local 100 boolean changed = hasDirtyRows(getContentResolver(), uri, RawContacts.DIRTY); 102 uri = Groups.CONTENT_URI.buildUpon() 107 changed = hasDirtyRows(getContentResolver(), uri, Groups.DIRTY); 149 private static boolean hasDirtyRows(ContentResolver resolver, Uri uri, String dirtyColumn) { 150 Cursor c = resolver.query(uri, EmailContent.ID_PROJECTION, dirtyColumn + "=1", null, null);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
SharedImageProvider.java | 23 import android.net.Uri; 39 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/image"); 49 public int delete(Uri arg0, String arg1, String[] arg2) { 54 public String getType(Uri arg0) { 59 public String[] getStreamTypes(Uri arg0, String mimeTypeFilter) { 64 public Uri insert(Uri uri, ContentValues values) { 76 public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) [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/experimental/LoaderApp/src/com/android/loaderapp/model/ |
EntityDiff.java | 24 import android.net.Uri; 46 public static EntityDiff buildDiff(Entity before, Entity after, Uri targetUri, 61 builder = ContentProviderOperation.newInsert(child.uri); 72 builder = ContentProviderOperation.newDelete(child.uri); 103 builder = ContentProviderOperation.newDelete(beforeChild.uri); 109 builder = ContentProviderOperation.newUpdate(afterChild.uri); 121 builder = ContentProviderOperation.newInsert(afterChild.uri); 131 return child.uri.toString() + child.values.getAsString(BaseColumns._ID);
|
/packages/services/Telephony/tests/src/com/android/phone/tests/ |
CallDialTest.java | 22 import android.net.Uri; 118 // - if it's a fully qualified URI (with scheme), use it directly 123 Uri uri = null; local 126 uri = Uri.parse(number); 128 uri = Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null); 130 uri = Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
TestDragElement.java | 64 public TestDragElement set(String uri, String name, String value) { 69 mAttributes.put(uri + name, new TestAttribute(uri, name, value)); 106 public IDragAttribute getAttribute(@Nullable String uri, @NonNull String localName) { 108 return new TestAttribute(uri, localName, ""); 111 return mAttributes.get(uri + localName);
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoProcessOutgoingCallPermissionTest.java | 24 import android.net.Uri; 41 Uri uri = Uri.parse("tel:123456"); local 42 Intent intent = new Intent(Intent.ACTION_CALL, uri); 45 Log.i(LOG_TAG, "Called phone: " + uri.toString());
|