Home
last modified time | relevance | path

Searched refs:mConfig (Results 1 – 25 of 36) sorted by relevance

12

/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DVehiclePropConfigBuilder.java32 private final VehiclePropConfig mConfig; field in VehiclePropConfigBuilder
40 mConfig = new VehiclePropConfig(); in VehiclePropConfigBuilder()
41 mConfig.prop = propId; in VehiclePropConfigBuilder()
42 mConfig.access = VehiclePropertyAccess.READ_WRITE; in VehiclePropConfigBuilder()
43 mConfig.changeMode = VehiclePropertyChangeMode.ON_CHANGE; in VehiclePropConfigBuilder()
75 mConfig.access = access; in setAccess()
81 mConfig.changeMode = changeMode; in setChangeMode()
87 mConfig.supportedAreas = supportedAreas; in setSupportedAreas()
93 mConfig.configFlags = configFlags; in setConfigFlags()
99 mConfig.configString = configString; in setConfigString()
[all …]
DMockedVehicleHal.java244 private final VehiclePropConfig mConfig; field in MockedVehicleHal.DefaultPropertyHandler
249 mConfig = config; in DefaultPropertyHandler()
255 assertEquals(mConfig.prop, value.prop); in onPropertySet()
256 assertEquals(VehiclePropertyAccess.WRITE, mConfig.access & VehiclePropertyAccess.WRITE); in onPropertySet()
262 assertEquals(mConfig.prop, value.prop); in onPropertyGet()
263 assertEquals(VehiclePropertyAccess.READ, mConfig.access & VehiclePropertyAccess.READ); in onPropertyGet()
269 assertEquals(mConfig.prop, property); in onPropertySubscribe()
275 assertEquals(mConfig.prop, property); in onPropertyUnsubscribe()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAmbientDisplayPreferenceControllerTest.java47 @Mock AmbientDisplayConfiguration mConfig; field in AmbientDisplayPreferenceControllerTest
55 mController = new AmbientDisplayPreferenceController(mContext, mConfig, "key"); in setUp()
60 when(mConfig.available()).thenReturn(true); in isAvailable_available()
66 when(mConfig.available()).thenReturn(false); in isAvailable_unavailable()
72 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in updateState_alwaysOn()
81 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(false); in updateState_notifications()
82 when(mConfig.pulseOnNotificationEnabled(anyInt())).thenReturn(true); in updateState_notifications()
91 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(false); in updateState_gestures()
92 when(mConfig.pulseOnNotificationEnabled(anyInt())).thenReturn(false); in updateState_gestures()
93 when(mConfig.enabled(anyInt())).thenReturn(true); in updateState_gestures()
[all …]
DAmbientDisplayAlwaysOnPreferenceControllerTest.java50 @Mock AmbientDisplayConfiguration mConfig; field in AmbientDisplayAlwaysOnPreferenceControllerTest
59 mController = new AmbientDisplayAlwaysOnPreferenceController(mContext, mConfig, in setUp()
65 when(mConfig.alwaysOnEnabled(anyInt())) in updateState_enabled()
75 when(mConfig.alwaysOnEnabled(anyInt())) in updateState_disabled()
108 when(mConfig.alwaysOnAvailableForUser(anyInt())) in isAvailable_available()
116 when(mConfig.alwaysOnAvailableForUser(anyInt())) in isAvailable_unavailable()
DAmbientDisplayNotificationsPreferenceControllerTest.java56 @Mock AmbientDisplayConfiguration mConfig; field in AmbientDisplayNotificationsPreferenceControllerTest
65 mController = new AmbientDisplayNotificationsPreferenceController(mContext, mConfig, in setUp()
71 when(mConfig.pulseOnNotificationEnabled(anyInt())) in updateState_enabled()
81 when(mConfig.pulseOnNotificationEnabled(anyInt())) in updateState_disabled()
107 when(mConfig.pulseOnNotificationAvailable()) in isAvailable_available()
115 when(mConfig.pulseOnNotificationAvailable()) in isAvailable_unavailable()
/packages/services/Car/evs/app/
DRenderTopView.cpp96 const ConfigManager& mConfig) : in RenderTopView() argument
98 mConfig(mConfig) { in RenderTopView()
184 const float top = mConfig.getDisplayTopLocation(); in drawFrame()
185 const float bottom = mConfig.getDisplayBottomLocation(); in drawFrame()
186 const float right = mConfig.getDisplayRightLocation(sAspectRatio); in drawFrame()
187 const float left = mConfig.getDisplayLeftLocation(sAspectRatio); in drawFrame()
229 const float carLengthInTexels = mConfig.carGraphicRearPixel() - mConfig.carGraphicFrontPixel(); in renderCarTopView()
230 const float carSpaceUnitsPerTexel = mConfig.getCarLength() / carLengthInTexels; in renderCarTopView()
235 mConfig.carGraphicRearPixel(); in renderCarTopView()
238 const float btCS = mConfig.getRearLocation() - textureExtentBehindCarInCarSpace; in renderCarTopView()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorConfig.java47 private final Bundle mConfig; field in CarSensorConfig
53 mConfig = in.readBundle(); in CarSensorConfig()
66 dest.writeBundle(mConfig); in writeToParcel()
84 mConfig = b.deepCopy(); in CarSensorConfig()
97 return mConfig; in getBundle()
102 if (mConfig.containsKey(key)) { in getInt()
103 return mConfig.getInt(key); in getInt()
121 sb.append("mConfig: " + mConfig.toString()); in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherPasswordPreferenceControllerTest.java62 private WifiConfiguration mConfig; field in WifiTetherPasswordPreferenceControllerTest
68 mConfig = new WifiConfiguration(); in setUp()
69 mConfig.SSID = "test_1234"; in setUp()
70 mConfig.preSharedKey = "test_password"; in setUp()
73 when(mWifiManager.getWifiApConfiguration()).thenReturn(mConfig); in setUp()
87 assertThat(mPreference.getText()).isEqualTo(mConfig.preSharedKey); in displayPreference_shouldStylePreference()
88 assertThat(mPreference.getSummary()).isEqualTo(mConfig.preSharedKey); in displayPreference_shouldStylePreference()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageMeteredSettings.java95 private final WifiConfiguration mConfig; field in DataUsageMeteredSettings.MeteredPreference
99 mConfig = config; in MeteredPreference()
112 setValue(Integer.toString(mConfig.meteredOverride)); in MeteredPreference()
113 setTitle(NetworkPolicyManager.resolveNetworkId(mConfig)); in MeteredPreference()
114 setSummary(getEntries()[mConfig.meteredOverride]); in MeteredPreference()
119 mConfig.meteredOverride = Integer.parseInt((String) newValue); in MeteredPreference()
120 setSummary(getEntries()[mConfig.meteredOverride]); in MeteredPreference()
122 mWifiManager.updateNetwork(mConfig); in MeteredPreference()
/packages/apps/Settings/src/com/android/settings/display/
DAmbientDisplayPreferenceController.java32 private final AmbientDisplayConfiguration mConfig; field in AmbientDisplayPreferenceController
38 mConfig = config; in AmbientDisplayPreferenceController()
44 return mConfig.available(); in isAvailable()
50 if (mConfig.alwaysOnEnabled(MY_USER_ID)) { in updateState()
52 } else if (mConfig.pulseOnNotificationEnabled(MY_USER_ID)) { in updateState()
54 } else if (mConfig.enabled(MY_USER_ID)) { in updateState()
DAmbientDisplayAlwaysOnPreferenceController.java43 private final AmbientDisplayConfiguration mConfig; field in AmbientDisplayAlwaysOnPreferenceController
53 mConfig = config; in AmbientDisplayAlwaysOnPreferenceController()
64 ((SwitchPreference) preference).setChecked(isAlwaysOnEnabled(mConfig)); in updateState()
84 return isAvailable(mConfig); in isAvailable()
DAmbientDisplayNotificationsPreferenceController.java48 private final AmbientDisplayConfiguration mConfig; field in AmbientDisplayNotificationsPreferenceController
54 mConfig = config; in AmbientDisplayNotificationsPreferenceController()
72 ((SwitchPreference) preference).setChecked(mConfig.pulseOnNotificationEnabled(MY_USER)); in updateState()
84 return mConfig.pulseOnNotificationAvailable(); in isAvailable()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DDndCondition.java47 private ZenModeConfig mConfig; field in DndCondition
64 mConfig = notificationManager.getZenModeConfig(); in refreshState()
66 mConfig = null; in refreshState()
108 final boolean isForever = mConfig != null && mConfig.manualRule != null in getSummary()
109 && mConfig.manualRule.conditionId == null; in getSummary()
111 : ZenModeConfig.getConditionSummary(mManager.getContext(), mConfig, in getSummary()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java201 int appId = (mApps.get(chan.mConfig)).mAppId; in handleMessage()
204 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
208 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
219 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
223 callHealthChannelCallback(chan.mConfig, chan.mDevice, in handleMessage()
280 callHealthChannelCallback(chan.mConfig, chan.mDevice, newState, in handleMessage()
294 private BluetoothHealthAppConfiguration mConfig; field in HealthService.BluetoothHealthDeathRecipient
299 mConfig = config; in BluetoothHealthDeathRecipient()
304 mService.unregisterAppConfiguration(mConfig); in binderDied()
309 mConfig = null; in cleanup()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplication.java51 private Config mConfig; field in QsbApplication
111 if (mConfig != null) { in close()
112 mConfig.close(); in close()
113 mConfig = null; in close()
156 if (mConfig == null) { in getConfig()
157 mConfig = createConfig(); in getConfig()
159 return mConfig; in getConfig()
DSuggestionsProviderImpl.java38 private final Config mConfig; field in SuggestionsProviderImpl
50 mConfig = config; in SuggestionsProviderImpl()
74 int maxResults = mConfig.getMaxResultsPerSource(); in getSuggestions()
82 if (query.length() == 0 && !mConfig.showSuggestionsForZeroQuery()) { in shouldDisplayResults()
DHelp.java31 private final Config mConfig; field in Help
35 mConfig = config; in Help()
56 Uri helpUrl = mConfig.getHelpUrl(activityName); in getHelpIntent()
DEventLogLogger.java35 private final Config mConfig; field in EventLogLogger
43 mConfig = config; in EventLogLogger()
57 return mConfig; in getConfig()
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorConfig.java48 private final Bundle mConfig; field in CarSensorConfig
62 mConfig = in.deepCopy(); in CarSensorConfig()
75 if (mConfig.containsKey(key)) { in getInt()
76 return mConfig.getInt(key); in getInt()
93 sb.append("mConfig: " + mConfig.toString()); in toString()
/packages/apps/Settings/src/com/android/settings/utils/
DServiceListing.java46 private final Config mConfig; field in ServiceListing
55 mConfig = config; in ServiceListing()
79 mContentResolver.registerContentObserver(Settings.Secure.getUriFor(mConfig.setting), in setListening()
139 Settings.Secure.putString(mContentResolver, mConfig.setting, in saveEnabledServices()
145 final String flat = Settings.Secure.getString(mContentResolver, mConfig.setting); in loadEnabledServices()
159 getServices(mConfig, mServices, mContext.getPackageManager()); in reload()
DManagedServiceSettings.java55 private final Config mConfig; field in ManagedServiceSettings
67 mConfig = getConfig(); in ManagedServiceSettings()
79 mServiceListing = new ServiceListing(mContext, mConfig); in onCreate()
92 setEmptyText(mConfig.emptyText); in onViewCreated()
218 final String title = getResources().getString(parent.mConfig.warningDialogTitle, label); in onCreateDialog()
219 final String summary = getResources().getString(parent.mConfig.warningDialogSummary, in onCreateDialog()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemView.java179 private ConversationItemViewCoordinates.Config mConfig; field in ConversationItemView
581 mConfig = new ConversationItemViewCoordinates.Config() in bind()
585 mConfig.showFolders(); in bind()
588 mConfig.showReplyState(); in bind()
591 mConfig.showColorBlock(); in bind()
612 mConfig.showPersonalIndicator(); in bind()
678 mConfig.updateWidth(wSize).setLayoutDirection(ViewCompat.getLayoutDirection(this)); in onMeasure()
683 mCoordinates = ConversationItemViewCoordinates.forConfig(mContext, mConfig, in onMeasure()
692 setMeasuredDimension(mConfig.getWidth(), h); in onMeasure()
1212 if (mConfig.areFoldersVisible()) { in onDraw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DCanvasTexture.java28 private final Config mConfig; field in CanvasTexture
31 mConfig = Config.ARGB_8888; in CanvasTexture()
38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); in onGetBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumSetPage.java87 private Config.AlbumSetPage mConfig; field in AlbumSetPage
135 int slotViewTop = mActionBar.getHeight() + mConfig.paddingTop;
136 int slotViewBottom = bottom - top - mConfig.paddingBottom;
490 mConfig = Config.AlbumSetPage.get(mActivity); in initializeViews()
491 mSlotView = new SlotView(mActivity, mConfig.slotViewSpec); in initializeViews()
493 mActivity, mSelectionManager, mSlotView, mConfig.labelSpec, in initializeViews()
494 mConfig.placeholderColor); in initializeViews()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapTileProvider.java31 private final Config mConfig; field in BitmapTileProvider
50 mConfig = Config.ARGB_8888; in BitmapTileProvider()
80 result = Bitmap.createBitmap(tileSize, tileSize, mConfig); in getTile()

12