Searched refs:mode (Results 176 - 200 of 1008) sorted by relevance

1234567891011>>

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DSharingSupportProvider.java75 public ParcelFileDescriptor openFile(Uri uri, String mode) { argument
77 if (mode.equals("r") &&
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DDefaultMeasureSpecTest.java117 int mode = View.MeasureSpec.getMode(mHSpec);
118 switch (mode) {
132 int mode = View.MeasureSpec.getMode(mWSpec);
133 switch (mode) {
155 int mode = View.MeasureSpec.getMode(spec);
156 if (mode == View.MeasureSpec.AT_MOST) {
159 if (mode == View.MeasureSpec.UNSPECIFIED) {
162 if (mode == View.MeasureSpec.EXACTLY) {
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyResultMapper.java166 * control.mode
183 int mode = LegacyMetadataMapper.convertSceneModeFromLegacy(legacySceneMode);
184 if (mode != LegacyMetadataMapper.UNKNOWN_MODE) {
185 result.set(CaptureResult.CONTROL_SCENE_MODE, mode);
189 Log.w(TAG, "Unknown scene mode " + legacySceneMode +
200 int mode = LegacyMetadataMapper.convertEffectModeFromLegacy(legacyEffectMode);
201 if (mode != LegacyMetadataMapper.UNKNOWN_MODE) {
202 result.set(CaptureResult.CONTROL_EFFECT_MODE, mode);
204 Log.w(TAG, "Unknown effect mode " + legacyEffectMode +
223 // flash.mode, flas
453 convertLegacyAfMode(String mode) argument
480 convertLegacyAwbMode(String mode) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dph_disp.cpp393 mode = codec mode (enum Mode)
440 enum Mode mode, // i : codec mode
548 if (sub(mode, MR122) != 0 &&
549 sub(mode, MR102) != 0 &&
550 sub(mode, MR74) != 0 &&
566 // Choose filter corresponding to codec mode and dispersion criterium
567 if (sub (mode, MR795) == 0)
656 enum Mode mode, /*
654 ph_disp( ph_dispState *state, enum Mode mode, Word16 x[], Word16 cbGain, Word16 ltpGain, Word16 inno[], Word16 pitch_fac, Word16 tmp_shift, Flag *pOverflow ) argument
[all...]
H A Dph_disp.h69 #include "mode.h"
163 ; mode and computes total excitation for synthesis part
170 enum Mode mode, /* i : codec mode */
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java114 * There are no guarantees that this access mode will remain on
130 * There are no guarantees that this access mode will remain on
199 * @param mode The desired access mode, must be one of
207 * be opened with the requested mode.
210 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { argument
211 final FileDescriptor fd = openInternal(file, mode);
221 * @param mode The desired access mode, must be one of
232 * be opened with the requested mode
235 open(File file, int mode, Handler handler, final OnCloseListener listener) argument
287 openInternal(File file, int mode) argument
555 parseMode(String mode) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProvider.java132 public ParcelFileDescriptor openFile(Uri url, String mode) throws FileNotFoundException { argument
137 return getBlobColumnAsFile(url, mode, sql);
152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, String mode, String sql) argument
154 if (!"r".equals(mode)) {
155 throw new FileNotFoundException("Mode " + mode + " not supported for " + url);
/frameworks/base/libs/hwui/
H A DClipArea.h94 explicit ClipBase(ClipMode mode) : mode(mode) {} argument
95 explicit ClipBase(const Rect& rect) : mode(ClipMode::Rectangle), rect(rect) {}
96 const ClipMode mode; member in struct:android::uirenderer::ClipBase
/frameworks/base/services/core/java/com/android/server/am/
H A DUriPermissionOwner.java69 void removeUriPermissionsLocked(int mode) { argument
70 removeUriPermissionLocked(null, mode);
73 void removeUriPermissionLocked(ActivityManagerService.GrantUri grantUri, int mode) { argument
74 if ((mode & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0
89 if ((mode & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0
H A DCompatModePackages.java57 // Compatibility state: no longer ask user to select the mode.
59 // Compatibility state: compatibility mode is enabled.
85 mFile = new AtomicFile(new File(systemDir, "packages-compat.xml"), "compat-mode");
112 String mode = parser.getAttributeValue(null, "mode");
114 if (mode != null) {
116 modeInt = Integer.parseInt(mode);
183 // Update -- if the app no longer can run in compat mode, clear
266 public void setFrontActivityScreenCompatModeLocked(int mode) { argument
272 setPackageScreenCompatModeLocked(r.info.applicationInfo, mode);
287 setPackageScreenCompatModeLocked(String packageName, int mode) argument
300 setPackageScreenCompatModeLocked(ApplicationInfo ai, int mode) argument
[all...]
/frameworks/base/core/java/android/app/
H A DAppOpsManager.java70 * <p></p>When checking operations, the result is a "mode" integer indicating the current
107 * use its default security check. This mode is not normally used; it should only be used
113 * Special mode that means "allow only when app is in foreground." This is <b>not</b>
115 * mode is set, these functions will return {@link #MODE_ALLOWED} when the app being
1166 * This specifies the default mode for each operation.
1458 * Retrieve the default mode for the operation.
1466 * Retrieve the human readable mode.
1469 public static String modeToName(int mode) { argument
1470 if (mode >= 0 && mode < MODE_NAME
1561 OpEntry(int op, int mode, long time, long rejectTime, int duration, int proxyUid, String proxyPackage) argument
1575 OpEntry(int op, int mode, long[] times, long[] rejectTimes, int duration, boolean running, int proxyUid, String proxyPackage) argument
1589 OpEntry(int op, int mode, long[] times, long[] rejectTimes, int duration, int proxyUid, String proxyPackage) argument
1780 setUidMode(int code, int uid, int mode) argument
1800 setUidMode(String appOp, int uid, int mode) argument
1832 setMode(int code, int uid, String packageName, int mode) argument
1853 setMode(String op, int uid, String packageName, int mode) argument
1873 setRestriction(int code, @AttributeUsage int usage, int mode, String[] exceptionPackages) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dgc_pred.cpp202 mode = AMR mode (enum Mode)
203 code = pointer to the innovative codebook vector; Q12 in MR122 mode,
210 is calculated for MR795 mode, Q0 (Word16)
212 this is calculated for MR795 mode, Q15 (Word16)
262 enum Mode mode, // i : AMR mode
288 if (sub (mode, MR122) == 0)
376 if (sub (mode, MR102) == 0)
381 else if (sub (mode, MR79
466 gc_pred( gc_predState *st, enum Mode mode, Word16 *code, Word16 *exp_gcode0, Word16 *frac_gcode0, Word16 *exp_en, Word16 *frac_en, Flag *pOverflow ) argument
[all...]
/frameworks/base/media/lib/remotedisplay/java/com/android/media/remotedisplay/
H A DRemoteDisplayProvider.java117 * Discovery mode: Do not perform any discovery.
122 * Discovery mode: Passive or low-power periodic discovery.
124 * This mode indicates that an application is interested in knowing whether there
133 * Discovery mode: Active discovery.
135 * This mode indicates that the user is actively trying to connect to a route
136 * and we should perform continuous scans. This mode may use significantly more
174 * Called when the current discovery mode changes.
176 * @param mode The new discovery mode.
178 public void onDiscoveryModeChanged(int mode) { argument
305 setDiscoveryMode(int mode) argument
335 setDiscoveryMode(int mode) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DIPv6TetheringCoordinator.java54 public final int mode; // IControlsTethering.STATE_* field in class:IPv6TetheringCoordinator.Downstream
58 Downstream(TetherInterfaceStateMachine tism, int mode, short subnetId) { argument
60 this.mode = mode;
86 public void addActiveDownstream(TetherInterfaceStateMachine downstream, int mode) { argument
90 // We never change the mode of a downstream except by first removing
91 // it and then re-adding it (with its new mode specified);
92 if (mActiveDownstreams.offer(new Downstream(downstream, mode, mNextSubnetId))) {
175 if (ds.mode == IControlsTethering.STATE_LOCAL_ONLY) {
180 // This downstream is in IControlsTethering.STATE_TETHERED mode
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2CaptureRequestTest.java78 * Test AE mode and lock.
82 * For AE modes, each mode should satisfy the per frame controls defined in
103 Log.v(TAG, String.format("AE mode and lock: %d/%d", iteration + 1,
108 for (int mode : aeModes) {
109 aeModeAndLockTestByMode(mode);
123 * For manual AE mode, test iterates through different sensitivities and
125 * CONTROL_AE_MODE_ON_ALWAYS_FLASH mode, the AE lock and flash are tested.
126 * For the rest of the AUTO mode, AE lock is tested.
129 * @param mode
131 private void aeModeAndLockTestByMode(int mode) argument
163 aeAutoModeTestLock(int mode) argument
[all...]
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerServiceShellCommand.java84 pw.println(" Gets the Fill UI full screen mode");
102 pw.println(" Sets the Fill UI full screen mode");
243 final Boolean mode = mService.getFullScreenMode();
244 if (mode == null) {
246 } else if (mode) {
255 final String mode = getNextArgRequired();
256 switch (mode.toLowerCase()) {
267 pw.println("Invalid mode: " + mode);
282 final String mode
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dbits.c36 Word16 coding_mode, /* i: coding bit-stream ratio mode */
37 Word16 mode, /* i: coding bit-stream ratio mode*/
86 *(dataOut + 2) = mode;
118 /* change mode index in case of SID frame */
161 /* insert SID type indication and speech mode in case of SID frame */
169 temp += mode & 0x000F;
35 PackBits(Word16 prms[], Word16 coding_mode, Word16 mode, Coder_State *st ) argument
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.h73 virtual status_t setPhoneState(audio_mode_t mode) argument
75 return mPolicyEngine->setPhoneState(mode);
113 status_t setPhoneState(audio_mode_t mode);
/frameworks/base/core/java/android/provider/
H A DSearchRecentSuggestions.java124 * @param mode You can use mode flags here to determine certain functional aspects of your
131 public SearchRecentSuggestions(Context context, String authority, int mode) { argument
133 ((mode & SearchRecentSuggestionsProvider.DATABASE_MODE_QUERIES) == 0)) {
136 // unpack mode flags
137 mTwoLineDisplay = (0 != (mode & SearchRecentSuggestionsProvider.DATABASE_MODE_2LINES));
158 * If you did not configure two-line mode, or if a given suggestion does not have any
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DPorterDuffUtility.java58 * PorterDuff mode and the alpha. Defaults to {@link Mode#SRC_OVER} for invalid modes.
60 public static Composite getComposite(Mode mode, int alpha255) { argument
62 switch (mode) {
101 String.format("Unsupported PorterDuff Mode: %1$s", mode.name()),
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DVectorDrawableCommon.java36 public void setColorFilter(int color, PorterDuff.Mode mode) { argument
38 mDelegateDrawable.setColorFilter(color, mode);
41 super.setColorFilter(color, mode);
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp101 bool set(int mode, int socket, sockaddr_storage *remote,
167 bool AudioStream::set(int mode, int socket, sockaddr_storage *remote, argument
171 if (mode < 0 || mode > LAST_MODE) {
174 mMode = mode;
223 ALOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket,
480 bool setMode(int mode);
628 bool AudioGroup::setMode(int mode) argument
630 if (mode < 0 || mode > LAST_MOD
787 int mode = mGroup->mMode; local
943 add(JNIEnv *env, jobject thiz, jint mode, jint socket, jstring jRemoteAddress, jint remotePort, jstring jCodecSpec, jint dtmfType, jstring opPackageNameStr) argument
1003 int mode = env->GetIntField(thiz, gMode); local
1043 setMode(JNIEnv *env, jobject thiz, jint mode) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DNuMediaExtractor.h77 MediaSource::ReadOptions::SeekMode mode =
83 MediaSource::ReadOptions::SeekMode mode =
143 MediaSource::ReadOptions::SeekMode mode =
148 MediaSource::ReadOptions::SeekMode mode =
/frameworks/av/media/libaaudio/examples/utils/
H A DAAudioExampleUtils.h36 const char *getSharingModeText(aaudio_sharing_mode_t mode) { argument
38 switch (mode) {
51 const char *getPerformanceModeText(aaudio_performance_mode_t mode) { argument
53 switch (mode) {
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dq_plsf.h66 #include "mode.h"
144 enum Mode mode, /* i : coder mode */
148 Word16 *pred_init_i,/* o : init index for MA prediction in DTX mode */

Completed in 626 milliseconds

1234567891011>>