/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 | 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 | 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 | 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 …]
|
D | QLSTM.cpp | 36 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/ |
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, const OI_BYTE** frameData, in FindSyncword() argument 53 if (context->mSbcEnabled) { in FindSyncword() 70 if (context->limitFrameFormat && context->enhancedEnabled) { in FindSyncword() 73 } else if (context->enhancedEnabled == FALSE) { in FindSyncword() 85 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword() 102 context->common.frameInfo.enhanced = FALSE; in FindSyncword() 113 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT* context, const OI_BYTE* bodyData, in DecodeBody() argument 117 context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subbands; in DecodeBody() 124 if (*pcmBytes < (sizeof(int16_t) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody() 129 } else if (*pcmBytes < sizeof(int16_t) * context->common.frameInfo.nrof_subbands * 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/apps/Traceur/src/com/android/traceur/ |
D | Receiver.java | 63 public void onReceive(Context context, Intent intent) { in onReceive() argument 64 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() 70 registerUserSwitchReceiver(context, this); in onReceive() 71 createNotificationChannels(context); in onReceive() 72 updateDeveloperOptionsWatcher(context, /* fromBootIntent */ true); in onReceive() 75 updateTracing(context, /* assumeTracingIsOff= */ true); in onReceive() 78 boolean traceurAllowed = isTraceurAllowed(context); in onReceive() 79 updateStorageProvider(context, traceurAllowed); in onReceive() 83 removeQuickSettingsTiles(context); in onReceive() 90 context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() [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/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/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/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/ |
D | ConsentNotificationTrigger.java | 93 @NonNull Context context, in showConsentNotificationV2() 100 NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context); in showConsentNotificationV2() 104 recordNotificationDisplayed(context, true, consentManager); in showConsentNotificationV2() 112 OTAResourcesManager.applyOTAResources(context.getApplicationContext(), true); in showConsentNotificationV2() 115 createNotificationChannel(context); in showConsentNotificationV2() 118 context, in showConsentNotificationV2() 125 sendNotificationBroadcastIntent(context); in showConsentNotificationV2() 128 recordNotificationDisplayed(context, true, consentManager); in showConsentNotificationV2() 135 @NonNull Context context, in getConsentNotificationV2() 140 Intent intent = getNotificationV2Intent(context); in getConsentNotificationV2() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/ |
D | MigrationStateManager.java | 103 public void shutDownCurrentUser(Context context) { in shutDownCurrentUser() argument 105 MigrationStateChangeJob.cancelAllJobs(context); in shutDownCurrentUser() 128 public void setMinDataMigrationSdkExtensionVersion(Context context, int minVersion) { in setMinDataMigrationSdkExtensionVersion() argument 131 updateMigrationState(context, MIGRATION_STATE_ALLOWED); in setMinDataMigrationSdkExtensionVersion() 136 updateMigrationState(context, MIGRATION_STATE_MODULE_UPGRADE_REQUIRED); in setMinDataMigrationSdkExtensionVersion() 157 public void switchToSetupForUser(Context context) { in switchToSetupForUser() argument 159 resetMigrationStateIfNeeded(context); in switchToSetupForUser() 160 MigrationStateChangeJob.cancelAllJobs(context); in switchToSetupForUser() 161 reconcilePackageChangesWithStates(context); in switchToSetupForUser() 162 reconcileStateChangeJob(context); in switchToSetupForUser() [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/Permission/PermissionController/wear-permission-components/src/wear.permission.components/theme/ |
D | WearPermissionTonalPalette.kt | 119 internal fun dynamicTonalPalette(context: Context) = in dynamicTonalPalette() 122 neutral100 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_0), in dynamicTonalPalette() 123 neutral99 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_10), in dynamicTonalPalette() 124 neutral95 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_50), in dynamicTonalPalette() 125 neutral90 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_100), in dynamicTonalPalette() 126 neutral80 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_200), in dynamicTonalPalette() 127 neutral70 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_300), in dynamicTonalPalette() 128 neutral60 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_400), in dynamicTonalPalette() 129 neutral50 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_500), in dynamicTonalPalette() 130 neutral40 = ColorResourceHelper.getColor(context, android.R.color.system_neutral1_600), in dynamicTonalPalette() [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 …]
|