Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 5559) sorted by relevance

12345678910>>...223

/packages/modules/NeuralNetworks/common/cpu_operations/
DUnidirectionalSequenceLSTM.cpp40 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 …]
DComparisons.cpp65 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 …]
DGenerateProposals.cpp197 bool prepare(IOperationExecutionContext* context) { in prepare() argument
198 Shape roiShape = context->getInputShape(kRoiTensor); in prepare()
199 Shape bboxDeltasShape = context->getInputShape(kDeltaTensor); in prepare()
200 Shape batchesShape = context->getInputShape(kBatchesTensor); in prepare()
201 Shape imageInfoShape = context->getInputShape(kImageInfoTensor); in prepare()
202 Shape outputShape = context->getOutputShape(kOutputTensor); in prepare()
236 NN_RET_CHECK(context->setOutputShape(kOutputTensor, outputShape)); in prepare()
240 bool execute(IOperationExecutionContext* context) { in execute() argument
243 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in execute()
244 switch (context->getInputType(kRoiTensor)) { in execute()
[all …]
DBroadcast.cpp440 bool prepare(IOperationExecutionContext* context) { in prepare() argument
441 Shape input1 = context->getInputShape(kInputTensor1); in prepare()
442 Shape input2 = context->getInputShape(kInputTensor2); in prepare()
443 Shape output = context->getOutputShape(kOutputTensor); in prepare()
447 return context->setOutputShape(kOutputTensor, output); in prepare()
450 bool executeAdd(IOperationExecutionContext* context) { in executeAdd() argument
452 if (getNumberOfElements(context->getOutputShape(kOutputTensor)) == 0) return true; in executeAdd()
453 switch (context->getInputType(kInputTensor1)) { in executeAdd()
455 return addFloat16(context->getInputBuffer<_Float16>(kInputTensor1), in executeAdd()
456 context->getInputShape(kInputTensor1), in executeAdd()
[all …]
DActivation.cpp363 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 …]
DSlice.cpp77 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 …]
DElementwise.cpp73 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 …]
DQLSTM.cpp36 inline bool hasTensor(IOperationExecutionContext* context, const uint32_t tensor) { in hasTensor() argument
37 return context->getInputBuffer(tensor) != nullptr; in hasTensor()
42 bool prepare(IOperationExecutionContext* context) { in prepare() argument
59 NN_RET_CHECK(!context->isOmittedInput(tensor)) in prepare()
63 const Shape inputShape = context->getInputShape(kInputTensor); in prepare()
70 const Shape inputToOutputShape = context->getInputShape(kInputToOutputWeightsTensor); in prepare()
75 const Shape recurrentToOutputShape = context->getInputShape(kRecurrentToOutputWeightsTensor); in prepare()
80 if (hasTensor(context, kInputToInputWeightsTensor)) { in prepare()
81 const Shape inputToInputShape = context->getInputShape(kInputToInputWeightsTensor); in prepare()
87 const Shape inputToForgetShape = context->getInputShape(kInputToForgetWeightsTensor); in prepare()
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVvm3VoicemailMessageCreator.java77 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 …]
DOmtpVoicemailMessageCreator.java49 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/
DSharedPreferenceUtil.java64 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/
Ddecoder-sbc.c47 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/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt64 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/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java75 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/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java402 public static Duration getMobileDataActivityTimeout(@NonNull Context context, in getMobileDataActivityTimeout() argument
405 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, (int) def.getSeconds()); in getMobileDataActivityTimeout()
419 public static void setMobileDataActivityTimeout(@NonNull Context context, in setMobileDataActivityTimeout() argument
421 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, in setMobileDataActivityTimeout()
433 public static Duration getWifiDataActivityTimeout(@NonNull Context context, in getWifiDataActivityTimeout() argument
436 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, (int) def.getSeconds()); in getWifiDataActivityTimeout()
450 public static void setWifiDataActivityTimeout(@NonNull Context context, in setWifiDataActivityTimeout() argument
452 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, in setWifiDataActivityTimeout()
465 public static Duration getDnsResolverSampleValidityDuration(@NonNull Context context, in getDnsResolverSampleValidityDuration() argument
467 final int duration = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleValidityDuration()
[all …]
/packages/apps/Traceur/src/com/android/traceur/
DReceiver.java79 public void onReceive(Context context, Intent intent) { in onReceive() argument
80 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive()
84 createNotificationChannels(context); in onReceive()
85 updateDeveloperOptionsWatcher(context, /* fromBootIntent */ true); in onReceive()
88 updateTracing(context, /* assumeTracingIsOff= */ true); in onReceive()
91 Settings.Global.getInt(context.getContentResolver(), in onReceive()
93 UserManager userManager = context.getSystemService(UserManager.class); in onReceive()
97 updateStorageProvider(context, in onReceive()
103 context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive()
105 context.getString(R.string.pref_key_stack_sampling_on), false).commit(); in onReceive()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DDevelopmentSettingsDashboardFragment.java111 public void onReceive(Context context, Intent intent) {
122 public void onReceive(Context context, Intent intent) {
540 protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { in createPreferenceControllers() argument
545 mPreferenceControllers = buildPreferenceControllers(context, getActivity(), in createPreferenceControllers()
613 private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, in buildPreferenceControllers() argument
617 controllers.add(new MemoryUsagePreferenceController(context)); in buildPreferenceControllers()
618 controllers.add(new BugReportPreferenceController(context)); in buildPreferenceControllers()
619 controllers.add(new BugReportHandlerPreferenceController(context)); in buildPreferenceControllers()
620 controllers.add(new SystemServerHeapDumpPreferenceController(context)); in buildPreferenceControllers()
621 controllers.add(new DevelopmentMemtagPagePreferenceController(context, fragment)); in buildPreferenceControllers()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java90 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/
DReshape.cpp27 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTransactionContextTest.java33 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/apps/Messaging/src/com/android/messaging/ui/
DUIIntentsImpl.java90 private Intent getConversationActivityIntent(final Context context, in getConversationActivityIntent() argument
93 final Intent intent = new Intent(context, ConversationActivity.class); in getConversationActivityIntent()
129 if (!(context instanceof Activity)) { in getConversationActivityIntent()
138 public void launchPermissionCheckActivity(final Context context) { in launchPermissionCheckActivity() argument
139 final Intent intent = new Intent(context, PermissionCheckActivity.class); in launchPermissionCheckActivity()
140 context.startActivity(intent); in launchPermissionCheckActivity()
146 private Intent getConversationListActivityIntent(final Context context) { in getConversationListActivityIntent() argument
147 return new Intent(context, ConversationListActivity.class); in getConversationListActivityIntent()
151 public void launchConversationListActivity(final Context context) { in launchConversationListActivity() argument
152 final Intent intent = getConversationListActivityIntent(context); in launchConversationListActivity()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationStateManager.java118 public void onUserSwitching(@NonNull Context context, @UserIdInt int userId) { in onUserSwitching() argument
120 MigrationStateChangeJob.cancelAllJobs(context); in onUserSwitching()
159 public void setMinDataMigrationSdkExtensionVersion(@NonNull Context context, int minVersion) { in setMinDataMigrationSdkExtensionVersion() argument
162 updateMigrationState(context, MIGRATION_STATE_ALLOWED); in setMinDataMigrationSdkExtensionVersion()
169 updateMigrationState(context, MIGRATION_STATE_MODULE_UPGRADE_REQUIRED); in setMinDataMigrationSdkExtensionVersion()
191 public void switchToSetupForUser(@NonNull Context context) { in switchToSetupForUser() argument
193 cleanupOldPersistentMigrationJobsIfNeeded(context); in switchToSetupForUser()
194 resetMigrationStateIfNeeded(context); in switchToSetupForUser()
195 MigrationStateChangeJob.cancelAllJobs(context); in switchToSetupForUser()
196 reconcilePackageChangesWithStates(context); in switchToSetupForUser()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailClientImpl.java80 public boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle) { in hasCarrierSupport() argument
81 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccountHandle); in hasCarrierSupport()
86 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled() argument
87 return VisualVoicemailSettingsUtil.isEnabled(context, phoneAccountHandle); in isVoicemailEnabled()
92 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) { in setVoicemailEnabled() argument
93 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccountHandle, enabled); in setVoicemailEnabled()
97 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled() argument
98 return VisualVoicemailSettingsUtil.isArchiveEnabled(context, phoneAccountHandle); in isVoicemailArchiveEnabled()
102 public boolean isVoicemailArchiveAvailable(Context context) { in isVoicemailArchiveAvailable() argument
108 if (!ConfigProviderComponent.get(context) in isVoicemailArchiveAvailable()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java82 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 …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java390 private static SmsCbMessage createFromPdu(Context context, byte[] pdu, int serialNumber, in createFromPdu() argument
394 return createFromPdus(context, pdus, serialNumber, category); in createFromPdu()
397 private static SmsCbMessage createFromPdus(Context context, byte[][] pdus, int serialNumber, in createFromPdus() argument
423 return GsmSmsCbMessage.createSmsCbMessage(context, new SmsCbHeader(pdus[0]), in createFromPdus()
430 private static void sendBroadcast(Context context, int serialNumber, int category, in sendBroadcast() argument
433 intent.putExtra("message", createFromPdu(context, pdu, serialNumber, category)); in sendBroadcast()
434 intent.setPackage(CellBroadcastUtils.getDefaultCellBroadcastReceiverPackageName(context)); in sendBroadcast()
435 context.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in sendBroadcast()
439 public static void testSendMessage7bit(Context context, int serialNumber, in testSendMessage7bit() argument
441 sendBroadcast(context, serialNumber, category, gsm7BitTest); in testSendMessage7bit()
[all …]

12345678910>>...223