Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 133) sorted by relevance

123456

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarFeatureTest.java70 for (String feature : MANDATORY_FEATURES) { in checkMandatoryFeatures()
71 assertThat(car.isFeatureEnabled(feature)).isTrue(); in checkMandatoryFeatures()
79 for (String feature : OPTIONAL_FEATURES) { in toggleOptionalFeature()
80 boolean enabled = getCar().isFeatureEnabled(feature); in toggleOptionalFeature()
81 toggleOptionalFeature(feature, !enabled, enabled); in toggleOptionalFeature()
82 toggleOptionalFeature(feature, enabled, enabled); in toggleOptionalFeature()
92 for (String feature : MANDATORY_FEATURES) { in testGetAllEnabledFeatures()
93 assertThat(allEnabledFeatures).contains(feature); in testGetAllEnabledFeatures()
99 for (String feature : MANDATORY_FEATURES) { in testEnableDisableForMandatoryFeatures()
100 assertThat(getCar().enableFeature(feature)).isEqualTo(Car.FEATURE_REQUEST_MANDATORY); in testEnableDisableForMandatoryFeatures()
[all …]
/packages/apps/TV/src/com/android/tv/features/
DTvFeatures.java19 import static com.android.tv.common.feature.BuildTypeFeature.ASOP_FEATURE;
20 import static com.android.tv.common.feature.BuildTypeFeature.ENG_ONLY_FEATURE;
21 import static com.android.tv.common.feature.FeatureUtils.OFF;
22 import static com.android.tv.common.feature.FeatureUtils.ON;
23 import static com.android.tv.common.feature.FeatureUtils.and;
24 import static com.android.tv.common.feature.FeatureUtils.not;
25 import static com.android.tv.common.feature.FeatureUtils.or;
31 import com.android.tv.common.feature.CommonFeatures;
32 import com.android.tv.common.feature.Feature;
33 import com.android.tv.common.feature.FeatureUtils;
[all …]
/packages/apps/Settings/src/com/android/settings/development/featureflags/
DFeatureFlagPersistent.java40 public static boolean isEnabled(Context context, String feature) { in isEnabled() argument
41 String value = SystemProperties.get(FeatureFlagUtils.PERSIST_PREFIX + feature); in isEnabled()
45 return FeatureFlagUtils.isEnabled(context, feature); in isEnabled()
49 public static void setEnabled(Context context, String feature, boolean enabled) { in setEnabled() argument
50 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + feature, enabled ? "true" : "false"); in setEnabled()
51 FeatureFlagUtils.setEnabled(context, feature, enabled); in setEnabled()
54 public static boolean isPersistent(String feature) { in isPersistent() argument
55 return PERSISTENT_FLAGS.contains(feature); in isPersistent()
DFeatureFlagsPreferenceController.java56 featureMap.keySet().stream().sorted().forEach(feature -> in displayPreference()
57 mGroup.addPreference(new FeatureFlagPreference(prefContext, feature))); in displayPreference()
/packages/services/Car/service/src/com/android/car/
DCarFeatureController.java212 for (String feature: MANDATORY_FEATURES) { in checkMandatoryFeaturesLocked()
213 if (!mEnabledFeatures.contains(feature)) { in checkMandatoryFeaturesLocked()
214 Slog.e(TAG, "Mandatory feature missing in mEnabledFeatures:" + feature); in checkMandatoryFeaturesLocked()
348 for (String feature: mEnabledFeatures) { in getEnabledExperimentalFeatures()
349 if (MANDATORY_FEATURES.contains(feature)) { in getEnabledExperimentalFeatures()
352 if (OPTIONAL_FEATURES.contains(feature)) { in getEnabledExperimentalFeatures()
355 experimentalFeature.add(feature); in getEnabledExperimentalFeatures()
439 for (String feature : features) { in persistToFeatureConfigFile()
440 writer.write(feature); in persistToFeatureConfigFile()
464 for (String feature : mDefaultEnabledFeaturesFromConfig) { in parseDefaultConfig()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/features/
DTunerFeatures.java19 import static com.android.tv.common.feature.FeatureUtils.OFF;
21 import com.android.tv.common.feature.CommonFeatures;
22 import com.android.tv.common.feature.DeveloperPreferenceFeature;
23 import com.android.tv.common.feature.Feature;
24 import com.android.tv.common.feature.Model;
25 import com.android.tv.common.feature.Sdk;
/packages/modules/NeuralNetworks/tools/api/
DNeuralNetworksTypes.t64 // Operations below are available since NNAPI feature level 1.
68 // Operations below are available since NNAPI feature level 2.
72 // Operations below are available since NNAPI feature level 3.
76 // Operations below are available since NNAPI feature level 4.
87 * Available since NNAPI feature level 1.
123 * NNAPI feature levels.
125 * Each update of the NNAPI specification yields a new NNAPI feature level enum value.
126 * NNAPI feature level corrseponds to an NNAPI specification version that a driver
129 * A feature level up to and including "FEATURE_LEVEL_5" maps directly to
138 /** NNAPI specification available in Android O-MR1, Android NNAPI feature level 1 */
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFeatures.java63 void forceFeature(@BoolRes int feature, boolean enabled); in forceFeature() argument
83 public void forceFeature(@BoolRes int feature, boolean enabled) { in forceFeature() argument
84 mDebugEnabled.put(feature, enabled); in forceFeature()
87 private boolean isEnabled(@BoolRes int feature) { in isEnabled() argument
88 return mDebugEnabled.get(feature, mRes.getBoolean(feature)); in isEnabled()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DCommonFeatures.java17 package com.android.tv.common.feature;
19 import static com.android.tv.common.feature.BuildTypeFeature.ENG_ONLY_FEATURE;
20 import static com.android.tv.common.feature.FeatureUtils.and;
21 import static com.android.tv.common.feature.FeatureUtils.or;
22 import static com.android.tv.common.feature.TestableFeature.createTestableFeature;
DFeatureUtils.java17 package com.android.tv.common.feature;
79 public static Feature not(final Feature feature) {
83 return !feature.isEnabled(context);
88 return "not(" + feature + ")";
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DIpProvisioningMetrics.java90 public void setDhcpEnabledFeature(final DhcpFeature feature) { in setDhcpEnabledFeature() argument
91 if (feature == DhcpFeature.DF_UNKNOWN) return; in setDhcpEnabledFeature()
92 mDhcpFeatures.add(feature); in setDhcpEnabledFeature()
154 for (DhcpFeature feature : mDhcpFeatures) { in statsWrite()
155 mDhcpSessionBuilder.addUsedFeatures(feature); in statsWrite()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DFeatureEligibilityChecker.java39 for (String feature : featuresRequired.split(",")) { in isEligible()
40 if (TextUtils.isEmpty(feature)) { in isEligible()
43 } else if (!context.getPackageManager().hasSystemFeature(feature)) { in isEligible()
44 Log.i(TAG, id + " requires unavailable feature " + feature); in isEligible()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dbbox_graph.mod.py30 feature = Input("featureMap", "TENSOR_FLOAT32", "{1, 1, 1, 1}") variable
32 model = model.Operation("ROI_ALIGN", feature, roiOut_1, batchOut_1, 2, 2, 1.0, 1.0, 4, 4, layout).T…
64 feature: ("TENSOR_QUANT8_ASYMM", 0.1, 128),
84 feature: [1],
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dbbox_graph_quant8_signed.mod.py30 feature = Input("featureMap", "TENSOR_FLOAT32", "{1, 1, 1, 1}") variable
32 model = model.Operation("ROI_ALIGN", feature, roiOut_1, batchOut_1, 2, 2, 1.0, 1.0, 4, 4, layout).T…
64 feature: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0),
84 feature: [1],
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DIExperimentalCarImpl.java99 for (String feature : enabledFeatures) { in init()
100 CarServiceBase service = constructServiceForFeature(feature); in init()
102 Log.e(TAG, "Failed to construct requested feature:" + feature); in init()
107 startedFeatures.add(feature); in init()
114 classNames.add(getClassNameForFeature(feature)); in init()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientRootTest.kt197 override fun setFeatureEnabled(feature: String, enabled: Boolean) { in <lambda>()
201 if (!originalFlagValues.containsKey(feature)) { in <lambda>()
202 originalFlagValues[feature] = in <lambda>()
203 DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONNECTIVITY, feature) in <lambda>()
209 DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CONNECTIVITY, feature, in <lambda>()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DGeoJsonTzToTzS2Polygons.java166 for (Feature feature : features) { in execute()
167 String tzId = (String) feature.getProperties().get("tzid"); in execute()
172 Future<TzS2Polygons> future = mExecutorService.submit(() -> processFeature(feature)); in execute()
199 private static TzS2Polygons processFeature(Feature feature) { in processFeature() argument
200 String tzId = (String) feature.getProperties().get("tzid"); in processFeature()
202 Geometry geometry = (Geometry) feature.getGeometry(); in processFeature()
/packages/apps/TV/common/src/com/android/tv/common/
DSoftPreconditions.java23 import com.android.tv.common.feature.Feature;
168 public static void checkFeatureEnabled(Context context, Feature feature, String tag) { in checkFeatureEnabled() argument
169 checkState(feature.isEnabled(context), tag, feature.toString()); in checkFeatureEnabled()
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/
DTestImsService.java20 import android.telephony.ims.feature.ImsFeature;
21 import android.telephony.ims.feature.MmTelFeature;
22 import android.telephony.ims.feature.RcsFeature;
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java103 for (String feature : WEIGHTS.keySet()) { in getRelevanceMetric()
104 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric()
/packages/apps/TimeZoneData/testing/
DREADME1 This directory contains files associated with testing the Time Zone update feature.
3 xts/ - Libraries to support automated testing of the Time Zone update feature.
/packages/apps/TV/common/src/com/android/tv/common/flags/proto/
Dtyped-features.proto8 // These messages are to specify feature params that are a list of integers.
17 // This message is to specify feature params that are a list of strings.
/packages/apps/TimeZoneData/oem_template/xts/
DREADME.oem6 time zone update feature has been integrated properly.
8 These tests are not included in CTS because the OEM must perform their own feature
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipMessageParsingUtilsTest.java65 for (String feature : features) { in addFeatures()
66 newHeader.append(";").append(feature); in addFeatures()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpPlayer.java339 public Builder setSupportedFeature(int feature) { in setSupportedFeature() argument
340 int byteNumber = feature / 8; in setSupportedFeature()
341 byte bitMask = (byte) (1 << (feature % 8)); in setSupportedFeature()

123456