Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 77) 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/base/libs/hwui/debug/
DNullGlesDriver.cpp103 void setBooleanState(GLenum cap, GLboolean value) { in setBooleanState() argument
104 switch (cap) { in setBooleanState()
111 void NullGlesDriver::glEnable_(GLenum cap) { in glEnable_() argument
112 setBooleanState(cap, GL_TRUE); in glEnable_()
115 void NullGlesDriver::glDisable_(GLenum cap) { in glDisable_() argument
116 setBooleanState(cap, GL_FALSE); in glDisable_()
119 GLboolean NullGlesDriver::glIsEnabled_(GLenum cap) { in glIsEnabled_() argument
120 switch (cap) { in glIsEnabled_()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp184 MediaProfiles::logVideoEncoderCap(const MediaProfiles::VideoEncoderCap& cap UNUSED) in logVideoEncoderCap()
187 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap()
188 ALOGV("bit rate: min = %d and max = %d", cap.mMinBitRate, cap.mMaxBitRate); in logVideoEncoderCap()
189 ALOGV("frame width: min = %d and max = %d", cap.mMinFrameWidth, cap.mMaxFrameWidth); in logVideoEncoderCap()
190 ALOGV("frame height: min = %d and max = %d", cap.mMinFrameHeight, cap.mMaxFrameHeight); in logVideoEncoderCap()
191 ALOGV("frame rate: min = %d and max = %d", cap.mMinFrameRate, cap.mMaxFrameRate); in logVideoEncoderCap()
195 MediaProfiles::logAudioEncoderCap(const MediaProfiles::AudioEncoderCap& cap UNUSED) in logAudioEncoderCap()
198 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap()
199 ALOGV("bit rate: min = %d and max = %d", cap.mMinBitRate, cap.mMaxBitRate); in logAudioEncoderCap()
200 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttNativeTest.java224 RttCapabilities cap = getFullRttCapabilities(); in testRangeRequestWithLimitedCapabilities() local
225 cap.rttOneSidedSupported = false; in testRangeRequestWithLimitedCapabilities()
226 cap.lciSupported = false; in testRangeRequestWithLimitedCapabilities()
227 cap.lcrSupported = false; in testRangeRequestWithLimitedCapabilities()
228 cap.bwSupport = RttBw.BW_10MHZ | RttBw.BW_160MHZ; in testRangeRequestWithLimitedCapabilities()
229 cap.preambleSupport = RttPreamble.LEGACY; in testRangeRequestWithLimitedCapabilities()
230 mGetCapCbCatpr.getValue().onValues(mStatusSuccess, cap); in testRangeRequestWithLimitedCapabilities()
279 RttCapabilities cap = getFullRttCapabilities(); in testRangeRequestWithLimitedCapabilitiesNoOverlap() local
280 cap.bwSupport = RttBw.BW_80MHZ; in testRangeRequestWithLimitedCapabilitiesNoOverlap()
281 cap.preambleSupport = RttPreamble.VHT; in testRangeRequestWithLimitedCapabilitiesNoOverlap()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttNative.java281 boolean isCalledFromPrivilegedContext, RttCapabilities cap) { in convertRangingRequestToRttConfigs() argument
301 if (config.type == RttType.ONE_SIDED && cap != null && !cap.rttOneSidedSupported) { in convertRangingRequestToRttConfigs()
335 if (cap != null) { // constrain parameters per device capabilities in convertRangingRequestToRttConfigs()
336 config.mustRequestLci = config.mustRequestLci && cap.lciSupported; in convertRangingRequestToRttConfigs()
337 config.mustRequestLcr = config.mustRequestLcr && cap.lcrSupported; in convertRangingRequestToRttConfigs()
338 config.bw = halRttChannelBandwidthCapabilityLimiter(config.bw, cap); in convertRangingRequestToRttConfigs()
339 config.preamble = halRttPreambleCapabilityLimiter(config.preamble, cap); in convertRangingRequestToRttConfigs()
444 RttCapabilities cap) { in halRttChannelBandwidthCapabilityLimiter() argument
445 while ((halRttChannelBandwidth != 0) && ((halRttChannelBandwidth & cap.bwSupport) == 0)) { in halRttChannelBandwidthCapabilityLimiter()
454 "RTT BW=" + halRttChannelBandwidth + ", not supported by device capabilities=" + cap in halRttChannelBandwidthCapabilityLimiter()
[all …]
DRttServiceImpl.java172 android.hardware.wifi.V1_0.RttCapabilities cap = in onCommand() local
175 if (cap != null) { in onCommand()
177 j.put("rttOneSidedSupported", cap.rttOneSidedSupported); in onCommand()
178 j.put("rttFtmSupported", cap.rttFtmSupported); in onCommand()
179 j.put("lciSupported", cap.lciSupported); in onCommand()
180 j.put("lcrSupported", cap.lcrSupported); in onCommand()
181 j.put("responderSupported", cap.responderSupported); in onCommand()
182 j.put("mcVersion", cap.mcVersion); in onCommand()
/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/opengl/libagl/
Dstate.cpp136 static void enable_disable(ogles_context_t* c, GLenum cap, int enabled) in enable_disable() argument
138 if ((cap >= GL_LIGHT0) && (cap<GL_LIGHT0+OGLES_MAX_LIGHTS)) { in enable_disable()
139 c->lighting.lights[cap-GL_LIGHT0].enable = enabled; in enable_disable()
140 c->lighting.enabledLights &= ~(1<<(cap-GL_LIGHT0)); in enable_disable()
141 c->lighting.enabledLights |= (enabled<<(cap-GL_LIGHT0)); in enable_disable()
145 switch (cap) { in enable_disable()
166 c->transforms.rescaleNormals = enabled ? cap : 0; in enable_disable()
176 c->clipPlanes.enable &= ~(1<<(cap-GL_CLIP_PLANE0)); in enable_disable()
177 c->clipPlanes.enable |= (enabled<<(cap-GL_CLIP_PLANE0)); in enable_disable()
193 c->rasterizer.procs.enableDisable(c, cap, enabled); in enable_disable()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp228 int32_t cap; in vibratorInit() local
229 hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorInit()
242 int32_t cap; in vibratorExists() local
243 ok = hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorExists()
282 int32_t cap = 0; in vibratorSupportsAmplitudeControl() local
283 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsAmplitudeControl()
286 return (cap & aidl::IVibrator::CAP_AMPLITUDE_CONTROL) > 0; in vibratorSupportsAmplitudeControl()
310 int32_t cap = 0; in vibratorSupportsExternalControl() local
311 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsExternalControl()
314 return (cap & aidl::IVibrator::CAP_EXTERNAL_CONTROL) > 0; in vibratorSupportsExternalControl()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DMmTelFeatureCompatAdapter.java327 for (CapabilityChangeRequest.CapabilityPair cap : request.getCapabilitiesToDisable()) { in changeEnabledCapabilities()
329 int capConverted = convertCapability(cap.getCapability(), cap.getRadioTech()); in changeEnabledCapabilities()
330 int radioTechConverted = REG_TECH_TO_NET_TYPE.getOrDefault(cap.getRadioTech(), in changeEnabledCapabilities()
342 c.onChangeCapabilityConfigurationError(cap.getCapability(), in changeEnabledCapabilities()
343 cap.getRadioTech(), CAPABILITY_ERROR_GENERIC); in changeEnabledCapabilities()
352 for (CapabilityChangeRequest.CapabilityPair cap : request.getCapabilitiesToEnable()) { in changeEnabledCapabilities()
354 int capConverted = convertCapability(cap.getCapability(), cap.getRadioTech()); in changeEnabledCapabilities()
355 int radioTechConverted = REG_TECH_TO_NET_TYPE.getOrDefault(cap.getRadioTech(), in changeEnabledCapabilities()
367 c.onChangeCapabilityConfigurationError(cap.getCapability(), in changeEnabledCapabilities()
368 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java679 Capabilities cap = new Capabilities(); in getCharacteristics() local
680 cap.maxConcurrentAwareClusters = 1; in getCharacteristics()
681 cap.maxPublishes = 2; in getCharacteristics()
682 cap.maxSubscribes = 2; in getCharacteristics()
683 cap.maxServiceNameLen = MAX_LENGTH; in getCharacteristics()
684 cap.maxMatchFilterLen = MAX_LENGTH; in getCharacteristics()
685 cap.maxTotalMatchFilterLen = 255; in getCharacteristics()
686 cap.maxServiceSpecificInfoLen = MAX_LENGTH; in getCharacteristics()
687 cap.maxExtendedServiceSpecificInfoLen = MAX_LENGTH; in getCharacteristics()
688 cap.maxNdiInterfaces = 1; in getCharacteristics()
[all …]
DWifiAwareNativeApiTest.java653 Capabilities cap = new Capabilities(); in validateInitiateDataPath() local
654 cap.supportedCipherSuites = supportedCipherSuites; in validateInitiateDataPath()
661 usePmk ? pmk : null, usePassphrase ? passphrase : null, isOutOfBand, appInfo, cap); in validateInitiateDataPath()
717 Capabilities cap = new Capabilities(); in validateRespondToDataPathRequest() local
718 cap.supportedCipherSuites = supportedCipherSuites; in validateRespondToDataPathRequest()
725 usePassphrase ? passphrase : null, appInfo, isOutOfBand, cap); in validateRespondToDataPathRequest()
/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()
/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/base/telephony/java/android/telephony/ims/
DRcsContactUceCapability.java171 long cap = type & (1 << shift); in add() local
172 if (cap != 0) { in add()
173 mCapabilities.mServiceMap.put(cap, serviceUri); in add()
175 type &= ~cap; in add()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp200 constexpr TestCapacity cap(123u); in StaticLinearRangeAndCapacityTest() local
201 static_assert(TestCapacity(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
205 static_assert(TestRange(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
206 static_assert(TestRange(&cap).offset() == 0u, ""); in StaticLinearRangeAndCapacityTest()
207 static_assert(TestRange(&cap).size() == 123u, ""); in StaticLinearRangeAndCapacityTest()
208 static_assert(TestRange(&cap).endOffset() == 123u, ""); in StaticLinearRangeAndCapacityTest()
210 constexpr TestRange range(&cap, 50u, 100u); in StaticLinearRangeAndCapacityTest()
217 static_assert(TestRange(&cap, 20u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest()
218 static_assert(TestRange(&cap, 20u, 30u).offset() == 20u, ""); in StaticLinearRangeAndCapacityTest()
219 static_assert(TestRange(&cap, 20u, 30u).size() == 30u, ""); in StaticLinearRangeAndCapacityTest()
[all …]
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h353 static void logVideoEncoderCap(const VideoEncoderCap& cap);
354 static void logAudioEncoderCap(const AudioEncoderCap& cap);
355 static void logVideoDecoderCap(const VideoDecoderCap& cap);
356 static void logAudioDecoderCap(const AudioDecoderCap& cap);
/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/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java855 private String generateWPA2CapabilitiesString(String cap, int index) { in generateWPA2CapabilitiesString() argument
858 if (cap.contains("EAP_SUITE_B_192") in generateWPA2CapabilitiesString()
859 || (!cap.contains("RSN-EAP") && !cap.contains("RSN-FT/EAP") in generateWPA2CapabilitiesString()
860 && !cap.contains("RSN-PSK") && !cap.contains("RSN-FT/PSK"))) { in generateWPA2CapabilitiesString()
869 if (cap.contains("SAE")) { in generateWPA2CapabilitiesString()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java326 private void testParcelSane(NetworkCapabilities cap) { in testParcelSane() argument
328 assertParcelSane(cap, 15); in testParcelSane()
330 assertParcelSane(cap, 11); in testParcelSane()
576 for (int cap : REQUIRED_CAPABILITIES) { in testSetCapabilities()
577 nc2.addCapability(cap); in testSetCapabilities()
579 for (int cap : UNWANTED_CAPABILITIES) { in testSetCapabilities()
580 nc2.addUnwantedCapability(cap); in testSetCapabilities()

1234