/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/ |
D | AppCompatColorStateListInflater.java | 105 int listSize = 0; in inflate() local 146 if (listSize == 0 || stateSpec.length == 0) { in inflate() 150 colorList = GrowingArrayUtils.append(colorList, listSize, color); in inflate() 151 stateSpecList = GrowingArrayUtils.append(stateSpecList, listSize, stateSpec); in inflate() 152 listSize++; in inflate() 155 int[] colors = new int[listSize]; in inflate() 156 int[][] stateSpecs = new int[listSize][]; in inflate() 157 System.arraycopy(colorList, 0, colors, 0, listSize); in inflate() 158 System.arraycopy(stateSpecList, 0, stateSpecs, 0, listSize); in inflate()
|
/frameworks/av/packages/MediaComponents/tests/src/com/android/media/ |
D | SessionPlaylistAgentTest.java | 344 int listSize = 10; in testSetPlaylist() local 346 assertEquals(listSize, mAgent.getPlaylist().size()); in testSetPlaylist() 352 int listSize = 5; in testSkipItems() local 353 List<MediaItem2> playlist = createAndSetPlaylist(listSize); in testSkipItems() 357 for (int i = listSize - 1; i >= 0; --i) { in testSkipItems() 364 for (int curPlayPos = 0; curPlayPos < listSize - 1; ++curPlayPos) { in testSkipItems() 369 assertEquals(listSize - 1, mAgent.getCurShuffledIndex()); in testSkipItems() 373 for (int curPlayPos = listSize - 1; curPlayPos > 0; --curPlayPos) { in testSkipItems() 384 assertEquals(listSize - 1, mAgent.getCurShuffledIndex()); in testSkipItems() 395 assertEquals(listSize - 1, mAgent.getCurShuffledIndex()); in testSkipItems() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 315 int listSize = 0; in inflate() local 356 if (listSize == 0 || stateSpec.length == 0) { in inflate() 364 colorList = GrowingArrayUtils.append(colorList, listSize, color); in inflate() 365 themeAttrsList = GrowingArrayUtils.append(themeAttrsList, listSize, themeAttrs); in inflate() 366 stateSpecList = GrowingArrayUtils.append(stateSpecList, listSize, stateSpec); in inflate() 367 listSize++; in inflate() 374 mThemeAttrs = new int[listSize][]; in inflate() 375 System.arraycopy(themeAttrsList, 0, mThemeAttrs, 0, listSize); in inflate() 380 mColors = new int[listSize]; in inflate() 381 mStateSpecs = new int[listSize][]; in inflate() [all …]
|
D | GradientColor.java | 333 int listSize = 0; in inflateChildElements() local 371 colorList = GrowingArrayUtils.append(colorList, listSize, color); in inflateChildElements() 372 offsetList = GrowingArrayUtils.append(offsetList, listSize, offset); in inflateChildElements() 373 themeAttrsList = GrowingArrayUtils.append(themeAttrsList, listSize, themeAttrs); in inflateChildElements() 374 listSize++; in inflateChildElements() 376 if (listSize > 0) { in inflateChildElements() 378 mItemsThemeAttrs = new int[listSize][]; in inflateChildElements() 379 System.arraycopy(themeAttrsList, 0, mItemsThemeAttrs, 0, listSize); in inflateChildElements() 384 mItemColors = new int[listSize]; in inflateChildElements() 385 mItemOffsets = new float[listSize]; in inflateChildElements() [all …]
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
D | AidGroup.java | 133 int listSize = source.readInt(); 135 if (listSize > 0) {
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_GnssLocationProvider.cpp | 455 uint32_t listSize = svStatus.numSvs; in gnssSvStatusCb() local 456 if (listSize > static_cast<uint32_t>( in gnssSvStatusCb() 458 ALOGD("Too many satellites %u. Clamps to %u.", listSize, in gnssSvStatusCb() 460 listSize = static_cast<uint32_t>(android::hardware::gnss::V1_0::GnssMax::SVS_COUNT); in gnssSvStatusCb() 463 jintArray svidWithFlagArray = env->NewIntArray(listSize); in gnssSvStatusCb() 464 jfloatArray cn0Array = env->NewFloatArray(listSize); in gnssSvStatusCb() 465 jfloatArray elevArray = env->NewFloatArray(listSize); in gnssSvStatusCb() 466 jfloatArray azimArray = env->NewFloatArray(listSize); in gnssSvStatusCb() 467 jfloatArray carrierFreqArray = env->NewFloatArray(listSize); in gnssSvStatusCb() 478 for (size_t i = 0; i < listSize; ++i) { in gnssSvStatusCb() [all …]
|
/frameworks/support/media/src/androidTest/java/androidx/media/ |
D | MediaSession2Test.java | 238 final int listSize = 5; in testCurrentDataSourceChanged() local 239 final List<MediaItem2> list = TestUtils.createPlaylist(listSize); in testCurrentDataSourceChanged() 295 final int listSize = 5; in testMediaPrepared() local 296 final List<MediaItem2> list = TestUtils.createPlaylist(listSize); in testMediaPrepared() 324 final int listSize = 5; in testBufferingStateChanged() local 325 final List<MediaItem2> list = TestUtils.createPlaylist(listSize); in testBufferingStateChanged()
|
/frameworks/support/preference/src/main/java/androidx/preference/ |
D | PreferenceGroupAdapter.java | 314 final int listSize = mPreferenceList.size(); in onPreferenceVisibilityChange() local 315 for (removalIndex = 0; removalIndex < listSize; removalIndex++) { in onPreferenceVisibilityChange()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 463 int listSize = list.size(); in makeListItems() local 464 for (int i = 0; i < listSize; i++) { in makeListItems()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 955 int listSize = pnoNetworkList.size(); in startDisconnectedPnoScan() local 957 if (listSize == 0) { in startDisconnectedPnoScan() 963 pnoSettings.networkList = new PnoSettings.PnoNetwork[listSize]; in startDisconnectedPnoScan()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 1752 size_t listSize = builder.getSize(); in DngCreator_setup() local 1753 uint8_t opcodeListBuf[listSize]; in DngCreator_setup() 1756 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_OPCODELIST2, listSize, opcodeListBuf, in DngCreator_setup() 1849 size_t listSize = builder.getSize(); in DngCreator_setup() local 1850 uint8_t opcodeListBuf[listSize]; in DngCreator_setup() 1853 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_OPCODELIST3, listSize, opcodeListBuf, in DngCreator_setup()
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorSet.java | 1441 int listSize = list.size(); 1443 for (; index < listSize; index++) {
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 331 auto listSize = property_get_int32("debug.sf.max_igbp_list_size", int32_t(defaultListSize)); in SurfaceFlinger() local 332 mMaxGraphicBufferProducerListSize = (listSize > 0) ? size_t(listSize) : defaultListSize; in SurfaceFlinger()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 3919 int listSize = list.size(); in isActivityAvailable() local 3920 for (int i = 0; i < listSize; i++) { in isActivityAvailable()
|