Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 1836) sorted by relevance

12345678910>>...74

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerWrapContentWithAspectRatioTest.java147 MeasureSpecMatcher.is(borders[1] - borders[0], AT_MOST)); in testChildWithMultipleSpans()
149 MeasureSpecMatcher.is(borders[3] - borders[1], AT_MOST)); in testChildWithMultipleSpans()
153 MeasureSpecMatcher.is(15, EXACTLY)); in testChildWithMultipleSpans()
158 assertThat(behavior1.measureSpecs.size(), is(2)); in testChildWithMultipleSpans()
159 assertThat(behavior2.measureSpecs.size(), is(1)); in testChildWithMultipleSpans()
162 assertThat(behavior2.measureSpecs.size(), is(1)); in testChildWithMultipleSpans()
163 assertThat(behavior1.measureSpecs.size(), is(3)); in testChildWithMultipleSpans()
165 MeasureSpecMatcher.is(15, EXACTLY)); in testChildWithMultipleSpans()
167 MeasureSpecMatcher.is(10, EXACTLY)); in testChildWithMultipleSpans()
170 assertThat(behavior1.measureSpecs.size(), is(2)); in testChildWithMultipleSpans()
[all …]
DLinearLayoutManagerWrapContentWithAspectRatioTest.java154 CoreMatchers.is(10)); in wrapContentAffectsOtherOrientation()
156 CoreMatchers.is(behavior1.getSecondary(10))); in wrapContentAffectsOtherOrientation()
160 CoreMatchers.is(15)); in wrapContentAffectsOtherOrientation()
162 CoreMatchers.is(behavior2.getSecondary(15))); in wrapContentAffectsOtherOrientation()
166 CoreMatchers.is(15)); in wrapContentAffectsOtherOrientation()
168 CoreMatchers.is(behavior3.getSecondary(15))); in wrapContentAffectsOtherOrientation()
171 CoreMatchers.is(1)); in wrapContentAffectsOtherOrientation()
174 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED)); in wrapContentAffectsOtherOrientation()
177 MeasureSpecMatcher.is(parentDim, View.MeasureSpec.AT_MOST)); in wrapContentAffectsOtherOrientation()
180 assertThat("it should be measured once", behavior2.measureSpecs.size(), CoreMatchers.is(1)); in wrapContentAffectsOtherOrientation()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTileListTest.java50 assertThat(mTileList.getItemAt(0), is(1)); in getItemAt()
51 assertThat(mTileList.getItemAt(1), is(2)); in getItemAt()
52 assertThat(mTileList.getItemAt(2), is(3)); in getItemAt()
58 assertThat(mTileList.size(), is(0)); in size()
60 assertThat(mTileList.size(), is(1)); in size()
62 assertThat(mTileList.size(), is(1)); in size()
64 assertThat(mTileList.size(), is(2)); in size()
67 assertThat(mTileList.size(), is(0)); in size()
76 assertThat(mTileList.getAtIndex(0).mStartPosition, is(0)); in getAtIndex()
77 assertThat(mTileList.getAtIndex(1).mStartPosition, is(3)); in getAtIndex()
[all …]
DMessageQueueTest.java26 import static org.hamcrest.CoreMatchers.is;
48 assertThat(msg.what, is(0)); in allArguments()
49 assertThat(msg.arg1, is(1)); in allArguments()
50 assertThat(msg.arg2, is(2)); in allArguments()
51 assertThat(msg.arg3, is(3)); in allArguments()
52 assertThat(msg.arg4, is(4)); in allArguments()
53 assertThat(msg.arg5, is(5)); in allArguments()
64 assertThat(msg.what, is(1)); in sendInOrder()
65 assertThat(msg.arg1, is(2)); in sendInOrder()
68 assertThat(msg.what, is(3)); in sendInOrder()
[all …]
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt33 This extension is written against the wording of the EGL 1.2 Specification
35 EGL_KHR_fence_sync is required.
40 associated with a native synchronization fence object that is referenced
65 in <value> when eglGetSyncAttribKHR is called with <attribute>
79 Returned in <value> when eglGetSyncAttribKHR is called with <attribute>
89 "If <type> is EGL_SYNC_NATIVE_FENCE_ANDROID, an EGL native fence sync
90 object is created. In this case the EGL_SYNC_NATIVE_FENCE_FD_ANDROID
91 attribute may optionally be specified. If this attribute is specified, it
105 If the EGL_SYNC_NATIVE_FENCE_FD_ANDROID attribute is not
106 EGL_NO_NATIVE_FENCE_FD_ANDROID then the EGL_SYNC_CONDITION_KHR attribute is
[all …]
DEGL_ANDROID_presentation_time.txt35 This extension is written against the wording of the EGL 1.4 Specification
39 Often when rendering a sequence of images, there is some time at which each
40 image is intended to be presented to the viewer. This extension allows
47 * EGLnsecsANDROID is a signed integer type for representing a time in
80 an absolute time is needed such as displaying the color buffer on a
82 clock. For situations in which an absolute time is not needed such as
90 visible, but if the color buffer is subsequently posted to a native window
94 If the surface presentation time is successfully set, EGL_TRUE is
95 returned. Otherwise EGL_FALSE is returned and an appropriate error is
96 set. If <dpy> is not the name of a valid, initialized EGLDisplay, an
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_dequantize_sample.cpp187 void pvmp3_dequantize_sample(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], in pvmp3_dequantize_sample()
296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss]))); in pvmp3_dequantize_sample()
305 is[ss] = (tmp >> temp); in pvmp3_dequantize_sample()
309 is[ss] = 0; in pvmp3_dequantize_sample()
314 is[ss] = (tmp << global_gain); in pvmp3_dequantize_sample()
352 int32 tmp = is[ss]; in pvmp3_dequantize_sample()
356 is[ss] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample()
358 tmp = is[ss+1]; in pvmp3_dequantize_sample()
362 is[ss+1] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample()
368 pv_memset(&is[ mp3_sfBandIndex[sfreq].l[cb]], in pvmp3_dequantize_sample()
[all …]
Dpvmp3_huffman_decoding.cpp123 int32 *is, in pvmp3_huffman_quad_decoding() argument
180 *is = v; in pvmp3_huffman_quad_decoding()
181 *(is + 1) = w; in pvmp3_huffman_quad_decoding()
182 *(is + 2) = x; in pvmp3_huffman_quad_decoding()
183 *(is + 3) = y; in pvmp3_huffman_quad_decoding()
190 int32 *is, in pvmp3_huffman_pair_decoding() argument
228 *is = x; in pvmp3_huffman_pair_decoding()
229 *(is + 1) = y; in pvmp3_huffman_pair_decoding()
233 *is = 0; in pvmp3_huffman_pair_decoding()
234 *(is + 1) = 0; in pvmp3_huffman_pair_decoding()
[all …]
Dpvmp3_huffman_parsing.cpp125 int32 pvmp3_huffman_parsing(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], in pvmp3_huffman_parsing()
197 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
212 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
227 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
243 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
257 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
274 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
288 pvmp3_huffman_quad_decoding(h, &is[i], pMainData); in pvmp3_huffman_parsing()
295 pvmp3_huffman_quad_decoding(h, &is[i], pMainData); in pvmp3_huffman_parsing()
301 is[i] = 0; in pvmp3_huffman_parsing()
[all …]
/frameworks/base/graphics/java/android/graphics/
DMovie.java51 public static Movie decodeStream(InputStream is) { in decodeStream() argument
52 if (is == null) { in decodeStream()
55 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
60 return nativeDecodeStream(is); in decodeStream()
64 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream() argument
71 InputStream is; in decodeFile() local
73 is = new FileInputStream(pathName); in decodeFile()
78 return decodeTempStream(is); in decodeFile()
91 private static Movie decodeTempStream(InputStream is) { in decodeTempStream() argument
[all …]
DBitmapFactory.java436 InputStream is, Rect pad, Options opts) { in decodeResourceStream() argument
455 return decodeStream(is, pad, opts); in decodeResourceStream()
472 InputStream is = null; in decodeResource() local
476 is = res.openRawResource(id, value); in decodeResource()
478 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource()
486 if (is != null) is.close(); in decodeResource()
607 public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) { in decodeStream() argument
610 if (is == null) { in decodeStream()
618 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
619 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java73 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_Success() local
75 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_Success()
77 assertTrue(is.isTagEqual(TEST_STRING_1_MAC)); in testString1Authenticate_Success()
84 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_WrongTag_Failure() local
86 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_WrongTag_Failure()
88 assertFalse(is.isTagEqual(TEST_STRING_1_MAC_BROKEN)); in testString1Authenticate_WrongTag_Failure()
95 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_NullTag_Failure() local
97 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_NullTag_Failure()
99 assertFalse(is.isTagEqual(null)); in testString1Authenticate_NullTag_Failure()
106 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_ReadSingleByte_Success() local
[all …]
DLimitedLengthInputStreamTest.java42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure() local
52 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure() local
62 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure() local
72 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail() local
88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1() local
89 assertEquals(length, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
94 assertEquals(-1, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
123 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success() local
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1() local
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DIntentSenderTest.java33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted() local
35 is.send(); in testRegisteredReceivePermissionGranted()
37 is.cancel(); in testRegisteredReceivePermissionGranted()
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testRegisteredReceivePermissionDenied() local
55 is.send(Activity.RESULT_CANCELED, finish, null); in testRegisteredReceivePermissionDenied()
57 is.cancel(); in testRegisteredReceivePermissionDenied()
62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted() local
64 is.send(); in testLocalReceivePermissionGranted()
66 is.cancel(); in testLocalReceivePermissionGranted()
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testLocalReceivePermissionDenied() local
[all …]
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
Dpixel_format_f32.rsh4 // FocusPixel is the pixel format in the input image, which serves the
8 // value (actual_depth). The actual_depth field is never changed once set.
11 // whether or not a pixel is on the current target layer. For pixels that are
12 // active or not active but "close enough" to an active pixel, a matte value is
14 // is no larger than dilation_radius defined in LayerInfo_t in "layer_info.rsh".
16 // 3. After each layer is processed from back-most layer to focal depth layer,
17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in
20 // 4. After each layer is processed from front-most layer to focal depth layer,
21 // the color (red, green, blue) of FocusPixel is *not* changed.
23 // 5. After each layer is processed in either of the two passes, the fields
[all …]
DXmpDepthDecode.java55 public XmpDepthDecode(InputStream is) throws IOException { in XmpDepthDecode() argument
56 XMPMeta meta = read(is, false); in XmpDepthDecode()
133 static XMPMeta read(InputStream is, boolean skipExtendedContent) { in read() argument
134 List<Section> sections = parse(is, true, skipExtendedContent); in read()
196 private static List<Section> parse(InputStream is, boolean readMetaOnly, in parse() argument
199 if (is == null) { in parse()
204 if (is.read() != 0xff || is.read() != M_SOI) { in parse()
208 while ((c = is.read()) != -1) { in parse()
213 while ((c = is.read()) == 0xff) { in parse()
226 section.data = new byte[is.available()]; in parse()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagMips.inc4 "target '%0' is incompatible with '%1' in %2",
5 "target '%0' is incompatible with '%1' in %2")
8 "target arch '%0' is inconsist with the '%1' in %2",
9 "target arch '%0' is inconsist with the '%1' in %2")
20 "target ABI is incompatible with ABI in %0",
21 "target ABI is incompatible with ABI in %0")
24 "target -mnan=%0 flag is incompatible with -mnan=%1 in %2",
25 "target -mnan=%0 flag is incompatible with -mnan=%1 in %2")
28 "target -mfp flag is incompatible with -mfp in %0",
29 "target -mfp flag is incompatible with -mfp in %0")
[all …]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java388 public static CacheHeader readHeader(InputStream is) throws IOException { in readHeader() argument
390 int magic = readInt(is); in readHeader()
395 entry.key = readString(is); in readHeader()
396 entry.etag = readString(is); in readHeader()
400 entry.serverDate = readLong(is); in readHeader()
401 entry.lastModified = readLong(is); in readHeader()
402 entry.ttl = readLong(is); in readHeader()
403 entry.softTtl = readLong(is); in readHeader()
404 entry.responseHeaders = readStringStringMap(is); in readHeader()
485 private static int read(InputStream is) throws IOException { in read() argument
[all …]
/frameworks/minikin/doc/
Dhyb_file_format.md3 The hyb file format is how hyphenation patterns are stored in the system image.
7 * Concise (system image space is at a premium)
12 It is _not_ intended as an interchange format, so there is no attempt to make the format
24 case folding. It is effectively a map from Unicode code point to a small integer.
26 The second section contains the trie in packed form. It is an array of 3-tuples, packed
28 array, and the pattern field in the tuple is the pattern for that node. Further, each edge
30 represent the label and destination of the edge. The packing strategy is as in
34 The trie representation is similar but not identical to the "double-array trie".
35 The fundamental operation of lookup of the edge from `s` to `t` with label `c` is
38 The third section contains the pattern strings. This section is in two parts: first,
[all …]
/frameworks/wilhelm/doc/
DDoxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
32 # if some version control system is used.
36 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
38 # If a relative path is entered, it will be relative to the location
43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
52 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
53 # documentation generated by doxygen is written. Doxygen will use this
[all …]
/frameworks/base/docs/html/guide/topics/processes/
Dprocess-lifecycle.jd5 This process is created for the application when some of its code needs to
6 be run, and will remain running until it is no longer needed <em>and</em>
9 <p>An unusual and fundamental feature of Android is that an application process's
10 lifetime is <em>not</em> directly controlled by the application itself.
11 Instead, it is determined by the system through a combination of the parts of the application
13 and how much overall memory is available in the system.</p>
15 <p>It is important that
20 result in the system killing the application's process while it is doing
23 <p>A common example of a process life-cycle bug is a
32 is to start a {@link android.app.Service} from the BroadcastReceiver, so the
[all …]
/frameworks/base/tools/layoutlib/create/
DREADME.txt25 - some classes need to be overridden, for example all the drawing code that is replaced by Java 2D
35 - generates a modified JAR file that is suitable for the Android plugin for Eclipse to perform
38 The ASM library is used to do the bytecode modification using its visitor pattern API.
40 The layoutlib_create is *NOT* generic. There is no configuration file. Instead all the configuration
41 is done in the main() method and the CreateInfo structure is expected to change with the Android
43 dependent is also present elsewhere in code.
45 The resulting JAR is used by layoutlib_bridge (a.k.a. "the bridge"), also part of the platform, that
61 The goal of the analyzer is to create a graph of all the classes from the input JAR with their
64 To do that, the analyzer is created with a list of base classes to keep -- everything that derives
65 from these is kept. Currently the one such class is android.view.View: since we want to render
[all …]
/frameworks/base/obex/javax/obex/
DObexPacket.java39 public static ObexPacket read(InputStream is) throws IOException { in read() argument
40 int headerId = is.read(); in read()
41 return read(headerId, is); in read()
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { in read() argument
53 int length = is.read(); in read()
54 length = (length << 8) + is.read(); in read()
63 bytesReceived = is.read(temp); in read()
65 bytesReceived += is.read(temp, bytesReceived, temp.length - bytesReceived); in read()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java71 InputStream is, boolean isShareable) { in newInstance() argument
73 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); in newInstance()
108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance() argument
109 Bitmap b = BitmapFactory.decodeStream(is); in newInstance()
267 InputStream is = mContext.getContentResolver().openInputStream(mUri); in regenerateInputStream() local
268 return new BufferedInputStream(is); in regenerateInputStream()
273 InputStream is = regenerateInputStream(); in loadBitmapRegionDecoder() local
275 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder()
276 Utils.closeSilently(is); in loadBitmapRegionDecoder()
278 is = regenerateInputStream(); in loadBitmapRegionDecoder()
[all …]
/frameworks/native/docs/
DDoxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or sequence of words) that should
33 # if some version control system is used.
43 # With the PROJECT_LOGO tag one can specify an logo or icon that is
50 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
52 # If a relative path is entered, it will be relative to the location
57 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
66 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
[all …]

12345678910>>...74