Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java386 final int currentMode = portInfo.mUsbPortStatus.getCurrentMode(); in setPortRoles() local
404 newMode = currentMode; in setPortRoles()
409 + ", currentMode=" + UsbPort.modeToString(currentMode) in setPortRoles()
419 sim.currentMode = newMode; in setPortRoles()
424 if (currentMode != newMode) { in setPortRoles()
524 portInfo.currentMode = mode; in connectSimulatedPort()
564 portInfo.currentMode = 0; in disconnectSimulatedPort()
641 current.currentMode, in notifyPortStatusChange()
678 current.currentMode, in notifyPortStatusChange_1_1()
715 current.status_1_1.currentMode, in notifyPortStatusChange_1_2()
[all …]
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java219 final int currentMode = (1 << Integer.numberOfTrailingZeros(current)); in enforceValidMask() local
220 current &= ~currentMode; in enforceValidMask()
221 enforceSingle.accept(currentMode); in enforceValidMask()
232 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in PrinterCapabilitiesInfo()
236 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in PrinterCapabilitiesInfo()
565 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in setColorModes()
592 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in setDuplexModes()
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java234 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument
237 mCurrentMode = currentMode; in UsbPortStatus()
359 int currentMode = in.readInt();
365 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java241 Mode currentMode = getWindowManager().getDefaultDisplay().getMode(); in onCreate() local
244 if (currentMode.getModeId() == mDisplayModes[i].getModeId()) { in onCreate()
261 Mode currentMode = getWindowManager().getDefaultDisplay().getMode(); in onCreateOptionsMenu() local
262 updateDisplayMode(menuItem, currentMode); in onCreateOptionsMenu()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java228 final int currentMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded() local
232 if (currentMode == PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC && !providerConfigured) { in revertScheduleToNoneIfNeeded()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java771 final int currentMode = mAppOpsManager.unsafeCheckOpRaw(AppOpsManager in setUidMode() local
774 if (currentMode != mode) { in setUidMode()
781 final int currentMode = mAppOpsManager.unsafeCheckOpRaw(AppOpsManager in setUidModeIfMode() local
784 if (currentMode == requiredModeBefore) { in setUidModeIfMode()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java271 PorterDuff.Mode currentMode = porterDuffColorFilter.getMode(); in shouldUpdateColorFilter() local
272 return currentColor != color || currentMode != mode; in shouldUpdateColorFilter()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp4418 int currentMode = display->getPowerMode(); in setPowerModeInternal() local
4419 if (mode == currentMode) { in setPowerModeInternal()
4429 if (currentMode == HWC_POWER_MODE_OFF) { in setPowerModeInternal()
4453 if (display->isPrimary() && currentMode != HWC_POWER_MODE_DOZE_SUSPEND) { in setPowerModeInternal()
4465 if (display->isPrimary() && currentMode == HWC_POWER_MODE_DOZE_SUSPEND) { in setPowerModeInternal()
4792 ColorMode currentMode = display->getCompositionDisplay()->getState().colorMode; in dumpWideColorInfo() local
4794 decodeColorMode(currentMode).c_str(), currentMode); in dumpWideColorInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStack.java709 final int currentMode = getWindowingMode(); in setWindowingModeInSurfaceTransaction() local
716 && isTransientWindowingMode(currentMode)) { in setWindowingModeInSurfaceTransaction()
759 if (currentMode == windowingMode) { in setWindowingModeInSurfaceTransaction()
804 if (windowingMode == WINDOWING_MODE_PINNED || currentMode == WINDOWING_MODE_PINNED) { in setWindowingModeInSurfaceTransaction()
820 if (isTransientWindowingMode(windowingMode) && !isTransientWindowingMode(currentMode)) { in setWindowingModeInSurfaceTransaction()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java14185 String currentMode = mInjector.settingsGlobalGetString(PRIVATE_DNS_MODE); in getGlobalPrivateDnsMode() local
14186 if (currentMode == null) { in getGlobalPrivateDnsMode()
14187 currentMode = ConnectivityManager.PRIVATE_DNS_DEFAULT_MODE_FALLBACK; in getGlobalPrivateDnsMode()
14189 switch (currentMode) { in getGlobalPrivateDnsMode()