Home
last modified time | relevance | path

Searched refs:ComponentName (Results 1 – 25 of 1600) sorted by relevance

12345678910>>...64

/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DActivityOptions.java19 import android.content.ComponentName;
26 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
32 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
41 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
59 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
65 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
71 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
78 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
84 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
90 public static final ComponentName COMPONENT = new ComponentName(FLICKER_APP_PACKAGE,
[all …]
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl40 import android.content.ComponentName;
67 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality()
68 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality()
70 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength()
71 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength()
73 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase()
74 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase()
76 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase()
77 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase()
79 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters()
[all …]
/frameworks/base/nfc/java/android/nfc/
DINfcCardEmulation.aidl19 import android.content.ComponentName;
29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory()
30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid()
31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory()
32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap()
33 …boolean setShouldDefaultToObserveModeForService(int userId, in android.content.ComponentName servi… in setShouldDefaultToObserveModeForService()
34 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService()
35 …boolean registerPollingLoopFilterForService(int userHandle, in ComponentName service, in String po… in registerPollingLoopFilterForService()
36 …boolean registerPollingLoopPatternFilterForService(int userHandle, in ComponentName service, in St… in registerPollingLoopPatternFilterForService()
37 …boolean setOffHostForService(int userHandle, in ComponentName service, in String offHostSecureElem… in setOffHostForService()
[all …]
DINfcFCardEmulation.aidl19 import android.content.ComponentName;
27 String getSystemCodeForService(int userHandle, in ComponentName service); in getSystemCodeForService()
28 … boolean registerSystemCodeForService(int userHandle, in ComponentName service, String systemCode); in registerSystemCodeForService()
29 boolean removeSystemCodeForService(int userHandle, in ComponentName service); in removeSystemCodeForService()
30 String getNfcid2ForService(int userHandle, in ComponentName service); in getNfcid2ForService()
31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService()
32 boolean enableNfcFForegroundService(in ComponentName service); in enableNfcFForegroundService()
/frameworks/base/libs/services/src/content/
DComponentName.cpp22 ComponentName::ComponentName() in ComponentName() function in android::content::ComponentName
27 ComponentName::ComponentName(const ComponentName& that) in ComponentName() function in android::content::ComponentName
32 ComponentName::ComponentName(const string& pkg, const string& cls) in ComponentName() function in android::content::ComponentName
37 ComponentName::~ComponentName() { in ~ComponentName()
40 bool ComponentName::operator<(const ComponentName& that) const { in operator <()
49 status_t ComponentName::readFromParcel(const Parcel* in) { in readFromParcel()
71 status_t ComponentName::writeToParcel(android::Parcel* out) const { in writeToParcel()
/frameworks/base/core/java/android/content/
DComponentName.java41 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> { class
60 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative()
73 return new ComponentName(pkg, fullName); in createRelative()
91 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative()
103 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName() method in ComponentName
118 public ComponentName(@NonNull Context pkg, @NonNull String cls) { in ComponentName() method in ComponentName
132 public ComponentName(@NonNull Context pkg, @NonNull Class<?> cls) { in ComponentName() method in ComponentName
137 public ComponentName clone() { in clone()
138 return new ComponentName(mPackage, mClass); in clone()
203 public static String flattenToShortString(@Nullable ComponentName componentName) { in flattenToShortString()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java21 import android.content.ComponentName;
108 new ComponentName(mMyPackage, "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata()
113 new ComponentName("no.such.package", "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata()
118 new ComponentName(mMyPackage, "a.ShortcutEnabled"), mMyUserId); in testGetActivityInfoWithMetadata()
126 new ComponentName(mMyPackage, "a.Shortcut1"), mMyUserId); in testGetActivityInfoWithMetadata()
146 ComponentName cn = mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
150 ComponentName.unflattenFromString("com.android.settings/.Settings"), in testGetDefaultMainActivity()
164 ComponentName.unflattenFromString("com.android.settings/.Settings"), mMyUserId)); in testIsMainActivity()
166 ComponentName.unflattenFromString("com.android.settings/.xxx"), mMyUserId)); in testIsMainActivity()
168 ComponentName.unflattenFromString("no.such.package/.xxx"), mMyUserId)); in testIsMainActivity()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DInflatingListActivity.java18 import android.content.ComponentName;
28 private static final ComponentName LATIN_WORDS =
29 ComponentName.createRelative(PACKAGE_NAME, ".InflatingListActivity");
30 private static final ComponentName EMOJI =
31 ComponentName.createRelative(PACKAGE_NAME, ".InflatingEmojiListActivity");
32 private static final ComponentName HAN =
33 ComponentName.createRelative(PACKAGE_NAME, ".InflatingHanListActivity");
34 private static final ComponentName LONG_STRING =
35 ComponentName.createRelative(PACKAGE_NAME, ".InflatingLongStringListActivity");
38 final ComponentName targetComponent = getIntent().getComponent(); in createListAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsController.kt19 import android.content.ComponentName
55 componentName: ComponentName, in loadForComponent()
83 fun action(componentName: ComponentName, controlInfo: ControlInfo, action: ControlAction) in loadForComponent()
92 fun refreshStatus(componentName: ComponentName, control: Control) in loadForComponent()
103 componentName: ComponentName, in loadForComponent()
117 componentNames: List<ComponentName>, in loadForComponent()
142 fun getFavoritesForComponent(componentName: ComponentName): List<StructureInfo> in loadForComponent()
152 componentName: ComponentName, in loadForComponent()
163 componentName: ComponentName, in loadForComponent()
173 fun removeFavorites(componentName: ComponentName): Boolean in loadForComponent()
[all …]
DControlsBindingController.kt19 import android.content.ComponentName
43 fun bindAndLoad(component: ComponentName, callback: LoadCallback): Runnable in bindAndLoad()
51 fun bindAndLoadSuggested(component: ComponentName, callback: LoadCallback) in bindAndLoad()
59 fun bindService(component: ComponentName) in bindAndLoad()
67 fun bindServiceForPanel(component: ComponentName) in bindAndLoad()
83 fun action(componentName: ComponentName, controlInfo: ControlInfo, action: ControlAction) in bindAndLoad()
93 fun onComponentRemoved(componentName: ComponentName) in bindAndLoad()
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl19 import android.content.ComponentName;
32 void setDreamComponents(in ComponentName[] componentNames); in setDreamComponents()
34 ComponentName[] getDreamComponents(); in getDreamComponents()
35 ComponentName getDefaultDreamComponentForUser(int userId); in getDefaultDreamComponentForUser()
36 void testDream(int userId, in ComponentName componentName); in testDream()
46 ComponentName[] getDreamComponentsForUser(int userId); in getDreamComponentsForUser()
47 void setDreamComponentsForUser(int userId, in ComponentName[] componentNames); in setDreamComponentsForUser()
48 void setSystemDreamComponent(in ComponentName componentName); in setSystemDreamComponent()
49 void registerDreamOverlayService(in ComponentName componentName); in registerDreamOverlayService()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityTest.java19 import android.content.ComponentName;
27 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult()
33 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult()
39 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult()
46 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testFinishSub()
53 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteNoResult()
60 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteResult()
66 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testRemoteFinishSub()
73 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartNoResult()
81 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartResult()
[all …]
/frameworks/base/services/core/java/com/android/server/vr/
DEnabledComponentsObserver.java20 import android.content.ComponentName;
64 private final SparseArray<ArraySet<ComponentName>> mInstalledSet = new SparseArray<>();
65 private final SparseArray<ArraySet<ComponentName>> mEnabledSet = new SparseArray<>();
176 ArraySet<ComponentName> implementingPackages = loadComponentNamesForUser(i); in rebuildAll()
177 ArraySet<ComponentName> packagesFromSettings = in rebuildAll()
196 public int isValid(ComponentName component, int userId) { in isValid()
198 ArraySet<ComponentName> installedComponents = mInstalledSet.get(userId); in isValid()
202 ArraySet<ComponentName> validComponents = mEnabledSet.get(userId); in isValid()
216 public ArraySet<ComponentName> getInstalled(int userId) { in getInstalled()
218 ArraySet<ComponentName> ret = mInstalledSet.get(userId); in getInstalled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/
DAccessibilityUtils.java20 import android.content.ComponentName;
47 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings()
78 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings()
86 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings()
92 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings()
116 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
124 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
127 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState()
143 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState()
144 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState()
[all …]
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureMetricsLogger.java20 import android.content.ComponentName;
44 public static void writeServiceEvent(int eventType, @NonNull ComponentName service) { in writeServiceEvent()
45 writeServiceEvent(eventType, ComponentName.flattenToShortString(service)); in writeServiceEvent()
49 public static void writeSetWhitelistEvent(@Nullable ComponentName service, in writeSetWhitelistEvent()
50 @Nullable List<String> packages, @Nullable List<ComponentName> activities) { in writeSetWhitelistEvent()
51 final String serviceName = ComponentName.flattenToShortString(service); in writeSetWhitelistEvent()
63 @NonNull ComponentName service, boolean isChildSession) { in writeSessionEvent()
66 flags, ComponentName.flattenToShortString(service), in writeSessionEvent()
71 public static void writeSessionFlush(int sessionId, @NonNull ComponentName service, in writeSessionFlush()
76 ComponentName.flattenToShortString(service), in writeSessionFlush()
/frameworks/base/libs/services/include/android/content/
DComponentName.h30 class ComponentName: public android::Parcelable {
32 ComponentName();
33 ComponentName(const ComponentName& that);
34 ComponentName(const string& pkg, const string& cls);
35 virtual ~ComponentName();
37 bool operator<(const ComponentName& that) const;
/frameworks/base/packages/EasterEgg/src/com/android/egg/
DComponentActivationActivity.java20 import android.content.ComponentName;
62 final ComponentName[] cns; in lockUnlockComponents()
70 cns = new ComponentName[]{ in lockUnlockComponents()
71 new ComponentName(context, DreamUniverse.class) in lockUnlockComponents()
78 cns = new ComponentName[]{ in lockUnlockComponents()
79 new ComponentName(context, NekoControlsService.class), in lockUnlockComponents()
80 new ComponentName(context, PaintChipsActivity.class), in lockUnlockComponents()
81 new ComponentName(context, PaintChipsWidget.class), in lockUnlockComponents()
82 new ComponentName(context, DreamUniverse.class) in lockUnlockComponents()
85 for (ComponentName cn : cns) { in lockUnlockComponents()
/frameworks/base/core/java/android/net/
DNetworkScorerAppData.java4 import android.content.ComponentName;
18 private final ComponentName mRecommendationService;
25 private final ComponentName mEnableUseOpenWifiActivity;
32 public NetworkScorerAppData(int packageUid, ComponentName recommendationServiceComp, in NetworkScorerAppData()
33 String recommendationServiceLabel, ComponentName enableUseOpenWifiActivity, in NetworkScorerAppData()
44 mRecommendationService = ComponentName.readFromParcel(in); in NetworkScorerAppData()
46 mEnableUseOpenWifiActivity = ComponentName.readFromParcel(in); in NetworkScorerAppData()
53 ComponentName.writeToParcel(mRecommendationService, dest); in writeToParcel()
55 ComponentName.writeToParcel(mEnableUseOpenWifiActivity, dest); in writeToParcel()
81 public ComponentName getRecommendationServiceComponent() { in getRecommendationServiceComponent()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityUserState.java36 import android.content.ComponentName;
86 final Map<ComponentName, AccessibilityServiceConnection> mComponentNameToServiceMap =
93 final Set<ComponentName> mBindingServices = new HashSet<>();
95 final Set<ComponentName> mCrashedServices = new HashSet<>();
97 final Set<ComponentName> mEnabledServices = new HashSet<>();
99 final Set<ComponentName> mTouchExplorationGrantedServices = new HashSet<>();
117 private final ArraySet<ComponentName> mA11yTilesInQsPanel = new ArraySet<>();
121 private ComponentName mServiceChangingSoftKeyboardMode;
165 private final Map<ComponentName, ComponentName> mA11yServiceToTileService = new ArrayMap<>();
166 private final Map<ComponentName, ComponentName> mA11yActivityToTileService = new ArrayMap<>();
[all …]
DPolicyWarningUIController.java35 import android.content.ComponentName;
81 private final ArraySet<ComponentName> mEnabledA11yServices = new ArraySet<>();
108 public void onSwitchUser(int userId, Set<ComponentName> enabledServices) { in onSwitchUser()
113 private void onSwitchUserInternal(int userId, Set<ComponentName> enabledServices) { in onSwitchUserInternal()
127 public void onEnabledServicesChanged(int userId, Set<ComponentName> enabledServices) { in onEnabledServicesChanged()
132 void onEnabledServicesChangedInternal(int userId, Set<ComponentName> enabledServices) { in onEnabledServicesChangedInternal()
133 final ArraySet<ComponentName> disabledServices = new ArraySet<>(mEnabledA11yServices); in onEnabledServicesChangedInternal()
149 public void onNonA11yCategoryServiceBound(int userId, ComponentName service) { in onNonA11yCategoryServiceBound()
160 public void onNonA11yCategoryServiceUnbound(int userId, ComponentName service) { in onNonA11yCategoryServiceUnbound()
164 private void setAlarm(int userId, ComponentName service) { in setAlarm()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsServiceFeatureQueryManager.java19 import android.content.ComponentName;
44 private final ComponentName mName;
51 ImsServiceFeatureQuery(ComponentName name, String intentFilter) { in ImsServiceFeatureQuery()
74 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected()
86 public void onServiceDisconnected(ComponentName name) { in onServiceDisconnected()
91 public void onBindingDied(ComponentName name) { in onBindingDied()
100 public void onNullBinding(ComponentName name) { in onNullBinding()
147 void onComplete(ComponentName name, Set<ImsFeatureConfiguration.FeatureSlotPair> features); in onComplete()
152 void onError(ComponentName name); in onError()
157 void onPermanentError(ComponentName name); in onPermanentError()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java30 import android.content.ComponentName;
61 public ComponentName admin1;
62 public ComponentName admin2;
63 public ComponentName admin3;
64 public ComponentName adminAnotherPackage;
65 public ComponentName adminNoPerm;
66 public ComponentName delegateCertInstaller;
74 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setFixtures()
75 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setFixtures()
76 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setFixtures()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DComponentAliasResolver.java22 import android.content.ComponentName;
83 private final ArrayMap<ComponentName, ComponentName> mFromTo = new ArrayMap<>();
254 private static boolean validateAlias(ComponentName from, ComponentName to) { in validateAlias()
270 private void validateAndAddAliasLocked(ComponentName from, ComponentName to) { in validateAndAddAliasLocked()
292 final ComponentName from = ci.getComponentName(); in extractAliasesLocked()
293 final ComponentName to = unflatten(ci.metaData.getString(META_DATA_ALIAS_TARGET)); in extractAliasesLocked()
315 final ComponentName from = unflatten(fields[0]); in loadOverridesLocked()
324 final ComponentName to = unflatten(fields[1]); in loadOverridesLocked()
334 private static ComponentName unflatten(String name) { in unflatten()
335 final ComponentName cn = ComponentName.unflattenFromString(name); in unflatten()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DFakeContextBuilder.java25 import android.content.ComponentName;
52 public static final ComponentName DEFAULT_COMPONENT = new ComponentName("pkg", "cls");
56 private final Map<String, ComponentName> mComponents = new HashMap<>();
58 private @Nullable ComponentName mAllIntentComponent;
77 String intentAction, @Nullable ComponentName component) { in setIntentComponent()
97 public FakeContextBuilder setAllIntentComponent(@Nullable ComponentName component) { in setAllIntentComponent()
109 final ComponentName component = mComponents.containsKey(action) in build()
125 public static ComponentName newComponent() { in newComponent()
126 return new ComponentName(UUID.randomUUID().toString(), UUID.randomUUID().toString()); in newComponent()
129 private static ResolveInfo getResolveInfo(ComponentName component) { in getResolveInfo()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DTestUtils.java19 import android.content.ComponentName;
36 public static final ComponentName TEST_IME_ID1 = Objects.requireNonNull(
37 ComponentName.unflattenFromString("com.android.test.testime1/.InputMethod"));
43 public static final ComponentName TEST_IME_ID2 = Objects.requireNonNull(
44 ComponentName.unflattenFromString("com.android.test.testime2/.InputMethod"));
50 public static final ComponentName TEST_IME_ID3 = Objects.requireNonNull(
51 ComponentName.unflattenFromString("com.android.test.testime3/.InputMethod"));
82 @NonNull ComponentName componentName, @NonNull ArrayList<InputMethodSubtype> subtypes) { in createFakeInputMethodInfo()

12345678910>>...64