Home
last modified time | relevance | path

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

1234

/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp31 static void CheckMessage(CapturedStderr& cap, in CheckMessage() argument
34 cap.Stop(); in CheckMessage()
35 std::string output = cap.str(); in CheckMessage()
43 CapturedStderr cap; \
45 CheckMessage(cap, expect, singleline); \
60 CapturedStderr cap; in TEST() local
62 cap.Stop(); in TEST()
63 ASSERT_EQ(cap.str(), "foobar\n"); in TEST()
67 CapturedStderr cap; in TEST() local
69 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()
/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/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/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/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.cpp35 CapturedStderr cap; in LLVMFuzzerTestOneInput() local
57 cap.Stop(); in LLVMFuzzerTestOneInput()
/frameworks/base/core/java/com/android/internal/util/
DRingBuffer.java49 this(() -> (T) createNewItem(c), cap -> (T[]) Array.newInstance(c, cap), capacity); in RingBuffer()
/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.java391 .filter(cap -> DataUtils.networkCapabilityToApnType(cap) != ApnSetting.TYPE_NONE) in getApnTypeNetworkCapability()
485 .filter(cap -> (CAPABILITY_ATTRIBUTE_MAP.getOrDefault( in getOsAppId()
486 cap, CAPABILITY_ATTRIBUTE_NONE) in getOsAppId()
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp113 int32_t cap = 0; in getCapabilities() local
114 auto result = getHal()->getCapabilities(&cap); in getCapabilities()
115 auto capabilities = static_cast<ManagerCapabilities>(cap); in getCapabilities()
/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/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTest.java165 for (int cap : VcnGatewayConnectionConfigTest.EXPOSED_CAPS) { in verifyBuildNetworkCapabilitiesCommon()
166 if (cap == NET_CAPABILITY_INTERNET || cap == NET_CAPABILITY_DUN) { in verifyBuildNetworkCapabilitiesCommon()
167 assertEquals(isMobileDataEnabled, vcnCaps.hasCapability(cap)); in verifyBuildNetworkCapabilitiesCommon()
169 assertTrue(vcnCaps.hasCapability(cap)); in verifyBuildNetworkCapabilitiesCommon()
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DNetworkPriorityClassifier.java171 final int cap = entry.getKey(); in checkMatchesPriorityRule() local
174 if (matchCriteria == MATCH_REQUIRED && !caps.hasCapability(cap)) { in checkMatchesPriorityRule()
176 } else if (matchCriteria == MATCH_FORBIDDEN && caps.hasCapability(cap)) { in checkMatchesPriorityRule()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/
DTextPaint.java45 void setStrokeCap(int cap); in setStrokeCap() argument
DPaintChangeAdapter.java41 public void setStrokeCap(int cap) { in setStrokeCap() argument
DPaintChanges.java62 void setStrokeCap(int cap); in setStrokeCap() argument
/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()

1234