OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PackageManager
(Results
1 - 25
of
655
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/cts/tests/tests/net/src/android/net/wifi/cts/
WifiFeature.java
20
import android.content.pm.
PackageManager
;
24
PackageManager
packageManager
= context.getPackageManager();
25
return
packageManager
.hasSystemFeature(
PackageManager
.FEATURE_WIFI);
29
PackageManager
packageManager
= context.getPackageManager();
30
return
packageManager
.hasSystemFeature(
PackageManager
.FEATURE_WIFI_DIRECT);
/cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java
28
import android.content.pm.
PackageManager
;
49
* Test for checking that the {@link
PackageManager
} is reporting the correct features.
54
private
PackageManager
mPackageManager;
84
* {@link
PackageManager
}.
103
assertAvailable(
PackageManager
.FEATURE_BLUETOOTH);
105
assertNotAvailable(
PackageManager
.FEATURE_BLUETOOTH);
112
assertNotAvailable(
PackageManager
.FEATURE_CAMERA);
113
assertNotAvailable(
PackageManager
.FEATURE_CAMERA_AUTOFOCUS);
114
assertNotAvailable(
PackageManager
.FEATURE_CAMERA_FLASH);
115
assertNotAvailable(
PackageManager
.FEATURE_CAMERA_FRONT)
[
all
...]
ApplicationTest.java
25
import android.content.pm.
PackageManager
;
46
final
PackageManager
pm = targetContext.getPackageManager();
47
if(!(pm.hasSystemFeature(
PackageManager
.FEATURE_SCREEN_LANDSCAPE)
48
&& pm.hasSystemFeature(
PackageManager
.FEATURE_SCREEN_PORTRAIT))){
/cts/tests/tests/content/src/android/content/pm/cts/
PackageManager_NameNotFoundExceptionTest.java
20
import android.content.pm.
PackageManager
;
21
import android.content.pm.
PackageManager
.NameNotFoundException;
27
PackageManager
.NameNotFoundException exception = new
PackageManager
.NameNotFoundException();
35
exception = new
PackageManager
.NameNotFoundException(message);
ResolveInfo_DisplayNameComparatorTest.java
21
import android.content.pm.
PackageManager
;
31
PackageManager
pm = getContext().getPackageManager();
38
ResolveInfo serviceInfo = pm.resolveService(intent,
PackageManager
.GET_RESOLVED_FILTER);
ApplicationInfo_DisplayNameComparatorTest.java
20
import android.content.pm.
PackageManager
;
22
import android.content.pm.
PackageManager
.NameNotFoundException;
39
PackageManager
pm = getContext().getPackageManager();
46
PackageManager
pm = getContext().getPackageManager();
/packages/apps/Provision/src/com/android/provision/
DefaultActivity.java
21
import android.content.pm.
PackageManager
;
39
PackageManager
pm = getPackageManager();
41
pm.setComponentEnabledSetting(name,
PackageManager
.COMPONENT_ENABLED_STATE_DISABLED,
42
PackageManager
.DONT_KILL_APP);
/cts/tests/tests/dpi2/src/android/dpi2/cts/
DefaultManifestAttributesCupcakeTest.java
20
import android.content.pm.
PackageManager
;
21
import android.content.pm.
PackageManager
.NameNotFoundException;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DessertCase.java
22
import android.content.pm.
PackageManager
;
34
PackageManager
pm = getPackageManager();
36
if (pm.getComponentEnabledSetting(cn) !=
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED) {
39
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED,
40
PackageManager
.DONT_KILL_APP);
/packages/apps/SpareParts/src/com/android/spare_parts/
Enabler.java
24
import android.content.pm.
PackageManager
;
36
final
PackageManager
pm = context.getPackageManager();
39
?
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED
40
:
PackageManager
.COMPONENT_ENABLED_STATE_DEFAULT;
41
pm.setComponentEnabledSetting(componentName, value,
PackageManager
.DONT_KILL_APP);
/packages/apps/Stk/src/com/android/stk/
StkAppInstaller.java
23
import android.content.pm.
PackageManager
;
44
PackageManager
pm = context.getPackageManager();
48
// check that STK app package is known to the
PackageManager
51
int state = install ?
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED
52
:
PackageManager
.COMPONENT_ENABLED_STATE_DISABLED;
56
PackageManager
.DONT_KILL_APP);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
Version.java
21
import android.content.pm.
PackageManager
;
22
import android.content.pm.
PackageManager
.NameNotFoundException;
36
PackageManager
packageManager
= context.getPackageManager();
37
return
packageManager
.getPackageInfo(context.getPackageName(), 0);
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilitySettingsTest.java
20
import android.content.pm.
PackageManager
;
36
PackageManager
packageManager
= mContext.getPackageManager();
38
List<ResolveInfo> resolvedActivities =
packageManager
.queryIntentActivities(intent,
39
PackageManager
.MATCH_DEFAULT_ONLY);
/cts/tests/tests/permission2/src/android/permission2/cts/
PermissionMaxSdkVersionTest.java
19
import android.content.pm.
PackageManager
;
43
PackageManager
.PERMISSION_DENIED);
56
PackageManager
.PERMISSION_GRANTED);
/device/sample/apps/upgrade/src/com/example/android/platform/upgrade/
Upgrade.java
23
import android.content.pm.
PackageManager
;
44
PackageManager
.COMPONENT_ENABLED_STATE_DISABLED,
45
PackageManager
.DONT_KILL_APP);
/frameworks/base/services/java/com/android/server/os/
SchedulingPolicyService.java
19
import android.content.pm.
PackageManager
;
50
return
PackageManager
.PERMISSION_DENIED;
59
return
PackageManager
.PERMISSION_DENIED;
61
return
PackageManager
.PERMISSION_GRANTED;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
PackageVerificationStateTest.java
19
import android.content.pm.
PackageManager
;
37
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_ALLOW);
52
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_REJECT);
72
state.setVerifierResponse(SUFFICIENT_UID_1,
PackageManager
.VERIFICATION_ALLOW);
77
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_REJECT);
97
state.setVerifierResponse(SUFFICIENT_UID_1,
PackageManager
.VERIFICATION_REJECT);
102
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_ALLOW);
123
state.setVerifierResponse(SUFFICIENT_UID_1,
PackageManager
.VERIFICATION_ALLOW);
128
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_ALLOW);
149
state.setVerifierResponse(REQUIRED_UID,
PackageManager
.VERIFICATION_ALLOW)
[
all
...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
PackageManagerTests.java
29
import android.content.pm.
PackageManager
;
30
import android.content.pm.
PackageManager
.NameNotFoundException;
194
private
PackageManager
getPm() {
227
if (observer.returnCode !=
PackageManager
.INSTALL_SUCCEEDED) {
232
if (observer.returnCode ==
PackageManager
.INSTALL_SUCCEEDED) {
346
if ((flags &
PackageManager
.INSTALL_EXTERNAL) != 0) {
348
} else if ((flags &
PackageManager
.INSTALL_INTERNAL) != 0) {
417
if ((flags &
PackageManager
.INSTALL_FORWARD_LOCK) != 0) {
460
if ((flags &
PackageManager
.INSTALL_FORWARD_LOCK) != 0) {
570
String dataDir =
PackageManager
.getDataDirForUser(user.id, pkgName)
[
all
...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
HceUtils.java
4
import android.content.pm.
PackageManager
;
21
public static void enableComponent(
PackageManager
pm, ComponentName component) {
24
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED,
25
PackageManager
.DONT_KILL_APP);
28
public static void disableComponent(
PackageManager
pm, ComponentName component) {
31
PackageManager
.COMPONENT_ENABLED_STATE_DISABLED,
32
PackageManager
.DONT_KILL_APP);
/developers/samples/android/background/alarms/Scheduler/src/com/example/android/scheduler/
SampleAlarmReceiver.java
8
import android.content.pm.
PackageManager
;
105
PackageManager
pm = context.getPackageManager();
108
PackageManager
.COMPONENT_ENABLED_STATE_ENABLED,
109
PackageManager
.DONT_KILL_APP);
127
PackageManager
pm = context.getPackageManager();
130
PackageManager
.COMPONENT_ENABLED_STATE_DISABLED,
131
PackageManager
.DONT_KILL_APP);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
CameraBinderTestUtils.java
8
import android.content.pm.
PackageManager
;
53
PackageManager
.FEATURE_CAMERA_FRONT)) {
59
PackageManager
.FEATURE_CAMERA)) {
66
PackageManager
.FEATURE_CAMERA_ANY)) {
75
final
PackageManager
packageManager
= context.getPackageManager();
76
final FeatureInfo[] featuresList =
packageManager
.getSystemAvailableFeatures();
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DeviceUtils.java
8
import android.content.pm.
PackageManager
;
53
PackageManager
manager = context.getPackageManager();
55
sIsTv = manager.hasSystemFeature(
PackageManager
.FEATURE_TELEVISION);
/cts/tests/tests/security/src/android/security/cts/
IntentSenderRemovalTest.java
21
import android.content.pm.
PackageManager
;
39
PackageManager
pm = getContext().getPackageManager();
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
WebConcurrency.java
21
import android.content.pm.
PackageManager
;
52
PackageManager
pm = getPackageManager();
WebLatency.java
21
import android.content.pm.
PackageManager
;
55
PackageManager
pm = getPackageManager();
Completed in 338 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>