Searched defs:origin (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/webkit/
H A DGeolocationPermissions.java25 * Geolocation permissions are applied to an origin, which consists of the
27 * Geolocation API, permission must be granted for that content's origin.
29 * This class stores Geolocation permissions. An origin's permission state can
31 * an origin.
33 * When an origin attempts to use the Geolocation API, but no permission state
34 * is currently set for that origin,
36 * is called. This allows the permission state to be set for that origin.
47 * permission state for an origin.
51 * Sets the Geolocation permission state for the supplied origin.
53 * @param origin th
60 invoke(String origin, boolean allow, boolean retain) argument
101 getAllowed(String origin, ValueCallback<Boolean> callback) argument
110 clear(String origin) argument
119 allow(String origin) argument
[all...]
H A DWebStorage.java28 * Cache API can be attributed to an origin {@link WebStorage.Origin}, however
29 * it is not possible to set per-origin quotas. Note that there can be only
32 * The Web SQL Database API provides storage which is private to a given origin.
34 * to an origin. It is also possible to set per-origin quotas.
61 * currently used by an origin for the JavaScript storage APIs.
62 * An origin comprises the host, scheme and port of a URI.
71 protected Origin(String origin, long quota, long usage) { argument
72 mOrigin = origin;
78 protected Origin(String origin, lon argument
84 Origin(String origin) argument
154 getUsageForOrigin(String origin, ValueCallback<Long> callback) argument
165 getQuotaForOrigin(String origin, ValueCallback<Long> callback) argument
175 setQuotaForOrigin(String origin, long quota) argument
184 deleteOrigin(String origin) argument
[all...]
H A DGeolocationPermissionsClassic.java48 private static final String ORIGIN = "origin";
112 String origin = (String) values.get(ORIGIN);
114 boolean allowed = nativeGetAllowed(origin);
183 public void getAllowed(String origin, ValueCallback<Boolean> callback) { argument
187 if (origin == null) {
192 boolean allowed = nativeGetAllowed(origin);
196 values.put(ORIGIN, origin);
206 public void clear(String origin) { argument
208 postMessage(Message.obtain(null, CLEAR, origin));
215 public void allow(String origin) { argument
230 nativeGetAllowed(String origin) argument
231 nativeClear(String origin) argument
232 nativeAllow(String origin) argument
[all...]
H A DWebChromeClient.java220 * API for a particular origin and request a new quota. The client must
230 * @param quota The quota for the origin, in bytes
270 * Notify the host application that web content from the specified origin
272 * currently set for that origin. The host application should invoke the
275 * @param origin The origin of the web content attempting to use the
278 * origin.
280 public void onGeolocationPermissionsShowPrompt(String origin, argument
H A DWebStorageClassic.java47 private static final String ORIGIN = "origin";
130 String origin = (String) values.get(ORIGIN);
132 Origin website = mOrigins.get(origin);
145 String origin = (String) values.get(ORIGIN);
147 Origin website = mOrigins.get(origin);
203 public void getUsageForOrigin(String origin, ValueCallback<Long> callback) { argument
207 if (origin == null) {
213 Origin website = mOrigins.get(origin);
217 values.put(ORIGIN, origin);
224 public void getQuotaForOrigin(String origin, ValueCallbac argument
245 setQuotaForOrigin(String origin, long quota) argument
257 deleteOrigin(String origin) argument
346 nativeGetUsageForOrigin(String origin) argument
347 nativeGetQuotaForOrigin(String origin) argument
348 nativeSetQuotaForOrigin(String origin, long quota) argument
349 nativeDeleteOrigin(String origin) argument
[all...]
H A DCallbackProxy.java554 String origin = (String) map.get("origin");
558 mWebChromeClient.onGeolocationPermissionsShowPrompt(origin,
1385 * Called by WebViewCore to inform the Java side that the current origin
1393 * @param quota The current quota the origin is allowed.
1453 * the user to set the Geolocation permission state for the given origin.
1454 * @param origin The origin requesting Geolocation permsissions.
1458 public void onGeolocationPermissionsShowPrompt(String origin, argument
1467 map.put("origin", origi
[all...]
H A DWebViewCore.java446 * Notify the embedding application that the origin has exceeded it's database quota.
449 * @param quota The current quota for the origin.
500 * for the given origin.
501 * @param origin The origin for which Geolocation permissions are
504 protected void geolocationPermissionsShowPrompt(String origin) { argument
505 mCallbackProxy.onGeolocationPermissionsShowPrompt(origin,
508 public void invoke(String origin, boolean allow, boolean remember) {
510 data.mOrigin = origin;
697 * quota for the current origin o
712 nativeGeolocationPermissionsProvide(int nativeClass, String origin, boolean allow, boolean remember) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisibleTest.java196 * @param origin The root view of the screen.
199 static public void assertOnBottomEdgeOfScreen(View origin, View view) { argument
204 origin.getLocationOnScreen(xyRoot);
207 int bottomOfRoot = xyRoot[1] + origin.getHeight();
217 * @param origin The root view of the screen.
220 static public void assertOnTopEdgeOfScreen(View origin, View view) { argument
225 origin.getLocationOnScreen(xyRoot);
228 int bottomOfRoot = xyRoot[1] + origin.getHeight();
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java38 public Rectangle(Point origin, Point size) { argument
39 super(origin,
40 origin.plus(size.x, 0.0f),
41 origin.plus(0.0f, size.y),
42 origin.plus(size.x, size.y));
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java33 * @param origin The root view of the screen.
36 static public void assertOnScreen(View origin, View view) { argument
41 origin.getLocationOnScreen(xyRoot);
55 * @param origin The root view of the screen.
58 static public void assertOffScreenBelow(View origin, View view) { argument
63 origin.getLocationOnScreen(xyRoot);
69 + origin.getHeight() + ")",
70 y > origin.getHeight());
75 * @param origin Te root view of the screen.
78 static public void assertOffScreenAbove(View origin, Vie argument
98 assertHasScreenCoordinates(View origin, View view, int x, int y) argument
[all...]

Completed in 2645 milliseconds