/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 39 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 …]
|
D | RecurrenceSetTest.java | 105 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/ |
D | GLView.java | 140 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 …]
|
D | MeasureHelper.java | 30 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/ |
D | cache_data_updated_task_data.txt | 8 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 …]
|
D | package_install_state_change_task_data.txt | 9 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/ |
D | SetDevicePolicyTask.java | 118 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/ |
D | ActionDisabledByAdminDialogHelperTest.java | 84 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/ |
D | PluginEnablerImpl.java | 37 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/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentDefaultDialog.java | 51 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | PaymentDefaultDialog.java | 51 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/ |
D | ReverseGeocodeTask.java | 80 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/car-lib/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingService.java | 229 ComponentName component = getNavigationComponentByOwner(contextOwner); in updateNavigationActivity() local 230 if (Objects.equals(mNavigationComponent, component)) { in updateNavigationActivity() 233 Log.d(TAG, "Already launched component: " + component); in updateNavigationActivity() 238 if (component == null) { in updateNavigationActivity() 245 if (!startNavigationActivity(component)) { in updateNavigationActivity() 247 Log.d(TAG, "Unable to launch component: " + component); in updateNavigationActivity() 252 mNavigationComponent = component; in updateNavigationActivity() 263 ComponentName component = getComponentFromPackage(packageName); in getNavigationComponentByOwner() local 264 if (component != null) { in getNavigationComponentByOwner() 266 Log.d(TAG, "Found component: " + component); in getNavigationComponentByOwner() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailNotifier.java | 67 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/apps/Settings/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 86 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 86 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/src/android/net/util/ |
D | SharedLog.java | 66 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/ |
D | ColorChecker.java | 114 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/ |
D | LauncherAppsCompatVL.java | 68 public void startActivityForProfile(ComponentName component, UserHandle user, in startActivityForProfile() argument 70 mLauncherApps.startMainActivity(component, user, sourceBounds, opts); in startActivityForProfile() 100 public void showAppDetailsForProfile(ComponentName component, UserHandle user, in showAppDetailsForProfile() argument 102 mLauncherApps.startAppDetailsActivity(component, user, sourceBounds, opts); in showAppDetailsForProfile() 131 public boolean isActivityEnabledForProfile(ComponentName component, UserHandle user) { in isActivityEnabledForProfile() argument 132 return mLauncherApps.isActivityEnabled(component, user); in isActivityEnabledForProfile()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SettingsActivity.java | 609 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/ |
D | IconCacheUpdateHandler.java | 152 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/core/ |
D | SettingsBaseActivity.java | 147 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()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenModeBehaviorFooterPreferenceController.java | 81 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/ |
D | ZenModeBehaviorFooterPreferenceController.java | 81 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/ |
D | SettingsActivity.java | 652 final ComponentName component = category.getTile(i) in doUpdateTilesList() local 654 final String name = component.getClassName(); in doUpdateTilesList() 657 if (packageName.equals(component.getPackageName()) in doUpdateTilesList() 660 setTileEnabled(changedList, component, false, isAdmin) in doUpdateTilesList() 681 private boolean setTileEnabled(StringBuilder changedList, ComponentName component, in setTileEnabled() argument 683 if (UserHandle.MU_ENABLED && !isAdmin && getPackageName().equals(component.getPackageName()) in setTileEnabled() 685 component.getClassName())) { in setTileEnabled() 688 boolean changed = setTileEnabled(component, enabled); in setTileEnabled() 690 changedList.append(component.toShortString()).append(","); in setTileEnabled()
|