8f8a11b7fa26e603519131001ab46596aa30ba1a |
|
26-Nov-2013 |
Newton Allen <newt@google.com> |
Fix some documentation typos. Change-Id: I747a0ade5c7b9c45d4465bf327952338bbc1cfaa (cherry picked from commit 4465d1a03ee5fddc5987c19fc36b0bb79e19572f)
/frameworks/base/core/java/android/content/UriMatcher.java
|
ef23bf198d14bea183c0dabd5b4fcd0a5d07d738 |
|
20-Mar-2013 |
Chiao Cheng <chiaocheng@google.com> |
Allow leading slash in path argument for addURI() method. The original documentation for this class indicated a leading slash was possible but the code did not support it. Since then, the docs were changed to reflect what the code does. The purpose of this change is to allow the use of uri.getPath() as an argument. With this change, the following can be done matcher.addURI(ContactsContract.AUTHORITY, ContactsContract.CONTENT_FILTER_URI.getPath(), CONTACTS_FILTER) instead of matcher.addURI(ContactsContract.AUTHORITY, "contacts/filter", CONTACTS_FILTER) Change-Id: I76a9e3133365be9fe7a8de86eae57f9eea1cd2a3
/frameworks/base/core/java/android/content/UriMatcher.java
|
0a675fd8fe145ce636f363c8d29e2416d7d52003 |
|
31-Oct-2010 |
Daniel Trebbien <dtrebbien@gmail.com> |
Fixes Issue 7907 in the public bugs database (http://code.google.com/p/android/issues/detail?id=7907). The Javadoc comment for class `android.content.UriMatcher` had four issues: 1. The example calls to `addURI` should not be using a leading forward slash in the path parameter (reported by Ester Ytterbrink). 2. The sample code to construct a `UriMatcher` was incorrect because the `UriMatcher` constructor takes a parameter (reported by Ross Light). 3. The code example for using `match` was incorrect because it showed two parameters being passed, when `match` only takes one (reported by Ross Light). 4. The sample `getType` implementations were incorrect because `getType` takes a `Uri` object, not an array of `String`s. Change-Id: I560bff6f021c13cabf736f40ff0f47a205074291
/frameworks/base/core/java/android/content/UriMatcher.java
|
3a184efa127da097d7fa5a37bc944b47a7025858 |
|
02-Apr-2009 |
Bjorn Bringert <> |
AI 144034: am: CL 144032 Added missing import to fix breakage caused by CL 144008. Original author: bringert Merged from: //branches/donutburger/... Automated import of CL 144034
/frameworks/base/core/java/android/content/UriMatcher.java
|
5d015d7331923f852a2a8675b4203b29f6c34d96 |
|
02-Apr-2009 |
Bjorn Bringert <> |
AI 144010: am: CL 144008 UriMatcher: Avoid repeated calls to Uri.getPathSegments() in UriMatcher.match(). Before, every call to UriMatcher.match() called Uri.getPathSegments() N + 1 times, where N is the size of the list returned by Uri.getPathSegments(). Since some of the implementations of Uri.getPathSegments() are O(N), UriMatcher.match() was O(N^2). This CL fixes the problem by calling uri.getPathSegments() once in the beginning of match(). That should be safe since Uri is immutable. Original author: bringert Merged from: //branches/donutburger/... Automated import of CL 144010
/frameworks/base/core/java/android/content/UriMatcher.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/content/UriMatcher.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/content/UriMatcher.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/content/UriMatcher.java
|