Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 1444) sorted by relevance

12345678910>>...58

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarTransitions.java57 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 …]
DBarTransitions.java110 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/libs/net/common/framework/com/android/net/module/util/
DConnectivitySettingsUtils.java49 public static String getPrivateDnsModeAsString(int mode) { in getPrivateDnsModeAsString() argument
50 switch (mode) { in getPrivateDnsModeAsString()
58 throw new IllegalArgumentException("Invalid private dns mode: " + mode); in getPrivateDnsModeAsString()
62 private static int getPrivateDnsModeAsInt(String mode) { in getPrivateDnsModeAsInt() argument
65 if (TextUtils.isEmpty(mode)) in getPrivateDnsModeAsInt()
67 switch (mode) { in getPrivateDnsModeAsInt()
90 String mode = Settings.Global.getString(cr, PRIVATE_DNS_MODE); in getPrivateDnsMode() local
91 if (TextUtils.isEmpty(mode)) mode = Settings.Global.getString(cr, PRIVATE_DNS_DEFAULT_MODE); in getPrivateDnsMode()
92 return getPrivateDnsModeAsInt(mode); in getPrivateDnsMode()
101 public static void setPrivateDnsMode(@NonNull Context context, int mode) { in setPrivateDnsMode() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bouncer/data/factory/
DBouncerMessageFactoryTest.kt63 primaryMessage(PROMPT_REASON_DEFAULT, mode = PIN, fpAuthAllowed = false) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
65 primaryMessage(PROMPT_REASON_DEFAULT, mode = PIN, fpAuthAllowed = true) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
68 primaryMessage(PROMPT_REASON_DEFAULT, mode = Password, fpAuthAllowed = false) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
70 primaryMessage(PROMPT_REASON_DEFAULT, mode = Password, fpAuthAllowed = true) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
73 primaryMessage(PROMPT_REASON_DEFAULT, mode = Pattern, fpAuthAllowed = false) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
75 primaryMessage(PROMPT_REASON_DEFAULT, mode = Pattern, fpAuthAllowed = true) in bouncerMessages_choosesTheRightMessage_basedOnSecurityModeAndFpAuthIsAllowed()
100 mode = PIN, in bouncerMessages_setsPrimaryAndSecondaryMessage_basedOnSecurityModeAndFpAuthIsAllowed()
106 mode = PIN, in bouncerMessages_setsPrimaryAndSecondaryMessage_basedOnSecurityModeAndFpAuthIsAllowed()
113 mode = Password, in bouncerMessages_setsPrimaryAndSecondaryMessage_basedOnSecurityModeAndFpAuthIsAllowed()
119 mode = Password, in bouncerMessages_setsPrimaryAndSecondaryMessage_basedOnSecurityModeAndFpAuthIsAllowed()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowActionModeTest.java63 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/
Ddec_amr.cpp395 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 …]
Damrdecode.cpp397 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/
Dol_ltp.cpp204 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()
Dpitch_fr.cpp574 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/
DSensorFusion.h72 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;
DSensorFusion.cpp126 status_t SensorFusion::activate(int mode, void* ident, bool enabled) { in activate() argument
130 mode, ident, enabled); in activate()
132 const ssize_t idx = mClients[mode].indexOf(ident); in activate()
135 mClients[mode].add(ident); in activate()
139 mClients[mode].removeItemsAt(idx); in activate()
143 const bool newState = mClients[mode].size() != 0; in activate()
144 if (newState != mEnabled[mode]) { in activate()
145 mEnabled[mode] = newState; in activate()
147 mFusions[mode].init(mode); in activate()
152 if (mode != FUSION_NOMAG) { in activate()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Settings.java366 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/
DUserSystemPackageInstaller.java202 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/
DCipherPerfTest.java55 for (Mode mode : Mode.values()) { in getCases()
58 if ((mode == Mode.CBC in getCases()
59 || mode == Mode.CFB in getCases()
60 || mode == Mode.CTR in getCases()
61 || mode == Mode.ECB in getCases()
62 || mode == Mode.OFB) in getCases()
66 if ((mode == Mode.CFB || mode == Mode.OFB) in getCases()
75 mode, padding, keySize, inputSize, implementation in getCases()
141 public void setUp(Mode mode, Padding padding, int keySize, Implementation implementation) in setUp() argument
143 mCipherAlgorithm = mAlgorithm.toString() + "/" + mode.toString() + "/" + padding.toString(); in setUp()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DFileMetadata.java36 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/
DBlendMode.java507 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/av/media/module/codecs/amrnb/enc/test/
Damrnb_enc_test.cpp61 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/base/core/tests/coretests/src/android/view/
DDisplayInfoTest.java62 Display.Mode mode = new Display.Mode( in testRefreshRateOverride_keepsDisplyInfosEqual() local
65 setSupportedMode(displayInfo1, mode); in testRefreshRateOverride_keepsDisplyInfosEqual()
68 setSupportedMode(displayInfo2, mode); in testRefreshRateOverride_keepsDisplyInfosEqual()
76 Display.Mode mode = new Display.Mode( in testRefreshRateOverride_makeDisplayInfosDifferent() local
79 setSupportedMode(displayInfo1, mode); in testRefreshRateOverride_makeDisplayInfosDifferent()
82 setSupportedMode(displayInfo2, mode); in testRefreshRateOverride_makeDisplayInfosDifferent()
88 private void setSupportedMode(DisplayInfo info, Display.Mode mode) { in setSupportedMode() argument
89 info.supportedModes = new Display.Mode[]{mode}; in setSupportedMode()
90 info.modeId = mode.getModeId(); in setSupportedMode()
/frameworks/av/media/module/codecs/amrwb/dec/src/
Dhoming_amr_wb_dec.cpp127 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()
Dmime_io.cpp532 int16 * mode, in mime_unsorting() argument
551 const int16 * pt_AmrWbSortingTables = AmrWbSortingTables[*mode]; in mime_unsorting()
556 unpacked_size[*mode]*sizeof(*sorted_bits_into_int16)); in mime_unsorting()
561 for (i = unpacked_size[*mode] >> 3; i != 0; i--) in mime_unsorting()
658 if (unpacked_size[*mode] % 4) in mime_unsorting()
669 switch (*mode) in mime_unsorting()
708 *mode = st->prev_mode; in mime_unsorting()
712 *mode = st->prev_mode; in mime_unsorting()
716 *mode = st->prev_mode; in mime_unsorting()
720 *mode = st->prev_mode; in mime_unsorting()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DWindowDecorActionBarTest.java49 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/
Dagif_atoms.proto32 * 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/
DNotificationShadeWindowView.java173 final FloatingActionMode mode = in createFloatingActionMode() local
177 mode.updateViewLocationInWindow(); in createFloatingActionMode()
180 return mode; in createFloatingActionMode()
183 private void setHandledFloatingActionMode(ActionMode mode) { in setHandledFloatingActionMode() argument
184 mFloatingActionMode = mode; in setHandledFloatingActionMode()
208 ActionMode mode = createFloatingActionMode(originatingView, wrappedCallback); in startActionMode() local
209 if (wrappedCallback.onCreateActionMode(mode, mode.getMenu())) { in startActionMode()
210 setHandledFloatingActionMode(mode); in startActionMode()
212 mode = null; in startActionMode()
214 return mode; in startActionMode()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAudioRestrictionManager.java66 int mode; field in AudioRestrictionManager.Restriction
86 final int mode = checkZenModeRestrictionLocked(code, usage, uid, packageName); in checkAudioOperation() local
87 if (mode != AppOpsManager.MODE_ALLOWED) { in checkAudioOperation()
88 return mode; in checkAudioOperation()
99 return r.mode; in checkZenModeRestrictionLocked()
105 public void setZenModeAudioRestriction(int code, int usage, int uid, int mode, in setZenModeAudioRestriction() argument
114 if (mode != AppOpsManager.MODE_ALLOWED) { in setZenModeAudioRestriction()
116 r.mode = mode; in setZenModeAudioRestriction()
132 public void setCameraAudioRestriction(@CAMERA_AUDIO_RESTRICTION int mode) { in setCameraAudioRestriction() argument
134 mCameraAudioRestriction = mode; in setCameraAudioRestriction()
[all …]
/frameworks/av/media/libheadtracking/
DModeSelector.cpp27 void ModeSelector::setDesiredMode(HeadTrackingMode mode) { in setDesiredMode() argument
28 mDesiredMode = mode; in setDesiredMode()
62 HeadTrackingMode mode = mDesiredMode; in calculateActualMode() local
65 if (mode == HeadTrackingMode::SCREEN_RELATIVE) { in calculateActualMode()
67 mode = HeadTrackingMode::WORLD_RELATIVE; in calculateActualMode()
72 if (mode == HeadTrackingMode::WORLD_RELATIVE) { in calculateActualMode()
74 mode = HeadTrackingMode::STATIC; in calculateActualMode()
78 if (mode != mActualMode) { in calculateActualMode()
82 media::toString(mActualMode).c_str(), media::toString(mode).c_str(), in calculateActualMode()
87 mActualMode = mode; in calculateActualMode()

12345678910>>...58