/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | VoteSummary.java | 17 package com.android.server.display.mode; 128 for (Display.Mode mode : modes) { in filterModes() 129 if (!validateRefreshRatesSupported(mode)) { in filterModes() 132 if (!validateModeSupported(mode)) { in filterModes() 135 if (!validateModeSize(mode)) { in filterModes() 138 if (!validateModeWithinPhysicalRefreshRange(mode)) { in filterModes() 141 if (!validateModeWithinRenderRefreshRange(mode)) { in filterModes() 144 if (!validateModeRenderRateAchievable(mode)) { in filterModes() 147 availableModes.add(mode); in filterModes() 148 if (equalsWithinFloatTolerance(mode.getRefreshRate(), appRequestBaseModeRefreshRate)) { in filterModes() [all …]
|
D | SyntheticModeManager.java | 17 package com.android.server.display.mode; 59 for (Display.Mode mode : modes) { in createAppSupportedModes() 60 if (mode.getRefreshRate() > SYNTHETIC_MODE_HIGH_BOUNDARY) { in createAppSupportedModes() 61 appSupportedModes.add(mode); in createAppSupportedModes() 63 if (mode.getModeId() > nextModeId) { in createAppSupportedModes() 64 nextModeId = mode.getModeId(); in createAppSupportedModes() 67 float divisor = mode.getVsyncRate() / SYNTHETIC_MODE_REFRESH_RATE; in createAppSupportedModes() 70 sizes.put(new Size(mode.getPhysicalWidth(), mode.getPhysicalHeight()), in createAppSupportedModes() 71 mode.getSupportedHdrTypes()); in createAppSupportedModes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarTransitions.java | 57 private float getStatusIconsAlphaFor(int mode) { in getStatusIconsAlphaFor() argument 58 return getDefaultAlphaFor(mode); in getStatusIconsAlphaFor() 61 private float getStartSideAlphaFor(int mode) { in getStartSideAlphaFor() argument 65 return getIconAlphaBasedOnOpacity(mode); in getStartSideAlphaFor() 67 return getDefaultAlphaFor(mode); in getStartSideAlphaFor() 70 private float getBatteryClockAlpha(int mode) { in getBatteryClockAlpha() argument 71 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_BATTERY_CLOCK in getBatteryClockAlpha() 72 : getIconAlphaBasedOnOpacity(mode); in getBatteryClockAlpha() 75 private float getDefaultAlphaFor(int mode) { in getDefaultAlphaFor() argument 76 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_NON_BATTERY_CLOCK in getDefaultAlphaFor() [all …]
|
D | BarTransitions.java | 110 public void transitionTo(int mode, boolean animate) { in transitionTo() argument 111 if (isAlwaysOpaque() && (mode == MODE_SEMI_TRANSPARENT || mode == MODE_TRANSLUCENT in transitionTo() 112 || mode == MODE_TRANSPARENT)) { in transitionTo() 113 mode = MODE_OPAQUE; in transitionTo() 115 if (isAlwaysOpaque() && (mode == MODE_LIGHTS_OUT_TRANSPARENT)) { in transitionTo() 116 mode = MODE_LIGHTS_OUT; in transitionTo() 118 if (mMode == mode) return; in transitionTo() 120 mMode = mode; in transitionTo() 122 modeToString(oldMode), modeToString(mode), animate)); in transitionTo() 136 public static String modeToString(int mode) { in modeToString() argument [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | PhoneWindowActionModeTest.java | 63 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testStartActionModeWithCallback() local 66 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testStartActionModeWithCallback() 128 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testWindowCallbackModesLifecycleIsNotHandled() local 131 assertNotNull(mode); in testWindowCallbackModesLifecycleIsNotHandled() 132 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testWindowCallbackModesLifecycleIsNotHandled() 141 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testCreatedPrimaryModeLifecycleIsHandled() local 144 assertNotNull(mode); in testCreatedPrimaryModeLifecycleIsHandled() 145 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testCreatedPrimaryModeLifecycleIsHandled() 154 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testCreatedFloatingModeLifecycleIsHandled() local 157 assertNotNull(mode); in testCreatedFloatingModeLifecycleIsHandled() [all …]
|
/frameworks/av/media/module/codecs/amrnb/dec/src/ |
D | dec_amr.cpp | 395 Word16 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) in Decoder_amr_reset() argument 411 if (mode != MRDTX) in Decoder_amr_reset() 425 if (mode != MRDTX) in Decoder_amr_reset() 447 if (mode != MRDTX) in Decoder_amr_reset() 461 if (mode != MRDTX) in Decoder_amr_reset() 469 if (mode != MRDTX) in Decoder_amr_reset() 477 if (mode != MRDTX) in Decoder_amr_reset() 1335 enum Mode mode, /* i : AMR mode */ in Decoder_amr() argument 1416 mode, in Decoder_amr() 1443 prmno[mode], in Decoder_amr() [all …]
|
D | amrdecode.cpp | 397 enum Mode mode = (enum Mode)MR475; in AMRDecode() local 437 mode = (enum Mode) frame_type; in AMRDecode() 450 mode = (enum Mode) modeStore; in AMRDecode() 469 mode = decoder_state->prev_mode; in AMRDecode() 502 mode = (enum Mode) * ets_word_ptr; in AMRDecode() 507 mode = decoder_state->prev_mode; in AMRDecode() 526 GSMFrameDecode(decoder_state, mode, dec_ets_input_bfr, rx_type, in AMRDecode() 531 Speech_Decode_Frame(decoder_state, mode, dec_ets_input_bfr, rx_type, in AMRDecode() 537 decoder_state->prev_mode = mode; in AMRDecode()
|
/frameworks/av/media/module/codecs/amrnb/enc/src/ |
D | ol_ltp.cpp | 204 enum Mode mode, /* i : coder mode */ in ol_ltp() argument 215 if ((mode != MR102)) in ol_ltp() 221 if ((mode == MR475) || (mode == MR515)) in ol_ltp() 223 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx, in ol_ltp() 228 if (mode <= MR795) in ol_ltp() 230 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME_BY2, in ol_ltp() 233 else if (mode == MR102) in ol_ltp() 240 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN_MR122, PIT_MAX, in ol_ltp()
|
D | pitch_fr.cpp | 574 enum Mode mode in searchFrac() argument 598 minPitch = (mode == MR122) ? PIT_MIN_MR122 : PIT_MIN; in searchFrac() 1389 enum Mode mode, /* i : codec mode */ in Pitch_fr() argument 1431 max_frac_lag = mode_dep_parm[mode].max_frac_lag; in Pitch_fr() 1432 flag3 = mode_dep_parm[mode].flag3; in Pitch_fr() 1433 frac = mode_dep_parm[mode].first_frac; in Pitch_fr() 1434 last_frac = mode_dep_parm[mode].last_frac; in Pitch_fr() 1435 delta_int_low = mode_dep_parm[mode].delta_int_low; in Pitch_fr() 1436 delta_int_range = mode_dep_parm[mode].delta_int_range; in Pitch_fr() 1438 delta_frc_low = mode_dep_parm[mode].delta_frc_low; in Pitch_fr() [all …]
|
/frameworks/native/services/sensorservice/ |
D | SensorFusion.h | 72 bool hasEstimate(int mode = FUSION_9AXIS) const { 73 return mFusions[mode].hasEstimate(); 76 mat33_t getRotationMatrix(int mode = FUSION_9AXIS) const { 77 return mFusions[mode].getRotationMatrix(); 80 vec4_t getAttitude(int mode = FUSION_9AXIS) const { 81 return mAttitudes[mode]; 87 status_t activate(int mode, void* ident, bool enabled); 88 status_t setDelay(int mode, void* ident, int64_t ns); 90 float getPowerUsage(int mode=FUSION_9AXIS) const; 95 void dumpFusion(FUSION_MODE mode, util::ProtoOutputStream* proto) const;
|
D | SensorFusion.cpp | 132 status_t SensorFusion::activate(int mode, void* ident, bool enabled) { in activate() argument 136 mode, ident, enabled); in activate() 138 const ssize_t idx = mClients[mode].indexOf(ident); in activate() 141 mClients[mode].add(ident); in activate() 145 mClients[mode].removeItemsAt(idx); in activate() 149 const bool newState = mClients[mode].size() != 0; in activate() 150 if (newState != mEnabled[mode]) { in activate() 151 mEnabled[mode] = newState; in activate() 153 mFusions[mode].init(mode); in activate() 158 if (mode != FUSION_NOMAG) { in activate() [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2Settings.java | 366 Integer mode = null; in updateRequestFocusMode() local 370 mode = CONTROL_AF_MODE_AUTO; in updateRequestFocusMode() 374 mode = CONTROL_AF_MODE_CONTINUOUS_PICTURE; in updateRequestFocusMode() 378 mode = CONTROL_AF_MODE_CONTINUOUS_VIDEO; in updateRequestFocusMode() 382 mode = CONTROL_AF_MODE_EDOF; in updateRequestFocusMode() 386 mode = CONTROL_AF_MODE_OFF; in updateRequestFocusMode() 391 mode = CONTROL_AF_MODE_MACRO; in updateRequestFocusMode() 400 mRequestSettings.set(CONTROL_AF_MODE, mode); in updateRequestFocusMode() 404 Integer mode = null; in updateRequestSceneMode() local 408 mode = CONTROL_SCENE_MODE_DISABLED; in updateRequestSceneMode() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserSystemPackageInstaller.java | 202 final int mode = getWhitelistMode(); in installWhitelistedSystemPackages() local 203 checkWhitelistedSystemPackages(mode); in installWhitelistedSystemPackages() 204 final boolean isConsideredUpgrade = isUpgrade && !isIgnoreOtaMode(mode); in installWhitelistedSystemPackages() 208 if (isFirstBoot && !isEnforceMode(mode)) { in installWhitelistedSystemPackages() 294 private void checkWhitelistedSystemPackages(@PackageWhitelistMode int mode) { in checkWhitelistedSystemPackages() argument 295 if (!isLogMode(mode) && !isEnforceMode(mode)) { in checkWhitelistedSystemPackages() 304 Slog.v(TAG, "checkWhitelistedSystemPackages(mode=" + modeToString(mode) in checkWhitelistedSystemPackages() 307 Slog.w(TAG, "checkWhitelistedSystemPackages(mode=" + modeToString(mode) in checkWhitelistedSystemPackages() 315 if (isImplicitWhitelistMode(mode) && !isLogMode(mode)) { in checkWhitelistedSystemPackages() 319 final List<String> errors = getPackagesWhitelistErrors(mode); in checkWhitelistedSystemPackages() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | CipherPerfTest.java | 56 for (Mode mode : Mode.values()) { in getCases() 59 if ((mode == Mode.CBC in getCases() 60 || mode == Mode.CFB in getCases() 61 || mode == Mode.CTR in getCases() 62 || mode == Mode.ECB in getCases() 63 || mode == Mode.OFB) in getCases() 67 if ((mode == Mode.CFB || mode == Mode.OFB) in getCases() 76 mode, padding, keySize, inputSize, implementation in getCases() 142 public void setUp(Mode mode, Padding padding, int keySize, Implementation implementation) in setUp() argument 144 mCipherAlgorithm = mAlgorithm.toString() + "/" + mode.toString() + "/" + padding.toString(); in setUp() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | FileMetadata.java | 36 public long mode; // e.g. 0666 (actually int) field in FileMetadata 65 b.append(((mode & 0400) != 0) ? 'r' : '-'); in dump() 66 b.append(((mode & 0200) != 0) ? 'w' : '-'); in dump() 67 b.append(((mode & 0100) != 0) ? 'x' : '-'); in dump() 68 b.append(((mode & 0040) != 0) ? 'r' : '-'); in dump() 69 b.append(((mode & 0020) != 0) ? 'w' : '-'); in dump() 70 b.append(((mode & 0010) != 0) ? 'x' : '-'); in dump() 71 b.append(((mode & 0004) != 0) ? 'r' : '-'); in dump() 72 b.append(((mode & 0002) != 0) ? 'w' : '-'); in dump() 73 b.append(((mode & 0001) != 0) ? 'x' : '-'); in dump()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BlendMode.java | 507 for (BlendMode mode : BLEND_MODES) { in fromValue() 508 if (mode.mXfermode.porterDuffMode == value) { in fromValue() 509 return mode; in fromValue() 518 public static int toValue(BlendMode mode) { in toValue() argument 519 return mode.getXfermode().porterDuffMode; in toValue() 525 public static @Nullable PorterDuff.Mode blendModeToPorterDuffMode(@Nullable BlendMode mode) { in blendModeToPorterDuffMode() argument 526 if (mode != null) { in blendModeToPorterDuffMode() 527 switch (mode) { in blendModeToPorterDuffMode() 576 BlendMode(int mode) { in BlendMode() argument 578 mXfermode.porterDuffMode = mode; in BlendMode()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayOffloadSessionImpl.java | 87 public float[] getAutoBrightnessLevels(int mode) { in getAutoBrightnessLevels() argument 88 if (mode < 0 || mode > AUTO_BRIGHTNESS_MODE_MAX) { in getAutoBrightnessLevels() 89 throw new IllegalArgumentException("Unknown auto-brightness mode: " + mode); in getAutoBrightnessLevels() 91 return mDisplayPowerController.getAutoBrightnessLevels(mode); in getAutoBrightnessLevels() 95 public float[] getAutoBrightnessLuxLevels(int mode) { in getAutoBrightnessLuxLevels() argument 96 if (mode < 0 || mode > AUTO_BRIGHTNESS_MODE_MAX) { in getAutoBrightnessLuxLevels() 97 throw new IllegalArgumentException("Unknown auto-brightness mode: " + mode); in getAutoBrightnessLuxLevels() 99 return mDisplayPowerController.getAutoBrightnessLuxLevels(mode); in getAutoBrightnessLuxLevels()
|
/frameworks/av/media/module/codecs/amrnb/enc/test/ |
D | amrnb_enc_test.cpp | 61 int encode(int mode, const char *srcFile, const char *dstFile) { in encode() argument 121 Frame_Type_3GPP frame_type = (Frame_Type_3GPP) mode; in encode() 123 bytesGenerated = AMREncode(amr->encCtx, amr->pidSyncCtx, (Mode)mode, in encode() 175 Mode mode = MR475; in main() local 189 case '0': mode = MR475; in main() 191 case '1': mode = MR515; in main() 193 case '2': mode = MR59; in main() 195 case '3': mode = MR67; in main() 197 case '4': mode = MR74; in main() 199 case '5': mode = MR795; in main() [all …]
|
/frameworks/native/services/surfaceflinger/Tracing/ |
D | LayerTracing.cpp | 56 void LayerTracing::onStart(Mode mode, uint32_t flags) { in onStart() argument 57 switch (mode) { in onStart() 98 ALOGE("Started unknown tracing mode (0x%02x)", mode); in onStart() 103 void LayerTracing::onFlush(Mode mode, uint32_t flags, bool isBugreport) { in onFlush() argument 106 if (mode != Mode::MODE_GENERATED && mode != Mode::MODE_GENERATED_BUGREPORT_ONLY) { in onFlush() 113 if (mode == Mode::MODE_GENERATED_BUGREPORT_ONLY && !isBugreport) { in onFlush() 128 void LayerTracing::onStop(Mode mode) { in onStop() argument 129 if (mode == Mode::MODE_ACTIVE) { in onStop() 136 Mode mode) { in addProtoSnapshotToOstream() argument 141 writeSnapshotToPerfetto(snapshot, mode); in addProtoSnapshotToOstream() [all …]
|
/frameworks/av/media/module/codecs/amrwb/dec/src/ |
D | homing_amr_wb_dec.cpp | 127 int16 dhf_test(int16 input_frame[], int32 mode, int16 nparms); 248 int16 dhf_test(int16 input_frame[], int32 mode, int16 nparms) in dhf_test() argument 275 if (mode != MRDTX) in dhf_test() 277 if (mode != MODE_24k) in dhf_test() 328 j = (param[i] ^ dhf[mode][i]); in dhf_test() 337 tmp = (dhf[mode][i] & tmp); in dhf_test() 355 int16 pvDecoder_AmrWb_homing_frame_test(int16 input_frame[], int16 mode) in pvDecoder_AmrWb_homing_frame_test() argument 358 return dhf_test(input_frame, mode, AMR_WB_COMPRESSED[mode]); in pvDecoder_AmrWb_homing_frame_test() 366 int16 pvDecoder_AmrWb_homing_frame_test_first(int16 input_frame[], int16 mode) in pvDecoder_AmrWb_homing_frame_test_first() argument 369 return dhf_test(input_frame, mode, prmnofsf[mode]); in pvDecoder_AmrWb_homing_frame_test_first()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayInfoTest.java | 68 Display.Mode mode = new Display.Mode( in testRefreshRateOverride_keepsDisplyInfosEqual() local 71 setSupportedMode(displayInfo1, mode); in testRefreshRateOverride_keepsDisplyInfosEqual() 74 setSupportedMode(displayInfo2, mode); in testRefreshRateOverride_keepsDisplyInfosEqual() 82 Display.Mode mode = new Display.Mode( in testRefreshRateOverride_makeDisplayInfosDifferent() local 85 setSupportedMode(displayInfo1, mode); in testRefreshRateOverride_makeDisplayInfosDifferent() 88 setSupportedMode(displayInfo2, mode); in testRefreshRateOverride_makeDisplayInfosDifferent() 94 private void setSupportedMode(DisplayInfo info, Display.Mode mode) { in setSupportedMode() argument 95 info.supportedModes = new Display.Mode[]{mode}; in setSupportedMode() 96 info.modeId = mode.getModeId(); in setSupportedMode()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | TransitionInfoBuilder.java | 53 public TransitionInfoBuilder addChange(@WindowManager.TransitionType int mode, in addChange() argument 58 change.setMode(mode); in addChange() 66 public TransitionInfoBuilder addChange(@WindowManager.TransitionType int mode, in addChange() argument 68 return addChange(mode, flags, taskInfo, null /* activityComponent */); in addChange() 71 public TransitionInfoBuilder addChange(@WindowManager.TransitionType int mode, in addChange() argument 73 return addChange(mode, TransitionInfo.FLAG_NONE, taskInfo); in addChange() 77 public TransitionInfoBuilder addChange(@WindowManager.TransitionType int mode, in addChange() argument 79 return addChange(mode, TransitionInfo.FLAG_NONE, null /* taskinfo */, activityComponent); in addChange() 82 public TransitionInfoBuilder addChange(@WindowManager.TransitionType int mode) { in addChange() argument 83 return addChange(mode, TransitionInfo.FLAG_NONE, null /* taskInfo */); in addChange()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | WindowDecorActionBarTest.java | 49 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionMode() local 51 assertNotNull(mode); in testStartActionMode() 59 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeWhenCreateReturnsFalse() local 61 assertNull(mode); in testStartActionModeWhenCreateReturnsFalse() 81 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument 86 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument 91 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument 97 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
|
/frameworks/proto_logging/stats/atoms/agif/ |
D | agif_atoms.proto | 32 * Logs changes to game mode. 40 // UID the caller package who made the game mode change. 43 // Game mode previously set to. 46 // Game mode currently set to. 51 * Logs changes to game mode configuration. 59 // UID the caller package who made the game mode config change. 62 // Game mode of the configuration. 65 // Scaling factor previously set for this game mode. 68 // Scaling factor currently set to for this game mode. 71 // FPS override previously set for this game mode. [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationShadeWindowView.java | 192 final FloatingActionMode mode = in createFloatingActionMode() local 196 mode.updateViewLocationInWindow(); in createFloatingActionMode() 199 return mode; in createFloatingActionMode() 202 private void setHandledFloatingActionMode(ActionMode mode) { in setHandledFloatingActionMode() argument 203 mFloatingActionMode = mode; in setHandledFloatingActionMode() 227 ActionMode mode = createFloatingActionMode(originatingView, wrappedCallback); in startActionMode() local 228 if (wrappedCallback.onCreateActionMode(mode, mode.getMenu())) { in startActionMode() 229 setHandledFloatingActionMode(mode); in startActionMode() 231 mode = null; in startActionMode() 233 return mode; in startActionMode() [all …]
|