Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarTransitions.java59 private float getNonBatteryClockAlphaFor(int mode) { in getNonBatteryClockAlphaFor() argument
60 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_NON_BATTERY_CLOCK in getNonBatteryClockAlphaFor()
61 : !isOpaque(mode) ? ICON_ALPHA_WHEN_NOT_OPAQUE in getNonBatteryClockAlphaFor()
65 private float getBatteryClockAlpha(int mode) { in getBatteryClockAlpha() argument
66 return isLightsOut(mode) ? ICON_ALPHA_WHEN_LIGHTS_OUT_BATTERY_CLOCK in getBatteryClockAlpha()
67 : getNonBatteryClockAlphaFor(mode); in getBatteryClockAlpha()
70 private boolean isOpaque(int mode) { in isOpaque() argument
71 return !(mode == MODE_SEMI_TRANSPARENT || mode == MODE_TRANSLUCENT in isOpaque()
72 || mode == MODE_TRANSPARENT || mode == MODE_LIGHTS_OUT_TRANSPARENT); in isOpaque()
81 private void applyMode(int mode, boolean animate) { in applyMode() argument
[all …]
DBarTransitions.java91 public void transitionTo(int mode, boolean animate) { in transitionTo() argument
92 if (isAlwaysOpaque() && (mode == MODE_SEMI_TRANSPARENT || mode == MODE_TRANSLUCENT in transitionTo()
93 || mode == MODE_TRANSPARENT)) { in transitionTo()
94 mode = MODE_OPAQUE; in transitionTo()
96 if (isAlwaysOpaque() && (mode == MODE_LIGHTS_OUT_TRANSPARENT)) { in transitionTo()
97 mode = MODE_LIGHTS_OUT; in transitionTo()
99 if (mMode == mode) return; in transitionTo()
101 mMode = mode; in transitionTo()
103 modeToString(oldMode), modeToString(mode), animate)); in transitionTo()
117 public static String modeToString(int mode) { in modeToString() argument
[all …]
/frameworks/av/media/libstagefright/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/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowActionModeTest.java64 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testStartActionModeWithCallback() local
67 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testStartActionModeWithCallback()
129 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testWindowCallbackModesLifecycleIsNotHandled() local
132 assertNotNull(mode); in testWindowCallbackModesLifecycleIsNotHandled()
133 assertEquals(mWindowCallback.mLastCreatedActionMode, mode); in testWindowCallbackModesLifecycleIsNotHandled()
142 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testCreatedPrimaryModeLifecycleIsHandled() local
145 assertNotNull(mode); in testCreatedPrimaryModeLifecycleIsHandled()
146 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testCreatedPrimaryModeLifecycleIsHandled()
155 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testCreatedFloatingModeLifecycleIsHandled() local
158 assertNotNull(mode); in testCreatedFloatingModeLifecycleIsHandled()
[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/av/media/libstagefright/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.cpp1365 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 …]
Dgain_q.cpp469 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 …]
Dcbsearch.cpp196 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/
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;
DSensorFusion.cpp123 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/
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/av/media/libstagefright/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/av/media/libmedia/
DBufferingSettings.cpp27 bool BufferingSettings::IsValidBufferingMode(int mode) { in IsValidBufferingMode() argument
28 return (mode >= BUFFERING_MODE_NONE && mode < BUFFERING_MODE_COUNT); in IsValidBufferingMode()
32 bool BufferingSettings::IsTimeBasedBufferingMode(int mode) { in IsTimeBasedBufferingMode() argument
33 return (mode == BUFFERING_MODE_TIME_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in IsTimeBasedBufferingMode()
37 bool BufferingSettings::IsSizeBasedBufferingMode(int mode) { in IsSizeBasedBufferingMode() argument
38 return (mode == BUFFERING_MODE_SIZE_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in IsSizeBasedBufferingMode()
/frameworks/av/media/libstagefright/codecs/amrwb/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/media/java/android/media/
DBufferingParams.java278 private boolean isTimeBasedMode(int mode) { in isTimeBasedMode() argument
279 return (mode == BUFFERING_MODE_TIME_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in isTimeBasedMode()
282 private boolean isSizeBasedMode(int mode) { in isSizeBasedMode() argument
283 return (mode == BUFFERING_MODE_SIZE_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in isSizeBasedMode()
294 public Builder setInitialBufferingMode(@BufferingMode int mode) { in setInitialBufferingMode() argument
295 switch (mode) { in setInitialBufferingMode()
300 mInitialBufferingMode = mode; in setInitialBufferingMode()
303 throw new IllegalArgumentException("Illegal buffering mode " + mode); in setInitialBufferingMode()
316 public Builder setRebufferingMode(@BufferingMode int mode) { in setRebufferingMode() argument
317 switch (mode) { in setRebufferingMode()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java162 public static String modeToString(int mode) { in modeToString() argument
164 if (mode == MODE_NONE) { in modeToString()
168 if ((mode & MODE_DUAL) == MODE_DUAL) { in modeToString()
171 if ((mode & MODE_DFP) == MODE_DFP) { in modeToString()
173 } else if ((mode & MODE_UFP) == MODE_UFP) { in modeToString()
177 if ((mode & MODE_AUDIO_ACCESSORY) == MODE_AUDIO_ACCESSORY) { in modeToString()
180 if ((mode & MODE_DEBUG_ACCESSORY) == MODE_DEBUG_ACCESSORY) { in modeToString()
185 return Integer.toString(mode); in modeToString()
256 public static void checkDataRole(int mode) { in checkDataRole() argument
257 Preconditions.checkArgumentInRange(mode, Constants.PortDataRole.NONE, in checkDataRole()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DWindowDecorActionBarTest.java48 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionMode() local
50 assertNotNull(mode); in testStartActionMode()
58 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeWhenCreateReturnsFalse() local
60 assertNull(mode); in testStartActionModeWhenCreateReturnsFalse()
80 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
85 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
90 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
96 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
/frameworks/layoutlib/bridge/src/android/graphics/
DBlendComposite.java59 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/
DAMRWB_E_SAMPLE.c74 int mode, in encode() argument
185 ret = AudioAPI.SetParam(hCodec, VO_PID_AMRWB_MODE, &mode); in encode()
264 int mode, r; in main() local
281 mode = VOAMRWB_MD2385; in main()
295 case '0': mode = VOAMRWB_MD66; in main()
297 case '1': mode = VOAMRWB_MD885; in main()
299 case '2': mode = VOAMRWB_MD1265; in main()
301 case '3': mode = VOAMRWB_MD1425; in main()
303 case '4': mode = VOAMRWB_MD1585; in main()
305 case '5': mode = VOAMRWB_MD1825; in main()
[all …]
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Dshared_buffer_helpers.h21 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/support/v7/appcompat/src/android/support/v7/view/
DSupportActionModeWrapper.java156 public boolean onCreateActionMode(android.support.v7.view.ActionMode mode, Menu menu) { in onCreateActionMode() argument
157 return mWrappedCallback.onCreateActionMode(getActionModeWrapper(mode), in onCreateActionMode()
162 public boolean onPrepareActionMode(android.support.v7.view.ActionMode mode, Menu menu) { in onPrepareActionMode() argument
163 return mWrappedCallback.onPrepareActionMode(getActionModeWrapper(mode), in onPrepareActionMode()
168 public boolean onActionItemClicked(android.support.v7.view.ActionMode mode, in onActionItemClicked() argument
170 return mWrappedCallback.onActionItemClicked(getActionModeWrapper(mode), in onActionItemClicked()
175 public void onDestroyActionMode(android.support.v7.view.ActionMode mode) { in onDestroyActionMode() argument
176 mWrappedCallback.onDestroyActionMode(getActionModeWrapper(mode)); in onDestroyActionMode()
188 public ActionMode getActionModeWrapper(android.support.v7.view.ActionMode mode) { in getActionModeWrapper() argument
192 if (wrapper != null && wrapper.mWrappedObject == mode) { in getActionModeWrapper()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameBuffer1D.java38 public ByteBuffer lockBytes(int mode) { in lockBytes() argument
39 assertAccessible(mode); in lockBytes()
40 return (ByteBuffer)mBackingStore.lockData(mode, BackingStore.ACCESS_BYTES); in lockBytes()
51 public Allocation lockAllocation(int mode) { in lockAllocation() argument
52 assertAccessible(mode); in lockAllocation()
53 return (Allocation) mBackingStore.lockData(mode, BackingStore.ACCESS_ALLOCATION); in lockAllocation()

12345678910>>...39