Home
last modified time | relevance | path

Searched refs:PackageManager (Results 1 – 25 of 44) sorted by relevance

12

/external/libmojo/base/android/java/src/org/chromium/base/
DBuildInfo.java10 import android.content.pm.PackageManager;
11 import android.content.pm.PackageManager.NameNotFoundException;
71 PackageManager packageManager = context.getPackageManager(); in getGMSVersionCode()
84 PackageManager pm = context.getPackageManager(); in getPackageVersionCode()
100 PackageManager pm = context.getPackageManager(); in getPackageVersionName()
117 PackageManager packageManager = context.getPackageManager(); in getPackageLabel()
119 PackageManager.GET_META_DATA); in getPackageLabel()
DPackageUtils.java9 import android.content.pm.PackageManager;
24 PackageManager pm = context.getPackageManager(); in getPackageVersion()
28 } catch (PackageManager.NameNotFoundException e) { in getPackageVersion()
DResourceExtractor.java11 import android.content.pm.PackageManager;
176 PackageManager pm = mContext.getPackageManager(); in getApkVersion()
181 } catch (PackageManager.NameNotFoundException e) { in getApkVersion()
DApiCompatibilityUtils.java14 import android.content.pm.PackageManager;
449 PackageManager packageManager = context.getPackageManager(); in getUserBadgedIcon()
462 PackageManager packageManager = context.getPackageManager(); in getUserBadgedDrawableForDensity()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContextWrapper.java13 import android.content.pm.PackageManager;
26 import static android.content.pm.PackageManager.PERMISSION_DENIED;
27 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
36 private PackageManager packageManager;
124 public PackageManager getPackageManager() { in getPackageManager()
224 public void setPackageManager(PackageManager packageManager) { in setPackageManager()
DShadowResolveInfo.java4 import android.content.pm.PackageManager;
17 public String loadLabel( PackageManager mgr ) { return label; } in loadLabel()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
DRobolectricPackageManagerTest.java17 import android.content.pm.PackageManager;
163 assertThat(rpm.hasSystemFeature(PackageManager.FEATURE_CAMERA), equalTo(false)); in hasSystemFeature()
166 rpm.setSystemFeature(PackageManager.FEATURE_CAMERA, true); in hasSystemFeature()
167 assertThat(rpm.hasSystemFeature(PackageManager.FEATURE_CAMERA), equalTo(true)); in hasSystemFeature()
170 rpm.setSystemFeature(PackageManager.FEATURE_CAMERA, false); in hasSystemFeature()
171 assertThat(rpm.hasSystemFeature(PackageManager.FEATURE_CAMERA), equalTo(false)); in hasSystemFeature()
/external/devlib/src/netstats/src/com/arm/devlib/trafficcatcher/
DTrafficMetricsService.java16 import android.content.pm.PackageManager;
25 private PackageManager pm;
30 public TrafficPoller(String tag, PackageManager pm, int period, List<String> packages) { in TrafficPoller()
63 } catch (PackageManager.NameNotFoundException e) { in getPakagesInfo()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DConnectivityMonitorFactory.java4 import android.content.pm.PackageManager;
14 final boolean hasPermission = res == PackageManager.PERMISSION_GRANTED; in build()
/external/sl4a/Common/src/com/googlecode/android_scripting/
DVersion.java21 import android.content.pm.PackageManager;
33 } catch (PackageManager.NameNotFoundException e) { in getVersion()
/external/replicaisland/src/com/replica/replicaisland/
DMultiTouchFilter.java4 import android.content.pm.PackageManager;
36 PackageManager packageManager = context.getPackageManager(); in supportsMultitouch()
/external/glide/library/src/main/java/com/bumptech/glide/signature/
DApplicationVersionSignature.java5 import android.content.pm.PackageManager;
47 } catch (PackageManager.NameNotFoundException e) { in obtainVersionSignature()
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java15 import android.content.pm.PackageManager;
155 PackageManager.FEATURE_TELEPHONY); in hasEarpiece()
162 PackageManager.FEATURE_AUDIO_LOW_LATENCY); in isLowLatencyOutputSupported()
DWebRtcAudioUtils.java14 import android.content.pm.PackageManager;
200 Process.myUid()) == PackageManager.PERMISSION_GRANTED; in hasPermission()
/external/vogar/src/vogar/target/
DTestActivity.java21 import android.content.pm.PackageManager;
57 } catch (PackageManager.NameNotFoundException nfe) { in onCreate()
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java25 import android.content.pm.PackageManager;
28 import android.content.pm.PackageManager.NameNotFoundException;
62 private final PackageManager mmPackageManager;
151 packInfo = mmPackageManager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS); in buildInterpreter()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DMainActivity.java23 import android.content.pm.PackageManager;
423 if (currentPermission == PackageManager.PERMISSION_GRANTED) { in attemptSaveAndShareLog()
436 if (currentPermission == PackageManager.PERMISSION_GRANTED) { in attemptSaveLog()
448 if (currentPermission == PackageManager.PERMISSION_GRANTED) { in attemptClearLog()
460 … isPermissionGranted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRA… in onRequestPermissionsResult()
607 if (currentPermission != PackageManager.PERMISSION_GRANTED) { in requestSystraceWritePermission()
DAudioFragment.java23 import android.content.pm.PackageManager;
216 if (currentPermission == PackageManager.PERMISSION_GRANTED) { in attemptRecordingTest()
229 … if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java21 import android.content.pm.PackageManager;
59 public PackageManager getPackageManager() { in getPackageManager()
424 … public Context createPackageContext(String s, int i) throws PackageManager.NameNotFoundException { in createPackageContext()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DApplicationManagerFacade.java24 import android.content.pm.PackageManager;
49 private final PackageManager mPackageManager;
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCAudioManager.java19 import android.content.pm.PackageManager;
290 PackageManager.FEATURE_TELEPHONY); in hasEarpiece()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextWrapperTest.java19 import static android.content.pm.PackageManager.PERMISSION_DENIED;
20 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
/external/volley/src/main/java/com/android/volley/toolbox/
DVolley.java21 import android.content.pm.PackageManager.NameNotFoundException;
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackApplication.java21 import android.content.pm.PackageManager;
386 } catch (PackageManager.NameNotFoundException e) { in getSystemInfo()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java38 import android.content.pm.PackageManager;
227 == PackageManager.PERMISSION_GRANTED; in WifiManagerDelegate()

12