/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerWrapContentWithAspectRatioTest.java | 147 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 …]
|
D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 154 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/ |
D | TileListTest.java | 50 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 …]
|
D | MessageQueueTest.java | 26 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/ |
D | EGL_ANDROID_native_fence_sync.txt | 33 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 …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_dequantize_sample.cpp | 187 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 …]
|
D | pvmp3_huffman_decoding.cpp | 123 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 …]
|
D | pvmp3_huffman_parsing.cpp | 125 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/ |
D | Movie.java | 51 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 …]
|
/frameworks/support/transition/tests/src/android/support/transition/ |
D | TransitionTest.java | 19 import static org.hamcrest.CoreMatchers.is; 44 assertThat(transition.setDuration(duration), is(sameInstance(transition))); in testDuration() 45 assertThat(transition.getDuration(), is(duration)); in testDuration() 52 assertThat(transition.setInterpolator(interpolator), is(sameInstance(transition))); in testInterpolator() 53 assertThat(transition.getInterpolator(), is(interpolator)); in testInterpolator() 60 assertThat(transition.setStartDelay(startDelay), is(sameInstance(transition))); in testStartDelay() 61 assertThat(transition.getStartDelay(), is(startDelay)); in testStartDelay() 67 assertThat(transition.addTarget(R.id.view0), is(sameInstance(transition))); in testTargetIds() 68 assertThat(transition.addTarget(R.id.view1), is(sameInstance(transition))); in testTargetIds() 70 assertThat(targetIds.size(), is(2)); in testTargetIds() [all …]
|
D | SceneTest.java | 27 import static org.hamcrest.CoreMatchers.is; 38 assertThat(scene.getSceneRoot(), is(sameInstance(root))); in testGetSceneRoot() 53 assertThat(enterAction.wasCalled(), is(true)); in testSceneWithViewGroup() 54 assertThat(exitAction.wasCalled(), is(false)); in testSceneWithViewGroup() 55 assertThat(root.getChildCount(), is(1)); in testSceneWithViewGroup() 56 assertThat(root.getChildAt(0), is((View) layout)); in testSceneWithViewGroup() 58 assertThat(exitAction.wasCalled(), is(true)); in testSceneWithViewGroup() 73 assertThat(enterAction.wasCalled(), is(true)); in testSceneWithView() 74 assertThat(exitAction.wasCalled(), is(false)); in testSceneWithView() 75 assertThat(root.getChildCount(), is(1)); in testSceneWithView() [all …]
|
D | TransitionManagerTest.java | 19 import static org.hamcrest.CoreMatchers.is; 49 assertThat(mScenes[0], is(notNullValue())); in testSetup() 50 assertThat(mScenes[1], is(notNullValue())); in testSetup() 58 assertThat(runnable.wasCalled(), is(false)); in testGo_enterAction() 60 assertThat(runnable.wasCalled(), is(true)); in testGo_enterAction() 72 assertThat(enter.wasCalled(), is(false)); in testGo_exitAction() 73 assertThat(exit.wasCalled(), is(false)); in testGo_exitAction() 75 assertThat(enter.wasCalled(), is(true)); in testGo_exitAction() 76 assertThat(exit.wasCalled(), is(false)); in testGo_exitAction() 84 assertThat(exit.wasCalled(), is(true)); in testGo_exitAction() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | MacAuthenticatedInputStreamTest.java | 73 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 …]
|
D | LimitedLengthInputStreamTest.java | 42 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/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
D | BitmapHelper.java | 42 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { in scaleBitmap() argument 50 return BitmapFactory.decodeStream(is, null, bmOptions); in scaleBitmap() 53 public static int findScaleFactor(int targetW, int targetH, InputStream is) { in findScaleFactor() argument 57 BitmapFactory.decodeStream(is, null, bmOptions); in findScaleFactor() 69 BufferedInputStream is = null; in fetchAndRescaleBitmap() local 72 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchAndRescaleBitmap() 73 is.mark(MAX_READ_LIMIT_PER_IMG); in fetchAndRescaleBitmap() 74 int scaleFactor = findScaleFactor(width, height, is); in fetchAndRescaleBitmap() 77 is.reset(); in fetchAndRescaleBitmap() 78 return scaleBitmap(scaleFactor, is); in fetchAndRescaleBitmap() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | IntentSenderTest.java | 33 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/ |
D | pixel_format_f32.rsh | 4 // 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 …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagMips.inc | 4 "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/ |
D | DiskBasedCache.java | 388 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/ |
D | hyb_file_format.md | 3 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/base/obex/javax/obex/ |
D | ObexPacket.java | 39 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/ |
D | Doxyfile | 6 # 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/ |
D | process-lifecycle.jd | 5 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/ |
D | BitmapRegionTileSource.java | 71 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/ |
D | README.txt | 25 - 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 …]
|