/frameworks/base/core/java/android/print/ |
D | PrinterCapabilitiesInfo.java | 334 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/ |
D | LocalDisplayAdapter.java | 114 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/ |
D | Credentials_test.cpp | 332 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/ |
D | Display.java | 971 int[] colorModes = mDisplayInfo.supportedColorModes; in getSupportedColorModes() local 972 return Arrays.copyOf(colorModes, colorModes.length); in getSupportedColorModes()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | ColorDisplayService.java | 280 final int[] colorModes = res.getIntArray(R.array.config_displayCompositionColorModes); in setUpDisplayCompositionColorSpaces() local 281 if (colorModes == null) { in setUpDisplayCompositionColorSpaces() 290 if (colorModes.length != compSpaces.length) { in setUpDisplayCompositionColorSpaces() 295 mColorModeCompositionColorSpaces = new SparseIntArray(colorModes.length); in setUpDisplayCompositionColorSpaces() 296 for (int i = 0; i < colorModes.length; i++) { in setUpDisplayCompositionColorSpaces() 297 mColorModeCompositionColorSpaces.put(colorModes[i], compSpaces[i]); in setUpDisplayCompositionColorSpaces()
|
/frameworks/base/core/jni/ |
D | android_view_SurfaceControl.cpp | 820 Vector<ui::ColorMode> colorModes; in nativeGetDisplayColorModes() local 821 if (SurfaceComposerClient::getDisplayColorModes(token, &colorModes) != NO_ERROR || in nativeGetDisplayColorModes() 822 colorModes.isEmpty()) { in nativeGetDisplayColorModes() 826 jintArray colorModesArray = env->NewIntArray(colorModes.size()); in nativeGetDisplayColorModes() 832 for (size_t i = 0; i < colorModes.size(); i++) { in nativeGetDisplayColorModes() 833 colorModesArrayValues[i] = static_cast<jint>(colorModes[i]); in nativeGetDisplayColorModes()
|
/frameworks/native/libs/gui/ |
D | ISurfaceComposer.cpp | 1232 Vector<ColorMode> colorModes; in onTransact() local 1239 result = getDisplayColorModes(display, &colorModes); in onTransact() 1242 reply->writeUint32(static_cast<uint32_t>(colorModes.size())); in onTransact() 1243 for (size_t i = 0; i < colorModes.size(); ++i) { in onTransact() 1244 reply->writeInt32(static_cast<int32_t>(colorModes[i])); in onTransact()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 1751 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/ |
D | Hwc2Test.cpp | 4278 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()
|