/packages/services/Car/vehicle_network_service/ |
D | VehicleHalPropertyUtil.h | 35 static void dumpProperty(String8& msg, const vehicle_prop_config_t& config) { in dumpProperty() argument 37 config.prop, config.access, config.change_mode, config.value_type); in dumpProperty() 39 config.permission_model, config.vehicle_zone_flags, config.config_flags, in dumpProperty() 40 config.min_sample_rate, config.max_sample_rate); in dumpProperty() 41 switch (config.value_type) { in dumpProperty() 46 msg.appendFormat(",v min:%f, v max:%f\n", config.float_min_value, in dumpProperty() 47 config.float_max_value); in dumpProperty() 53 if (config.float_min_values == NULL) { in dumpProperty() 54 if (config.float_max_values == NULL) { in dumpProperty() 55 msg.appendFormat(",v min:%f, v max:%f\n", config.float_min_value, in dumpProperty() [all …]
|
D | VehicleNetworkService.cpp | 400 for (auto& config : (mMockingEnabled ? in findConfigLocked() 402 if (config->prop == property) { in findConfigLocked() 403 return config; in findConfigLocked() 411 vehicle_prop_config_t const * config = findConfigLocked(property); in isGettableLocked() local 412 if (config == NULL) { in isGettableLocked() 415 if ((config->access & VEHICLE_PROP_ACCESS_READ) == 0) { in isGettableLocked() 423 vehicle_prop_config_t const * config = findConfigLocked(property); in isSettableLocked() local 424 if (config == NULL) { in isSettableLocked() 427 if ((config->access & VEHICLE_PROP_ACCESS_WRITE) == 0) { in isSettableLocked() 431 if (config->value_type != valueType) { in isSettableLocked() [all …]
|
/packages/services/Car/tests/libvehiclenetwork-native-test/ |
D | IVehicleNetworkTest.cpp | 73 for (auto& config : properties->getList()) { in TEST_F() local 74 String8 msg = String8::format("prop 0x%x\n", config->prop); in TEST_F() 79 for (auto& config : properties->getList()) { in TEST_F() local 80 String8 msg = String8::format("query single prop 0x%x\n", config->prop); in TEST_F() 82 sp<VehiclePropertiesHolder> singleProperty = vn->listProperties(config->prop); in TEST_F() 85 ASSERT_EQ(config->prop, newConfig->prop); in TEST_F() 86 ASSERT_EQ(config->access, newConfig->access); in TEST_F() 87 ASSERT_EQ(config->change_mode, newConfig->change_mode); in TEST_F() 98 for (auto& config : properties->getList()) { in TEST_F() local 99 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F() [all …]
|
D | VehicleNetworkTest.cpp | 80 for (auto& config : properties->getList()) { in TEST_F() local 81 String8 msg = String8::format("prop 0x%x\n", config->prop); in TEST_F() 86 for (auto& config : properties->getList()) { in TEST_F() local 87 String8 msg = String8::format("query single prop 0x%x\n", config->prop); in TEST_F() 89 sp<VehiclePropertiesHolder> singleProperty = vn->listProperties(config->prop); in TEST_F() 92 ASSERT_EQ(config->prop, newConfig->prop); in TEST_F() 93 ASSERT_EQ(config->access, newConfig->access); in TEST_F() 94 ASSERT_EQ(config->change_mode, newConfig->change_mode); in TEST_F() 105 for (auto& config : properties->getList()) { in TEST_F() local 106 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | WifiConfigHelper.java | 64 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument 67 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid() 69 config.SSID = ssid; in setConfigSsid() 74 WifiConfiguration config, WifiSecurity security) { in setConfigKeyManagementBySecurity() argument 75 config.allowedKeyManagement.clear(); in setConfigKeyManagementBySecurity() 76 config.allowedAuthAlgorithms.clear(); in setConfigKeyManagementBySecurity() 79 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity() 82 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity() 83 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in setConfigKeyManagementBySecurity() 84 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in setConfigKeyManagementBySecurity() [all …]
|
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/ |
D | VehicleNetworkTest.java | 68 for (VehiclePropConfig config : configs.getConfigsList()) { in testListProperties() 69 Log.i(TAG, VehicleNetworkProtoUtil.VehiclePropConfigToString(config)); in testListProperties() 93 for (VehiclePropConfig config : configs.getConfigsList()) { in testGetProperty() 94 if ((config.getAccess() & VehiclePropAccess.VEHICLE_PROP_ACCESS_READ) != 0) { in testGetProperty() 95 if (config.getProp() == VehicleNetworkConsts.VEHICLE_PROPERTY_RADIO_PRESET) { in testGetProperty() 98 if (config.getProp() >= VehicleNetworkConsts.VEHICLE_PROPERTY_INTERNAL_START && in testGetProperty() 99 config.getProp() <= VehicleNetworkConsts.VEHICLE_PROPERTY_INTERNAL_END) { in testGetProperty() 101 VehiclePropValue v = VehicleNetworkTestUtil.createDummyValue(config.getProp(), in testGetProperty() 102 config.getValueType()); in testGetProperty() 105 VehiclePropValue value = mVehicleNetwork.getProperty(config.getProp()); in testGetProperty() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
D | CarPropertyConfigTest.java | 32 CarPropertyConfig<Float> config = CarPropertyConfig in createFloatPropertyConfig() local 38 assertEquals(PROPERTY_ID, config.getPropertyId()); in createFloatPropertyConfig() 39 assertEquals(CAR_AREA_TYPE, config.getAreaType()); in createFloatPropertyConfig() 40 assertEquals(Float.class, config.getPropertyType()); in createFloatPropertyConfig() 41 assertEquals(2, config.getAreaCount()); in createFloatPropertyConfig() 44 assertNull(config.getMinValue(WINDOW_DRIVER)); in createFloatPropertyConfig() 45 assertNull(config.getMaxValue(WINDOW_DRIVER)); in createFloatPropertyConfig() 47 assertEquals(10f, config.getMinValue(WINDOW_PASSENGER)); in createFloatPropertyConfig() 48 assertEquals(20f, config.getMaxValue(WINDOW_PASSENGER)); in createFloatPropertyConfig() 50 return config; in createFloatPropertyConfig() [all …]
|
/packages/services/Car/car-systemtest-lib/src/android/car/test/ |
D | VehicleHalEmulator.java | 87 public synchronized void addProperty(VehiclePropConfig config, in addProperty() argument 90 VehicleHalProperty halProp = new VehicleHalProperty(config, handler); in addProperty() 91 mProperties.put(config.getProp(), halProp); in addProperty() 99 public synchronized void addStaticProperty(VehiclePropConfig config, VehiclePropValue value) { in addStaticProperty() argument 101 DefaultPropertyHandler handler = new DefaultPropertyHandler(config, value); in addStaticProperty() 102 VehicleHalProperty halProp = new VehicleHalProperty(config, handler); in addStaticProperty() 103 mProperties.put(config.getProp(), halProp); in addStaticProperty() 150 public static void assertPropertyForGet(VehiclePropConfig config, int property) { in assertPropertyForGet() argument 151 assertProperty(config, property); in assertPropertyForGet() 152 if ((config.getAccess() & VehiclePropAccess.VEHICLE_PROP_ACCESS_READ) == 0) { in assertPropertyForGet() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 250 PositionConfiguration config = new PositionConfiguration(); in getPositionConfiguration() local 252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration() 253 config.mBottomBarOverlay = true; in getPositionConfiguration() 255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration() 257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height); in getPositionConfiguration() 279 config.mBottomBarOverlay = true; in getPositionConfiguration() 282 … config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration() 284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration() 287 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration() 289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 257 public static boolean isPropertySubscribable(VehiclePropConfig config) { in isPropertySubscribable() argument 258 if (config.hasAccess() & VehiclePropAccess.VEHICLE_PROP_ACCESS_READ == 0 || in isPropertySubscribable() 259 config.getChangeMode() == in isPropertySubscribable() 267 for (VehiclePropConfig config : configs) { in dumpProperties() 269 VehicleNetworkConsts.getVehiclePropertyName(config.getProp())); in dumpProperties() 311 for (VehiclePropConfig config : mAllProperties) { in dump() 313 builder.append("Property:" + Integer.toHexString(config.getProp())); in dump() 314 builder.append(",access:" + Integer.toHexString(config.getAccess())); in dump() 315 builder.append(",changeMode:" + Integer.toHexString(config.getChangeMode())); in dump() 316 builder.append(",valueType:" + Integer.toHexString(config.getValueType())); in dump() [all …]
|
D | PowerHalService.java | 232 VehiclePropConfig config = mProperties.get( in isPowerStateSupported() local 234 return config != null; in isPowerStateSupported() 238 VehiclePropConfig config = mProperties.get( in isDeepSleepAllowed() local 240 if (config == null) { in isDeepSleepAllowed() 243 return (config.getConfigArray(0) & in isDeepSleepAllowed() 249 VehiclePropConfig config = mProperties.get( in isTimedWakeupAllowed() local 251 if (config == null) { in isTimedWakeupAllowed() 254 return (config.getConfigArray(0) & in isTimedWakeupAllowed() 261 for (VehiclePropConfig config : mProperties.values()) { in init() 262 if (VehicleHal.isPropertySubscribable(config)) { in init() [all …]
|
D | SensorHalService.java | 173 VehiclePropConfig config = mSensorToHalProperty.get(sensorType); in requestSensorStart() local 174 if (config == null) { in requestSensorStart() 178 mHal.subscribeProperty(this, config.getProp(), fixSamplingRateForProperty(config, rate)); in requestSensorStart() 183 VehiclePropConfig config; in getCurrentSensorValue() local 185 config = mSensorToHalProperty.get(sensorType); in getCurrentSensorValue() 187 if (config == null) { in getCurrentSensorValue() 191 VehiclePropValue value = mHal.getVehicleNetwork().getProperty(config.getProp()); in getCurrentSensorValue() 195 Integer.toHexString(config.getProp()), e); in getCurrentSensorValue() 227 VehiclePropConfig config = mSensorToHalProperty.get(sensorType); in requestSensorStop() local 228 if (config == null) { in requestSensorStop() [all …]
|
D | AudioHalService.java | 259 VehiclePropConfig config = mProperties.get( in isRadioExternal() local 261 if (config == null) { in isRadioExternal() 264 return (config.getConfigArray(0) & in isRadioExternal() 291 VehiclePropConfig config = mProperties.get(property); in isPropertySupportedLocked() local 292 return config != null; in isPropertySupportedLocked() 297 for (VehiclePropConfig config : mProperties.values()) { in init() 298 if (VehicleHal.isPropertySubscribable(config)) { in init() 299 mVehicleHal.subscribeProperty(this, config.getProp(), 0); in init() 316 for (VehiclePropConfig config : mProperties.values()) { in release() 317 if (VehicleHal.isPropertySubscribable(config)) { in release() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 300 …blic BluetoothHealthDeathRecipient(HealthService service, BluetoothHealthAppConfiguration config) { in BluetoothHealthDeathRecipient() argument 302 mConfig = config; in BluetoothHealthDeathRecipient() 343 public boolean registerAppConfiguration(BluetoothHealthAppConfiguration config, in registerAppConfiguration() argument 347 return service.registerAppConfiguration(config, callback); in registerAppConfiguration() 350 public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config) { in unregisterAppConfiguration() argument 353 return service.unregisterAppConfiguration(config); in unregisterAppConfiguration() 357 BluetoothHealthAppConfiguration config) { in connectChannelToSource() argument 360 return service.connectChannelToSource(device, config); in connectChannelToSource() 364 BluetoothHealthAppConfiguration config, int channelType) { in connectChannelToSink() argument 367 return service.connectChannelToSink(device, config, channelType); in connectChannelToSink() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 225 WifiConfiguration config = mAccessPoint.getConfig(); in WifiConfigController() local 226 if (config.getIpAssignment() == IpAssignment.STATIC) { in WifiConfigController() 230 StaticIpConfiguration staticConfig = config.getStaticIpConfiguration(); in WifiConfigController() 239 mSharedCheckBox.setEnabled(config.shared); in WifiConfigController() 240 if (!config.shared) { in WifiConfigController() 244 if (config.getProxySettings() == ProxySettings.STATIC) { in WifiConfigController() 247 } else if (config.getProxySettings() == ProxySettings.PAC) { in WifiConfigController() 253 if (config != null && config.isPasspoint()) { in WifiConfigController() 256 config.providerFriendlyName)); in WifiConfigController() 287 WifiConfiguration config = mAccessPoint.getConfig(); in WifiConfigController() local [all …]
|
D | WifiApDialog.java | 90 WifiConfiguration config = new WifiConfiguration(); in getConfig() local 98 config.SSID = mSsid.getText().toString(); in getConfig() 100 config.apBand = mBandIndex; in getConfig() 104 config.allowedKeyManagement.set(KeyMgmt.NONE); in getConfig() 105 return config; in getConfig() 108 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getConfig() 109 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in getConfig() 112 config.preSharedKey = password; in getConfig() 114 return config; in getConfig()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 88 public Config config; field in UploadedTexture.BorderKey 93 int x = config.hashCode() ^ length; in hashCode() 102 && config == o.config && length == o.length; in equals() 120 boolean vertical, Config config, int length) { in getBorderLine() argument 123 key.config = config; in getBorderLine() 128 ? Bitmap.createBitmap(1, length, config) in getBorderLine() 129 : Bitmap.createBitmap(length, 1, config); in getBorderLine() 234 Config config = bitmap.getConfig(); in uploadToCanvas() local 241 Bitmap line = getBorderLine(true, config, texHeight); in uploadToCanvas() 245 line = getBorderLine(false, config, texWidth); in uploadToCanvas() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 87 public Config config; field in UploadedTexture.BorderKey 92 int x = config.hashCode() ^ length; in hashCode() 101 && config == o.config && length == o.length; in equals() 119 boolean vertical, Config config, int length) { in getBorderLine() argument 122 key.config = config; in getBorderLine() 127 ? Bitmap.createBitmap(1, length, config) in getBorderLine() 128 : Bitmap.createBitmap(length, 1, config); in getBorderLine() 233 Config config = bitmap.getConfig(); in uploadToCanvas() local 240 Bitmap line = getBorderLine(true, config, texHeight); in uploadToCanvas() 244 line = getBorderLine(false, config, texWidth); in uploadToCanvas() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ConfigMonitor.java | 41 Configuration config = context.getResources().getConfiguration(); in ConfigMonitor() local 42 mFontScale = config.fontScale; in ConfigMonitor() 43 mDensity = getDensity(config); in ConfigMonitor() 48 Configuration config = context.getResources().getConfiguration(); in onReceive() local 49 if (mFontScale != config.fontScale || mDensity != getDensity(config)) { in onReceive() 60 private static int getDensity(Configuration config) { in getDensity() argument 61 return Utilities.ATLEAST_JB_MR1 ? config.densityDpi : 0; in getDensity()
|
/packages/apps/CarrierConfig/src/com/android/carrierconfig/ |
D | DefaultCarrierConfigService.java | 62 PersistableBundle config = null; in onLoadConfig() local 73 config = readConfigFromXml(parser, id); in onLoadConfig() 78 config = new PersistableBundle(); in onLoadConfig() 85 config.putAll(vendorConfig); in onLoadConfig() 91 return config; in onLoadConfig() 121 PersistableBundle config = new PersistableBundle(); in readConfigFromXml() local 124 return config; in readConfigFromXml() 137 config.putAll(configFragment); in readConfigFromXml() 141 return config; in readConfigFromXml()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CarrierConfigLoader.java | 163 PersistableBundle config; 195 config = restoreConfigFromXml(DEFAULT_CARRIER_CONFIG_PACKAGE, iccid); 196 if (config != null) { 199 mConfigFromDefaultApp[phoneId] = config; 227 config = carrierService.getCarrierConfig(carrierId); 229 saveConfigToXml(DEFAULT_CARRIER_CONFIG_PACKAGE, iccid, config); 230 mConfigFromDefaultApp[phoneId] = config; 264 config = restoreConfigFromXml(carrierPackageName, iccid); 265 if (config != null) { 268 mConfigFromCarrierApp[phoneId] = config; [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemViewCoordinates.java | 244 private ConversationItemViewCoordinates(final Context context, final Config config, in ConversationItemViewCoordinates() argument 259 folders.setVisibility(config.areFoldersVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates() 263 switch (config.getGadgetMode()) { in ConversationItemViewCoordinates() 278 replyState.setVisibility(config.isReplyStateVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates() 282 config.isPersonalIndicatorVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates() 284 setFramePadding(context, view, config.useFullPadding()); in ConversationItemViewCoordinates() 287 ViewCompat.setLayoutDirection(view, config.getLayoutDirection()); in ConversationItemViewCoordinates() 288 final int widthSpec = MeasureSpec.makeMeasureSpec(config.getWidth(), MeasureSpec.EXACTLY); in ConversationItemViewCoordinates() 347 if (config.areFoldersVisible()) { in ConversationItemViewCoordinates() 362 if (config.isColorBlockVisible() && colorBlock != null) { in ConversationItemViewCoordinates() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | MosaicRendererSurfaceView.java | 177 for (EGLConfig config : configs) { in chooseConfig() 178 int d = findConfigAttrib(egl, display, config, in chooseConfig() 180 int s = findConfigAttrib(egl, display, config, in chooseConfig() 188 int r = findConfigAttrib(egl, display, config, in chooseConfig() 190 int g = findConfigAttrib(egl, display, config, in chooseConfig() 192 int b = findConfigAttrib(egl, display, config, in chooseConfig() 194 int a = findConfigAttrib(egl, display, config, in chooseConfig() 198 return config; in chooseConfig() 204 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument 206 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib() [all …]
|
/packages/services/Car/libvehiclenetwork/include/ |
D | VehicleNetworkDataTypes.h | 62 static void deleteMembers(vehicle_prop_config_t* config) { in deleteMembers() argument 63 if (config->config_string.data != NULL && config->config_string.len > 0){ in deleteMembers() 64 delete[] config->config_string.data; in deleteMembers() 66 switch (config->prop) { in deleteMembers() 71 delete[] config->int32_max_values; in deleteMembers() 72 delete[] config->int32_min_values; in deleteMembers() 78 delete[] config->float_max_values; in deleteMembers() 79 delete[] config->float_min_values; in deleteMembers()
|
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/ |
D | VehicleNetworkProtoUtil.java | 31 public static String VehiclePropConfigToString(VehiclePropConfig config) { in VehiclePropConfigToString() argument 34 sb.append(Integer.toHexString(config.getProp())); in VehiclePropConfigToString() 36 sb.append(Integer.toHexString(config.getAccess())); in VehiclePropConfigToString() 38 sb.append(Integer.toHexString(config.getChangeMode())); in VehiclePropConfigToString() 40 sb.append(Integer.toHexString(config.getValueType())); in VehiclePropConfigToString() 42 sb.append(Integer.toHexString(config.getPermissionModel())); in VehiclePropConfigToString()
|