Home
last modified time | relevance | path

Searched refs:component (Results 1 – 25 of 913) sorted by relevance

12345678910>>...37

/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java126 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in populateForUidBatteryConsumer()
127 final String metricTitle = getPowerMetricTitle(component); in populateForUidBatteryConsumer()
128 final int powerModel = requestedBatteryConsumer.getPowerModel(component); in populateForUidBatteryConsumer()
132 requestedBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
133 totalPowerByComponentMah[component]); in populateForUidBatteryConsumer()
135 requestedBatteryConsumer, component); in populateForUidBatteryConsumer()
138 requestedBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
139 totalPowerByComponentMah[component]); in populateForUidBatteryConsumer()
141 requestedBatteryConsumer, component); in populateForUidBatteryConsumer()
143 requestedModeledBatteryConsumer.getConsumedPower(component), in populateForUidBatteryConsumer()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DCommonAssertions.kt25 import android.tools.common.traces.component.IComponentMatcher
118 fun LegacyFlickerTest.layerBecomesVisible(component: IComponentMatcher) { in layerBecomesVisible()
119 assertLayers { this.isInvisible(component).then().isVisible(component) } in layerBecomesVisible()
122 fun LegacyFlickerTest.layerBecomesInvisible(component: IComponentMatcher) { in LegacyFlickerTest()
123 assertLayers { this.isVisible(component).then().isInvisible(component) } in LegacyFlickerTest()
126 fun LegacyFlickerTest.layerIsVisibleAtEnd(component: IComponentMatcher) { in LegacyFlickerTest()
127 assertLayersEnd { this.isVisible(component) } in LegacyFlickerTest()
130 fun LegacyFlickerTest.layerKeepVisible(component: IComponentMatcher) { in LegacyFlickerTest()
131 assertLayers { this.isVisible(component) } in LegacyFlickerTest()
135 component: IComponentMatcher, in LegacyFlickerTest()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Ddevice_for_input_source.pfw4 component: /Policy/policy/input_sources/default/applicable_input_device/mask
21 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
38 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
59 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
80 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
101 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
121 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
139 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
156 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
177 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/dagger/
DControlsComponentTest.kt82 val component = setupComponent(true) in testFeatureEnabled() constant
84 assertTrue(component.getControlsController().isPresent) in testFeatureEnabled()
85 assertEquals(controller, component.getControlsController().get()) in testFeatureEnabled()
86 assertTrue(component.getControlsUiController().isPresent) in testFeatureEnabled()
87 assertEquals(uiController, component.getControlsUiController().get()) in testFeatureEnabled()
88 assertTrue(component.getControlsListingController().isPresent) in testFeatureEnabled()
89 assertEquals(listingController, component.getControlsListingController().get()) in testFeatureEnabled()
94 val component = setupComponent(false) in testFeatureDisabled() constant
96 assertFalse(component.getControlsController().isPresent) in testFeatureDisabled()
97 assertFalse(component.getControlsUiController().isPresent) in testFeatureDisabled()
[all …]
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetrics.java59 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; in PowerMetrics()
60 component++) { in PowerMetrics()
61 totalPowerPerComponentMah[component] += in PowerMetrics()
62 uidBatteryConsumer.getConsumedPower(component); in PowerMetrics()
63 totalDurationPerComponentMs[component] += in PowerMetrics()
64 uidBatteryConsumer.getUsageDurationMillis(component); in PowerMetrics()
72 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in PowerMetrics()
73 addMetric(getPowerMetricName(component), MetricKind.POWER, in PowerMetrics()
74 selectedBatteryConsumer.getConsumedPower(component), in PowerMetrics()
75 totalPowerPerComponentMah[component]); in PowerMetrics()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/pkg/component/
DParsedComponentUtils.java17 package com.android.server.pm.pkg.component;
44 Component component, String tag, ParsingPackage pkg, TypedArray array, in parseComponent() argument
59 component.setName(className) in parseComponent()
64 component.setIcon(roundIconVal) in parseComponent()
69 component.setIcon(iconVal); in parseComponent()
70 component.setNonLocalizedLabel(null); in parseComponent()
76 component.setLogo(logoVal); in parseComponent()
81 component.setBanner(bannerVal); in parseComponent()
85 component.setDescriptionRes(array.getResourceId(descriptionAttr, 0)); in parseComponent()
90 component.setLabelRes(v.resourceId); in parseComponent()
[all …]
DComponentMutateUtils.java17 package com.android.server.pm.pkg.component;
49 public static void setExactFlags(ParsedComponent component, int exactFlags) { in setExactFlags() argument
50 ((ParsedComponentImpl) component).setFlags(exactFlags); in setExactFlags()
53 public static void setEnabled(@NonNull ParsedMainComponent component, boolean enabled) { in setEnabled() argument
54 ((ParsedMainComponentImpl) component).setEnabled(enabled); in setEnabled()
57 public static void setPackageName(@NonNull ParsedComponent component, in setPackageName() argument
59 ((ParsedComponentImpl) component).setPackageName(packageName); in setPackageName()
62 public static void setDirectBootAware(@NonNull ParsedMainComponent component, in setDirectBootAware() argument
64 ((ParsedMainComponentImpl) component).setDirectBootAware(directBootAware); in setDirectBootAware()
67 public static void setExported(@NonNull ParsedMainComponent component, boolean exported) { in setExported() argument
[all …]
DParsedMainComponentUtils.java17 package com.android.server.pm.pkg.component;
49 Component component, String tag, String[] separateProcesses, ParsingPackage pkg, in parseMainComponent() argument
54 ParseResult<Component> result = ParsedComponentUtils.parseComponent(component, tag, pkg, in parseMainComponent()
62 component.setDirectBootAware(array.getBoolean(directBootAwareAttr, false)); in parseMainComponent()
63 if (component.isDirectBootAware()) { in parseMainComponent()
69 component.setEnabled(array.getBoolean(enabledAttr, true)); in parseMainComponent()
92 component.setProcessName(processNameResult.getResult()); in parseMainComponent()
96 component.setSplitName(array.getNonConfigurationString(splitNameAttr, 0)); in parseMainComponent()
99 if (defaultSplitName != null && component.getSplitName() == null) { in parseMainComponent()
100 component.setSplitName(defaultSplitName); in parseMainComponent()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
Ddevice_for_product_strategies.pfw5component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
40component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
44component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
132 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
136 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/radio/selected_output_devices/mask
[all …]
/frameworks/av/media/libstagefright/omx/
DSoftOMXComponent.cpp30 OMX_COMPONENTTYPE **component) in SoftOMXComponent() argument
62 *component = mComponent; in SoftOMXComponent()
111 OMX_HANDLETYPE component, in SendCommandWrapper() argument
117 ((OMX_COMPONENTTYPE *)component)->pComponentPrivate; in SendCommandWrapper()
124 OMX_HANDLETYPE component, in GetParameterWrapper() argument
129 ((OMX_COMPONENTTYPE *)component)->pComponentPrivate; in GetParameterWrapper()
136 OMX_HANDLETYPE component, in SetParameterWrapper() argument
141 ((OMX_COMPONENTTYPE *)component)->pComponentPrivate; in SetParameterWrapper()
148 OMX_HANDLETYPE component, in GetConfigWrapper() argument
153 ((OMX_COMPONENTTYPE *)component)->pComponentPrivate; in GetConfigWrapper()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DHomeControlsKeyguardQuickAffordanceConfigTest.kt48 @Mock private lateinit var component: ControlsComponent variable in com.android.systemui.keyguard.data.quickaffordance.HomeControlsKeyguardQuickAffordanceConfigTest
56 whenever(component.canShowWhileLockedSetting).thenReturn(MutableStateFlow(true)) in setUp()
61 component = component, in setUp()
67 whenever(component.canShowWhileLockedSetting).thenReturn(MutableStateFlow(false)) in <lambda>()
68 whenever(component.isEnabled()).thenReturn(true) in <lambda>()
69 whenever(component.getTileImageId()).thenReturn(R.drawable.controls_icon) in <lambda>()
70 whenever(component.getTileTitleId()).thenReturn(R.string.quick_controls_title) in <lambda>()
72 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController)) in <lambda>()
73 whenever(component.getControlsListingController()).thenReturn(Optional.empty()) in <lambda>()
74 whenever(component.getVisibility()).thenReturn(ControlsComponent.Visibility.AVAILABLE) in <lambda>()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/
Ddevice_for_product_strategies.pfw5component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
40component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
44component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
132 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
136 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/radio/selected_output_devices/mask
[all …]
/frameworks/av/media/codec2/hal/hidl/1.2/utils/
DComponentStore.cpp204 sp<Component> component; in createComponent() local
214 component = new Component(c2component, listener, this, pool); in createComponent()
215 if (!component) { in createComponent()
218 reportComponentBirth(component.get()); in createComponent()
219 if (component->status() != C2_OK) { in createComponent()
220 status = static_cast<Status>(component->status()); in createComponent()
222 component->initListener(component); in createComponent()
223 if (component->status() != C2_OK) { in createComponent()
224 status = static_cast<Status>(component->status()); in createComponent()
229 _hidl_cb(status, component); in createComponent()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java79 if (automaticRule.component != null) { in evaluateConfig()
89 final ComponentName component = mSubscriptions.valueAt(i); in evaluateConfig() local
92 mConditionProviders.unsubscribeIfNecessary(component, id); in evaluateConfig()
111 public void onServiceAdded(ComponentName component) { in onServiceAdded() argument
112 if (DEBUG) Log.d(TAG, "onServiceAdded " + component); in onServiceAdded()
114 mHelper.setConfig(mHelper.getConfig(), component, "zmc.onServiceAdded:" + component, in onServiceAdded() local
138 rule.component = sp.getComponent(); in evaluateRule()
144 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); in evaluateRule()
147 mConditionProviders.ensureRecordExists(rule.component, id, cp); in evaluateRule()
151 if (rule.component == null && rule.enabler == null) { in evaluateRule()
[all …]
DConditionProviders.java142 if (filter != null && !filter.matches(r.component)) continue; in dump()
195 mCallback.onServiceAdded(info.component); in onServiceAdded()
224 if (!r.component.equals(removed.component)) continue; in onServiceRemovedLocked()
294 private ConditionRecord getRecordLocked(Uri id, ComponentName component, boolean create) { in getRecordLocked() argument
295 if (id == null || component == null) return null; in getRecordLocked()
299 if (r.id.equals(id) && r.component.equals(component)) { in getRecordLocked()
304 final ConditionRecord r = new ConditionRecord(id, component); in getRecordLocked()
320 final ConditionRecord r = getRecordLocked(c.id, info.component, true /*create*/); in notifyConditions()
334 public IConditionProvider findConditionProvider(ComponentName component) { in findConditionProvider() argument
335 if (component == null) return null; in findConditionProvider()
[all …]
/frameworks/base/tools/aapt2/integration-tests/DumpTest/
Dcomponents_expected.txt33 provides-component:'app-widget'
34 provides-component:'device-admin'
35 provides-component:'ime'
36 provides-component:'wallpaper'
37 provides-component:'accessibility'
38 provides-component:'print-service'
39 provides-component:'payment'
40 provides-component:'search'
41 provides-component:'document-provider'
42 provides-component:'notification-listener'
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DHomeControlsKeyguardQuickAffordanceConfig.kt52 private val component: ControlsComponent, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.HomeControlsKeyguardQuickAffordanceConfig
59 override fun pickerName(): String = context.getString(component.getTileTitleId()) in <lambda>()
61 override val pickerIconResourceId: Int by lazy { component.getTileImageId() } in <lambda>()
64 component.canShowWhileLockedSetting.flatMapLatest { canShowWhileLocked -> in <lambda>()
66 stateInternal(component.getControlsListingController().getOrNull()) in <lambda>()
73 if (!component.isEnabled()) { in <lambda>()
78 component.getControlsListingController().getOrNull()?.getCurrentServices() in <lambda>()
80 component.getControlsController().getOrNull()?.getFavorites()?.isNotEmpty() == true in <lambda>()
82 val componentPackageName = component.getPackageName() in <lambda>()
106 val activityClass = component.getControlsUiController().get().resolveActivity() in <lambda>()
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSoftOMXComponent.h37 OMX_COMPONENTTYPE **component);
109 OMX_HANDLETYPE component,
115 OMX_HANDLETYPE component,
120 OMX_HANDLETYPE component,
125 OMX_HANDLETYPE component,
130 OMX_HANDLETYPE component,
135 OMX_HANDLETYPE component,
140 OMX_HANDLETYPE component,
148 OMX_HANDLETYPE component,
155 OMX_HANDLETYPE component,
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java186 public static boolean populateContentValues(ICalendar.Component component, in populateContentValues() argument
190 component.getFirstProperty("DTSTART"); in populateContentValues()
207 String duration = computeDuration(start, component); in populateContentValues()
208 String rrule = flattenProperties(component, "RRULE"); in populateContentValues()
209 String rdate = extractDates(component.getFirstProperty("RDATE")); in populateContentValues()
210 String exrule = flattenProperties(component, "EXRULE"); in populateContentValues()
211 String exdate = extractDates(component.getFirstProperty("EXDATE")); in populateContentValues()
220 + component.toString()); in populateContentValues()
232 Log.d(TAG, "DTSTART is out of range: " + component.toString()); in populateContentValues()
247 Log.i(TAG,"Failed to parse event: " + component.toString()); in populateContentValues()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DFakeContextBuilder.java77 String intentAction, @Nullable ComponentName component) { in setIntentComponent() argument
79 mComponents.put(intentAction, component); in setIntentComponent()
97 public FakeContextBuilder setAllIntentComponent(@Nullable ComponentName component) { in setAllIntentComponent() argument
98 mAllIntentComponent = component; in setAllIntentComponent()
109 final ComponentName component = mComponents.containsKey(action) in build() local
112 return getResolveInfo(component); in build()
129 private static ResolveInfo getResolveInfo(ComponentName component) { in getResolveInfo() argument
131 if (component == null) { in getResolveInfo()
138 info.activityInfo.packageName = component.getPackageName(); in getResolveInfo()
139 info.activityInfo.name = component.getClassName(); in getResolveInfo()
[all …]
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java106 if (admin.component != null) { in getShowAdminSupportDetailsIntent()
107 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, admin.component); in getShowAdminSupportDetailsIntent()
148 public ComponentName component = null; field in RestrictedLockUtils.EnforcedAdmin
173 public EnforcedAdmin(ComponentName component, UserHandle user) { in EnforcedAdmin() argument
174 this.component = component; in EnforcedAdmin()
178 public EnforcedAdmin(ComponentName component, String enforcedRestriction, UserHandle user) { in EnforcedAdmin() argument
179 this.component = component; in EnforcedAdmin()
188 this.component = other.component; in EnforcedAdmin()
223 && Objects.equals(component, that.component) in equals()
229 return Objects.hash(component, enforcedRestriction, user); in hashCode()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java48 public void setEnabled(ComponentName component) { in setEnabled() argument
49 setDisabled(component, ENABLED); in setEnabled()
53 public void setDisabled(ComponentName component, @DisableReason int reason) { in setDisabled() argument
57 mPm.setComponentEnabledSetting(component, desiredState, PackageManager.DONT_KILL_APP); in setDisabled()
59 mAutoDisabledPrefs.edit().remove(component.flattenToString()).apply(); in setDisabled()
61 mAutoDisabledPrefs.edit().putInt(component.flattenToString(), reason).apply(); in setDisabled()
66 public boolean isEnabled(ComponentName component) { in isEnabled() argument
67 return mPm.getComponentEnabledSetting(component) in isEnabled()
/frameworks/av/media/codec2/hal/hidl/1.1/utils/
DComponentStore.cpp204 sp<Component> component; in createComponent() local
214 component = new Component(c2component, listener, this, pool); in createComponent()
215 if (!component) { in createComponent()
218 reportComponentBirth(component.get()); in createComponent()
219 if (component->status() != C2_OK) { in createComponent()
220 status = static_cast<Status>(component->status()); in createComponent()
222 component->initListener(component); in createComponent()
223 if (component->status() != C2_OK) { in createComponent()
224 status = static_cast<Status>(component->status()); in createComponent()
229 _hidl_cb(status, component); in createComponent()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoOutput/
Ddevice_for_strategies.pfw3 component: /Policy/policy/strategies
4 component: media/selected_output_devices/mask
32 component: phone/selected_output_devices/mask
60 component: sonification/selected_output_devices/mask
88 component: sonification_respectful/selected_output_devices/mask
116 component: dtmf/selected_output_devices/mask
144 component: enforced_audible/selected_output_devices/mask
172 component: transmitted_through_speaker/selected_output_devices/mask
200 component: accessibility/selected_output_devices/mask
228 component: rerouting/selected_output_devices/mask
/frameworks/av/media/codec2/components/cmds/
Dcodec2.cpp80 void onWorkDone(std::weak_ptr<C2Component> component,
82 void onTripped(std::weak_ptr<C2Component> component,
84 void onError(std::weak_ptr<C2Component> component, uint32_t errorCode);
119 virtual void onWorkDone_nb(std::weak_ptr<C2Component> component, in onWorkDone_nb() argument
121 mThis->onWorkDone(component, std::move(workItems)); in onWorkDone_nb()
124 virtual void onTripped_nb(std::weak_ptr<C2Component> component, in onTripped_nb() argument
126 mThis->onTripped(component, settingResult); in onTripped_nb()
129 virtual void onError_nb(std::weak_ptr<C2Component> component, in onError_nb() argument
131 mThis->onError(component, errorCode); in onError_nb()
175 std::weak_ptr<C2Component> component, std::list<std::unique_ptr<C2Work>> workItems) { in onWorkDone() argument
[all …]

12345678910>>...37