Searched refs:mode (Results 326 - 350 of 752) sorted by relevance

<<11121314151617181920>>

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapShader_Delegate.java207 private int getCoordinate(int i, int size, TileMode mode) { argument
209 switch (mode) {
229 switch (mode) {
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DWindowDecorActionBar.java115 // The fade duration for toolbar and action bar when entering/exiting action mode.
184 * Only for edit mode.
410 "setSelectedNavigationIndex not valid for current navigation mode");
506 ActionModeImpl mode = new ActionModeImpl(mContextView.getContext(), callback);
507 if (mode.dispatchOnCreate()) {
510 mActionMode = mode;
511 mode.invalidate();
512 mContextView.initForMode(mode);
515 return mode;
611 // If we're not in edit mode an
1300 setNavigationMode(int mode) argument
[all...]
H A DAppCompatDelegateImplV7.java695 // If the action bar didn't provide an action mode, start the emulated window one
722 ActionMode mode = null;
725 mode = mAppCompatCallback.onWindowStartingSupportActionMode(callback);
731 if (mode != null) {
732 mActionMode = mode;
810 mode = new StandaloneActionMode(mActionModeView.getContext(), mActionModeView,
812 if (callback.onCreateActionMode(mode, mode.getMenu())) {
813 mode.invalidate();
814 mActionModeView.initForMode(mode);
1769 onCreateActionMode(ActionMode mode, Menu menu) argument
1773 onPrepareActionMode(ActionMode mode, Menu menu) argument
1777 onActionItemClicked(ActionMode mode, MenuItem item) argument
1781 onDestroyActionMode(ActionMode mode) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWC2On1Adapter.cpp897 Error HWC2On1Adapter::Display::setColorMode(int32_t mode) argument
901 ALOGV("[%" PRIu64 "] setColorMode(%d)", mId, mode);
903 if (mode == mActiveColorMode) {
906 if (mColorModes.count(mode) == 0) {
907 ALOGE("[%" PRIu64 "] Mode %d not found in mColorModes", mId, mode);
912 auto error = mActiveConfig->getHwc1IdForColorMode(mode, &hwc1Config);
925 mActiveColorMode = mode;
950 static bool isValid(PowerMode mode) argument
952 switch (mode) {
961 static int getHwc1PowerMode(PowerMode mode) argument
972 setPowerMode(PowerMode mode) argument
1466 hwc1BlendModeString(int32_t mode) argument
1628 output << " [" << mode << ']'; local
1630 output << " " << mode; local
1706 getHwc1IdForColorMode(int32_t mode, uint32_t* outId) const argument
2025 setBlendMode(BlendMode mode) argument
[all...]
H A DHWComposer.cpp597 auto mode = static_cast<HWC2::PowerMode>(intMode); local
598 if (mode == HWC2::PowerMode::Off) {
603 switch (mode) {
606 ALOGV("setPowerMode: Calling HWC %s", to_string(mode).c_str());
608 auto error = hwcDisplay->setPowerMode(mode);
610 ALOGE("setPowerMode: Unable to set power mode %s for "
611 "display %d: %s (%d)", to_string(mode).c_str(),
619 ALOGV("setPowerMode: Calling HWC %s", to_string(mode).c_str());
630 mode = HWC2::PowerMode::On;
633 error = hwcDisplay->setPowerMode(mode);
[all...]
/frameworks/base/core/java/android/content/
H A DContentResolver.java735 * @param mode May be "w", "wa", "rw", or "rwt".
740 public final @Nullable OutputStream openOutputStream(@NonNull Uri uri, @NonNull String mode) argument
742 AssetFileDescriptor fd = openAssetFileDescriptor(uri, mode, null);
771 * of data. Opening with the "rw" mode implies a file on disk that supports
772 * seeking. If possible, always use an exclusive mode to give the underlying
779 * @param mode The file mode to use, as per {@link ContentProvider#openFile
784 * file exists under the URI or the mode is invalid.
788 @NonNull String mode) throws FileNotFoundException {
789 return openFileDescriptor(uri, mode, nul
787 openFileDescriptor(@onNull Uri uri, @NonNull String mode) argument
832 openFileDescriptor(@onNull Uri uri, @NonNull String mode, @Nullable CancellationSignal cancellationSignal) argument
903 openAssetFileDescriptor(@onNull Uri uri, @NonNull String mode) argument
959 openAssetFileDescriptor(@onNull Uri uri, @NonNull String mode, @Nullable CancellationSignal cancellationSignal) argument
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp226 // and then put stencil into test mode
244 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist");
278 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region");
303 // only modify stencil mode and content when it's not used for overdraw visualization
304 if (CC_UNLIKELY(clip && clip->mode != ClipMode::Rectangle)) {
321 if (clip->mode == ClipMode::RectangleList) {
330 if (CC_LIKELY(clip->mode == ClipMode::RectangleList)) {
H A DGlopBuilder.cpp235 SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage,
237 if (mode != SkXfermode::kClear_Mode) {
261 || mode != SkXfermode::kSrcOver_Mode) {
262 if (CC_LIKELY(mode <= SkXfermode::kScreen_Mode)) {
263 Blend::getFactors(mode, modeUsage,
269 // If the blend mode cannot be implemented using shaders, fall
270 // back to the default SrcOver blend mode instead
272 mDescription.framebufferMode = mode;
286 SkXfermode::Mode mode; local
288 if (colorFilter->asColorMode(&color, &mode)) {
234 setFill(int color, float alphaScale, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage, const SkShader* shader, const SkColorFilter* colorFilter) argument
451 setFillLayer(Texture& texture, const SkColorFilter* colorFilter, float alpha, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLES32.java415 // C function void glBlendEquationi ( GLuint buf, GLenum mode )
419 int mode
465 // C function void glDrawElementsBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex )
468 int mode,
475 // C function void glDrawRangeElementsBaseVertex ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex )
478 int mode,
487 // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex )
490 int mode,
498 // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex )
501 int mode,
467 glDrawElementsBaseVertex( int mode, int count, int type, java.nio.Buffer indices, int basevertex ) argument
477 glDrawRangeElementsBaseVertex( int mode, int start, int end, int count, int type, java.nio.Buffer indices, int basevertex ) argument
489 glDrawElementsInstancedBaseVertex( int mode, int count, int type, java.nio.Buffer indices, int instanceCount, int basevertex ) argument
500 glDrawElementsInstancedBaseVertex( int mode, int count, int type, int indicesOffset, int instanceCount, int basevertex ) argument
[all...]
H A DGLES10.java467 // C function void glCullFace ( GLenum mode )
470 int mode
526 // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count )
529 int mode,
534 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
537 int mode,
609 // C function void glFrontFace ( GLenum mode )
612 int mode
677 // C function void glHint ( GLenum target, GLenum mode )
681 int mode
528 glDrawArrays( int mode, int first, int count ) argument
536 glDrawElements( int mode, int count, int type, java.nio.Buffer indices ) argument
[all...]
H A DGLErrorWrapper.java201 public void glCullFace(int mode) { argument
203 mgl.glCullFace(mode);
255 public void glDrawArrays(int mode, int first, int count) { argument
257 mgl.glDrawArrays(mode, first, count);
261 public void glDrawElements(int mode, int count, int type, Buffer indices) { argument
263 mgl.glDrawElements(mode, count, type, indices);
327 public void glFrontFace(int mode) { argument
329 mgl.glFrontFace(mode);
384 public void glHint(int target, int mode) { argument
386 mgl.glHint(target, mode);
546 glMatrixMode(int mode) argument
712 glShadeModel(int mode) argument
1003 glDrawElements(int mode, int count, int type, int offset) argument
1395 glBlendEquation(int mode) argument
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2PSExtractor.cpp597 ElementaryStreamQueue::Mode mode; local
601 mode = ElementaryStreamQueue::H264;
604 mode = ElementaryStreamQueue::AAC;
608 mode = ElementaryStreamQueue::MPEG_AUDIO;
613 mode = ElementaryStreamQueue::MPEG_VIDEO;
617 mode = ElementaryStreamQueue::MPEG4_VIDEO;
626 mQueue = new ElementaryStreamQueue(mode);
/frameworks/base/core/java/android/app/
H A DContextImpl.java336 public SharedPreferences getSharedPreferences(String name, int mode) { argument
358 return getSharedPreferences(file, mode);
362 public SharedPreferences getSharedPreferences(File file, int mode) { argument
363 checkMode(mode);
369 sp = new SharedPreferencesImpl(file, mode);
374 if ((mode & Context.MODE_MULTI_PROCESS) != 0 ||
489 public FileOutputStream openFileOutput(String name, int mode) throws FileNotFoundException { argument
490 checkMode(mode);
491 final boolean append = (mode&MODE_APPEND) != 0;
495 setFilePermissionsFromMode(f.getPath(), mode,
664 openOrCreateDatabase(String name, int mode, CursorFactory factory) argument
669 openOrCreateDatabase(String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) argument
1982 getDir(String name, int mode) argument
2159 checkMode(int mode) argument
2171 setFilePermissionsFromMode(String name, int mode, int extraPermissions) argument
[all...]
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL10.java393 int mode
434 int mode,
440 int mode,
493 int mode
545 int mode
690 int mode
846 int mode
433 glDrawArrays( int mode, int first, int count ) argument
439 glDrawElements( int mode, int count, int type, java.nio.Buffer indices ) argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionSessionConnection.java327 void grantUriPermission(Uri uri, int mode, int srcUid, int destUid, String destPkg) { argument
335 mode, ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(srcUid)));
350 void grantClipDataItemPermission(ClipData.Item item, int mode, int srcUid, int destUid, argument
353 grantUriPermission(item.getUri(), mode, srcUid, destUid, destPkg);
357 grantUriPermission(intent.getData(), mode, srcUid, destUid, destPkg);
361 void grantClipDataPermissions(ClipData data, int mode, int srcUid, int destUid, argument
365 grantClipDataItemPermission(data.getItemAt(i), mode, srcUid, destUid, destPkg);
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DInputMethodUtils.java409 @Nullable final Locale locale, final boolean checkCountry, final String mode) {
430 if (mode == SUBTYPE_MODE_ANY || TextUtils.isEmpty(mode) ||
431 mode.equalsIgnoreCase(subtype.getMode())) {
448 InputMethodInfo imi, String mode) {
453 if (subtype.overridesImplicitlyEnabledSubtype() && subtype.getMode().equals(mode)) {
551 final String mode = subtype.getMode();
552 if (!applicableModeAndSubtypesMap.containsKey(mode)) {
553 applicableModeAndSubtypesMap.put(mode, subtype);
567 final String mode
408 containsSubtypeOf(final InputMethodInfo imi, @Nullable final Locale locale, final boolean checkCountry, final String mode) argument
447 getOverridingImplicitlyEnabledSubtypes( InputMethodInfo imi, String mode) argument
645 findLastResortApplicableSubtypeLocked( Resources res, List<InputMethodSubtype> subtypes, String mode, String locale, boolean canIgnoreLocaleAsLastResort) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSpinner.java84 * Use the theme-supplied value to select the dropdown mode.
117 * mode of displaying choices. <code>mode</code> may be one of
122 * @param mode Constant describing how the user will select choices from
128 public Spinner(Context context, int mode) { argument
129 this(context, null, com.android.internal.R.attr.spinnerStyle, mode);
162 * attribute set, and default style attribute. <code>mode</code> may be one
172 * @param mode Constant describing how the user will select choices from the
178 public Spinner(Context context, AttributeSet attrs, int defStyleAttr, int mode) { argument
179 this(context, attrs, defStyleAttr, 0, mode);
205 Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int mode) argument
238 Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int mode, Theme popupTheme) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaExtractor.cpp127 int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) {
128 return mImpl->seekTo(timeUs, mode);
368 JNIEnv *env, jobject thiz, jlong timeUs, jint mode) {
376 if (mode < MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC
377 || mode >= MediaSource::ReadOptions::SEEK_CLOSEST) {
382 extractor->seekTo(timeUs, (MediaSource::ReadOptions::SeekMode)mode);
580 int32_t mode; local
581 if (!meta->findInt32(kKeyCryptoMode, &mode)) {
582 mode = CryptoPlugin::kMode_AES_CTR;
593 mode);
126 seekTo( int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) argument
367 android_media_MediaExtractor_seekTo( JNIEnv *env, jobject thiz, jlong timeUs, jint mode) argument
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES30.spec1 void glReadBuffer ( GLenum mode )
2 void glDrawRangeElements ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices )
3 void glDrawRangeElements ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLsizei offset )
75 void glDrawArraysInstanced ( GLenum mode, GLint first, GLsizei count, GLsizei instanceCount )
76 void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount )
/frameworks/native/opengl/include/GLES2/
H A Dgl2ext.h306 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIOESPROC) (GLuint buf, GLenum mode);
315 GL_APICALL void GL_APIENTRY glBlendEquationiOES (GLuint buf, GLenum mode);
326 typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
327 typedef void (GL_APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
328 typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
329 typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXOESPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex);
331 GL_APICALL void GL_APIENTRY glDrawElementsBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
332 GL_APICALL void GL_APIENTRY glDrawRangeElementsBaseVertexOES (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
333 GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
334 GL_APICALL void GL_APIENTRY glMultiDrawElementsBaseVertexOES (GLenum mode, cons
[all...]
/frameworks/native/opengl/libagl/
H A Darray.cpp46 static void validate_arrays(ogles_context_t* c, GLenum mode);
401 void vertex_cache_t::dump_stats(GLenum mode) argument
406 switch (mode) {
423 void vertex_cache_t::dump_stats(GLenum /*mode*/)
1084 void validate_arrays(ogles_context_t* c, GLenum mode) argument
1094 c->perspective && mode!=GL_POINTS && (enables & GGL_ENABLE_TMUS);
1099 switch (mode) {
1114 (mode == GL_POINTS) ? GL_FLAT : c->lighting.shadeModel);
1345 void glDrawArrays(GLenum mode, GLint first, GLsizei count) argument
1352 switch (mode) {
1389 glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp388 cryptoinfo_mode_t mode; member in struct:AMediaCodecCryptoInfo
420 (CryptoPlugin::Mode)crypto->mode,
445 cryptoinfo_mode_t mode,
459 ret->mode = mode;
514 return ci->mode;
441 AMediaCodecCryptoInfo_new( int numsubsamples, uint8_t key[16], uint8_t iv[16], cryptoinfo_mode_t mode, size_t *clearbytes, size_t *encryptedbytes) argument
/frameworks/base/core/java/android/os/
H A DFileUtils.java86 * Set owner and mode of of given {@link File}.
88 * @param mode to apply through {@code chmod}
93 public static int setPermissions(File path, int mode, int uid, int gid) { argument
94 return setPermissions(path.getAbsolutePath(), mode, uid, gid);
98 * Set owner and mode of of given path.
100 * @param mode to apply through {@code chmod}
105 public static int setPermissions(String path, int mode, int uid, int gid) { argument
107 Os.chmod(path, mode);
126 * Set owner and mode of of given {@link FileDescriptor}.
128 * @param mode t
133 setPermissions(FileDescriptor fd, int mode, int uid, int gid) argument
[all...]
/frameworks/base/libs/hwui/debug/
H A Dnullgles.cpp173 void glBlendEquation(GLenum mode) {} argument
189 void glCullFace(GLenum mode) {} argument
201 void glDrawArrays(GLenum mode, GLint first, GLsizei count) {} argument
202 void glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices) {} argument
208 void glFrontFace(GLenum mode) {} argument
213 void glHint(GLenum target, GLenum mode) {} argument
/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java78 // flag set by resource, whether to enable Car dock launch when starting car mode.
80 // flag set by resource, whether to lock UI mode to the default one or not.
82 // flag set by resource, whether to night mode change for normal all or not.
213 Slog.e(TAG, "enableCarMode while UI mode is locked");
232 Slog.e(TAG, "disableCarMode while UI mode is locked");
261 public void setNightMode(int mode) {
266 "Night mode locked, requires MODIFY_DAY_NIGHT_MODE permission");
269 switch (mode) {
275 throw new IllegalArgumentException("Unknown mode: " + mode);
[all...]

Completed in 699 milliseconds

<<11121314151617181920>>