Home
last modified time | relevance | path

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

/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/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java114 int[] colorModes = SurfaceControl.getDisplayColorModes(displayToken); in tryConnectDisplayLocked() local
121 configs, activeConfig, allowedConfigs, colorModes, activeColorMode, in tryConnectDisplayLocked()
126 allowedConfigs, colorModes, activeColorMode)) { in tryConnectDisplayLocked()
189 int[] allowedDisplayInfos, int[] colorModes, int activeColorMode, in LocalDisplayDevice() argument
195 allowedDisplayInfos, colorModes, activeColorMode); in LocalDisplayDevice()
196 updateColorModesLocked(colorModes, activeColorMode); in LocalDisplayDevice()
214 int[] allowedDisplayInfos, int[] colorModes, int activeColorMode) { in updatePhysicalDisplayInfoLocked() argument
317 private boolean updateColorModesLocked(int[] colorModes, in updateColorModesLocked() argument
321 if (colorModes == null) return false; in updateColorModesLocked()
324 for (int colorMode: colorModes) { in updateColorModesLocked()
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp332 Vector<ColorMode> colorModes; in TEST_F() local
333 SurfaceComposerClient::getDisplayColorModes(display, &colorModes); in TEST_F()
334 for (ColorMode colorMode : colorModes) { in TEST_F()
/frameworks/base/core/java/android/view/
DDisplay.java971 int[] colorModes = mDisplayInfo.supportedColorModes; in getSupportedColorModes() local
972 return Arrays.copyOf(colorModes, colorModes.length); in getSupportedColorModes()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp838 Vector<ui::ColorMode> colorModes; in nativeGetDisplayColorModes() local
839 if (SurfaceComposerClient::getDisplayColorModes(token, &colorModes) != NO_ERROR || in nativeGetDisplayColorModes()
840 colorModes.isEmpty()) { in nativeGetDisplayColorModes()
844 jintArray colorModesArray = env->NewIntArray(colorModes.size()); in nativeGetDisplayColorModes()
850 for (size_t i = 0; i < colorModes.size(); i++) { in nativeGetDisplayColorModes()
851 colorModesArrayValues[i] = static_cast<jint>(colorModes[i]); in nativeGetDisplayColorModes()
/frameworks/native/libs/gui/
DISurfaceComposer.cpp1228 Vector<ColorMode> colorModes; in onTransact() local
1235 result = getDisplayColorModes(display, &colorModes); in onTransact()
1238 reply->writeUint32(static_cast<uint32_t>(colorModes.size())); in onTransact()
1239 for (size_t i = 0; i < colorModes.size(); ++i) { in onTransact()
1240 reply->writeInt32(static_cast<int32_t>(colorModes[i])); in onTransact()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1751 final int colorModes = capabilities.getColorModes(); in updateOptionsUi() local
1755 if (Integer.bitCount(colorModes) != mColorModeSpinnerAdapter.getCount()) { in updateOptionsUi()
1758 int remainingColorModes = colorModes; in updateOptionsUi()
1779 int remainingColorModes = colorModes; in updateOptionsUi()
1798 final int selectedColorMode = colorModes & defaultAttributes.getColorMode(); in updateOptionsUi()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2Test.cpp4278 std::vector<ColorMode> colorModes; in TEST_F() local
4281 &colorModes)); in TEST_F()
4283 EXPECT_NE(std::count(colorModes.begin(), colorModes.end(), in TEST_F()
4294 std::vector<ColorMode> colorModes; in TEST_F() local
4299 ASSERT_NO_FATAL_FAILURE(getColorModes(display, &colorModes, &err)); in TEST_F()