Home
last modified time | relevance | path

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

12345678910>>...68

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTileListTest.java47 assertThat(mTileList.getItemAt(0).intValue(), is(1)); in testGetItemAt()
48 assertThat(mTileList.getItemAt(1).intValue(), is(2)); in testGetItemAt()
49 assertThat(mTileList.getItemAt(2).intValue(), is(3)); in testGetItemAt()
55 assertThat(mTileList.size(), is(0)); in testSize()
57 assertThat(mTileList.size(), is(1)); in testSize()
59 assertThat(mTileList.size(), is(1)); in testSize()
61 assertThat(mTileList.size(), is(2)); in testSize()
64 assertThat(mTileList.size(), is(0)); in testSize()
73 assertThat(mTileList.getAtIndex(0).mStartPosition, is(0)); in testGetAtIndex()
74 assertThat(mTileList.getAtIndex(1).mStartPosition, is(3)); in testGetAtIndex()
[all …]
DMessageQueueTest.java25 import static org.hamcrest.CoreMatchers.is;
46 assertThat(msg.what, is(0)); in testAllArguments()
47 assertThat(msg.arg1, is(1)); in testAllArguments()
48 assertThat(msg.arg2, is(2)); in testAllArguments()
49 assertThat(msg.arg3, is(3)); in testAllArguments()
50 assertThat(msg.arg4, is(4)); in testAllArguments()
51 assertThat(msg.arg5, is(5)); in testAllArguments()
62 assertThat(msg.what, is(1)); in testSendInOrder()
63 assertThat(msg.arg1, is(2)); in testSendInOrder()
66 assertThat(msg.what, is(3)); in testSendInOrder()
[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 …]
DEGL_ANDROID_image_native_buffer.txt33 EGL 1.2 is required.
35 EGL_KHR_image_base is required.
37 This extension is written against the wording of the EGL 1.2
76 If <target> is EGL_NATIVE_BUFFER_ANDROID, <dpy> must be a valid display,
83 "* If <target> is EGL_NATIVE_BUFFER_ANDROID and <buffer> is not a
85 is generated.
87 * If <target> is EGL_NATIVE_BUFFER_ANDROID and <ctx> is not
88 EGL_NO_CONTEXT, the error EGL_BAD_CONTEXT is generated.
90 * If <target> is EGL_NATIVE_BUFFER_ANDROID and <buffer> was created
92 the EGL implementation, the error EGL_BAD_PARAMETER is generated."
DEGL_ANDROID_blob_cache.txt33 This extension is written against the wording of the EGL 1.4 Specification
47 program. The management of the cache is handled by the application (or
51 While the focus of this extension is on providing a persistent cache for
52 shader binaries, it may also be useful for caching other data. This is
56 Note that although this extension is written as if the application
57 implements the caching functionality, on the Android OS it is implemented
58 as part of the Android EGL module. This extension is not exposed to
60 application that uses EGL if it is supported by the underlying
66 * EGLsizeiANDROID is a signed integer type for representing the size of a
73 * EGLSetBlobFunc is a pointer to an application-provided function that a
[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()
90 private static Movie decodeTempStream(InputStream is) { in decodeTempStream() argument
[all …]
DBitmapFactory.java425 InputStream is, Rect pad, Options opts) { in decodeResourceStream() argument
444 return decodeStream(is, pad, opts); in decodeResourceStream()
461 InputStream is = null; in decodeResource() local
465 is = res.openRawResource(id, value); in decodeResource()
467 bm = decodeResourceStream(res, value, is, null, opts); in decodeResource()
475 if (is != null) is.close(); in decodeResource()
596 public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) { in decodeStream() argument
599 if (is == null) { in decodeStream()
607 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
608 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/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java387 public static CacheHeader readHeader(InputStream is) throws IOException { in readHeader() argument
389 int magic = readInt(is); in readHeader()
394 entry.key = readString(is); in readHeader()
395 entry.etag = readString(is); in readHeader()
399 entry.serverDate = readLong(is); in readHeader()
400 entry.lastModified = readLong(is); in readHeader()
401 entry.ttl = readLong(is); in readHeader()
402 entry.softTtl = readLong(is); in readHeader()
403 entry.responseHeaders = readStringStringMap(is); in readHeader()
484 private static int read(InputStream is) throws IOException { in read() argument
[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/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/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/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/native/opengl/tests/testViewport/
DREADME8 is alligned to the screen.
12 Note that screen is all white.
16 Expected: screen is still all white.
18 Actual: screen is blue with offset white rectangle.
24 I think the bug is that the gl.glViewport() call in onSurfaceChanged() is
27 NOTE: If a gl.glViewport call is added at the beginning of the onDrawFrame()
28 call (which means it is called before every draw), the program runs correctly.
/frameworks/base/core/tests/coretests/src/android/content/
DAssetTest.java35 public static void verifyTextAsset(InputStream is) throws IOException { in verifyTextAsset() argument
41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
51 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
55 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
59 is.close(); in verifyTextAsset()
64 InputStream is = mAssets.open("text.txt"); in testReadToEnd() local
65 verifyTextAsset(is); in testReadToEnd()
/frameworks/base/docs/html/tools/help/
Dbmgr.jd27 <p><code>bmgr</code> is a shell tool you can use to interact with the Backup Manager
50 <p><code><em>&lt;package&gt;</em></code> is the formal package name of the application you wish to
55 onBackup()} method), though there is no guarantee when it will occur. However, you can force all
72 is typically performed only when a device is first provisioned (to replicate settings and other
73 saved state from the user's previous device) and is an operation that only the system can
75 a single application to its "active" data set; that is, the application will abandon its current
76 data and revert to the last-known-good data that is held in the current backup image. You can
89 <p><code><em>&lt;package&gt;</em></code> is the formal Java-style package name of the application
92 will happen even if your application is not currently running.
102 <p>The data for a single application can be erased from the active data set on demand. This is
[all …]
/frameworks/base/tools/orientationplot/
DREADME.txt21 1. Plug in the device. Ensure that it is the only device plugged in
22 since this script is of very little brain and will get confused otherwise.
42 1. Ensure the filtering is not too aggressive. If the filter cut-off frequency is
45 is by holding the device vertically in one orientation then sharply turning
48 is too aggressive, the filter response may lag by hundreds of milliseconds.
50 2. Ensure that there is an appropriate gap between adjacent orientation angles
53 point in between the two orientations; that is the gap. The gap should be
60 of the orientations and settle into it (since it is obviously quite
63 the measured orientation angle is now within the gap between the new
67 angle (say, 45 degrees) is between the current orientation's ideal angle
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java88 InputStream is = file.getInputStream(); in testRun() local
89 is.mark(testString.length); in testRun()
90 is.read(buffer); in testRun()
95 is.reset(); in testRun()
96 is.read(buffer); in testRun()
128 InputStream is = file.getInputStream(); in readIndexOutOfBoundsException() local
131 is.read(buffer, offset, count); in readIndexOutOfBoundsException()
136 is.close(); in readIndexOutOfBoundsException()
173 InputStream is = file.getInputStream(); in testReadEOF() local
177 assertEquals(testString.length, is.read(buffer)); in testReadEOF()
[all …]

12345678910>>...68