/frameworks/native/libs/binder/tests/ |
D | binderTextOutputTest.cpp | 31 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 627 Capabilities cap = new Capabilities(); in testCapabilityTranslation() local 628 cap.maxConcurrentAwareClusters = 1; in testCapabilityTranslation() 629 cap.maxPublishes = 2; in testCapabilityTranslation() 630 cap.maxSubscribes = 2; in testCapabilityTranslation() 631 cap.maxServiceNameLen = maxServiceName; in testCapabilityTranslation() 632 cap.maxMatchFilterLen = maxMatchFilter; in testCapabilityTranslation() 633 cap.maxTotalMatchFilterLen = 255; in testCapabilityTranslation() 634 cap.maxServiceSpecificInfoLen = maxServiceSpecificInfo; in testCapabilityTranslation() 635 cap.maxExtendedServiceSpecificInfoLen = MAX_LENGTH; in testCapabilityTranslation() 636 cap.maxNdiInterfaces = 1; in testCapabilityTranslation() [all …]
|
D | WifiAwareNativeApiTest.java | 655 Capabilities cap = new Capabilities(); in validateInitiateDataPath() local 656 cap.supportedCipherSuites = supportedCipherSuites; in validateInitiateDataPath() 663 usePmk ? pmk : null, usePassphrase ? passphrase : null, isOutOfBand, appInfo, cap); in validateInitiateDataPath() 719 Capabilities cap = new Capabilities(); in validateRespondToDataPathRequest() local 720 cap.supportedCipherSuites = supportedCipherSuites; in validateRespondToDataPathRequest() 727 usePassphrase ? passphrase : null, appInfo, isOutOfBand, cap); in validateRespondToDataPathRequest()
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 184 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/ |
D | TextKeyListener.java | 75 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 …]
|
D | MultiTapKeyListener.java | 63 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()
|
D | QwertyKeyListener.java | 49 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()
|
D | Touch.java | 133 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/ |
D | RttNativeTest.java | 232 RttCapabilities cap = getFullRttCapabilities(); in testRangeRequestWithLimitedCapabilities() local 233 cap.rttOneSidedSupported = false; in testRangeRequestWithLimitedCapabilities() 234 cap.lciSupported = false; in testRangeRequestWithLimitedCapabilities() 235 cap.lcrSupported = false; in testRangeRequestWithLimitedCapabilities() 236 cap.bwSupport = RttBw.BW_10MHZ | RttBw.BW_160MHZ; in testRangeRequestWithLimitedCapabilities() 237 cap.preambleSupport = RttPreamble.LEGACY; in testRangeRequestWithLimitedCapabilities() 238 mGetCapCbCatpr.getValue().onValues(mStatusSuccess, cap); in testRangeRequestWithLimitedCapabilities() 287 RttCapabilities cap = getFullRttCapabilities(); in testRangeRequestWithLimitedCapabilitiesNoOverlap() local 288 cap.bwSupport = RttBw.BW_80MHZ; in testRangeRequestWithLimitedCapabilitiesNoOverlap() 289 cap.preambleSupport = RttPreamble.VHT; in testRangeRequestWithLimitedCapabilitiesNoOverlap() [all …]
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 75 @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/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttNative.java | 385 boolean isCalledFromPrivilegedContext, Capabilities cap) { in convertRangingRequestToRttConfigs() argument 405 if (config.type == RttType.ONE_SIDED && cap != null && !cap.oneSidedRttSupported) { in convertRangingRequestToRttConfigs() 439 if (cap != null) { // constrain parameters per device capabilities in convertRangingRequestToRttConfigs() 440 config.mustRequestLci = config.mustRequestLci && cap.lciSupported; in convertRangingRequestToRttConfigs() 441 config.mustRequestLcr = config.mustRequestLcr && cap.lcrSupported; in convertRangingRequestToRttConfigs() 442 config.bw = halRttChannelBandwidthCapabilityLimiter(config.bw, cap); in convertRangingRequestToRttConfigs() 443 config.preamble = halRttPreambleCapabilityLimiter(config.preamble, cap); in convertRangingRequestToRttConfigs() 473 RangingRequest request, boolean isCalledFromPrivilegedContext, Capabilities cap) { in convertRangingRequestToRttConfigs14() argument 495 if (config.type == RttType.ONE_SIDED && cap != null && !cap.oneSidedRttSupported) { in convertRangingRequestToRttConfigs14() 528 if (cap != null) { // constrain parameters per device capabilities in convertRangingRequestToRttConfigs14() [all …]
|
D | RttServiceImpl.java | 169 RttNative.Capabilities cap = in onCommand() local 172 if (cap != null) { in onCommand() 174 j.put("rttOneSidedSupported", cap.oneSidedRttSupported); in onCommand() 175 j.put("rttFtmSupported", cap.rttFtmSupported); in onCommand() 176 j.put("lciSupported", cap.lciSupported); in onCommand() 177 j.put("lcrSupported", cap.lcrSupported); in onCommand() 178 j.put("responderSupported", cap.responderSupported); in onCommand() 179 j.put("mcVersion", cap.mcVersion); in onCommand()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | MmTelFeatureCompatAdapter.java | 327 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/ |
D | TouchVideoDevice.cpp | 58 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/ |
D | CommandGetCapabilities.cpp | 46 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/services/core/jni/ |
D | com_android_server_VibratorService.cpp | 234 int32_t cap; in vibratorInit() local 235 hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorInit() 248 int32_t cap; in vibratorExists() local 249 ok = hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorExists() 288 int32_t cap = 0; in vibratorSupportsAmplitudeControl() local 289 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsAmplitudeControl() 292 return (cap & aidl::IVibrator::CAP_AMPLITUDE_CONTROL) > 0; in vibratorSupportsAmplitudeControl() 316 int32_t cap = 0; in vibratorSupportsExternalControl() local 317 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsExternalControl() 320 return (cap & aidl::IVibrator::CAP_EXTERNAL_CONTROL) > 0; in vibratorSupportsExternalControl() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaProfileReader.java | 107 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/ |
D | RcsContactUceCapability.java | 171 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/ |
D | C2BufferTest.cpp | 200 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/ |
D | MediaProfiles.h | 353 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/ |
D | android_media_MediaProfiles.cpp | 109 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/packages/EasterEgg/src/com/android/egg/neko/ |
D | Cat.java | 215 tint(capColor, D.cap); in Cat() 448 public Drawable cap; 485 cap = context.getDrawable(R.drawable.cap); 510 cap,
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 326 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()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | InformationElementUtil.java | 1400 private String generateWPA2CapabilitiesString(String cap, int index) { in generateWPA2CapabilitiesString() argument 1403 if (cap.contains("EAP_SUITE_B_192") in generateWPA2CapabilitiesString() 1404 || (!cap.contains("RSN-EAP") && !cap.contains("RSN-FT/EAP") in generateWPA2CapabilitiesString() 1405 && !cap.contains("RSN-PSK") && !cap.contains("RSN-FT/PSK"))) { in generateWPA2CapabilitiesString() 1414 if (cap.contains("SAE")) { in generateWPA2CapabilitiesString()
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
D | GL11Ext.java | 115 int cap in glEnable() argument
|