Home
last modified time | relevance | path

Searched refs:colorModes (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java114 int[] colorModes = SurfaceControl.getDisplayColorModes(displayToken); in tryConnectDisplayLocked() local
119 configs, activeConfig, colorModes, activeColorMode); in tryConnectDisplayLocked()
123 colorModes, activeColorMode)) { in tryConnectDisplayLocked()
178 int[] colorModes, int activeColorMode) { in LocalDisplayDevice() argument
182 colorModes, activeColorMode); in LocalDisplayDevice()
183 updateColorModesLocked(colorModes, activeColorMode); in LocalDisplayDevice()
200 int[] colorModes, int activeColorMode) { in updatePhysicalDisplayInfoLocked() argument
284 private boolean updateColorModesLocked(int[] colorModes, in updateColorModesLocked() argument
288 if (colorModes == null) return false; in updateColorModesLocked()
291 for (int colorMode: colorModes) { in updateColorModesLocked()
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java334 int colorModes = mColorModes; in colorModesToString() local
335 while (colorModes != 0) { in colorModesToString()
336 final int colorMode = 1 << Integer.numberOfTrailingZeros(colorModes); in colorModesToString()
337 colorModes &= ~colorMode; in colorModesToString()
562 public @NonNull Builder setColorModes(@ColorMode int colorModes, in setColorModes() argument
564 enforceValidMask(colorModes, in setColorModes()
567 mPrototype.mColorModes = colorModes; in setColorModes()
/frameworks/base/core/java/android/view/
DDisplay.java882 int[] colorModes = mDisplayInfo.supportedColorModes; in getSupportedColorModes() local
883 return Arrays.copyOf(colorModes, colorModes.length); in getSupportedColorModes()
/frameworks/native/libs/gui/
DISurfaceComposer.cpp660 Vector<android_color_mode_t> colorModes; in onTransact() local
667 result = getDisplayColorModes(display, &colorModes); in onTransact()
670 reply->writeUint32(static_cast<uint32_t>(colorModes.size())); in onTransact()
671 for (size_t i = 0; i < colorModes.size(); ++i) { in onTransact()
672 reply->writeInt32(colorModes[i]); in onTransact()
DSurface.cpp326 Vector<android_color_mode_t> colorModes; in getWideColorSupport() local
328 composerService()->getDisplayColorModes(display, &colorModes); in getWideColorSupport()
338 for (android_color_mode_t colorMode : colorModes) { in getWideColorSupport()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp527 Vector<android_color_mode_t> colorModes; in nativeGetDisplayColorModes() local
528 if (SurfaceComposerClient::getDisplayColorModes(token, &colorModes) != NO_ERROR || in nativeGetDisplayColorModes()
529 colorModes.isEmpty()) { in nativeGetDisplayColorModes()
533 jintArray colorModesArray = env->NewIntArray(colorModes.size()); in nativeGetDisplayColorModes()
539 for (size_t i = 0; i < colorModes.size(); i++) { in nativeGetDisplayColorModes()
540 colorModesArrayValues[i] = static_cast<jint>(colorModes[i]); in nativeGetDisplayColorModes()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1714 final int colorModes = capabilities.getColorModes(); in updateOptionsUi() local
1718 if (Integer.bitCount(colorModes) != mColorModeSpinnerAdapter.getCount()) { in updateOptionsUi()
1721 int remainingColorModes = colorModes; in updateOptionsUi()
1742 int remainingColorModes = colorModes; in updateOptionsUi()
1761 final int selectedColorMode = colorModes & defaultAttributes.getColorMode(); in updateOptionsUi()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2Test.cpp4132 std::vector<android_color_mode_t> colorModes; in TEST_F() local
4135 &colorModes)); in TEST_F()
4137 EXPECT_NE(std::count(colorModes.begin(), colorModes.end(), in TEST_F()
4148 std::vector<android_color_mode_t> colorModes; in TEST_F() local
4153 ASSERT_NO_FATAL_FAILURE(getColorModes(display, &colorModes, &err)); in TEST_F()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger_hwc1.cpp841 std::set<android_color_mode_t> colorModes; in getDisplayColorModes() local
843 colorModes.insert(hwConfig.colorMode); in getDisplayColorModes()
847 std::copy(colorModes.cbegin(), colorModes.cend(), std::back_inserter(*outColorModes)); in getDisplayColorModes()
/frameworks/native/libs/hwc2on1adapter/
DHWC2On1Adapter.cpp1654 std::set<android_color_mode_t> colorModes; in getColorModes() local
1656 colorModes.emplace(idPair.first); in getColorModes()
1658 return colorModes; in getColorModes()