HomeSort by relevance Sort by last modified time
    Searched refs:uri (Results 76 - 100 of 2106) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/apps/Browser/src/com/android/browser/
DataUri.java 23 * Class extracts the mime type and data from a data uri.
24 * A data URI is of the form:
36 public DataUri(String uri) throws MalformedURLException {
37 if (!isDataUri(uri)) {
38 throw new MalformedURLException("Not a data URI");
41 int commaIndex = uri.indexOf(',', DATA_URI_PREFIX.length());
43 throw new MalformedURLException("Comma expected in data URI");
45 String contentType = uri.substring(DATA_URI_PREFIX.length(),
47 mData = uri.substring(commaIndex + 1).getBytes();
60 * Returns true if the text passed in appears to be a data URI
    [all...]
  /packages/apps/Gallery/src/com/android/camera/gallery/
SingleImageList.java 20 import android.net.Uri;
34 private Uri mUri;
36 public SingleImageList(ContentResolver resolver, Uri uri) {
37 mUri = uri;
38 mSingleImage = new UriImage(this, resolver, uri);
69 public IImage getImageForUri(Uri uri) {
70 return uri.equals(mUri) ? mSingleImage : null;
  /packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/
NaughtySuggestionProvider.java 22 import android.net.Uri;
38 public String getType(Uri uri) {
43 public Uri insert(Uri uri, ContentValues values) {
48 public int update(Uri uri, ContentValues values, String selection,
54 public int delete(Uri uri, String selection, String[] selectionArgs)
    [all...]
  /packages/experimental/RpcPerformance/src/com/android/rpc_performance/
Provider.java 23 import android.net.Uri;
31 public Cursor query(Uri uri, String[] projection,
39 public Uri insert(Uri uri, ContentValues values) {
43 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
47 public int delete(Uri uri, String selection, String[] selectionArgs)
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_StatusUpdatesTest.java 24 import android.net.Uri;
62 assertNotNull(results[0].uri);
63 assertNotNull(results[1].uri);
65 dataId = ContentUris.parseId(results[1].uri);
69 Uri uri = insertStatusUpdate(dataId, StatusUpdates.DO_NOT_DISTURB, null, null); local
70 assertPresence(uri, StatusUpdates.DO_NOT_DISTURB);
71 assertStatus(uri, null);
72 assertHasTimestamp(uri, false);
73 assertRowCount(uri, 1)
    [all...]
Settings_NameValueTableTest.java 22 import android.net.Uri;
30 Uri uri = Settings.System.CONTENT_URI; local
35 Cursor c = cr.query(uri, null, null, null, null);
41 MyNameValueTable.putString(cr, uri, name, value);
42 c = cr.query(uri, null, null, null, null);
49 c = cr.query(uri, null, selection, null, null);
58 cr.delete(uri, selection, null);
59 c = cr.query(uri, null, null, null, null);
69 Uri uri = Uri.parse("content://authority/path") local
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/address/
AddressFactoryImpl.java 65 * Creates an Address with the new display name and URI attribute
70 * @param uri - the new URI value of the address.
76 javax.sip.address.URI uri) {
77 if (uri == null)
78 throw new NullPointerException("null URI");
82 addressImpl.setURI(uri);
87 /** create a sip uri.
89 *@param uri -- the uri to parse
188 SipURI uri = new SipUri(); local
    [all...]
  /packages/apps/Browser/tests/src/com/android/browser/tests/utils/
MockObserverNode.java 20 import android.net.Uri;
47 private String getUriSegment(Uri uri, int index) {
48 if (uri != null) {
50 return uri.getAuthority();
52 return uri.getPathSegments().get(index - 1);
59 private int countUriSegments(Uri uri) {
60 if (uri == null) {
63 return uri.getPathSegments().size() + 1
    [all...]
  /cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
IntentReceiverActivity.java 20 import android.net.Uri;
31 * Class to receive intents sent across profile boundaries, and read/write to content uri specified
51 Uri uri = getIntent().getClipData().getItemAt(0).getUri(); local
56 message = getFirstLineFromUri(uri);
58 Log.i(TAG, "Caught a SecurityException while trying to read " + uri, e);
61 Log.i(TAG, "Caught a IOException while trying to read " + uri, e);
71 writeToUri(uri, message);
73 Log.i(TAG, "Caught a SecurityException while trying to write to " + uri, e);
76 Log.i(TAG, "Caught a IOException while trying to write to " + uri, e)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
RequestLine.java 31 import javax.sip.address.URI;
48 /** uri field. Note that this can be a SIP URI or a generic URI
49 * like tel URI.
51 protected GenericURI uri; field in class:RequestLine
81 if (uri != null) {
82 uri.encode(buffer);
94 return uri;
97 /** Constructor given the request URI and the method
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ProfileProvider.java 24 import android.net.Uri;
40 // URI belongs to a profile action, setting up the proper database.
49 * provider to see whether this is an authorized one-time-use URI.
50 * @param uri The URI being accessed.
52 public void enforceReadPermission(Uri uri) {
53 if (!mDelegate.isValidPreAuthorizedUri(uri)) {
76 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
MmsFileProvider.java 28 import android.net.Uri;
44 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
51 public Uri insert(Uri uri, ContentValues values) {
57 public int delete(Uri uri, String selection, String[] selectionArgs) {
63 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs)
    [all...]
  /external/smack/src/com/kenai/jbosh/
BodyQName.java 22 * Each qualified name consists of a namespace URI and a local name.
29 * BOSH namespace URI.
35 * Namespace URI.
50 * Creates a new qualified name using a namespace URI and local name.
52 * @param uri namespace URI
57 final String uri,
59 return createWithPrefix(uri, local, null);
63 * Creates a new qualified name using a namespace URI and local name
66 * @param uri namespace UR
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
ContactLoaderUtils.java 21 import android.net.Uri;
35 * Transforms the given Uri and returns a Lookup-Uri that represents the contact.
37 * can be thrown if the URI is null or the authority is not recognized.
42 public static Uri ensureIsContactUri(final ContentResolver resolver, final Uri uri)
44 if (uri == null) throw new IllegalArgumentException("uri must not be null");
46 final String authority = uri.getAuthority()
    [all...]
  /frameworks/base/core/java/android/provider/
DocumentsProvider.java 42 import android.net.Uri;
87 * the system issues narrow URI permission grants to the requesting application.
190 private void enforceTree(Uri documentUri) {
229 * URI permission grants will be updated to point at the new document. If
247 * Upon returning, any URI permission grants for the given document will be
269 * If this set of roots changes, you must call {@link ContentResolver#notifyChange(Uri,
324 * {@link Cursor#setNotificationUri(ContentResolver, Uri)} with a relevant
325 * Uri, such as
327 * you can call {@link ContentResolver#notifyChange(Uri,
328 * android.database.ContentObserver, boolean)} with that Uri to send chang
    [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
MockContentProvider.java 24 import android.net.Uri;
46 public int delete(Uri uri, String selection, String[] selectionArgs) {
51 public String getType(Uri uri) {
56 public Uri insert(Uri uri, ContentValues initialValues) {
61 public Cursor query(Uri uri, String[] projection, String selection
    [all...]
  /developers/samples/android/common/src/java/com/example/android/common/assetprovider/
AssetProvider.java 25 import android.net.Uri;
60 public String getType(Uri uri){
61 // Returns the MIME type for the selected URI, in conformance with the ContentProvider
62 // interface. Looks up the file indicated by /res/assets/{uri.path}, and returns the MIME
66 String path = uri.getPath();
74 return guessContentTypeFromName(uri.toString());
79 public AssetFileDescriptor openAssetFile (Uri uri, String mode)
81 // ContentProvider interface for opening a file descriptor by URI. This content provide
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
UriSource.java 20 import android.net.Uri;
39 super("uri");
50 String uri = URLDecoder.decode(segment[1], CHARSET_UTF_8); local
52 return new UriImage(mApplication, path, Uri.parse(uri), type);
58 private String getMimeType(Uri uri) {
59 if (ContentResolver.SCHEME_FILE.equals(uri.getScheme())) {
61 MimeTypeMap.getFileExtensionFromUrl(uri.toString());
67 // This could happen for "http" URI
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGPaint.h 70 static PassRefPtrWillBeRawPtr<SVGPaint> createURI(const String& uri)
72 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeNoop(new SVGPaint(SVG_PAINTTYPE_URI, uri));
76 static PassRefPtrWillBeRawPtr<SVGPaint> createURIAndColor(const String& uri, const Color& color)
78 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeNoop(new SVGPaint(SVG_PAINTTYPE_URI_RGBCOLOR, uri));
83 static PassRefPtrWillBeRawPtr<SVGPaint> createURIAndNone(const String& uri)
85 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeNoop(new SVGPaint(SVG_PAINTTYPE_URI_NONE, uri));
89 static PassRefPtrWillBeRawPtr<SVGPaint> createURIAndCurrentColor(const String& uri)
91 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeNoop(new SVGPaint(SVG_PAINTTYPE_URI_CURRENTCOLOR, uri));
96 String uri() const { return m_uri; } function in class:WebCore::SVGPaint
114 static PassRefPtrWillBeRawPtr<SVGPaint> create(const SVGPaintType& type, const String& uri, const Color& color
    [all...]
  /external/chromium_org/third_party/libxslt/libxslt/
security.c 57 #include <libxml/uri.h>
371 xmlURIPtr uri; local
374 uri = xmlParseURI((const char *)URL);
375 if (uri == NULL) {
376 uri = xmlCreateURI();
377 if (uri == NULL) {
382 uri->path = (char *)xmlStrdup(URL);
384 if ((uri->scheme == NULL) ||
385 (xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) {
388 if ((uri->path)&&(uri->path[0]=='/')&
436 xmlURIPtr uri; local
    [all...]
  /frameworks/base/sax/java/android/sax/
Element.java 32 final String uri; field in class:Element
46 Element(Element parent, String uri, String localName, int depth) {
48 this.uri = uri;
64 public Element getChild(String uri, String localName) {
74 return children.getOrCreate(this, uri, localName);
92 public Element requireChild(String uri, String localName) {
93 Element child = getChild(uri, localName);
166 return toString(uri, localName);
169 static String toString(String uri, String localName)
    [all...]
  /libcore/dom/src/test/java/org/w3c/domts/
DOMLocatorImpl.java 28 private final String uri; field in class:DOMLocatorImpl
36 this.uri = src.getUri();
77 /* URI
81 return uri;
  /libcore/luni/src/main/java/org/xml/sax/
Attributes.java 37 * give namespace declaration attributes a namespace URI.
96 * Look up an attribute's Namespace URI by index.
99 * @return The Namespace URI, or the empty string if none
180 * @param uri The Namespace URI, or the empty string if
181 * the name has no Namespace URI.
186 public int getIndex (String uri, String localName);
205 * @param uri The Namespace URI, or the empty String if the
206 * name has no Namespace URI
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
ClockProvider.java 26 import android.net.Uri;
61 public Cursor query(Uri uri, String[] projectionIn, String selection, String[] selectionArgs,
66 int match = sURLMatcher.match(uri);
74 qb.appendWhere(uri.getLastPathSegment());
82 qb.appendWhere(uri.getLastPathSegment());
90 qb.appendWhere(uri.getLastPathSegment());
93 throw new IllegalArgumentException("Unknown URL " + uri);
103 ret.setNotificationUri(getContext().getContentResolver(), uri); local
110 public String getType(Uri uri)
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/data/
SQLiteContentProvider.java 28 import android.net.Uri;
44 private Set<Uri> mChangedUris;
58 mChangedUris = new HashSet<Uri>();
76 public abstract Uri insertInTransaction(Uri uri, ContentValues values,
83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection,
90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs
    [all...]

Completed in 693 milliseconds

1 2 34 5 6 7 8 91011>>