Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java439 final int currentMode = portInfo.mUsbPortStatus.getCurrentMode(); in setPortRoles() local
457 newMode = currentMode; in setPortRoles()
462 + ", currentMode=" + UsbPort.modeToString(currentMode) in setPortRoles()
472 sim.currentMode = newMode; in setPortRoles()
477 if (currentMode != newMode) { in setPortRoles()
577 portInfo.currentMode = mode; in connectSimulatedPort()
617 portInfo.currentMode = 0; in disconnectSimulatedPort()
697 current.currentMode, in notifyPortStatusChange()
734 current.currentMode, in notifyPortStatusChange_1_1()
771 current.status_1_1.currentMode, in notifyPortStatusChange_1_2()
[all …]
/frameworks/base/core/java/android/service/controls/templates/
DTemperatureControlTemplate.java165 @Mode int currentMode, in TemperatureControlTemplate() argument
172 if (currentMode < 0 || currentMode >= NUM_MODES) { in TemperatureControlTemplate()
173 Log.e(TAG, "Invalid current mode:" + currentMode); in TemperatureControlTemplate()
176 mCurrentMode = currentMode; in TemperatureControlTemplate()
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java221 final int currentMode = (1 << Integer.numberOfTrailingZeros(current)); in enforceValidMask() local
222 current &= ~currentMode; in enforceValidMask()
223 enforceSingle.accept(currentMode); in enforceValidMask()
234 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in PrinterCapabilitiesInfo()
238 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in PrinterCapabilitiesInfo()
567 (currentMode) -> PrintAttributes.enforceValidColorMode(currentMode)); in setColorModes()
594 (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode)); in setDuplexModes()
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java235 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument
238 mCurrentMode = currentMode; in UsbPortStatus()
361 int currentMode = in.readInt();
367 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java244 Mode currentMode = getWindowManager().getDefaultDisplay().getMode(); in onCreate() local
247 if (currentMode.getModeId() == mDisplayModes[i].getModeId()) { in onCreate()
264 Mode currentMode = getWindowManager().getDefaultDisplay().getMode(); in onCreateOptionsMenu() local
265 updateDisplayMode(menuItem, currentMode); in onCreateOptionsMenu()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java230 final int currentMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded() local
234 if (currentMode == PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC && !providerConfigured) { in revertScheduleToNoneIfNeeded()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java517 final int currentMode = mAppOps.unsafeCheckOpRawNoThrow( in start() local
519 if (currentMode == AppOpsManager.MODE_DEFAULT) { in start()
552 final int currentMode = mAppOps.unsafeCheckOpRawNoThrow( in stop() local
554 if (currentMode == AppOpsManager.MODE_ALLOWED) { in stop()
/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/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java892 final int currentMode = mAppOpsManager.unsafeCheckOpRaw(AppOpsManager.opToPublicName( in setUidModeIgnoredIfNotAllowed() local
894 if (currentMode != MODE_ALLOWED) { in setUidModeIgnoredIfNotAllowed()
895 if (currentMode != MODE_IGNORED) { in setUidModeIgnoredIfNotAllowed()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java816 Display.Mode currentMode = info.getMode();
817 float numPeriods = currentMode.getRefreshRate() / frameRateHz;
822 frameRateHz = currentMode.getRefreshRate() / numPeriodsRound;
827 if (!mode.equalsExceptRefreshRate(currentMode)) {
855 currentMode.getPhysicalWidth(), currentMode.getPhysicalHeight(),
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp4547 const hal::PowerMode currentMode = display->getPowerMode(); in setPowerModeInternal() local
4548 if (mode == currentMode) { in setPowerModeInternal()
4558 if (currentMode == hal::PowerMode::OFF) { in setPowerModeInternal()
4585 if (display->isPrimary() && currentMode != hal::PowerMode::DOZE_SUSPEND) { in setPowerModeInternal()
4599 if (display->isPrimary() && currentMode == hal::PowerMode::DOZE_SUSPEND) { in setPowerModeInternal()
4942 ColorMode currentMode = display->getCompositionDisplay()->getState().colorMode; in dumpWideColorInfo() local
4944 decodeColorMode(currentMode).c_str(), currentMode); in dumpWideColorInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DTask.java5354 final int currentMode = getWindowingMode();
5379 if (currentMode == windowingMode) {
5398 if (currentMode == WINDOWING_MODE_PINNED) {
5434 if (currentMode == WINDOWING_MODE_PINNED) {
5456 if (topActivity != null && currentMode == WINDOWING_MODE_FULLSCREEN
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationPanelViewController.java828 int currentMode = navigationModeController.addListener( in NotificationPanelViewController() local
830 mIsGestureNavigation = QuickStepContract.isGesturalMode(currentMode); in NotificationPanelViewController()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java15987 final int currentMode = ConnectivitySettingsManager.getPrivateDnsMode(mContext);
15988 switch (currentMode) {