Searched refs:has (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/libs/hwui/
H A DExtensions.cpp58 mHasNPot = extensions.has("GL_OES_texture_npot");
59 mHasFramebufferFetch = extensions.has("GL_NV_shader_framebuffer_fetch");
60 mHasDiscardFramebuffer = extensions.has("GL_EXT_discard_framebuffer");
61 mHasDebugMarker = extensions.has("GL_EXT_debug_marker");
62 mHas1BitStencil = extensions.has("GL_OES_stencil1");
63 mHas4BitStencil = extensions.has("GL_OES_stencil4");
64 mHasUnpackSubImage = extensions.has("GL_EXT_unpack_subimage");
65 mHasRenderableFloatTexture = extensions.has("GL_OES_texture_half_float");
67 mHasSRGB = mVersionMajor >= 3 || extensions.has("GL_EXT_sRGB");
68 mHasSRGBWriteControl = extensions.has("GL_EXT_sRGB_write_contro
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DStringUtilsTests.cpp27 EXPECT_TRUE(collection.has("a"));
28 EXPECT_TRUE(collection.has("b"));
29 EXPECT_TRUE(collection.has("c"));
30 EXPECT_FALSE(collection.has("d"));
36 EXPECT_TRUE(collection.has("GL_ext1"));
37 EXPECT_FALSE(collection.has("GL_ext")); // string present, but not in list
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java62 has(jpeg, byteSize, offset + length - 1)
76 if (has(jpeg, byteSize, 1)) {
86 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) {
108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) {
151 // Offset has changed significantly.
203 private static boolean has(final InputStreamBuffer jpeg, final long byteSize, final int index) { method in class:Exif
208 return jpeg.has(index);
H A DInputStreamBuffer.java75 * or {@link #has(int)} with an index N, then some arbitrary time later call {@link #get(int)}
76 * or {@link #has(int)} with an index M < N. The wrapper may return the right value,
120 * You should always call {@link #has(int)} with the same index, unless you are sure that no
131 if (has(index)) {
159 public boolean has(final int index) throws IllegalStateException, IndexOutOfBoundsException { method in class:InputStreamBuffer
160 Trace.beginSection("has");
185 * {@link #has(int)} call will fill the buffer.
258 * @return True if the byte at the requested index has been filled. False if the wrapped
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java57 has(jpeg, byteSize, offset + length - 1)
71 if (has(jpeg, byteSize, 1)) {
81 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) {
103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) {
146 // Offset has changed significantly.
198 private static boolean has(final InputStreamBuffer jpeg, final long byteSize, final int index) { method in class:Exif
203 return jpeg.has(index);
H A DInputStreamBuffer.java75 * or {@link #has(int)} with an index N, then some arbitrary time later call {@link #get(int)}
76 * or {@link #has(int)} with an index M < N. The wrapper may return the right value,
120 * You should always call {@link #has(int)} with the same index, unless you are sure that no
131 if (has(index)) {
159 public boolean has(final int index) throws IllegalStateException, IndexOutOfBoundsException { method in class:InputStreamBuffer
160 Trace.beginSection("has");
185 * {@link #has(int)} call will fill the buffer.
258 * @return True if the byte at the requested index has been filled. False if the wrapped
/frameworks/base/core/tests/coretests/src/android/util/
H A DTokenBucketTest.java71 assertTrue(tb.has());
85 assertTrue(tb.has());
115 while (!tb.has()) {
134 while (!tb.has()) {
145 assertTrue(tb.has());
154 assertFalse(tb.has());
/frameworks/base/docs/
H A D__DEPRECATED__DO_NOT_EDIT__.txt6 All authoring of content has been moved to Piper (go/dac-source).
/frameworks/base/docs/html/
H A D__DEPRECATED__DO_NOT_EDIT__.txt6 All authoring of content has been moved to Piper (go/dac-source).
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerMetadataParserTest.java171 assertTrue(mMetadata.has(Metadata.TITLE));
172 assertTrue(mMetadata.has(Metadata.GENRE));
173 assertTrue(mMetadata.has(Metadata.firstCustomId()));
174 assertFalse(mMetadata.has(Metadata.DRM_CRIPPLED));
209 assertTrue(mMetadata.has(Metadata.MIME_TYPE));
211 assertFalse(mMetadata.has(Metadata.TITLE));
212 assertFalse(mMetadata.has(Metadata.GENRE));
213 assertFalse(mMetadata.has(Metadata.firstCustomId()));
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp159 extensions.has("EGL_EXT_buffer_age") || extensions.has("EGL_KHR_partial_update");
160 EglExtensions.setDamage = extensions.has("EGL_KHR_partial_update");
161 LOG_ALWAYS_FATAL_IF(!extensions.has("EGL_KHR_swap_buffers_with_damage"),
164 EglExtensions.glColorSpace = extensions.has("EGL_KHR_gl_colorspace");
165 EglExtensions.noConfigContext = extensions.has("EGL_KHR_no_config_context");
166 EglExtensions.pixelFormatFloat = extensions.has("EGL_EXT_pixel_format_float");
168 EglExtensions.scRGB = extensions.has("EGL_EXT_gl_colorspace_scrgb_linear");
170 EglExtensions.scRGB = extensions.has("EGL_EXT_gl_colorspace_scrgb");
172 EglExtensions.contextPriority = extensions.has("EGL_IMG_context_priorit
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DWifiConfigurationHelper.java213 if (jsonConfig.has("phase2")) {
217 if (jsonConfig.has("identity")) {
221 if (jsonConfig.has("anonymous_identity")) {
225 if (jsonConfig.has("ca_cert")) {
229 if (jsonConfig.has("client_cert")) {
240 if (jsonConfig.has("ip")) {
/frameworks/base/core/java/com/android/internal/util/
H A DTokenBucket.java89 public boolean has() { method in class:TokenBucket
/frameworks/base/libs/hwui/utils/
H A DStringUtils.h33 bool has(const char* str) { return find(std::string(str)) != end(); } function in class:android::uirenderer::unordered_string_set
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DJsonParser.java49 if (output.has(fieldName)) {
/frameworks/base/
H A DAndroid.mk1017 define assert-has-no-overlap
1033 define assert-has-no-duplicates
1035 echo "$(1) has duplicate entries" 1>&2; \
1070 $(call assert-has-no-duplicates,$@)
1072 $(call assert-has-no-overlap,$@,$(LOCAL_SRC_FORCE_BLACKLIST))
1093 $(call assert-has-no-duplicates,$@)
1094 $(call assert-has-no-overlap,$@,$(LOCAL_LIGHT_GREYLIST))
1095 $(call assert-has-no-overlap,$@,$(LOCAL_SRC_FORCE_BLACKLIST))
1103 $(call assert-has-no-duplicates,$@)
1104 $(call assert-has
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderNative.java599 int has = reply.readInt();
600 ParcelFileDescriptor fd = has != 0 ? ParcelFileDescriptor.CREATOR
626 int has = reply.readInt();
627 AssetFileDescriptor fd = has != 0
699 int has = reply.readInt();
700 AssetFileDescriptor fd = has != 0
/frameworks/base/core/java/android/widget/
H A DVideoView.java474 mCanPause = !data.has(Metadata.PAUSE_AVAILABLE)
476 mCanSeekBack = !data.has(Metadata.SEEK_BACKWARD_AVAILABLE)
478 mCanSeekForward = !data.has(Metadata.SEEK_FORWARD_AVAILABLE)
564 /* If an error handler has been supplied, use it and finish. */
572 * something bad has happened. Only try and pop up the dialog
626 * has been reached during playback.
/frameworks/rs/script_api/
H A Drs_value_types.spec53 the concatenation of multiple letters or indices. The resulting vector has a size
H A Drs_for_each.spec111 the work has completed for all cells of the input allocations. If the kernel
204 present if and only if the kernel has a non-void return value.
H A Drs_graphics.spec567 is ignored. This function has considerable overhead and should not be used
/frameworks/base/media/java/android/media/
H A DMetadata.java428 public boolean has(final int metadataId) { method in class:Metadata
436 // Caller must make sure the key is present using the {@code has}
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoView2Impl.java805 if (!mMetadata.has(Metadata.PAUSE_AVAILABLE)
809 if (!mMetadata.has(Metadata.SEEK_BACKWARD_AVAILABLE)
813 if (!mMetadata.has(Metadata.SEEK_FORWARD_AVAILABLE)
817 if (!mMetadata.has(Metadata.SEEK_AVAILABLE)
918 Log.e(TAG, "PlaybackParams has unsupported value: " + e);
1007 if (mMetadata != null && mMetadata.has(Metadata.TITLE)) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCarrierKeyDownloadManager.java244 * could happen if the download has failed.
387 // The current implementation at certain Carriers has the data gzipped, which requires
436 if (key.has(JSON_CERTIFICATE)) {
478 //since keytype has values of 1, 2.... we need to subtract 1 from the keytype.
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp486 // The size has been checked, so it is safe to read the data in the ResStringPool_header
1566 ALOGW("Bad XML block: header type 0x%x in node at 0x%x has size %d, need %d\n",
2322 // because one doesn't have a language and the other has a matching
2325 // We consider the one that has the language specified a better match.
2334 // better match if the other resource has a country other than
2442 // good since we will prefer a config that has specified a
2631 // good since we will prefer a config that has specified a
2912 // This represents the "any" locale value, which has traditionally been
5202 "Res_value::data_type has changed. The range checks in this "
6704 ALOGW("ResTable_type has a
[all...]

Completed in 578 milliseconds

12