Searched refs:mode (Results 201 - 225 of 752) sorted by relevance

1234567891011>>

/frameworks/support/v4/java/android/support/v4/content/
H A DFileProvider.java242 * {@link Uri}, using the desired mode flags. This grants temporary access permission for the
513 * @param mode Access mode for the file. May be "r" for read-only access, "rw" for read and
518 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument
521 final int fileMode = modeToMode(mode);
728 private static int modeToMode(String mode) { argument
730 if ("r".equals(mode)) {
732 } else if ("w".equals(mode) || "wt".equals(mode)) {
736 } else if ("wa".equals(mode)) {
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDecorView.java671 int mode = MeasureSpec.getMode(heightMeasureSpec);
672 if (mode != MeasureSpec.UNSPECIFIED) {
675 height + mOutsets.top + mOutsets.bottom, mode);
679 int mode = MeasureSpec.getMode(widthMeasureSpec);
680 if (mode != MeasureSpec.UNSPECIFIED) {
683 width + mOutsets.left + mOutsets.right, mode);
830 ActionMode mode = null;
833 mode = mWindow.getCallback().onWindowStartingActionMode(wrappedCallback, type);
838 mode = mWindow.getCallback().onWindowStartingActionMode(
846 if (mode !
1542 setHandledActionMode(ActionMode mode) argument
1645 setHandledPrimaryActionMode(ActionMode mode) argument
1703 setHandledFloatingActionMode(ActionMode mode) argument
2246 onCreateActionMode(ActionMode mode, Menu menu) argument
2250 onPrepareActionMode(ActionMode mode, Menu menu) argument
2255 onActionItemClicked(ActionMode mode, MenuItem item) argument
2259 onDestroyActionMode(ActionMode mode) argument
2345 onGetContentRect(ActionMode mode, View view, Rect outRect) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAppOpsService.java154 public int mode; field in class:AppOpsService.Op
164 mode = AppOpsManager.opToDefaultMode(op);
380 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time,
391 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time,
480 public void setUidMode(int code, int uid, int mode) { argument
493 if (mode == defaultMode) {
498 uidState.opModes.put(code, mode);
502 if (mode != defaultMode) {
504 uidState.opModes.put(code, mode);
508 if (uidState.opModes.get(code) == mode) {
591 setMode(int code, int uid, String packageName, int mode) argument
942 setAudioRestriction(int code, int usage, int uid, int mode, String[] exceptionPackages) argument
1652 int mode; field in class:AppOpsService.Shell
2172 int mode; field in class:AppOpsService.Restriction
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp155 media_status_t AMediaExtractor_seekTo(AMediaExtractor *ex, int64_t seekPosUs, SeekMode mode) { argument
157 if (mode == AMEDIAEXTRACTOR_SEEK_PREVIOUS_SYNC) {
159 } else if (mode == AMEDIAEXTRACTOR_SEEK_CLOSEST_SYNC) {
362 int32_t mode; local
363 if (!meta->findInt32(kKeyCryptoMode, &mode)) {
364 mode = CryptoPlugin::kMode_AES_CTR;
371 (cryptoinfo_mode_t) mode,
/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp115 void RenderState::flush(Caches::FlushMode mode) { argument
116 switch (mode) {
125 mCaches->flush(mode);
162 void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) { argument
163 if (mode == DrawGlInfo::kModeProcessNoContext) {
166 (*functor)(mode, info);
169 (*functor)(mode, info);
/frameworks/base/libs/hwui/tests/unit/
H A DClipAreaTests.cpp134 ASSERT_EQ(ClipMode::Rectangle, serializedClip->mode);
148 ASSERT_EQ(ClipMode::RectangleList, serializedClip->mode);
164 ASSERT_EQ(ClipMode::Region, serializedClip->mode);
208 ASSERT_EQ(ClipMode::Rectangle, resolvedClip->mode);
227 ASSERT_EQ(ClipMode::RectangleList, resolvedClip->mode);
249 ASSERT_EQ(ClipMode::Region, resolvedClip->mode);
273 EXPECT_EQ(ClipMode::Rectangle, resolvedClip->mode);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Ddcac_prediction.cpp226 uint8 *mode = video->headerInfo.Mode; local
269 && (mode[mbnum-nMBPerRow] == MODE_INTRA || mode[mbnum-nMBPerRow] == MODE_INTRA_Q);;
277 && (mode[mbnum-1] == MODE_INTRA || mode[mbnum-1] == MODE_INTRA_Q);
285 && (mode[mbnum-nMBPerRow] == MODE_INTRA || mode[mbnum-nMBPerRow] == MODE_INTRA_Q);
287 && (mode[mbnum-1] == MODE_INTRA || mode[mbnum-1] == MODE_INTRA_Q);
H A Dpost_filter.cpp180 uint8 *mode,
217 if (mode[mbnum] != MODE_SKIPPED)
306 if (mode[mbnum] != MODE_SKIPPED || mode[mbnum - nMBPerRow] != MODE_SKIPPED)
309 if (mode[mbnum] != MODE_SKIPPED)
405 if (mode[mbnum] != MODE_SKIPPED)
495 if (mode[mbnum] != MODE_SKIPPED || mode[mbnum-1] != MODE_SKIPPED)
498 if (mode[mbnum] != MODE_SKIPPED)
176 H263_Deblock(uint8 *rec, int width, int height, int16 *QP_store, uint8 *mode, int chr, int annex_T) argument
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java43 * (IME). Subtype can describe locale (e.g. en_US, fr_FR...) and mode (e.g. voice, keyboard...),
163 * Arrays.hashCode(new Object[] {locale, mode, extraValue,
191 * @param subtypeMode is the mode supported by this subtype.
218 String mode, String extraValue, boolean isAuxiliary,
224 builder.mSubtypeMode = mode;
240 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, argument
242 this(nameId, iconId, locale, mode, extraValue, isAuxiliary,
255 * @param mode The mode supported by the subtype
266 * auxiliary input mode, an
217 getBuilder(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id, boolean isAsciiCapable) argument
277 InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument
638 hashCodeInternal(String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, boolean isAsciiCapable) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dcalc_en.cpp404 mode = coder mode, type Mode
468 enum Mode mode, // i : coder mode
486 if (sub(mode, MR795) == 0 || sub(mode, MR475) == 0)
536 if (sub(mode, MR475) == 0 || sub(mode, MR795) == 0)
593 enum Mode mode, /* i : coder mode */
592 calc_filt_energies( enum Mode mode, Word16 xn[], Word16 xn2[], Word16 y1[], Word16 Y2[], Word16 g_coeff[], Word16 frac_coeff[], Word16 exp_coeff[], Word16 *cod_gain_frac, Word16 *cod_gain_exp, Flag *pOverflow ) argument
[all...]
H A Dcod_amr.cpp759 mode = AMR mode of type enum Mode
763 usedMode = pointer to the used mode of type enum Mode
814 enum Mode mode, // i : AMR mode
817 enum Mode *usedMode, // o : used mode
867 *usedMode = mode;
902 lpc(st->lpcSt, mode, st->p_window, st->p_window_12k2, A_t);
906 lsp(st->lspSt, mode, *usedMode, A_t, Aq_t, lsp_new, &ana);
914 // Check if in DTX mode
1215 cod_amr( cod_amrState *st, enum Mode mode, Word16 new_speech[], Word16 ana[], enum Mode *usedMode, Word16 synth[] ) argument
[all...]
/frameworks/base/libs/hwui/
H A DLayer.h160 inline void setAlpha(int alpha, SkXfermode::Mode mode) { argument
162 this->mode = mode;
170 return mode;
410 * Blending mode of the layer.
412 SkXfermode::Mode mode = SkXfermode::kSrcOver_Mode; member in class:android::uirenderer::Layer
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DomxVCM4P10_MotionEstimationMB.c61 * Calculate SAD value for the selected MB encoding mode and update
140 /* Create predicted MB Intra4x4 mode */
195 * Update neighbouring Pred mode array which will be used for
469 * choosing the best mode
482 * function with best mode predicted values
484 * [in] pIntra4x4PredMode - Array of Intra 4x4 prediction mode for the MB.
486 * [in] pBestCost - Cost for the Best Intra 4x4 mode
503 OMX_S32 i, j, x, y, BlockX, BlockY, mode; local
548 /* Go through each mode for minim cost */
549 for (mode
1141 OMX_S32 mode; local
1402 OMX_S32 i, j, x, y, mode; local
[all...]
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp58 * - 4-byte access mode (little-endian)
64 int mode; member in struct:android::file_metadata_v1
212 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, argument
215 LOGP("write_update_file %s (%s) : mode 0%o\n", realFilename, key.string(), mode);
242 metadata.mode = tolel(mode);
365 r.s.mode = st.st_mode;
407 LOGP(" old: modTime=%d,%d mode=%04o size=%-3d crc32=0x%08x",
408 f.modTime_sec, f.modTime_nsec, f.mode,
745 int mode; local
[all...]
H A DAsset.cpp125 * We can use "mode" to decide how we want to go about it.
127 /*static*/ Asset* Asset::createFromFile(const char* fileName, AccessMode mode) argument
172 pAsset->mAccessMode = mode;
184 AccessMode mode)
232 pAsset->mAccessMode = mode;
242 size_t length, AccessMode mode)
252 pAsset->mAccessMode = mode;
261 AccessMode mode)
272 pAsset->mAccessMode = mode;
281 AccessMode mode)
183 createFromCompressedFile(const char* fileName, AccessMode mode) argument
280 createFromUncompressedMap(FileMap* dataMap, AccessMode mode) argument
298 createFromCompressedMap(FileMap* dataMap, size_t uncompressedLen, AccessMode mode) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dpstfilt.cpp94 #include "mode.h"
265 mode = AMR mode
313 enum Mode mode, // i : AMR mode
346 if (sub(mode, MR122) == 0 || sub(mode, MR102) == 0)
441 enum Mode mode, /* i : AMR mode */
474 if (mode
439 Post_Filter( Post_FilterState *st, enum Mode mode, Word16 *syn, Word16 *Az_4, Flag *pOverflow ) argument
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DTracer.java116 * @param mode
118 public void setOutputMode(Mode mode) { argument
120 mCurrentMode = mode;
122 switch (mode) {
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsAccess.java177 final int mode = appOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS,
179 if (mode == AppOpsManager.MODE_DEFAULT) {
186 return (mode == AppOpsManager.MODE_ALLOWED);
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCommon.java53 public void setColorFilter(int color, PorterDuff.Mode mode) { argument
55 mDelegateDrawable.setColorFilter(color, mode);
58 super.setColorFilter(color, mode);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatBackgroundHelper.java160 final PorterDuff.Mode mode = ViewCompat.getBackgroundTintMode(mView);
161 if (mode != null) {
163 info.mTintMode = mode;
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyMetadataMapper.java391 for (String mode : antiBandingModes) {
392 int convertedMode = convertAntiBandingMode(mode);
394 Log.v(TAG, "Antibanding mode " + ((mode == null) ? "NULL" : mode) +
647 // Special case where the only scene mode listed is AUTO => no scene mode
688 Log.v(TAG, "mapLens - focus-mode='" + p.getFocusMode() + "'");
955 // Only "OFF" test pattern mode is available
1070 static int convertSceneModeFromLegacy(String mode) { argument
1081 convertSceneModeToLegacy(int mode) argument
1118 convertEffectModeFromLegacy(String mode) argument
1129 convertEffectModeToLegacy(int mode) argument
1144 convertAntiBandingMode(String mode) argument
1176 convertAntiBandingModeOrDefault(String mode) argument
1468 convertAfModeToLegacy(int mode, List<String> supportedFocusModes) argument
[all...]
/frameworks/base/services/core/java/com/android/server/media/
H A DRemoteDisplayProviderProxy.java92 public void setDiscoveryMode(int mode) { argument
93 if (mDiscoveryMode != mode) {
94 mDiscoveryMode = mode;
96 mActiveConnection.setDiscoveryMode(mode);
356 public void setDiscoveryMode(int mode) { argument
358 mProvider.setDiscoveryMode(mode);
360 Slog.e(TAG, "Failed to deliver request to set discovery mode.", ex);
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DCameraView.java57 byte mode = 0; field in class:CameraView
220 switch (mode) {
251 public void setMode(byte mode) { argument
252 this.mode = mode;
256 return mode;
/frameworks/av/include/media/
H A DVisualizer.h43 * In addition to the polling capture mode, a callback mode is also available by installing a
114 // mode must one of VISUALIZER_SCALING_MODE_NORMALIZED,
116 status_t setScalingMode(uint32_t mode);
121 status_t setMeasurementMode(uint32_t mode);
/frameworks/av/include/media/stagefright/
H A DNuMediaExtractor.h73 MediaSource::ReadOptions::SeekMode mode =
119 MediaSource::ReadOptions::SeekMode mode =

Completed in 973 milliseconds

1234567891011>>