Home
last modified time | relevance | path

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

12345678910>>...49

/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.kt27 import android.tools.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.kt81 val component = setupComponent(true) in testFeatureEnabled() constant
83 assertTrue(component.getControlsController().isPresent) in testFeatureEnabled()
84 assertEquals(controller, component.getControlsController().get()) in testFeatureEnabled()
85 assertTrue(component.getControlsUiController().isPresent) in testFeatureEnabled()
86 assertEquals(uiController, component.getControlsUiController().get()) in testFeatureEnabled()
87 assertTrue(component.getControlsListingController().isPresent) in testFeatureEnabled()
88 assertEquals(listingController, component.getControlsListingController().get()) in testFeatureEnabled()
93 val component = setupComponent(false) in testFeatureDisabled() constant
95 assertFalse(component.getControlsController().isPresent) in testFeatureDisabled()
96 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/core/java/com/android/internal/pm/pkg/component/
DParsedComponentUtils.java17 package com.android.internal.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.internal.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 …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DMultiInstanceHelperTest.kt71 val component = ComponentName(TEST_PACKAGE, TEST_ACTIVITY) in getShortcutComponent_validShortcut() constant
72 val shortcutInfo = ShortcutInfo.Builder(context, "id").setActivity(component).build() in getShortcutComponent_validShortcut()
76 assertEquals(component, MultiInstanceHelper.getShortcutComponent(TEST_PACKAGE, in getShortcutComponent_validShortcut()
84 val component = ComponentName(TEST_PACKAGE, TEST_ACTIVITY) in supportsMultiInstanceSplit_inStaticAllowList() constant
85 assertEquals(true, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_inStaticAllowList()
92 val component = ComponentName(TEST_NOT_ALLOWED_PACKAGE, TEST_ACTIVITY) in supportsMultiInstanceSplit_notInStaticAllowList() constant
93 assertEquals(false, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_notInStaticAllowList()
99 val component = ComponentName(TEST_PACKAGE, TEST_ACTIVITY) in supportsMultiInstanceSplit_activityPropertyTrue() constant
103 eq(component))) in supportsMultiInstanceSplit_activityPropertyTrue()
107 eq(component.packageName))) in supportsMultiInstanceSplit_activityPropertyTrue()
[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/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DHomeControlsKeyguardQuickAffordanceConfigTest.kt46 @Mock private lateinit var component: ControlsComponent variable in com.android.systemui.keyguard.data.quickaffordance.HomeControlsKeyguardQuickAffordanceConfigTest
54 whenever(component.canShowWhileLockedSetting).thenReturn(MutableStateFlow(true)) in setUp()
59 component = component, in setUp()
65 whenever(component.canShowWhileLockedSetting).thenReturn(MutableStateFlow(false)) in <lambda>()
66 whenever(component.isEnabled()).thenReturn(true) in <lambda>()
67 whenever(component.getTileImageId()).thenReturn(R.drawable.controls_icon) in <lambda>()
68 whenever(component.getTileTitleId()).thenReturn(R.string.quick_controls_title) in <lambda>()
70 whenever(component.getControlsController()).thenReturn(Optional.of(controlsController)) in <lambda>()
71 whenever(component.getControlsListingController()).thenReturn(Optional.empty()) in <lambda>()
72 whenever(component.getVisibility()).thenReturn(ControlsComponent.Visibility.AVAILABLE) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/ui/composable/
DHorizontalVolumePanelContent.kt44 for (component in layout.contentComponents) { in <lambda>() method
45 AnimatedVisibility(component.isVisible) { in <lambda>()
46 with(component.component as ComposeVolumePanelUiComponent) { Content(Modifier) } in <lambda>()
55 for (component in layout.headerComponents) { in <lambda>() method
56 AnimatedVisibility(visible = component.isVisible) { in <lambda>()
57 with(component.component as ComposeVolumePanelUiComponent) { Content(Modifier) } in <lambda>()
68 for (component in footerComponents) { in <lambda>() method
69 if (component.isVisible) { in <lambda>()
70 with(component.component as ComposeVolumePanelUiComponent) { in <lambda>()
DVerticalVolumePanelContent.kt44 for (component in layout.headerComponents) { in <lambda>() method
45 AnimatedVisibility(component.isVisible) { in <lambda>()
46 with(component.component as ComposeVolumePanelUiComponent) { Content(Modifier) } in <lambda>()
49 for (component in layout.contentComponents) { in <lambda>() method
50 AnimatedVisibility(component.isVisible) { in <lambda>()
51 with(component.component as ComposeVolumePanelUiComponent) { Content(Modifier) } in <lambda>()
71 for (component in footerComponents) { in <lambda>() method
72 if (component.isVisible) { in <lambda>()
73 with(component.component as ComposeVolumePanelUiComponent) { in <lambda>()
/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.cpp242 sp<Component> component; in createComponent() local
252 component = new Component(c2component, listener, this, pool); in createComponent()
253 if (!component) { in createComponent()
256 reportComponentBirth(component.get()); in createComponent()
257 if (component->status() != C2_OK) { in createComponent()
258 status = static_cast<Status>(component->status()); in createComponent()
260 component->initListener(component); in createComponent()
261 if (component->status() != C2_OK) { in createComponent()
262 status = static_cast<Status>(component->status()); in createComponent()
267 _hidl_cb(status, component); in createComponent()
[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/core/java/android/content/pm/
DOWNERS1 # Bug component: 36137
8 # Bug component: 166829 = per-file *Capability*
10 # Bug component: 166829 = per-file *Shortcut*
13 # Bug component: 860423 = per-file *Launcher*
16 # Bug component: 578329 = per-file *UserInfo*
18 # Bug component: 578329 = per-file *UserProperties*
20 # Bug component: 578329 = per-file *multiuser*
23 # Bug component: 1219020 = per-file *BackgroundInstallControl*
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java80 if (automaticRule.component != null) { in evaluateConfig()
90 final ComponentName component = mSubscriptions.valueAt(i); in evaluateConfig() local
93 mConditionProviders.unsubscribeIfNecessary(component, id); in evaluateConfig()
112 public void onServiceAdded(ComponentName component) { in onServiceAdded() argument
113 if (DEBUG) Log.d(TAG, "onServiceAdded " + component); in onServiceAdded()
115 mHelper.setConfig(mHelper.getConfig(), component, in onServiceAdded() local
118 "zmc.onServiceAdded:" + component, callingUid); in onServiceAdded()
143 rule.component = sp.getComponent(); in evaluateRule()
149 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); in evaluateRule()
152 mConditionProviders.ensureRecordExists(rule.component, id, cp); in evaluateRule()
[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.java113 if (admin.component != null) { in getShowAdminSupportDetailsIntent()
114 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, admin.component); in getShowAdminSupportDetailsIntent()
135 public ComponentName component = null; field in RestrictedLockUtils.EnforcedAdmin
160 public EnforcedAdmin(ComponentName component, UserHandle user) { in EnforcedAdmin() argument
161 this.component = component; in EnforcedAdmin()
165 public EnforcedAdmin(ComponentName component, String enforcedRestriction, UserHandle user) { in EnforcedAdmin() argument
166 this.component = component; in EnforcedAdmin()
175 this.component = other.component; in EnforcedAdmin()
210 && Objects.equals(component, that.component) in equals()
216 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/proto_logging/stats/atoms/packagemanager/
Dpackagemanager_extension_atoms.proto33 * Logs the status of the component is changed.
36 // The state of component.
38 // This component is in its default state.
41 // This component has been explicitly enabled.
44 // This component has been explicitly disabled.
47 // The user has explicitly disabled the component.
50 // This component should be considered, until the
58 // The old state of component.
61 // The new state of component.
64 // True if it is a launcher component.
[all …]

12345678910>>...49