/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | ConnectivitySettingsUtils.java | 49 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 63 switch (mode) { in getPrivateDnsModeAsInt() 71 throw new IllegalArgumentException("Invalid private dns mode: " + mode); in getPrivateDnsModeAsInt() 83 String mode = Settings.Global.getString(cr, PRIVATE_DNS_MODE); in getPrivateDnsMode() local 84 if (TextUtils.isEmpty(mode)) mode = Settings.Global.getString(cr, PRIVATE_DNS_DEFAULT_MODE); in getPrivateDnsMode() 87 if (TextUtils.isEmpty(mode)) return PRIVATE_DNS_MODE_OPPORTUNISTIC; in getPrivateDnsMode() 88 return getPrivateDnsModeAsInt(mode); in getPrivateDnsMode() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarTransitions.java | 55 private float getNonBatteryClockAlphaFor(int mode) { in getNonBatteryClockAlphaFor() argument 56 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_NON_BATTERY_CLOCK in getNonBatteryClockAlphaFor() 57 : !isOpaque(mode) ? ICON_ALPHA_WHEN_NOT_OPAQUE in getNonBatteryClockAlphaFor() 61 private float getBatteryClockAlpha(int mode) { in getBatteryClockAlpha() argument 62 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_BATTERY_CLOCK in getBatteryClockAlpha() 63 : getNonBatteryClockAlphaFor(mode); in getBatteryClockAlpha() 66 private boolean isOpaque(int mode) { in isOpaque() argument 67 return !(mode == MODE_SEMI_TRANSPARENT || mode == MODE_TRANSLUCENT in isOpaque() 68 || mode == MODE_TRANSPARENT || mode == MODE_LIGHTS_OUT_TRANSPARENT); in isOpaque() 77 private void applyMode(int mode, boolean animate) { in applyMode() argument [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/av/media/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/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/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 | 126 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/ |
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 | 200 final int mode = getWhitelistMode(); in installWhitelistedSystemPackages() local 201 checkWhitelistedSystemPackages(mode); in installWhitelistedSystemPackages() 202 final boolean isConsideredUpgrade = isUpgrade && !isIgnoreOtaMode(mode); in installWhitelistedSystemPackages() 206 if (isFirstBoot && !isEnforceMode(mode)) { in installWhitelistedSystemPackages() 273 private void checkWhitelistedSystemPackages(@PackageWhitelistMode int mode) { in checkWhitelistedSystemPackages() argument 274 if (!isLogMode(mode) && !isEnforceMode(mode)) { in checkWhitelistedSystemPackages() 283 Slog.v(TAG, "checkWhitelistedSystemPackages(mode=" + modeToString(mode) in checkWhitelistedSystemPackages() 286 Slog.w(TAG, "checkWhitelistedSystemPackages(mode=" + modeToString(mode) in checkWhitelistedSystemPackages() 294 if (isImplicitWhitelistMode(mode) && !isLogMode(mode)) { in checkWhitelistedSystemPackages() 298 final List<String> errors = getPackagesWhitelistErrors(mode); in checkWhitelistedSystemPackages() [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/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | MagnificationController.java | 127 public void onTouchInteractionStart(int displayId, int mode) { in onTouchInteractionStart() argument 128 handleUserInteractionChanged(displayId, mode); in onTouchInteractionStart() 132 public void onTouchInteractionEnd(int displayId, int mode) { in onTouchInteractionEnd() argument 133 handleUserInteractionChanged(displayId, mode); in onTouchInteractionEnd() 136 private void handleUserInteractionChanged(int displayId, int mode) { in handleUserInteractionChanged() argument 140 if (isActivated(displayId, mode)) { in handleUserInteractionChanged() 141 getWindowMagnificationMgr().showMagnificationButton(displayId, mode); in handleUserInteractionChanged() 146 public void onShortcutTriggered(int displayId, int mode) { in onShortcutTriggered() argument 147 updateMagnificationButton(displayId, mode); in onShortcutTriggered() 151 public void onTripleTapped(int displayId, int mode) { in onTripleTapped() argument [all …]
|
/frameworks/av/media/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/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/av/media/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()
|
D | mime_io.cpp | 532 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/native/services/surfaceflinger/tests/fakehwc/ |
D | SFFakeHwc_test.cpp | 350 ui::DisplayMode mode; in Test_HotplugOneConfig() local 351 EXPECT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); in Test_HotplugOneConfig() 352 const ui::Size& resolution = mode.resolution; in Test_HotplugOneConfig() 354 EXPECT_EQ(1e9f / 16'666'666, mode.refreshRate); in Test_HotplugOneConfig() 382 ui::DisplayMode mode; in Test_HotplugOneConfig() local 383 EXPECT_NE(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); in Test_HotplugOneConfig() 411 ui::DisplayMode mode; in Test_HotplugTwoSeparateConfigs() local 412 EXPECT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); in Test_HotplugTwoSeparateConfigs() 413 EXPECT_EQ(ui::Size(200, 400), mode.resolution); in Test_HotplugTwoSeparateConfigs() 414 EXPECT_EQ(1e9f / 16'666'666, mode.refreshRate); in Test_HotplugTwoSeparateConfigs() [all …]
|
/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/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 66 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/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 59 private BlendingMode mode; field in BlendComposite 61 private BlendComposite(BlendingMode mode) { in BlendComposite() argument 62 this(mode, 1.0f); in BlendComposite() 65 private BlendComposite(BlendingMode mode, float alpha) { in BlendComposite() argument 66 this.mode = mode; in BlendComposite() 70 public static BlendComposite getInstance(BlendingMode mode) { in getInstance() argument 71 return mode.getBlendComposite(); in getInstance() 74 public static BlendComposite getInstance(BlendingMode mode, float alpha) { in getInstance() argument 76 return getInstance(mode); in getInstance() 78 return new BlendComposite(mode, alpha); in getInstance() [all …]
|
/frameworks/av/media/codecs/amrwb/enc/SampleCode/ |
D | AMRWB_E_SAMPLE.c | 74 int mode, in encode() argument 188 ret = AudioAPI.SetParam(hCodec, VO_PID_AMRWB_MODE, &mode); in encode() 268 int mode, r; in main() local 285 mode = VOAMRWB_MD2385; in main() 299 case '0': mode = VOAMRWB_MD66; in main() 301 case '1': mode = VOAMRWB_MD885; in main() 303 case '2': mode = VOAMRWB_MD1265; in main() 305 case '3': mode = VOAMRWB_MD1425; in main() 307 case '4': mode = VOAMRWB_MD1585; in main() 309 case '5': mode = VOAMRWB_MD1825; in main() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | AccessibilityButtonModeObserver.java | 64 void onAccessibilityButtonModeChanged(@AccessibilityButtonMode int mode); in onAccessibilityButtonModeChanged() argument 74 final int mode = parseAccessibilityButtonMode(value); in onValueChanged() local 75 listener.onAccessibilityButtonModeChanged(mode); in onValueChanged() 90 int mode; in parseAccessibilityButtonMode() local 93 mode = Integer.parseInt(value); in parseAccessibilityButtonMode() 96 mode = ACCESSIBILITY_BUTTON_MODE_DEFAULT; in parseAccessibilityButtonMode() 99 return mode; in parseAccessibilityButtonMode()
|
/frameworks/native/libs/vr/libdisplay/include/private/dvr/ |
D | shared_buffer_helpers.h | 21 CPUMappedBuffer(DvrGlobalBufferKey key, CPUUsageMode mode); 24 CPUMappedBuffer(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode); 27 CPUMappedBuffer(IonBuffer* buffer, CPUUsageMode mode); 69 CPUMappedBroadcastRing(DvrGlobalBufferKey key, CPUUsageMode mode) in CPUMappedBroadcastRing() argument 70 : CPUMappedBuffer(key, mode) {} in CPUMappedBroadcastRing() 72 CPUMappedBroadcastRing(std::unique_ptr<IonBuffer> buffer, CPUUsageMode mode) in CPUMappedBroadcastRing() argument 73 : CPUMappedBuffer(std::move(buffer), mode) {} in CPUMappedBroadcastRing() 75 CPUMappedBroadcastRing(IonBuffer* buffer, CPUUsageMode mode) in CPUMappedBroadcastRing() argument 76 : CPUMappedBuffer(buffer, mode) {} in CPUMappedBroadcastRing()
|