/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | UnidirectionalSequenceLSTM.cpp | 40 inline bool hasTensor(IOperationExecutionContext* context, const uint32_t tensor) { in hasTensor() argument 41 return context->getInputBuffer(tensor) != nullptr; in hasTensor() 44 inline bool isTimeMajor(IOperationExecutionContext* context) { in isTimeMajor() argument 45 return context->getInputValue<bool>(kTimeMajorParam); in isTimeMajor() 49 inline LSTMParams getLSTMParams(IOperationExecutionContext* context) { in getLSTMParams() argument 52 static_cast<ActivationFn>(context->getInputValue<int32_t>(kActivationParam)); in getLSTMParams() 53 params.cell_clip = static_cast<float>(context->getInputValue<T>(kCellClipParam)); in getLSTMParams() 54 params.proj_clip = static_cast<float>(context->getInputValue<T>(kProjClipParam)); in getLSTMParams() 55 params.use_cifg = !hasTensor(context, kInputToInputWeightsTensor); in getLSTMParams() 56 params.use_peephole = hasTensor(context, kCellToOutputWeightsTensor); in getLSTMParams() [all …]
|
D | Comparisons.cpp | 65 bool executeLessTyped(IOperationExecutionContext* context) { in executeLessTyped() argument 67 std::less<ComparisonType>(), context->getInputBuffer<DataType>(kInputTensor1), in executeLessTyped() 68 context->getInputShape(kInputTensor1), context->getInputBuffer<DataType>(kInputTensor2), in executeLessTyped() 69 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeLessTyped() 70 context->getOutputShape(kOutputTensor)); in executeLessTyped() 74 bool executeLessEqualTyped(IOperationExecutionContext* context) { in executeLessEqualTyped() argument 76 std::less_equal<ComparisonType>(), context->getInputBuffer<DataType>(kInputTensor1), in executeLessEqualTyped() 77 context->getInputShape(kInputTensor1), context->getInputBuffer<DataType>(kInputTensor2), in executeLessEqualTyped() 78 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeLessEqualTyped() 79 context->getOutputShape(kOutputTensor)); in executeLessEqualTyped() [all …]
|
D | GenerateProposals.cpp | 198 bool prepare(IOperationExecutionContext* context) { in prepare() argument 199 Shape roiShape = context->getInputShape(kRoiTensor); in prepare() 200 Shape bboxDeltasShape = context->getInputShape(kDeltaTensor); in prepare() 201 Shape batchesShape = context->getInputShape(kBatchesTensor); in prepare() 202 Shape imageInfoShape = context->getInputShape(kImageInfoTensor); in prepare() 203 Shape outputShape = context->getOutputShape(kOutputTensor); in prepare() 237 NN_RET_CHECK(context->setOutputShape(kOutputTensor, outputShape)); in prepare() 241 bool execute(IOperationExecutionContext* context) { in execute() argument 244 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in execute() 245 switch (context->getInputType(kRoiTensor)) { in execute() [all …]
|
D | Broadcast.cpp | 441 bool prepare(IOperationExecutionContext* context) { in prepare() argument 442 Shape input1 = context->getInputShape(kInputTensor1); in prepare() 443 Shape input2 = context->getInputShape(kInputTensor2); in prepare() 444 Shape output = context->getOutputShape(kOutputTensor); in prepare() 448 return context->setOutputShape(kOutputTensor, output); in prepare() 451 bool executeAdd(IOperationExecutionContext* context) { in executeAdd() argument 453 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in executeAdd() 454 switch (context->getInputType(kInputTensor1)) { in executeAdd() 456 return addFloat16(context->getInputBuffer<_Float16>(kInputTensor1), in executeAdd() 457 context->getInputShape(kInputTensor1), in executeAdd() [all …]
|
D | Slice.cpp | 77 bool prepare(IOperationExecutionContext* context) { in prepare() argument 78 const Shape& inputShape = context->getInputShape(kInputTensor); in prepare() 82 const Shape& beginShape = context->getInputShape(kBeginTensor); in prepare() 86 const Shape& sizeShape = context->getInputShape(kSizeTensor); in prepare() 90 const int32_t* beginData = context->getInputBuffer<int32_t>(kBeginTensor); in prepare() 91 const int32_t* sizeData = context->getInputBuffer<int32_t>(kSizeTensor); in prepare() 93 Shape outputShape = context->getOutputShape(kOutputTensor); in prepare() 107 return context->setOutputShape(kOutputTensor, outputShape); in prepare() 110 bool execute(IOperationExecutionContext* context) { in execute() argument 112 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in execute() [all …]
|
D | Activation.cpp | 363 bool prepare(OperationType opType, IOperationExecutionContext* context) { in prepare() argument 364 Shape input = context->getInputShape(kInputTensor); in prepare() 374 auto outputShape = context->getOutputShape(kOutputTensor); in prepare() 394 return context->setOutputShape(kOutputTensor, output); in prepare() 397 bool executeRelu(IOperationExecutionContext* context) { in executeRelu() argument 399 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in executeRelu() 400 switch (context->getInputType(kInputTensor)) { in executeRelu() 402 return reluFloat(context->getInputBuffer<_Float16>(kInputTensor), in executeRelu() 403 context->getInputShape(kInputTensor), in executeRelu() 404 context->getOutputBuffer<_Float16>(kOutputTensor), in executeRelu() [all …]
|
D | Elementwise.cpp | 73 bool execute(IOperationExecutionContext* context, float func(float)) { in execute() argument 74 switch (context->getInputType(kInputTensor)) { in execute() 76 return compute<float, _Float16>(func, context->getInputBuffer<_Float16>(kInputTensor), in execute() 77 context->getInputShape(kInputTensor), in execute() 78 context->getOutputBuffer<_Float16>(kOutputTensor)); in execute() 80 return compute<float, float>(func, context->getInputBuffer<float>(kInputTensor), in execute() 81 context->getInputShape(kInputTensor), in execute() 82 context->getOutputBuffer<float>(kOutputTensor)); in execute() 90 bool executeAbs(IOperationExecutionContext* context) { in executeAbs() argument 91 switch (context->getInputType(kInputTensor)) { in executeAbs() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
D | Vvm3VoicemailMessageCreator.java | 77 final Context context, in create() argument 81 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 88 context.getString(R.string.vvm3_error_vms_dns_failure_title), in create() 89 getCustomerSupportString(context, R.string.vvm3_error_vms_dns_failure_message), in create() 90 VoicemailErrorMessage.createRetryAction(context, status), in create() 91 createCallCustomerSupportAction(context)); in create() 96 context.getString(R.string.vvm3_error_vmg_dns_failure_title), in create() 97 getCustomerSupportString(context, R.string.vvm3_error_vmg_dns_failure_message), in create() 98 VoicemailErrorMessage.createRetryAction(context, status), in create() 99 createCallCustomerSupportAction(context)); in create() [all …]
|
D | OmtpVoicemailMessageCreator.java | 49 Context context, VoicemailStatus status, final VoicemailStatusReader statusReader) { in create() argument 51 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 59 return checkQuota(context, status, statusReader); in create() 67 context.getString(R.string.voicemail_error_activating_title), in create() 68 context.getString(R.string.voicemail_error_activating_message), in create() 69 VoicemailErrorMessage.createCallVoicemailAction(context)); in create() 73 return createNoSignalMessage(context, status); in create() 78 context.getString(R.string.voicemail_error_activation_failed_title), in create() 79 context.getString(R.string.voicemail_error_activation_failed_message), in create() 80 VoicemailErrorMessage.createCallVoicemailAction(context), in create() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SharedPreferenceUtil.java | 64 public static boolean getHamburgerPromoDisplayedBefore(Context context) { in getHamburgerPromoDisplayedBefore() argument 65 return getSharedPreferences(context) in getHamburgerPromoDisplayedBefore() 69 public static void setHamburgerPromoDisplayedBefore(Context context) { in setHamburgerPromoDisplayedBefore() argument 70 getSharedPreferences(context).edit() in setHamburgerPromoDisplayedBefore() 73 new BackupManager(context).dataChanged(); in setHamburgerPromoDisplayedBefore() 76 public static boolean getHamburgerMenuClickedBefore(Context context) { in getHamburgerMenuClickedBefore() argument 77 return getSharedPreferences(context) in getHamburgerMenuClickedBefore() 81 public static void setHamburgerMenuClickedBefore(Context context) { in setHamburgerMenuClickedBefore() argument 82 getSharedPreferences(context).edit() in setHamburgerMenuClickedBefore() 85 new BackupManager(context).dataChanged(); in setHamburgerMenuClickedBefore() [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/ |
D | decoder-sbc.c | 47 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT* context, in FindSyncword() argument 54 if (context->mSbcEnabled) { in FindSyncword() 71 if (context->limitFrameFormat && context->enhancedEnabled) { in FindSyncword() 74 } else if (context->enhancedEnabled == FALSE) { in FindSyncword() 86 context->common.frameInfo.enhanced = in FindSyncword() 104 context->common.frameInfo.enhanced = FALSE; in FindSyncword() 115 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT* context, in DecodeBody() argument 119 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * in DecodeBody() 120 context->common.frameInfo.nrof_subbands; in DecodeBody() 128 (sizeof(int16_t) * frameSamples * context->common.pcmStride) && in DecodeBody() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/ |
D | UserParameters.java | 60 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() argument 61 final Context deviceContext = context.createDeviceProtectedStorageContext(); in getSharedPreferences() 71 public static int getProvisionState(Context context) { in getProvisionState() argument 73 return getSharedPreferences(context).getInt(KEY_PROVISION_STATE, in getProvisionState() 80 public static void setProvisionState(Context context, @ProvisionState int state) { in setProvisionState() argument 81 getSharedPreferences(context).edit().putInt(KEY_PROVISION_STATE, state).apply(); in setProvisionState() 86 public static boolean needInitialCheckIn(Context context) { in needInitialCheckIn() argument 88 return getSharedPreferences(context).getBoolean(KEY_NEED_INITIAL_CHECK_IN, true); in needInitialCheckIn() 92 public static void initialCheckInScheduled(Context context) { in initialCheckInScheduled() argument 93 getSharedPreferences(context).edit().putBoolean(KEY_NEED_INITIAL_CHECK_IN, false).apply(); in initialCheckInScheduled() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
D | TelecomUtil.java | 75 public static void showInCallScreen(Context context, boolean showDialpad) { in showInCallScreen() argument 76 if (hasReadPhoneStatePermission(context)) { in showInCallScreen() 78 getTelecomManager(context).showInCallScreen(showDialpad); in showInCallScreen() 86 public static void silenceRinger(Context context) { in silenceRinger() argument 87 if (hasModifyPhoneStatePermission(context)) { in silenceRinger() 89 getTelecomManager(context).silenceRinger(); in silenceRinger() 97 public static void cancelMissedCallsNotification(Context context) { in cancelMissedCallsNotification() argument 98 if (hasModifyPhoneStatePermission(context)) { in cancelMissedCallsNotification() 100 getTelecomManager(context).cancelMissedCallsNotification(); in cancelMissedCallsNotification() 107 public static Uri getAdnUriForPhoneAccount(Context context, PhoneAccountHandle handle) { in getAdnUriForPhoneAccount() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 64 override fun onReceive(context: Context, intent: Intent) { in <lambda>() 70 val wl: PowerManager.WakeLock = AlarmAlertWakeLock.createPartialWakeLock(context) in <lambda>() 73 handleIntent(context, intent) in <lambda>() 95 context: Context, in <lambda>() 101 fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) in <lambda>() 109 context: Context, in <lambda>() 116 instance.mId, AlarmUtils.getFormattedTime(context, time), timeInMillis) in <lambda>() 118 createStateChangeIntent(context, ALARM_MANAGER_TAG, instance, newState) in <lambda>() 122 PendingIntent.getService(context, instance.hashCode(), in <lambda>() 125 val am: AlarmManager = context.getSystemService(ALARM_SERVICE) as AlarmManager in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | ExerciseSegmentTypeFormatter.kt | 27 constructor(@ApplicationContext private val context: Context) { constant in com.android.healthconnect.controller.dataentries.formatters.ExerciseSegmentTypeFormatter 31 context.getString(R.string.back_extension) in getSegmentType() 33 context.getString(R.string.barbell_shoulder_press) in getSegmentType() 35 context.getString(R.string.bench_press) in getSegmentType() 37 context.getString(R.string.bench_sit_up) in getSegmentType() 38 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE -> context.getString(R.string.burpee) in getSegmentType() 39 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_CRUNCH -> context.getString(R.string.crunch) in getSegmentType() 41 context.getString(R.string.deadlift) in getSegmentType() 43 context.getString(R.string.dumbbell_curl_left_arm) in getSegmentType() 45 context.getString(R.string.dumbbell_curl_right_arm) in getSegmentType() [all …]
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | Receiver.java | 66 public void onReceive(Context context, Intent intent) { in onReceive() argument 67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() 71 createNotificationChannels(context); in onReceive() 72 updateDeveloperOptionsWatcher(context, /* fromBootIntent */ true); in onReceive() 75 updateTracing(context, /* assumeTracingIsOff= */ true); in onReceive() 78 updateStorageProvider(context, isTraceurAllowed(context)); in onReceive() 83 context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() 85 context.getString(R.string.pref_key_stack_sampling_on), false).commit(); in onReceive() 87 context.getString(R.string.pref_key_heap_dump_on), false).commit(); in onReceive() 88 updateTracing(context); in onReceive() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 407 public static Duration getMobileDataActivityTimeout(@NonNull Context context, in getMobileDataActivityTimeout() argument 410 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, (int) def.getSeconds()); in getMobileDataActivityTimeout() 424 public static void setMobileDataActivityTimeout(@NonNull Context context, in setMobileDataActivityTimeout() argument 426 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, in setMobileDataActivityTimeout() 438 public static Duration getWifiDataActivityTimeout(@NonNull Context context, in getWifiDataActivityTimeout() argument 441 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, (int) def.getSeconds()); in getWifiDataActivityTimeout() 455 public static void setWifiDataActivityTimeout(@NonNull Context context, in setWifiDataActivityTimeout() argument 457 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, in setWifiDataActivityTimeout() 470 public static Duration getDnsResolverSampleValidityDuration(@NonNull Context context, in getDnsResolverSampleValidityDuration() argument 472 final int duration = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleValidityDuration() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/theme/ |
D | WearPermissionTonalPalette.kt | 107 internal fun dynamicTonalPalette(context: Context) = in dynamicTonalPalette() 110 neutral100 = ColorResourceHelper.getColor(context, R.color.system_neutral1_0), in dynamicTonalPalette() 111 neutral99 = ColorResourceHelper.getColor(context, R.color.system_neutral1_10), in dynamicTonalPalette() 112 neutral95 = ColorResourceHelper.getColor(context, R.color.system_neutral1_50), in dynamicTonalPalette() 113 neutral90 = ColorResourceHelper.getColor(context, R.color.system_neutral1_100), in dynamicTonalPalette() 114 neutral80 = ColorResourceHelper.getColor(context, R.color.system_neutral1_200), in dynamicTonalPalette() 115 neutral70 = ColorResourceHelper.getColor(context, R.color.system_neutral1_300), in dynamicTonalPalette() 116 neutral60 = ColorResourceHelper.getColor(context, R.color.system_neutral1_400), in dynamicTonalPalette() 117 neutral50 = ColorResourceHelper.getColor(context, R.color.system_neutral1_500), in dynamicTonalPalette() 118 neutral40 = ColorResourceHelper.getColor(context, R.color.system_neutral1_600), in dynamicTonalPalette() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | EnterpriseUtils.java | 76 public static ComponentName getAdminWithinPackage(Context context, String packageName) { in getAdminWithinPackage() argument 77 List<ComponentName> admins = context.getSystemService(DevicePolicyManager.class) in getAdminWithinPackage() 91 public static DeviceAdminInfo getDeviceAdminInfo(Context context, ComponentName admin) { in getDeviceAdminInfo() argument 96 ai = context.getPackageManager().getReceiverInfo(admin, PackageManager.GET_META_DATA); in getDeviceAdminInfo() 103 return new DeviceAdminInfo(context, ai); in getDeviceAdminInfo() 114 public static boolean isDemoUser(Context context) { in isDemoUser() argument 115 return UserManager.isDeviceInDemoMode(context) in isDemoUser() 116 && getUserManager(context).isDemoUser(); in isDemoUser() 122 public static boolean isAdminUser(Context context) { in isAdminUser() argument 123 return getUserManager(context).isAdminUser(); in isAdminUser() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | TransactionContextTest.java | 33 TransactionContext context = new TransactionContext(false); in testClearExceptSearchIndexUpdates_returnsNewSets() local 34 context.markRawContactDirtyAndChanged(1L, false); in testClearExceptSearchIndexUpdates_returnsNewSets() 35 context.rawContactUpdated(1L); in testClearExceptSearchIndexUpdates_returnsNewSets() 36 context.rawContactInserted(1L, 1L); in testClearExceptSearchIndexUpdates_returnsNewSets() 37 context.syncStateUpdated(1L, new Object()); in testClearExceptSearchIndexUpdates_returnsNewSets() 39 context.clearExceptSearchIndexUpdates(); in testClearExceptSearchIndexUpdates_returnsNewSets() 41 Set<Long> newDirty = context.getDirtyRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 42 Set<Long> newChanged = context.getChangedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 43 Set<Long> newInserted = context.getInsertedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 44 Set<Long> newUpdated = context.getUpdatedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | CallServiceNotifier.java | 90 public void updateNotification(Context context) { in updateNotification() argument 94 getNotificationManager(context).createNotificationChannel(channel); in updateNotification() 95 getNotificationManager(context).notify(CALL_NOTIFICATION_ID, getMainNotification(context)); in updateNotification() 96 getNotificationManager(context).notify( in updateNotification() 97 PHONE_ACCOUNT_NOTIFICATION_ID, getPhoneAccountNotification(context)); in updateNotification() 103 public void cancelNotifications(Context context) { in cancelNotifications() argument 105 getNotificationManager(context).cancel(CALL_NOTIFICATION_ID); in cancelNotifications() 106 getNotificationManager(context).cancel(PHONE_ACCOUNT_NOTIFICATION_ID); in cancelNotifications() 112 public void registerPhoneAccount(Context context) { in registerPhoneAccount() argument 114 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in registerPhoneAccount() [all …]
|
/packages/modules/NeuralNetworks/common/types/operations/src/ |
D | Reshape.cpp | 27 Result<Version> validateDepthToSpace(const IOperationValidationContext* context) { in validateDepthToSpace() argument 28 NN_RET_CHECK((context->getNumInputs() == 3 || context->getNumInputs() == 2) && in validateDepthToSpace() 29 context->getNumOutputs() == 1) in validateDepthToSpace() 30 << "Invalid number of input operands (" << context->getNumInputs() in validateDepthToSpace() 31 << ", expected 3 or 2) or output operands (" << context->getNumOutputs() in validateDepthToSpace() 32 << ", expected 1) for operation " << context->getOperationName(); in validateDepthToSpace() 33 auto inputType = context->getInputType(0); in validateDepthToSpace() 55 << context->getOperationName(); in validateDepthToSpace() 57 if (context->getNumInputs() == 3) { in validateDepthToSpace() 63 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateDepthToSpace() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragment.java | 115 public void onReceive(Context context, Intent intent) { 126 public void onReceive(Context context, Intent intent) { 245 Context context = requireContext(); in onCreate() local 249 Toast.makeText(context, R.string.dev_settings_available_to_admin_only_warning, in onCreate() 253 } else if (!DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(context)) { in onCreate() 254 Toast.makeText(context, R.string.dev_settings_disabled_warning, Toast.LENGTH_SHORT) in onCreate() 567 protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { in createPreferenceControllers() argument 572 mPreferenceControllers = buildPreferenceControllers(context, getActivity(), in createPreferenceControllers() 649 private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, in buildPreferenceControllers() argument 654 controllers.add(new MemoryUsagePreferenceController(context)); in buildPreferenceControllers() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberCompat.java | 60 public static String getIdColumnName(Context context) { in getIdColumnName() argument 61 return useNewFiltering(context) ? BlockedNumbers.COLUMN_ID : FilteredNumberColumns._ID; in getIdColumnName() 69 public static String getTypeColumnName(Context context) { in getTypeColumnName() argument 70 return useNewFiltering(context) ? null : FilteredNumberColumns.TYPE; in getTypeColumnName() 78 public static String getSourceColumnName(Context context) { in getSourceColumnName() argument 79 return useNewFiltering(context) ? null : FilteredNumberColumns.SOURCE; in getSourceColumnName() 83 public static String getOriginalNumberColumnName(Context context) { in getOriginalNumberColumnName() argument 84 return useNewFiltering(context) in getOriginalNumberColumnName() 94 public static String getCountryIsoColumnName(Context context) { in getCountryIsoColumnName() argument 95 return useNewFiltering(context) ? null : FilteredNumberColumns.COUNTRY_ISO; in getCountryIsoColumnName() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | PermissionsUtil.java | 82 public static boolean hasPhonePermissions(Context context) { in hasPhonePermissions() argument 83 return hasPermission(context, permission.CALL_PHONE); in hasPhonePermissions() 86 public static boolean hasReadPhoneStatePermissions(Context context) { in hasReadPhoneStatePermissions() argument 87 return hasPermission(context, permission.READ_PHONE_STATE); in hasReadPhoneStatePermissions() 90 public static boolean hasContactsReadPermissions(Context context) { in hasContactsReadPermissions() argument 91 return hasPermission(context, permission.READ_CONTACTS); in hasContactsReadPermissions() 94 public static boolean hasContactsWritePermissions(Context context) { in hasContactsWritePermissions() argument 95 return hasPermission(context, permission.WRITE_CONTACTS); in hasContactsWritePermissions() 98 public static boolean hasLocationPermissions(Context context) { in hasLocationPermissions() argument 99 return hasPermission(context, permission.ACCESS_FINE_LOCATION); in hasLocationPermissions() [all …]
|