/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/libstagefright/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/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/av/media/libstagefright/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 | 1365 enum Mode mode, /* i : codec mode */ in Pitch_fr() argument 1407 max_frac_lag = mode_dep_parm[mode].max_frac_lag; in Pitch_fr() 1408 flag3 = mode_dep_parm[mode].flag3; in Pitch_fr() 1409 frac = mode_dep_parm[mode].first_frac; in Pitch_fr() 1410 last_frac = mode_dep_parm[mode].last_frac; in Pitch_fr() 1411 delta_int_low = mode_dep_parm[mode].delta_int_low; in Pitch_fr() 1412 delta_int_range = mode_dep_parm[mode].delta_int_range; in Pitch_fr() 1414 delta_frc_low = mode_dep_parm[mode].delta_frc_low; in Pitch_fr() 1415 delta_frc_range = mode_dep_parm[mode].delta_frc_range; in Pitch_fr() 1416 pit_min = mode_dep_parm[mode].pit_min; in Pitch_fr() [all …]
|
D | gain_q.cpp | 469 enum Mode mode, /* i : coder mode */ in gainQuant() argument 504 if (mode == MR475) in gainQuant() 526 mode, in gainQuant() 538 mode, in gainQuant() 587 mode, in gainQuant() 597 mode, in gainQuant() 648 mode, in gainQuant() 656 if (mode == MR122) in gainQuant() 666 mode, in gainQuant() 678 mode, in gainQuant() [all …]
|
D | cbsearch.cpp | 196 enum Mode mode, /* i : coder mode */ in cbsearch() argument 209 if ((mode == MR475) || (mode == MR515)) in cbsearch() 226 else if (mode == MR59) in cbsearch() 241 else if (mode == MR67) in cbsearch() 256 else if ((mode == MR74) || (mode == MR795)) in cbsearch() 271 else if (mode == MR102) in cbsearch()
|
/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;
|
D | SensorFusion.cpp | 123 status_t SensorFusion::activate(int mode, void* ident, bool enabled) { in activate() argument 127 mode, ident, enabled); in activate() 129 const ssize_t idx = mClients[mode].indexOf(ident); in activate() 132 mClients[mode].add(ident); in activate() 136 mClients[mode].removeItemsAt(idx); in activate() 140 const bool newState = mClients[mode].size() != 0; in activate() 141 if (newState != mEnabled[mode]) { in activate() 142 mEnabled[mode] = newState; in activate() 144 mFusions[mode].init(mode); in activate() 149 if (mode != FUSION_NOMAG) { in activate() [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/av/media/libstagefright/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 …]
|
D | AmrnbEncoderTest.cpp | 54 int32_t EncodeFrames(int32_t mode, FILE *fpInput, FILE *mFpOutput, 58 int32_t AmrnbEncoderTest::EncodeFrames(int32_t mode, FILE *fpInput, FILE *mFpOutput, in EncodeFrames() argument 71 Frame_Type_3GPP frame_type = (Frame_Type_3GPP)mode; in EncodeFrames() 73 AMREncode(mAmrEncHandle->encCtx, mAmrEncHandle->pidSyncCtx, (Mode)mode, in EncodeFrames() 124 int32_t mode = GetParam().second; in TEST_P() local 125 int32_t encodeErr = EncodeFrames(mode, fpInput, fpOutput); in TEST_P() 126 ASSERT_EQ(encodeErr, 0) << "EncodeFrames returned error for Codec mode: " << mode; in TEST_P() 155 int32_t mode = GetParam().second; in TEST_P() local 157 int32_t encodeErr = EncodeFrames(mode, fpInput, fpOutput, kNumFrameReset); in TEST_P() 158 ASSERT_EQ(encodeErr, 0) << "EncodeFrames returned error for Codec mode: " << mode; in TEST_P() [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/libstagefright/codecs/amrwb/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/base/services/core/java/com/android/server/location/ |
D | GnssPositionMode.java | 9 private final int mode; field in GnssPositionMode 16 public GnssPositionMode(int mode, int recurrence, int minInterval, in GnssPositionMode() argument 18 this.mode = mode; in GnssPositionMode() 30 return mode == that.mode && recurrence == that.recurrence in equals() 43 new Object[]{mode, recurrence, minInterval, preferredAccuracy, preferredTime, in hashCode()
|
/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/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/libstagefright/codecs/amrwbenc/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/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()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 202 public static String modeToString(int mode) { in modeToString() argument 204 if (mode == MODE_NONE) { in modeToString() 208 if ((mode & MODE_DUAL) == MODE_DUAL) { in modeToString() 211 if ((mode & MODE_DFP) == MODE_DFP) { in modeToString() 213 } else if ((mode & MODE_UFP) == MODE_UFP) { in modeToString() 217 if ((mode & MODE_AUDIO_ACCESSORY) == MODE_AUDIO_ACCESSORY) { in modeToString() 220 if ((mode & MODE_DEBUG_ACCESSORY) == MODE_DEBUG_ACCESSORY) { in modeToString() 225 return Integer.toString(mode); in modeToString() 312 public static void checkDataRole(int mode) { in checkDataRole() argument 313 Preconditions.checkArgumentInRange(mode, Constants.PortDataRole.NONE, in checkDataRole() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | DisplayColorProfile.cpp | 68 Dataspace colorModeToDataspace(ColorMode mode) { in colorModeToDataspace() argument 69 switch (mode) { in colorModeToDataspace() 86 std::vector<ColorMode> getColorModeCandidates(ColorMode mode) { in getColorModeCandidates() argument 90 candidates.push_back(mode); in getColorModeCandidates() 95 if (hdrMode == mode) { in getColorModeCandidates() 104 if (hdrMode != mode) { in getColorModeCandidates() 112 if (sdrMode != mode) { in getColorModeCandidates() 158 ColorMode mode) { in getHwcColorMode() argument 159 std::vector<ColorMode> candidates = getColorModeCandidates(mode); in getHwcColorMode() 290 for (auto mode : sSdrColorModes) { in populateColorModes() local [all …]
|