Home
last modified time | relevance | path

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

123456

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java39 ICalendar.Component component = new ICalendar.Component("DUMMY", null); in testAddProperty() local
41 component.addProperty(new ICalendar.Property("prop2", "value3")); in testAddProperty()
42 component.addProperty(new ICalendar.Property("prop1", "value1")); in testAddProperty()
43 component.addProperty(new ICalendar.Property("prop1", "value2")); in testAddProperty()
44 assertEquals(text, component.toString()); in testAddProperty()
75 ICalendar.Component component = ICalendar.parseComponent(text); in testParseBasicComponent() local
77 assertEquals("DUMMY", component.getName()); in testParseBasicComponent()
78 assertNull(component.getComponents()); in testParseBasicComponent()
79 assertEquals(2, component.getPropertyNames().size()); in testParseBasicComponent()
80 ICalendar.Property prop1 = component.getFirstProperty("PROP1"); in testParseBasicComponent()
[all …]
DRecurrenceSetTest.java105 ICalendar.Component component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding() local
112 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
113 List<ICalendar.Property> list = component.getProperties("DTSTART"); in testRRULEfolding()
117 list = component.getProperties("RRULE"); in testRRULEfolding()
121 component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding()
128 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
130 list = component.getProperties("RRULE"); in testRRULEfolding()
134 component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding()
141 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
143 list = component.getProperties("RRULE"); in testRRULEfolding()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java140 public void addComponent(GLView component) { in addComponent() argument
142 if (component.mParent != null) throw new IllegalStateException(); in addComponent()
148 mComponents.add(component); in addComponent()
149 component.mParent = this; in addComponent()
153 component.onAttachToRoot(mRoot); in addComponent()
158 public boolean removeComponent(GLView component) { in removeComponent() argument
160 if (mComponents.remove(component)) { in removeComponent()
161 removeOneComponent(component); in removeComponent()
175 private void removeOneComponent(GLView component) { in removeOneComponent() argument
176 if (mMotionTarget == component) { in removeOneComponent()
[all …]
DMeasureHelper.java30 private MeasureHelper(GLView component) { in MeasureHelper() argument
31 mComponent = component; in MeasureHelper()
34 public static MeasureHelper getInstance(GLView component) { in getInstance() argument
35 sInstance.mComponent = component; in getInstance()
/packages/apps/Launcher3/robolectric_tests/resources/
Dcache_data_updated_task_data.txt8 bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1
9 bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2
10 bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3
11 bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4
14 bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5
15 bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6
18 bgItem s itemType=1 title=app1-shrt intent=component=app1/class3 id=7
19 bgItem s itemType=1 title=app4-shrt intent=component=app4/class1 id=8
22 bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=9
23 bgItem s itemType=1 status=1 title=app5-shrt intent=component=app5/class1 id=10
[all …]
Dpackage_install_state_change_task_data.txt9 bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1
10 bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2
11 bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3
12 bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4
15 bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5
16 bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6
17 bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=7
20 bgItem s itemType=1 status=1 title=app4-shrt intent=component=app4/class1 id=8
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DSetDevicePolicyTask.java118 private void setActiveAdmin(ComponentName component, int userId) { in setActiveAdmin() argument
119 ProvisionLogger.logd("Setting " + component + " as active admin."); in setActiveAdmin()
120 mDevicePolicyManager.setActiveAdmin(component, true, userId); in setActiveAdmin()
123 private boolean setDeviceOwner(ComponentName component, String owner, int userId) { in setDeviceOwner() argument
124 ProvisionLogger.logd("Setting " + component + " as device owner of user " + userId); in setDeviceOwner()
125 if (!component.equals(mDevicePolicyManager.getDeviceOwnerComponentOnCallingUser())) { in setDeviceOwner()
126 return mDevicePolicyManager.setDeviceOwner(component, owner, userId); in setDeviceOwner()
131 private boolean setProfileOwner(ComponentName component, int userId) { in setProfileOwner() argument
132 ProvisionLogger.logd("Setting " + component + " as profile owner of user " + userId); in setProfileOwner()
133 if (!component.equals(mDevicePolicyManager.getProfileOwnerAsUser(userId))) { in setProfileOwner()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java84 final ComponentName component = new ComponentName("some.package.name", in testShowAdminPoliciesWithComponent() local
86 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(userId)); in testShowAdminPoliciesWithComponent()
93 assertEquals(component, in testShowAdminPoliciesWithComponent()
154 final ComponentName component = new ComponentName("some.package.name", in testSetAdminSupportDetails() local
156 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails()
161 dpmShadow.setShortSupportMessageForUser(component, 123, "some message"); in testSetAdminSupportDetails()
168 assertNotNull(admin.component); in testSetAdminSupportDetails()
178 final ComponentName component = new ComponentName("some.package.name", in testSetAdminSupportDetailsNotAdmin() local
180 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetailsNotAdmin()
182 dpmShadow.setShortSupportMessageForUser(component, 123, "some message"); in testSetAdminSupportDetailsNotAdmin()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginEnablerImpl.java37 public void setEnabled(ComponentName component) { in setEnabled() argument
38 setState(component, true); in setEnabled()
42 public void setDisabled(ComponentName component, int reason) { in setDisabled() argument
43 setState(component, reason == ENABLED); in setDisabled()
46 private void setState(ComponentName component, boolean enabled) { in setState() argument
47 putBoolean(pluginEnabledKey(component), enabled); in setState()
51 public boolean isEnabled(ComponentName component) { in isEnabled() argument
52 return getBoolean(pluginEnabledKey(component), true); in isEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DPaymentDefaultDialog.java51 ComponentName component = intent.getParcelableExtra( in onCreate() local
56 if (!buildDialog(component, category)) { in onCreate()
74 private boolean buildDialog(ComponentName component, String category) { in buildDialog() argument
75 if (component == null || category == null) { in buildDialog()
91 if (component.equals(service.componentName)) { in buildDialog()
100 Log.e(TAG, "Component " + component + " is not a registered payment service."); in buildDialog()
106 if (defaultComponent != null && defaultComponent.equals(component)) { in buildDialog()
107 Log.e(TAG, "Component " + component + " is already default."); in buildDialog()
111 mNewDefault = component; in buildDialog()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentDefaultDialog.java51 ComponentName component = intent.getParcelableExtra( in onCreate() local
56 if (!buildDialog(component, category)) { in onCreate()
74 private boolean buildDialog(ComponentName component, String category) { in buildDialog() argument
75 if (component == null || category == null) { in buildDialog()
91 if (component.equals(service.componentName)) { in buildDialog()
100 Log.e(TAG, "Component " + component + " is not a registered payment service."); in buildDialog()
106 if (defaultComponent != null && defaultComponent.equals(component)) { in buildDialog()
107 Log.e(TAG, "Component " + component + " is already default."); in buildDialog()
111 mNewDefault = component; in buildDialog()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DReverseGeocodeTask.java80 JSONObject component = components.optJSONObject(i); in doInBackground() local
81 JSONArray types = component.optJSONArray(JSON_KEY_TYPES); in doInBackground()
86 if (component.has(JSON_KEY_SHORT_NAME) in doInBackground()
87 && address.startsWith(component.getString(JSON_KEY_SHORT_NAME))) { in doInBackground()
88 premise = component.getString(JSON_KEY_SHORT_NAME); in doInBackground()
89 } else if (component.has(JSON_KEY_LONG_NAME) in doInBackground()
90 && address.startsWith(component.getString(JSON_KEY_LONG_NAME))) { in doInBackground()
91 premise = component.getString(JSON_KEY_SHORT_NAME); in doInBackground()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java170 ComponentName component = info.intent.getComponent();
173 if (packageName.equals(component.getPackageName())
514 private void logComponentNotFound(ComponentName component, @UserIdInt int userId, in logComponentNotFound() argument
516 Log.e(TAG_AM, "Specified Component not found:" + component in logComponentNotFound()
520 private boolean isComponentAvailable(ComponentName component, @UserIdInt int userId) { in isComponentAvailable() argument
524 component.getPackageName(), PackageManager.GET_ACTIVITIES, userId); in isComponentAvailable()
526 logComponentNotFound(component, userId, e); in isComponentAvailable()
531 logComponentNotFound(component, userId, new RuntimeException()); in isComponentAvailable()
534 String fullName = component.getClassName(); in isComponentAvailable()
535 String shortName = component.getShortClassName(); in isComponentAvailable()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailNotifier.java67 for (ComponentName component : in sendNotification()
70 mVoicemailPermissions.packageHasReadAccess(component.getPackageName()); in sendNotification()
73 component.getPackageName()); in sendNotification()
77 && (!mModifiedPackages.contains(component.getPackageName()) in sendNotification()
83 intent.setComponent(component); in sendNotification()
86 callingPackages.contains(component.getPackageName())); in sendNotification()
91 component.getClassName(), in sendNotification()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DInstrumentClusterRenderingService.java320 ComponentName component = getNavigationComponentByOwner(contextOwner); in updateNavigationActivity() local
321 if (Objects.equals(mNavigationComponent, component)) { in updateNavigationActivity()
324 Log.d(TAG, "Already launched component: " + component); in updateNavigationActivity()
329 if (component == null) { in updateNavigationActivity()
336 if (!startNavigationActivity(component)) { in updateNavigationActivity()
338 Log.d(TAG, "Unable to launch component: " + component); in updateNavigationActivity()
343 mNavigationComponent = component; in updateNavigationActivity()
354 ComponentName component = getComponentFromPackage(packageName); in getNavigationComponentByOwner() local
355 if (component != null) { in getNavigationComponentByOwner()
357 Log.d(TAG, "Found component: " + component); in getNavigationComponentByOwner()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DActionDisabledByAdminDialogHelper.java86 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in prepareDialogBuilder()
113 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in updateDialog()
192 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
199 enforcedAdmin.component) || !RestrictedLockUtils.isCurrentUserOrProfile( in setAdminSupportDetails()
201 enforcedAdmin.component = null; in setAdminSupportDetails()
208 supportMessage = dpm.getShortSupportMessageForUser(enforcedAdmin.component, in setAdminSupportDetails()
221 if (enforcedAdmin.component != null) { in showAdminPolicies()
224 enforcedAdmin.component); in showAdminPolicies()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java86 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in prepareDialogBuilder()
113 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in updateDialog()
192 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
199 enforcedAdmin.component) || !RestrictedLockUtils.isCurrentUserOrProfile( in setAdminSupportDetails()
201 enforcedAdmin.component = null; in setAdminSupportDetails()
208 supportMessage = dpm.getShortSupportMessageForUser(enforcedAdmin.component, in setAdminSupportDetails()
221 if (enforcedAdmin.component != null) { in showAdminPolicies()
224 enforcedAdmin.component); in showAdminPolicies()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/
DSharedLog.java66 private SharedLog(LocalLog localLog, String tag, String component) { in SharedLog() argument
69 mComponent = component; in SharedLog()
79 public SharedLog forSubComponent(String component) { in forSubComponent() argument
81 component = mComponent + COMPONENT_DELIMITER + component; in forSubComponent()
83 return new SharedLog(mLocalLog, mTag, component); in forSubComponent()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DColorChecker.java114 private static double convert8BitToLuminanceComponent(double component) { in convert8BitToLuminanceComponent() argument
115 component /= 255.0; in convert8BitToLuminanceComponent()
116 if (component <= 0.03928) { in convert8BitToLuminanceComponent()
117 return component / 12.92; in convert8BitToLuminanceComponent()
119 return Math.pow(((component + 0.055) / 1.055), 2.4); in convert8BitToLuminanceComponent()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java73 public void startActivityForProfile(ComponentName component, UserHandle user, in startActivityForProfile() argument
75 mLauncherApps.startMainActivity(component, user, sourceBounds, opts); in startActivityForProfile()
105 public void showAppDetailsForProfile(ComponentName component, UserHandle user, in showAppDetailsForProfile() argument
107 mLauncherApps.startAppDetailsActivity(component, user, sourceBounds, opts); in showAppDetailsForProfile()
136 public boolean isActivityEnabledForProfile(ComponentName component, UserHandle user) { in isActivityEnabledForProfile() argument
137 return mLauncherApps.isActivityEnabled(component, user); in isActivityEnabledForProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsActivity.java609 final ComponentName component = category.getTile(i) in doUpdateTilesList() local
611 final String name = component.getClassName(); in doUpdateTilesList()
614 if (packageName.equals(component.getPackageName()) in doUpdateTilesList()
617 setTileEnabled(changedList, component, false, isAdmin) in doUpdateTilesList()
638 private boolean setTileEnabled(StringBuilder changedList, ComponentName component, in setTileEnabled() argument
640 if (UserHandle.MU_ENABLED && !isAdmin && getPackageName().equals(component.getPackageName()) in setTileEnabled()
642 component.getClassName())) { in setTileEnabled()
645 boolean changed = setTileEnabled(component, enabled); in setTileEnabled()
647 changedList.append(component.toShortString()).append(","); in setTileEnabled()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DIconCacheUpdateHandler.java152 ComponentName component = ComponentName.unflattenFromString(cn); in updateIconsPerUser() local
153 PackageInfo info = mPkgInfoMap.get(component.getPackageName()); in updateIconsPerUser()
157 if (!ignorePackages.contains(component.getPackageName())) { in updateIconsPerUser()
160 mIconCache.remove(component, user); in updateIconsPerUser()
173 T app = componentMap.remove(component); in updateIconsPerUser()
185 mIconCache.remove(component, user); in updateIconsPerUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeBehaviorFooterPreferenceController.java81 ComponentName component = automaticRule.component; in getFooterText() local
82 if (component != null) { in getFooterText()
84 component.getPackageName()); in getFooterText()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeBehaviorFooterPreferenceController.java81 ComponentName component = automaticRule.component; in getFooterText() local
82 if (component != null) { in getFooterText()
84 component.getPackageName()); in getFooterText()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/
DSettingsBaseActivity.java147 public boolean setTileEnabled(ComponentName component, boolean enabled) { in setTileEnabled() argument
149 int state = pm.getComponentEnabledSetting(component); in setTileEnabled()
153 sTileBlacklist.remove(component); in setTileEnabled()
155 sTileBlacklist.add(component); in setTileEnabled()
157 pm.setComponentEnabledSetting(component, enabled in setTileEnabled()

123456