Home
last modified time | relevance | path

Searched refs:capability (Results 1 – 25 of 135) sorted by relevance

123456

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneCapabilityTest.java44 PhoneCapability capability = new PhoneCapability(maxActiveVoiceCalls, maxActiveData, in basicTests() local
47 assertEquals(maxActiveVoiceCalls, capability.getMaxActiveVoiceSubscriptions()); in basicTests()
48 assertEquals(maxActiveData, capability.getMaxActiveDataSubscriptions()); in basicTests()
49 assertEquals(1, capability.getLogicalModemList().size()); in basicTests()
50 assertEquals(modemInfo, capability.getLogicalModemList().get(0)); in basicTests()
51 assertArrayEquals(deviceNrCapabilities, capability.getDeviceNrCapabilities()); in basicTests()
55 assertEquals(capability, in basicTests()
58 assertNotEquals(capability, toCompare); in basicTests()
71 PhoneCapability capability = new PhoneCapability(maxActiveVoiceCalls, maxActiveData, in parcelReadWrite() local
75 capability.writeToParcel(parcel, 0); in parcelReadWrite()
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java196 for (int capability : unpackBits(FORCE_RESTRICTED_CAPABILITIES)) { in inferRestrictedCapability()
197 if (nc.hasCapability(capability)) { in inferRestrictedCapability()
204 for (int capability : unpackBits(UNRESTRICTED_CAPABILITIES)) { in inferRestrictedCapability()
205 if (nc.hasCapability(capability)) { in inferRestrictedCapability()
211 for (int capability : unpackBits(RESTRICTED_CAPABILITIES)) { in inferRestrictedCapability()
212 if (nc.hasCapability(capability)) { in inferRestrictedCapability()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DRemoteOptionsCoordinator.java69 RcsContactUceCapability capability = response.getRcsContactCapability();
70 if (capability != null) {
124 RcsContactUceCapability capability = response.getRcsContactCapability(); in handleRemoteRequestDone() local
125 if (capability != null) { in handleRemoteRequestDone()
127 triggerOptionsReqCallback(capability, isNumberBlocked); in handleRemoteRequestDone()
/frameworks/native/libs/binder/
DIUidObserver.cpp60 int32_t capability) in onUidStateChanged() argument
67 data.writeInt32(capability); in onUidStateChanged()
110 int32_t capability = data.readInt32(); in onTransact() local
111 onUidStateChanged(uid, procState, procStateSeq, capability); in onTransact()
/frameworks/base/telephony/java/android/telephony/ims/aidl/
DIImsCapabilityCallback.aidl24 void onQueryCapabilityConfiguration(int capability, int radioTech, boolean enabled); in onQueryCapabilityConfiguration() argument
25 void onChangeCapabilityConfigurationError(int capability, int radioTech, int reason); in onChangeCapabilityConfigurationError() argument
DIImsRcsController.aidl49 boolean isCapable(int subId, int capability, int radioTech); in isCapable() argument
50 boolean isAvailable(int subId, int capability, int radioTech); in isAvailable() argument
/frameworks/opt/net/ims/src/java/com/android/ims/
DRcsFeatureManager.java340 @RcsImsCapabilities.RcsImsCapabilityFlag int capability, in isCapable()
350 if ((capability != resultCapability) || (radioTech != resultRadioTech)) { in isCapable()
353 if (DBG) log("capable result:capability=" + capability + ", enabled=" + enabled); in isCapable()
364 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in isCapable()
371 if (DBG) log("Query capability: " + capability + ", radioTech=" + radioTech); in isCapable()
372 mRcsFeatureConnection.queryCapabilityConfiguration(capability, radioTech, callback); in isCapable()
393 public boolean isAvailable(@RcsImsCapabilities.RcsImsCapabilityFlag int capability, in isAvailable() argument
401 return new RcsImsCapabilities(currentStatus).isCapable(capability); in isAvailable()
414 @RcsImsCapabilities.RcsImsCapabilityFlag int capability) { in addRcsUceCapability() argument
415 request.addCapabilitiesToEnableForTech(capability, in addRcsUceCapability()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/feature/
DImsFeature.java208 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in onChangeCapabilityConfigurationError() argument
214 mCallback.onChangeCapabilityConfigurationError(capability, radioTech, reason); in onChangeCapabilityConfigurationError()
446 final void queryCapabilityConfigurationInternal(int capability, int radioTech, in queryCapabilityConfigurationInternal() argument
448 boolean enabled = queryCapabilityConfiguration(capability, radioTech); in queryCapabilityConfigurationInternal()
451 c.onQueryCapabilityConfiguration(capability, radioTech, enabled); in queryCapabilityConfigurationInternal()
514 public abstract boolean queryCapabilityConfiguration(int capability, int radioTech); in queryCapabilityConfiguration() argument
DMmTelFeature.java182 public void queryCapabilityConfiguration(int capability, int radioTech,
184 queryCapabilityConfigurationInternal(capability, radioTech, c);
324 public final void removeCapabilities(@MmTelCapability int capability) { in removeCapabilities() argument
325 super.removeCapabilities(capability); in removeCapabilities()
600 public boolean queryCapabilityConfiguration(@MmTelCapabilities.MmTelCapability int capability, in queryCapabilityConfiguration() argument
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabControllerImpl.java195 for (RcsContactUceCapability capability : contactCapabilities) { in saveCapabilities()
196 String phoneNumber = getNumberFromUri(mContext, capability.getContactUri()); in saveCapabilities()
204 if (capability.getCapabilityMechanism() == CAPABILITY_MECHANISM_PRESENCE) { in saveCapabilities()
207 insertNewPresenceCapability(contactId, capability); in saveCapabilities()
208 } else if (capability.getCapabilityMechanism() == CAPABILITY_MECHANISM_OPTIONS) { in saveCapabilities()
211 insertNewOptionCapability(contactId, capability); in saveCapabilities()
216 if (capability.getCapabilityMechanism() == CAPABILITY_MECHANISM_PRESENCE) { in saveCapabilities()
217 insertNewPresenceCapability(contactId, capability); in saveCapabilities()
218 } else if (capability.getCapabilityMechanism() == CAPABILITY_MECHANISM_OPTIONS) { in saveCapabilities()
219 insertNewOptionCapability(contactId, capability); in saveCapabilities()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
DNativeScanResultTest.java66 scanResult.capability = TEST_CAPABILITY; in canSerializeAndDeserialize()
83 assertEquals(scanResult.capability, scanResultDeserialized.capability); in canSerializeAndDeserialize()
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/
DNativeScanResult.java65 @BssCapabilityBits public int capability; field in NativeScanResult
250 return capability; in getCapabilities()
283 out.writeInt(capability); in writeToParcel()
309 result.capability = in.readInt();
/frameworks/base/telephony/java/android/telephony/ims/
DProvisioningManager.java1257 @MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in setProvisioningStatusForCapability()
1260 getITelephony().setImsProvisioningStatusForCapability(mSubId, capability, tech, in setProvisioningStatusForCapability()
1284 @MmTelFeature.MmTelCapabilities.MmTelCapability int capability, in getProvisioningStatusForCapability()
1287 return getITelephony().getImsProvisioningStatusForCapability(mSubId, capability, tech); in getProvisioningStatusForCapability()
1308 @RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability) { in getRcsProvisioningStatusForCapability()
1310 return getITelephony().getRcsProvisioningStatusForCapability(mSubId, capability); in getRcsProvisioningStatusForCapability()
1331 @RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag int capability, in setRcsProvisioningStatusForCapability()
1334 getITelephony().setRcsProvisioningStatusForCapability(mSubId, capability, in setRcsProvisioningStatusForCapability()
DImsRcsManager.java134 public void onQueryCapabilityConfiguration(int capability, int radioTech, in onQueryCapabilityConfiguration() argument
140 public void onChangeCapabilityConfigurationError(int capability, int radioTech, in onChangeCapabilityConfigurationError() argument
481 public boolean isCapable(@RcsUceAdapter.RcsImsCapabilityFlag int capability, in isCapable() argument
491 return imsRcsController.isCapable(mSubId, capability, radioTech); in isCapable()
517 public boolean isAvailable(@RcsUceAdapter.RcsImsCapabilityFlag int capability, in isAvailable() argument
528 return imsRcsController.isAvailable(mSubId, capability, radioTech); in isAvailable()
/frameworks/base/services/core/java/com/android/server/am/
DUidObserverController.java95 long procStateSeq, int capability, boolean ephemeral) { in enqueueUidChange() argument
117 changeRecord.capability = capability; in enqueueUidChange()
220 validateUid.setSetCapability(item.capability); in dispatchUidsChanged()
221 validateUid.setCurCapability(item.capability); in dispatchUidsChanged()
312 + ": " + item.procState + ": " + item.capability); in dispatchUidsChangedForObserver()
318 item.procStateSeq, item.capability); in dispatchUidsChangedForObserver()
400 public int capability; field in UidObserverController.ChangeRecord
409 changeRecord.capability = capability; in copyTo()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/
DPidfParserTest.java68 RcsContactUceCapability capability = getRcsContactUceCapability(); in testConvertToPidf() local
70 String pidfResult = PidfParser.convertToPidf(capability); in testConvertToPidf()
272 final RcsContactUceCapability capability = getRcsContactUceCapability(); in testConversionAndRestoration() local
275 final String pidf = PidfParser.convertToPidf(capability); in testConversionAndRestoration()
281 assertEquals(capability.getContactUri(), restoredCapability.getContactUri()); in testConversionAndRestoration()
282 assertEquals(capability.getCapabilityMechanism(), in testConversionAndRestoration()
284 assertEquals(capability.getSourceType(), restoredCapability.getSourceType()); in testConversionAndRestoration()
287 List<RcsContactPresenceTuple> originalTuples = capability.getCapabilityTuples(); in testConversionAndRestoration()
/frameworks/base/core/java/android/service/translation/
DTranslationService.java307 public final void updateTranslationCapability(@NonNull TranslationCapability capability) { in updateTranslationCapability() argument
308 Objects.requireNonNull(capability, "translation capability should not be null"); in updateTranslationCapability()
317 callback.updateTranslationCapability(capability); in updateTranslationCapability()
388 for (TranslationCapability capability : capabilities) { in isValidCapabilities()
389 if (capability.getState() == TranslationCapability.STATE_REMOVED_AND_AVAILABLE) { in isValidCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DMmTelFeatureCompatAdapter.java93 public ConfigListener(int capability, int tech, CountDownLatch latch) { in ConfigListener() argument
94 mCapability = capability; in ConfigListener()
295 public boolean queryCapabilityConfiguration(int capability, int radioTech) { in queryCapabilityConfiguration() argument
296 int capConverted = convertCapability(capability, radioTech); in queryCapabilityConfiguration()
527 private int convertCapability(int capability, int radioTech) { in convertCapability() argument
530 switch (capability) { in convertCapability()
542 switch (capability) { in convertCapability()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUidObserverControllerTest.java226 int capability, boolean ephemeral) { in addPendingChange() argument
232 record.capability = capability; in addPendingChange()
238 int capability, boolean ephemeral, ChangeRecord expectedRecord) { in assertPendingChange() argument
247 assertEquals(capability, record.capability); in assertPendingChange()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java698 return isProcStateAllowedWhileIdleOrPowerSaveMode(uidState.procState, uidState.capability);
703 int procState, @ProcessCapability int capability) {
705 || (capability & ActivityManager.PROCESS_CAPABILITY_NETWORK) != 0;
730 public int capability;
732 public UidState(int uid, int procState, int capability) {
735 this.capability = capability;
744 ActivityManager.printCapabilitiesSummary(sb, capability);
/frameworks/base/services/translation/java/com/android/server/translation/
DTranslationManagerServiceImpl.java340 private void notifyClientsTranslationCapability(TranslationCapability capability) { in notifyClientsTranslationCapability() argument
342 res.putParcelable(EXTRA_CAPABILITIES, capability); in notifyClientsTranslationCapability()
356 public void updateTranslationCapability(TranslationCapability capability) { in updateTranslationCapability() argument
357 if (capability == null) { in updateTranslationCapability()
361 notifyClientsTranslationCapability(capability); in updateTranslationCapability()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephony.aidl1879 boolean isCapable(int subId, int capability, int regTech); in isCapable() argument
1884 boolean isAvailable(int subId, int capability, int regTech); in isAvailable() argument
1889 void isMmTelCapabilitySupported(int subId, IIntegerConsumer callback, int capability, in isMmTelCapabilitySupported() argument
2008 void setImsProvisioningStatusForCapability(int subId, int capability, int tech, in setImsProvisioningStatusForCapability() argument
2014 boolean getImsProvisioningStatusForCapability(int subId, int capability, int tech); in getImsProvisioningStatusForCapability() argument
2019 boolean getRcsProvisioningStatusForCapability(int subId, int capability); in getRcsProvisioningStatusForCapability() argument
2024 void setRcsProvisioningStatusForCapability(int subId, int capability, in setRcsProvisioningStatusForCapability() argument
2028 boolean isMmTelCapabilityProvisionedInCache(int subId, int capability, int tech); in isMmTelCapabilityProvisionedInCache() argument
2031 void cacheMmTelCapabilityProvisioning(int subId, int capability, int tech, in cacheMmTelCapabilityProvisioning() argument
2252 boolean isRadioInterfaceCapabilitySupported(String capability); in isRadioInterfaceCapabilitySupported() argument
/frameworks/base/core/java/android/view/translation/
DITranslationServiceCallback.aidl27 void updateTranslationCapability(in TranslationCapability capability); in updateTranslationCapability() argument
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp91 ACameraMetadata::isNdkSupportedCapability(int32_t capability) { in isNdkSupportedCapability() argument
92 switch (capability) { in isNdkSupportedCapability()
117 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures() local
118 if (isNdkSupportedCapability(capability)) { in filterUnsupportedFeatures()
119 capabilities.push(capability); in filterUnsupportedFeatures()
121 if (capability == ANDROID_REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA) { in filterUnsupportedFeatures()
/frameworks/base/core/java/android/app/
DIUidObserver.aidl55 void onUidStateChanged(int uid, int procState, long procStateSeq, int capability); in onUidStateChanged() argument

123456