/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 48 static void parse_printerUris(ipp_t *response, printer_capabilities_t *capabilities); 661 printer_capabilities_t *capabilities) { in get_supportedPrinterResolutions() argument 670 capabilities->supportedResolutions[idx] = xres; in get_supportedPrinterResolutions() 675 capabilities->numSupportedResolutions = idx; in get_supportedPrinterResolutions() 689 static void addMediaType(printer_capabilities_t *capabilities, media_type_t mediaType) { in addMediaType() argument 691 for (index = 0; index < capabilities->numSupportedMediaTypes; index++) { in addMediaType() 693 if (capabilities->supportedMediaTypes[index] == mediaType) return; in addMediaType() 697 if (capabilities->numSupportedMediaTypes < MAX_MEDIA_TYPES_SUPPORTED) { in addMediaType() 698 capabilities->supportedMediaTypes[capabilities->numSupportedMediaTypes++] = mediaType; in addMediaType() 704 void parse_printerAttributes(ipp_t *response, printer_capabilities_t *capabilities) { in parse_printerAttributes() argument [all …]
|
D | ippstatus_capabilities.c | 74 printer_capabilities_t *capabilities); 128 printer_capabilities_t *capabilities) { in _get_capabilities() argument 139 if (capabilities != NULL) { in _get_capabilities() 140 memset(capabilities, 0, sizeof(printer_capabilities_t)); in _get_capabilities() 177 parse_printerAttributes(response, capabilities); in _get_capabilities() 202 if ((caps != NULL) && (capabilities != NULL)) { in _get_capabilities() 203 memcpy(capabilities->httpResource, caps->printer_caps.httpResource, in _get_capabilities() 204 sizeof(capabilities->httpResource)); in _get_capabilities()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | AssistantCapabilityPreferenceControllerTest.java | 102 List<String> capabilities = new ArrayList<>(); in isChecked_prioritizerSettingIsOff_false() local 103 capabilities.add(Adjustment.KEY_USER_SENTIMENT); in isChecked_prioritizerSettingIsOff_false() 104 when(mBackend.getAssistantAdjustments(anyString())).thenReturn(capabilities); in isChecked_prioritizerSettingIsOff_false() 110 List<String> capabilities = new ArrayList<>(); in isChecked_prioritizerSettingIsOn_true() local 111 capabilities.add(Adjustment.KEY_IMPORTANCE); in isChecked_prioritizerSettingIsOn_true() 112 when(mBackend.getAssistantAdjustments(anyString())).thenReturn(capabilities); in isChecked_prioritizerSettingIsOn_true() 118 List<String> capabilities = new ArrayList<>(); in isChecked_chipSettingIsOff_false() local 119 capabilities.add(Adjustment.KEY_IMPORTANCE); in isChecked_chipSettingIsOff_false() 120 when(mBackend.getAssistantAdjustments(anyString())).thenReturn(capabilities); in isChecked_chipSettingIsOff_false() 123 capabilities = new ArrayList<>(); in isChecked_chipSettingIsOff_false() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | CapabilitiesCache.java | 128 void onCapabilities(LocalPrinterCapabilities capabilities); in onCapabilities() argument 144 LocalPrinterCapabilities capabilities = get(printer); in request() local 145 if (capabilities != null && capabilities.nativeData != null) { in request() 146 onLocalPrinterCapabilities.onCapabilities(capabilities); in request() 175 LocalPrinterCapabilities capabilities = mCache.get(printer.path); in get() local 177 if (capabilities != null) { in get() 178 capabilities.certificate = mService.getCertificateStore().get(capabilities.uuid); in get() 180 return capabilities; in get() 266 public void accept(LocalPrinterCapabilities capabilities) { in accept() argument 268 if (DEBUG) Log.d(TAG, "Capabilities for " + printer + " cap=" + capabilities); in accept() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | ManualDiscovery.java | 66 mCapabilitiesCache.request(printer, false, capabilities -> { in onStart() 67 if (capabilities != null) { in onStart() 175 public void onCapabilities(LocalPrinterCapabilities capabilities) { in CapabilitiesFinder() 177 handleCapabilities(uri, capabilities); in CapabilitiesFinder() 190 void handleCapabilities(Uri printerPath, LocalPrinterCapabilities capabilities) { in handleCapabilities() argument 191 if (DEBUG) Log.d(TAG, "request " + printerPath + " cap=" + capabilities); in handleCapabilities() 193 if (capabilities == null) { in handleCapabilities() 208 Uri uuid = TextUtils.isEmpty(capabilities.uuid) ? null : Uri.parse(capabilities.uuid); in handleCapabilities() 209 String name = TextUtils.isEmpty(capabilities.name) ? printerPath.getHost() in handleCapabilities() 210 : capabilities.name; in handleCapabilities() [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | ImsConference.java | 322 int capabilities = Connection.CAPABILITY_MUTE | in ImsConference() local 325 capabilities |= Connection.CAPABILITY_SUPPORT_HOLD | Connection.CAPABILITY_HOLD; in ImsConference() 328 capabilities = applyHostCapabilities(capabilities, in ImsConference() 331 setConnectionCapabilities(capabilities); in ImsConference() 343 private int applyHostCapabilities(int conferenceCapabilities, int capabilities, in applyHostCapabilities() argument 348 can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL)); in applyHostCapabilities() 353 can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL)); in applyHostCapabilities() 356 can(capabilities, Connection.CAPABILITY_CAN_UPGRADE_TO_VIDEO)); in applyHostCapabilities() 369 can(capabilities, Connection.CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO)); in applyHostCapabilities() 631 int capabilities = getConnectionCapabilities(); in updateManageConference() local [all …]
|
D | GsmConnection.java | 72 int capabilities = super.buildConnectionCapabilities(); in buildConnectionCapabilities() local 73 capabilities |= CAPABILITY_MUTE; in buildConnectionCapabilities() 78 capabilities |= CAPABILITY_SUPPORT_HOLD; in buildConnectionCapabilities() 80 capabilities |= CAPABILITY_HOLD; in buildConnectionCapabilities() 84 return capabilities; in buildConnectionCapabilities()
|
D | TelecomAccountRegistry.java | 135 MmTelFeature.MmTelCapabilities capabilities) { in AccountEntry() 136 mMmTelCapabilities = capabilities; in AccountEntry() 269 int capabilities = PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION | in buildPstnPhoneAccount() local 274 capabilities |= PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS; in buildPstnPhoneAccount() 279 capabilities |= PhoneAccount.CAPABILITY_EMERGENCY_PREFERRED; in buildPstnPhoneAccount() 283 capabilities |= PhoneAccount.CAPABILITY_RTT; in buildPstnPhoneAccount() 300 capabilities |= PhoneAccount.CAPABILITY_VIDEO_CALLING; in buildPstnPhoneAccount() 304 capabilities |= PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING; in buildPstnPhoneAccount() 309 capabilities |= PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE; in buildPstnPhoneAccount() 313 capabilities |= PhoneAccount.CAPABILITY_EMERGENCY_VIDEO_CALLING; in buildPstnPhoneAccount() [all …]
|
D | PstnPhoneCapabilitiesNotifier.java | 96 private int newCapabilities(int capabilities, int capability, boolean set) { in newCapabilities() argument 98 capabilities |= capability; in newCapabilities() 100 capabilities &= ~capability; in newCapabilities() 102 return capabilities; in newCapabilities()
|
/packages/apps/TV/tuner/src/com/google/android/exoplayer/ |
D | MediaSoftwareCodecUtil.java | 115 MediaCodecInfo.CodecCapabilities capabilities = in getMediaSoftwareCodecInfoInternal() local 119 key.mimeType, capabilities); in getMediaSoftwareCodecInfoInternal() 125 Pair.create(codecName, capabilities)); in getMediaSoftwareCodecInfoInternal() 129 Pair.create(codecName + ".secure", capabilities)); in getMediaSoftwareCodecInfoInternal() 136 Pair.create(codecName, capabilities)); in getMediaSoftwareCodecInfoInternal() 170 String mimeType, MediaCodecInfo.CodecCapabilities capabilities); in isSecurePlaybackSupported() argument 203 String mimeType, MediaCodecInfo.CodecCapabilities capabilities) { in isSecurePlaybackSupported() argument 204 return capabilities.isFeatureSupported( in isSecurePlaybackSupported() 235 String mimeType, MediaCodecInfo.CodecCapabilities capabilities) { in isSecurePlaybackSupported() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiUtils.java | 112 public static boolean canSignIntoNetwork(NetworkCapabilities capabilities) { in canSignIntoNetwork() argument 113 return (capabilities != null in canSignIntoNetwork() 114 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork() 240 if (result.capabilities.contains("WEP")) { in getAccessPointSecurity() 242 } else if (result.capabilities.contains("SAE")) { in getAccessPointSecurity() 244 } else if (result.capabilities.contains("PSK")) { in getAccessPointSecurity() 246 } else if (result.capabilities.contains("EAP_SUITE_B_192")) { in getAccessPointSecurity() 248 } else if (result.capabilities.contains("EAP")) { in getAccessPointSecurity() 250 } else if (result.capabilities.contains("OWE")) { in getAccessPointSecurity()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiUtils.java | 112 public static boolean canSignIntoNetwork(NetworkCapabilities capabilities) { in canSignIntoNetwork() argument 113 return (capabilities != null in canSignIntoNetwork() 114 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork() 240 if (result.capabilities.contains("WEP")) { in getAccessPointSecurity() 242 } else if (result.capabilities.contains("SAE")) { in getAccessPointSecurity() 244 } else if (result.capabilities.contains("PSK")) { in getAccessPointSecurity() 246 } else if (result.capabilities.contains("EAP_SUITE_B_192")) { in getAccessPointSecurity() 248 } else if (result.capabilities.contains("EAP")) { in getAccessPointSecurity() 250 } else if (result.capabilities.contains("OWE")) { in getAccessPointSecurity()
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | ImsCallingActivity.java | 106 MmTelFeature.MmTelCapabilities capabilities) { 107 Log.i("ImsCallingActivity" , "onCapabilitiesStatusChanged:" + capabilities); 108 mCapabilityEvents.add(new CapItem("cap changed: ", capabilities.toString())); 204 MmTelFeature.MmTelCapabilities capabilities = new MmTelFeature.MmTelCapabilities(); in onCapabilitiesChangedClicked() local 206 capabilities.addCapabilities(MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_VOICE); in onCapabilitiesChangedClicked() 209 capabilities.addCapabilities(MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_VIDEO); in onCapabilitiesChangedClicked() 212 capabilities.addCapabilities(MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_UT); in onCapabilitiesChangedClicked() 215 capabilities.addCapabilities(MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_SMS); in onCapabilitiesChangedClicked() 217 TestMmTelFeatureImpl.getInstance().sendCapabilitiesUpdate(capabilities); in onCapabilitiesChangedClicked()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | ImapConnection.java | 151 ImapResponse capabilities = queryCapabilities(); in open() local 154 capabilities.contains(ImapConstants.STARTTLS); in open() 159 capabilities = newCapabilities; in open() 165 setCapabilities(capabilities); in open() 166 String capabilityString = capabilities.flatten(); in open() 225 private void setCapabilities(ImapResponse capabilities) { in setCapabilities() argument 226 if (capabilities.contains(ImapConstants.ID)) { in setCapabilities() 229 if (capabilities.contains(ImapConstants.NAMESPACE)) { in setCapabilities() 232 if (capabilities.contains(ImapConstants.UIDPLUS)) { in setCapabilities() 235 if (capabilities.contains(ImapConstants.STARTTLS)) { in setCapabilities() [all …]
|
/packages/apps/Camera2/src/com/android/camera/hardware/ |
D | HardwareSpecImpl.java | 42 public HardwareSpecImpl(CameraProvider provider, CameraCapabilities capabilities, in HardwareSpecImpl() argument 48 mIsHdrSupported = capabilities.supports(CameraCapabilities.SceneMode.HDR); in HardwareSpecImpl() 57 mIsFlashSupported = isFlashSupported(capabilities); in HardwareSpecImpl() 84 private boolean isFlashSupported(CameraCapabilities capabilities) { in isFlashSupported() argument 85 return (capabilities.supports(CameraCapabilities.FlashMode.AUTO) || capabilities.supports in isFlashSupported()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ParcelableCallUtils.java | 143 int capabilities = convertConnectionToCallCapabilities(call.getConnectionCapabilities()); in toParcelableCall() local 163 capabilities |= android.telecom.Call.Details.CAPABILITY_RESPOND_VIA_TEXT; in toParcelableCall() 167 capabilities = removeCapability( in toParcelableCall() 168 capabilities, android.telecom.Call.Details.CAPABILITY_MUTE); in toParcelableCall() 172 capabilities = removeCapability(capabilities, in toParcelableCall() 174 capabilities = removeCapability(capabilities, in toParcelableCall() 235 capabilities, in toParcelableCall() 559 private static int removeCapability(int capabilities, int capability) { in removeCapability() argument 560 return capabilities & ~capability; in removeCapability()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/ |
D | NetworkUtilsTest.java | 41 NetworkCapabilities capabilities = mock(NetworkCapabilities.class); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() local 44 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 45 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(true); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 54 NetworkCapabilities capabilities = mock(NetworkCapabilities.class); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() local 57 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() 58 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PhotoUI.java | 298 public void onCameraOpened(CameraCapabilities capabilities, CameraSettings settings) { in onCameraOpened() argument 299 initializeZoom(capabilities, settings); in onCameraOpened() 314 public void initializeSecondTime(CameraCapabilities capabilities, CameraSettings settings) { in initializeSecondTime() argument 315 initializeZoom(capabilities, settings); in initializeSecondTime() 321 public void initializeZoom(CameraCapabilities capabilities, CameraSettings settings) { in initializeZoom() argument 322 if ((capabilities == null) || settings == null || in initializeZoom() 323 !capabilities.supports(CameraCapabilities.Feature.ZOOM)) { in initializeZoom() 326 mZoomMax = capabilities.getMaxZoomRatio(); in initializeZoom()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalPrinter.java | 127 public void onCapabilities(LocalPrinterCapabilities capabilities) { in onCapabilities() argument 132 if (capabilities == null) { in onCapabilities() 136 mCapabilities = capabilities; in onCapabilities() 159 LocalPrinterCapabilities capabilities = mPrintService.getCapabilitiesCache() in found() local 162 if (capabilities != null) { in found() 164 onCapabilities(capabilities); in found()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ConnectionServiceFixture.java | 154 int capabilities = getConnectionCapabilities(); in FakeConnection() local 155 capabilities |= CAPABILITY_MUTE; in FakeConnection() 156 capabilities |= CAPABILITY_SUPPORT_HOLD; in FakeConnection() 157 capabilities |= CAPABILITY_HOLD; in FakeConnection() 159 setConnectionCapabilities(capabilities); in FakeConnection() 240 c.capabilities |= Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD; in createConnection() 409 int capabilities; field in ConnectionServiceFixture.ConnectionInfo 430 int capabilities; field in ConnectionServiceFixture.ConferenceInfo 514 a.setConnectionCapabilities(id, mConnectionById.get(id).capabilities, in sendSetConnectionCapabilities() 665 c.capabilities, in parcelable() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapConnection.java | 49 private Set<String> capabilities = new ArraySet<>(); field in ImapConnection 184 if (capabilities.contains(ImapConstants.CAPABILITY_AUTH_DIGEST_MD5)) { in doLogin() 284 capabilities.clear(); in queryCapability() 295 capabilities.add(capability); in queryCapability() 298 capabilities.add(capability); in queryCapability() 303 LogUtils.d(TAG, "Capabilities: " + capabilities.toString()); in queryCapability() 307 return capabilities.contains(capability); in hasCapability()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestConnectionService.java | 183 int capabilities = getConnectionCapabilities(); in TestConnection() local 184 capabilities |= CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL; in TestConnection() 185 capabilities |= CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL; in TestConnection() 186 capabilities |= CAPABILITY_CAN_UPGRADE_TO_VIDEO; in TestConnection() 187 capabilities |= CAPABILITY_MUTE; in TestConnection() 188 capabilities |= CAPABILITY_SUPPORT_HOLD; in TestConnection() 189 capabilities |= CAPABILITY_HOLD; in TestConnection() 190 capabilities |= CAPABILITY_RESPOND_VIA_TEXT; in TestConnection() 191 setConnectionCapabilities(capabilities); in TestConnection()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Folder.java | 94 public int capabilities; field in Folder 254 public Builder setCapabilities(final int capabilities) { in setCapabilities() argument 255 mCapabilities = capabilities; in setCapabilities() 340 public Folder(int id, String persistentId, Uri uri, String name, int capabilities, in Folder() argument 350 this.capabilities = capabilities; in Folder() 384 capabilities = cursor.getInt(UIProvider.FOLDER_CAPABILITIES_COLUMN); in Folder() 446 capabilities = in.readInt(); in Folder() 482 dest.writeInt(capabilities); in writeToParcel() 616 return (capabilities & capability) != 0; in supportsCapability() 903 f.capabilities = Integer.parseInt(split[index++]); in fromString()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AssistantCapabilityPreferenceController.java | 46 List<String> capabilities = mBackend.getAssistantAdjustments(mContext.getPackageName()); in isChecked() local 48 return capabilities.contains(Adjustment.KEY_IMPORTANCE); in isChecked() 50 return capabilities.contains(Adjustment.KEY_CONTEXTUAL_ACTIONS) in isChecked() 51 && capabilities.contains(Adjustment.KEY_TEXT_REPLIES); in isChecked()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | AssistantCapabilityPreferenceController.java | 46 List<String> capabilities = mBackend.getAssistantAdjustments(mContext.getPackageName()); in isChecked() local 48 return capabilities.contains(Adjustment.KEY_IMPORTANCE); in isChecked() 50 return capabilities.contains(Adjustment.KEY_CONTEXTUAL_ACTIONS) in isChecked() 51 && capabilities.contains(Adjustment.KEY_TEXT_REPLIES); in isChecked()
|