/external/libchrome/base/android/java/src/org/chromium/base/ |
D | PackageUtils.java | 9 import android.content.pm.PackageManager; 27 PackageManager pm = context.getPackageManager(); in getPackageVersion() 31 } catch (PackageManager.NameNotFoundException e) { in getPackageVersion() 44 PackageManager packageManager = ContextUtils.getApplicationContext().getPackageManager(); in decodeImageResource() 48 } catch (PackageManager.NameNotFoundException e) { in decodeImageResource()
|
D | BuildInfo.java | 9 import android.content.pm.PackageManager; 10 import android.content.pm.PackageManager.NameNotFoundException; 92 PackageManager pm = appContext.getPackageManager(); in BuildInfo()
|
/external/setupdesign/main/src/com/google/android/setupdesign/util/ |
D | Partner.java | 22 import android.content.pm.PackageManager; 23 import android.content.pm.PackageManager.NameNotFoundException; 141 PackageManager pm = context.getPackageManager(); in get() 148 PackageManager.MATCH_SYSTEM_ONLY in get() 149 | PackageManager.MATCH_DIRECT_BOOT_AWARE in get() 150 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE in get() 151 | PackageManager.MATCH_DISABLED_COMPONENTS); in get() 155 receivers = pm.queryBroadcastReceivers(intent, PackageManager.GET_DISABLED_COMPONENTS); in get()
|
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/ |
D | PartnerConfigHelper.java | 21 import android.content.pm.PackageManager; 104 } catch (PackageManager.NameNotFoundException | NullPointerException exception) { in getColor() 146 } catch (PackageManager.NameNotFoundException in getDrawable() 178 } catch (PackageManager.NameNotFoundException | NullPointerException exception) { in getString() 209 } catch (PackageManager.NameNotFoundException | NullPointerException exception) { in getBoolean() 257 } catch (PackageManager.NameNotFoundException | NullPointerException exception) { in getDimension() 298 } catch (PackageManager.NameNotFoundException | NullPointerException exception) { in getFraction() 326 throws PackageManager.NameNotFoundException { in getResourcesByPackageName() 327 PackageManager manager = context.getPackageManager(); in getResourcesByPackageName() 330 manager.getApplicationInfo(packageName, PackageManager.MATCH_DISABLED_COMPONENTS)); in getResourcesByPackageName() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSliceManager.java | 7 import android.content.pm.PackageManager; 8 import android.content.pm.PackageManager.NameNotFoundException; 58 return PackageManager.PERMISSION_GRANTED; in checkSlicePermission() 62 return PackageManager.PERMISSION_GRANTED; in checkSlicePermission() 64 return PackageManager.PERMISSION_DENIED; in checkSlicePermission() 68 PackageManager packageManager = context.getPackageManager(); in getUidForPackage()
|
D | ShadowPackageManager.java | 3 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 4 import static android.content.pm.PackageManager.GET_ACTIVITIES; 5 import static android.content.pm.PackageManager.GET_CONFIGURATIONS; 6 import static android.content.pm.PackageManager.GET_GIDS; 7 import static android.content.pm.PackageManager.GET_INSTRUMENTATION; 8 import static android.content.pm.PackageManager.GET_INTENT_FILTERS; 9 import static android.content.pm.PackageManager.GET_META_DATA; 10 import static android.content.pm.PackageManager.GET_PERMISSIONS; 11 import static android.content.pm.PackageManager.GET_PROVIDERS; 12 import static android.content.pm.PackageManager.GET_RECEIVERS; [all …]
|
D | ShadowApplicationPackageManager.java | 5 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 6 import static android.content.pm.PackageManager.GET_META_DATA; 7 import static android.content.pm.PackageManager.GET_SIGNATURES; 8 import static android.content.pm.PackageManager.MATCH_ALL; 9 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS; 10 import static android.content.pm.PackageManager.MATCH_UNINSTALLED_PACKAGES; 11 import static android.content.pm.PackageManager.SIGNATURE_UNKNOWN_PACKAGE; 52 import android.content.pm.PackageManager; 53 import android.content.pm.PackageManager.NameNotFoundException; 200 return state != null ? state.newState : PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; in getComponentEnabledSetting() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowSliceManagerTest.java | 7 import android.content.pm.PackageManager; 33 PackageManager packageManager = RuntimeEnvironment.application.getPackageManager(); in setUp() 47 .isEqualTo(PackageManager.PERMISSION_GRANTED); in testGrantSlicePermission_grantsPermissionToPackage() 54 .isEqualTo(PackageManager.PERMISSION_DENIED); in testGrantSlicePermission_doesNotGrantPermissionToOtherPackage() 61 .isEqualTo(PackageManager.PERMISSION_DENIED); in testGrantSlicePermission_doesNotGrantPermissionToOtherSliceUri() 69 .isEqualTo(PackageManager.PERMISSION_DENIED); in testRevokeSlicePermission_revokesPermissionToPackage()
|
D | ShadowPackageManagerTest.java | 15 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED; 16 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS; 17 import static android.content.pm.PackageManager.MATCH_UNINSTALLED_PACKAGES; 18 import static android.content.pm.PackageManager.PERMISSION_DENIED; 19 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 20 import static android.content.pm.PackageManager.SIGNATURE_FIRST_NOT_SIGNED; 21 import static android.content.pm.PackageManager.SIGNATURE_MATCH; 22 import static android.content.pm.PackageManager.SIGNATURE_NEITHER_SIGNED; 23 import static android.content.pm.PackageManager.SIGNATURE_NO_MATCH; 24 import static android.content.pm.PackageManager.SIGNATURE_SECOND_NOT_SIGNED; [all …]
|
D | ShadowContextWrapperTest.java | 3 import static android.content.pm.PackageManager.PERMISSION_DENIED; 4 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 22 import android.content.pm.PackageManager; 385 .isEqualTo(PackageManager.PERMISSION_DENIED); in checkSelfPermission() 390 .isEqualTo(PackageManager.PERMISSION_GRANTED); in checkSelfPermission() 392 .isEqualTo(PackageManager.PERMISSION_DENIED); in checkSelfPermission() 398 .isEqualTo(PackageManager.PERMISSION_DENIED); in checkPermissionUidPid() 403 .isEqualTo(PackageManager.PERMISSION_DENIED); in checkPermissionUidPid() 406 .isEqualTo(PackageManager.PERMISSION_GRANTED); in checkPermissionUidPid() 414 .isEqualTo(PackageManager.PERMISSION_GRANTED); in checkAdditionalSelfPermission() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
D | ContentProviderController.java | 6 import android.content.pm.PackageManager; 36 .getProviderInfo(componentName, PackageManager.MATCH_DISABLED_COMPONENTS); in create() 37 } catch (PackageManager.NameNotFoundException e) { in create() 70 componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 0); in create()
|
D | ActivityController.java | 17 import android.content.pm.PackageManager; 52 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, in attach() 62 …n.getPackageName(), component.getClass().getName()), PackageManager.GET_ACTIVITIES | PackageManage… in getActivityInfo() 63 } catch (PackageManager.NameNotFoundException e) { in getActivityInfo()
|
/external/glide/library/src/main/java/com/bumptech/glide/manager/ |
D | ConnectivityMonitorFactory.java | 4 import android.content.pm.PackageManager; 14 final boolean hasPermission = res == PackageManager.PERMISSION_GRANTED; in build()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/ |
D | Version.java | 21 import android.content.pm.PackageManager; 33 } catch (PackageManager.NameNotFoundException e) { in getVersion()
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ |
D | CameraActivity.java | 23 import android.content.pm.PackageManager; 275 && grantResults[0] == PackageManager.PERMISSION_GRANTED in onRequestPermissionsResult() 276 && grantResults[1] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult() 286 return checkSelfPermission(PERMISSION_CAMERA) == PackageManager.PERMISSION_GRANTED && in hasPermission() 287 checkSelfPermission(PERMISSION_STORAGE) == PackageManager.PERMISSION_GRANTED; in hasPermission()
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
D | CameraActivity.java | 23 import android.content.pm.PackageManager; 277 && grantResults[0] == PackageManager.PERMISSION_GRANTED in onRequestPermissionsResult() 278 && grantResults[1] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult() 288 return checkSelfPermission(PERMISSION_CAMERA) == PackageManager.PERMISSION_GRANTED && in hasPermission() 289 checkSelfPermission(PERMISSION_STORAGE) == PackageManager.PERMISSION_GRANTED; in hasPermission()
|
/external/skia/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/ |
D | CameraPermissionHelper.java | 20 import android.content.pm.PackageManager; 38 == PackageManager.PERMISSION_GRANTED; in hasCameraPermission()
|
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/ |
D | CameraPermissionHelper.java | 20 import android.content.pm.PackageManager; 38 == PackageManager.PERMISSION_GRANTED; in hasCameraPermission()
|
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/ |
D | CameraPermissionHelper.java | 22 import android.content.pm.PackageManager; 40 == PackageManager.PERMISSION_GRANTED; in hasCameraPermission()
|
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/ |
D | CameraPermissionHelper.java | 22 import android.content.pm.PackageManager; 40 == PackageManager.PERMISSION_GRANTED; in hasCameraPermission()
|
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
D | WebRtcAudioManager.java | 15 import android.content.pm.PackageManager; 155 PackageManager.FEATURE_TELEPHONY); in hasEarpiece() 162 PackageManager.FEATURE_AUDIO_LOW_LATENCY); in isLowLatencyOutputSupported()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | MultiTouchFilter.java | 4 import android.content.pm.PackageManager; 36 PackageManager packageManager = context.getPackageManager(); in supportsMultitouch()
|
/external/glide/library/src/main/java/com/bumptech/glide/signature/ |
D | ApplicationVersionSignature.java | 5 import android.content.pm.PackageManager; 47 } catch (PackageManager.NameNotFoundException e) { in obtainVersionSignature()
|
/external/vogar/src/vogar/target/ |
D | TestActivity.java | 21 import android.content.pm.PackageManager; 57 } catch (PackageManager.NameNotFoundException nfe) { in onCreate()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/ |
D | InterpreterConfiguration.java | 25 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()
|