Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp30 static void CheckMessage(CapturedStderr& cap, in CheckMessage() argument
33 cap.Stop(); in CheckMessage()
34 std::string output = cap.str(); in CheckMessage()
42 CapturedStderr cap; \
44 CheckMessage(cap, expect, singleline); \
59 CapturedStderr cap; in TEST() local
61 cap.Stop(); in TEST()
62 ASSERT_EQ(cap.str(), "foobar\n"); in TEST()
66 CapturedStderr cap; in TEST() local
68 cap.Stop(); in TEST()
[all …]
/frameworks/av/media/libmedia/
DMediaProfiles.cpp212 MediaProfiles::logVideoEncoderCap(const MediaProfiles::VideoEncoderCap& cap UNUSED) in logVideoEncoderCap()
215 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap()
216 ALOGV("bit rate: min = %d and max = %d", cap.mMinBitRate, cap.mMaxBitRate); in logVideoEncoderCap()
217 ALOGV("frame width: min = %d and max = %d", cap.mMinFrameWidth, cap.mMaxFrameWidth); in logVideoEncoderCap()
218 ALOGV("frame height: min = %d and max = %d", cap.mMinFrameHeight, cap.mMaxFrameHeight); in logVideoEncoderCap()
219 ALOGV("frame rate: min = %d and max = %d", cap.mMinFrameRate, cap.mMaxFrameRate); in logVideoEncoderCap()
223 MediaProfiles::logAudioEncoderCap(const MediaProfiles::AudioEncoderCap& cap UNUSED) in logAudioEncoderCap()
226 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap()
227 ALOGV("bit rate: min = %d and max = %d", cap.mMinBitRate, cap.mMaxBitRate); in logAudioEncoderCap()
228 ALOGV("sample rate: min = %d and max = %d", cap.mMinSampleRate, cap.mMaxSampleRate); in logAudioEncoderCap()
[all …]
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java75 public TextKeyListener(Capitalize cap, boolean autotext) { in TextKeyListener() argument
76 mAutoCap = cap; in TextKeyListener()
88 Capitalize cap) { in getInstance() argument
89 int off = cap.ordinal() * 2 + (autotext ? 1 : 0); in getInstance()
92 sInstance[off] = new TextKeyListener(cap, autotext); in getInstance()
116 public static boolean shouldCap(Capitalize cap, CharSequence cs, int off) { in shouldCap() argument
120 if (cap == Capitalize.NONE) { in shouldCap()
123 if (cap == Capitalize.CHARACTERS) { in shouldCap()
127 return TextUtils.getCapsMode(cs, off, cap == Capitalize.WORDS in shouldCap()
296 boolean cap = System.getInt(resolver, System.TEXT_AUTO_CAPS, 1) > 0; in updatePrefs()
[all …]
DMultiTapKeyListener.java63 public MultiTapKeyListener(Capitalize cap, in MultiTapKeyListener() argument
65 mCapitalize = cap; in MultiTapKeyListener()
74 Capitalize cap) { in getInstance() argument
75 int off = cap.ordinal() * 2 + (autotext ? 1 : 0); in getInstance()
78 sInstance[off] = new MultiTapKeyListener(cap, autotext); in getInstance()
DQwertyKeyListener.java49 private QwertyKeyListener(Capitalize cap, boolean autoText, boolean fullKeyboard) { in QwertyKeyListener() argument
50 mAutoCap = cap; in QwertyKeyListener()
55 public QwertyKeyListener(Capitalize cap, boolean autoText) { in QwertyKeyListener() argument
56 this(cap, autoText, false); in QwertyKeyListener()
63 public static QwertyKeyListener getInstance(boolean autoText, Capitalize cap) { in getInstance() argument
64 int off = cap.ordinal() * 2 + (autoText ? 1 : 0); in getInstance()
67 sInstance[off] = new QwertyKeyListener(cap, autoText); in getInstance()
DTouch.java133 boolean cap = (event.getMetaState() & KeyEvent.META_SHIFT_ON) != 0 in onTouchEvent()
141 if (cap) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java75 @NonNull PrinterCapabilitiesInfo cap) { in writePrinterCapabilities() argument
78 cap.getMinMargins()); in writePrinterCapabilities()
80 int numMediaSizes = cap.getMediaSizes().size(); in writePrinterCapabilities()
83 cap.getMediaSizes().get(i)); in writePrinterCapabilities()
86 int numResolutions = cap.getResolutions().size(); in writePrinterCapabilities()
89 cap.getResolutions().get(i)); in writePrinterCapabilities()
92 if ((cap.getColorModes() & PrintAttributes.COLOR_MODE_MONOCHROME) != 0) { in writePrinterCapabilities()
96 if ((cap.getColorModes() & PrintAttributes.COLOR_MODE_COLOR) != 0) { in writePrinterCapabilities()
101 if ((cap.getDuplexModes() & PrintAttributes.DUPLEX_MODE_NONE) != 0) { in writePrinterCapabilities()
105 if ((cap.getDuplexModes() & PrintAttributes.DUPLEX_MODE_LONG_EDGE) != 0) { in writePrinterCapabilities()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DMmTelFeatureCompatAdapter.java331 for (CapabilityChangeRequest.CapabilityPair cap : request.getCapabilitiesToDisable()) { in changeEnabledCapabilities()
333 int capConverted = convertCapability(cap.getCapability(), cap.getRadioTech()); in changeEnabledCapabilities()
334 int radioTechConverted = REG_TECH_TO_NET_TYPE.getOrDefault(cap.getRadioTech(), in changeEnabledCapabilities()
346 c.onChangeCapabilityConfigurationError(cap.getCapability(), in changeEnabledCapabilities()
347 cap.getRadioTech(), CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
356 for (CapabilityChangeRequest.CapabilityPair cap : request.getCapabilitiesToEnable()) { in changeEnabledCapabilities()
358 int capConverted = convertCapability(cap.getCapability(), cap.getRadioTech()); in changeEnabledCapabilities()
359 int radioTechConverted = REG_TECH_TO_NET_TYPE.getOrDefault(cap.getRadioTech(), in changeEnabledCapabilities()
371 c.onChangeCapabilityConfigurationError(cap.getCapability(), in changeEnabledCapabilities()
372 cap.getRadioTech(), CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
/frameworks/native/services/inputflinger/reader/
DTouchVideoDevice.cpp58 struct v4l2_capability cap; in create() local
59 int result = ioctl(fd.get(), VIDIOC_QUERYCAP, &cap); in create()
64 if (!(cap.capabilities & V4L2_CAP_TOUCH)) { in create()
69 ALOGI("Opening video device: driver = %s, card = %s, bus_info = %s, version = %i", cap.driver, in create()
70 cap.card, cap.bus_info, cap.version); in create()
71 std::string name = reinterpret_cast<const char*>(cap.card); in create()
/frameworks/native/cmds/idlcli/vibrator/
DCommandGetCapabilities.cpp46 int32_t cap; in doMain() local
50 auto status = hal->call(&aidl::IVibrator::getCapabilities, &cap); in doMain()
58 std::cout << "Capabilities: " << std::bitset<32>(cap) << std::endl; in doMain()
DCommandOn.cpp78 int32_t cap; in doMain() local
79 hal->call(&aidl::IVibrator::getCapabilities, &cap); in doMain()
81 if (mBlocking && (cap & aidl::IVibrator::CAP_ON_CALLBACK)) { in doMain()
DCommandPerform.cpp119 int32_t cap; in doMain() local
120 hal->call(&aidl::IVibrator::getCapabilities, &cap); in doMain()
122 if (mBlocking && (cap & aidl::IVibrator::CAP_PERFORM_CALLBACK)) { in doMain()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java107 for (VideoEncoderCap cap: videoEncoders) { in getMinOrMaxFrameRateForCodec()
108 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec()
109 if (max) return cap.mMaxFrameRate; in getMinOrMaxFrameRateForCodec()
110 else return cap.mMinFrameRate; in getMinOrMaxFrameRateForCodec()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DTextOutputFuzz.cpp34 CapturedStderr cap; in LLVMFuzzerTestOneInput() local
56 cap.Stop(); in LLVMFuzzerTestOneInput()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTest.java151 for (int cap : VcnGatewayConnectionConfigTest.EXPOSED_CAPS) { in verifyBuildNetworkCapabilitiesCommon()
152 if (cap == NET_CAPABILITY_INTERNET || cap == NET_CAPABILITY_DUN) { in verifyBuildNetworkCapabilitiesCommon()
153 assertEquals(isMobileDataEnabled, vcnCaps.hasCapability(cap)); in verifyBuildNetworkCapabilitiesCommon()
155 assertTrue(vcnCaps.hasCapability(cap)); in verifyBuildNetworkCapabilitiesCommon()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp201 constexpr TestCapacity cap(123u); in StaticLinearRangeAndCapacityTest() local
202 static_assert(TestCapacity(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
206 static_assert(TestRange(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
207 static_assert(TestRange(&cap).offset() == 0u, ""); in StaticLinearRangeAndCapacityTest()
208 static_assert(TestRange(&cap).size() == 123u, ""); in StaticLinearRangeAndCapacityTest()
209 static_assert(TestRange(&cap).endOffset() == 123u, ""); in StaticLinearRangeAndCapacityTest()
211 constexpr TestRange range(&cap, 50u, 100u); in StaticLinearRangeAndCapacityTest()
218 static_assert(TestRange(&cap, 20u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
219 static_assert(TestRange(&cap, 20u, 30u).offset() == 20u, ""); in StaticLinearRangeAndCapacityTest()
220 static_assert(TestRange(&cap, 20u, 30u).size() == 30u, ""); in StaticLinearRangeAndCapacityTest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DTelephonyNetworkRequest.java331 .filter(cap -> DataUtils.networkCapabilityToApnType(cap) != ApnSetting.TYPE_NONE) in getApnTypeNetworkCapability()
422 .filter(cap -> (CAPABILITY_ATTRIBUTE_MAP.getOrDefault( in getOsAppId()
423 cap, CAPABILITY_ATTRIBUTE_NONE) in getOsAppId()
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h503 static void logVideoEncoderCap(const VideoEncoderCap& cap);
504 static void logAudioEncoderCap(const AudioEncoderCap& cap);
505 static void logVideoDecoderCap(const VideoDecoderCap& cap);
506 static void logAudioDecoderCap(const AudioDecoderCap& cap);
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp113 int32_t cap = 0; in getCapabilities() local
114 auto result = getHal()->getCapabilities(&cap); in getCapabilities()
116 static_cast<ManagerCapabilities>(cap)); in getCapabilities()
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp109 jobject cap = env->NewObject(videoEncoderCapClazz, in android_media_MediaProfiles_native_get_video_encoder_cap() local
116 return cap; in android_media_MediaProfiles_native_get_video_encoder_cap()
157 jobject cap = env->NewObject(audioEncoderCapClazz, in android_media_MediaProfiles_native_get_audio_encoder_cap() local
163 return cap; in android_media_MediaProfiles_native_get_audio_encoder_cap()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcnNetworkProvider.java121 for (int cap : VcnGatewayConnectionConfig.ALLOWED_CAPABILITIES) { in buildCapabilityFilter()
122 builder.addCapability(cap); in buildCapabilityFilter()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DCat.java215 tint(capColor, D.cap); in Cat()
448 public Drawable cap;
485 cap = context.getDrawable(R.drawable.cap);
510 cap,
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DDeviceVibrationEffectAdapterTest.java216 int cap = IntStream.of(capabilities).reduce((a, b) -> a | b).orElse(0); in createVibratorInfo() local
218 .setCapabilities(cap) in createVibratorInfo()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL11Ext.java115 int cap in glEnable() argument
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.1ext10 void glEnable ( GLenum cap )

1234