Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java340 private void mockNotificationBackend(int channelCount, int notificationCount, boolean banned, in mockNotificationBackend() argument
342 final List<NotificationChannel> channels = buildNotificationChannel(channelCount, in mockNotificationBackend()
344 final AppRow appRow = buildAppRow(channelCount, notificationCount, banned); in mockNotificationBackend()
350 doReturn(channelCount).when(mNotificationBackend).getChannelCount( in mockNotificationBackend()
354 private AppRow buildAppRow(int channelCount, int sentCount, boolean banned) { in buildAppRow() argument
359 appRow.channelCount = channelCount; in buildAppRow()
362 appRow.sentByChannel = buildNotificationSentStates(channelCount, sentCount); in buildAppRow()
367 private List<NotificationChannel> buildNotificationChannel(int channelCount, in buildNotificationChannel() argument
370 for (int i = 0; i < channelCount; i++) { in buildNotificationChannel()
388 private Map<String, NotificationsSentState> buildNotificationSentStates(int channelCount, in buildNotificationSentStates() argument
[all …]
/packages/apps/TV/tests/input/src/com/android/tv/testinput/instrument/
DTestSetupInstrumentation.java94 int channelCount; in setup() local
97 channelCount = in setup()
101 channelCount = in setup()
105 channelCount = in setup()
112 TestTvInputSetupActivity.registerChannels(getContext(), mInputId, channelCount); in setup() local
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputSetupActivity.java49 private void registerChannels(int channelCount) { in registerChannels() argument
51 registerChannels(context, mInputId, channelCount); in registerChannels()
54 public static void registerChannels(Context context, String inputId, int channelCount) { in registerChannels() argument
55 Log.i(TAG, "Registering " + channelCount + " channels"); in registerChannels()
56 List<ChannelInfo> channels = ChannelUtils.createChannelInfos(context, channelCount); in registerChannels()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackWrapper.java117 int channelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in reconfigure() local
126 if (MediaFormat.MIMETYPE_AUDIO_AC3.equalsIgnoreCase(mimeType) && channelCount != 2) { in reconfigure()
131 channelCount = 2; in reconfigure()
135 channelCount in reconfigure()
140 mAudioTrack.configure(mimeType, channelCount, sampleRate, pcmEncoding, audioBufferSize); in reconfigure()
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java51 final String id, final String language, final int channelCount) { in createComparator() argument
71 || lhs.getAudioChannelCount() == channelCount; in createComparator()
74 || rhs.getAudioChannelCount() == channelCount; in createComparator()
96 List<TvTrackInfo> tracks, String id, String language, int channelCount) {
100 Comparator<TvTrackInfo> comparator = createComparator(id, language, channelCount);
DTvSettings.java104 public static void setMultiAudioChannelCount(Context context, int channelCount) { in setMultiAudioChannelCount() argument
107 .putInt(PREF_MULTI_AUDIO_CHANNEL_COUNT, channelCount) in setMultiAudioChannelCount()
146 int channelCount; in getDvrPlaybackTrackSettings() local
154 channelCount = pref.getInt(PREF_DVR_MULTI_AUDIO_CHANNEL_COUNT, 0); in getDvrPlaybackTrackSettings()
157 .setAudioChannelCount(channelCount) in getDvrPlaybackTrackSettings()
DUtils.java570 public static String getAudioChannelString(Context context, int channelCount) { in getAudioChannelString() argument
571 switch (channelCount) { in getAudioChannelString()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java311 final int channelCount = mNotificationBackend.getChannelCount(packageInfo.packageName, in getMultiChannelPackages() local
313 if (channelCount > 1) { in getMultiChannelPackages()
417 final int channelCount = mNotificationBackend.getChannelCount(packageName, uid); in getSubTitle() local
419 if (channelCount > DEFAULT_EXPANDED_ROW_COUNT) { in getSubTitle()
421 R.string.notification_many_channel_count_summary, channelCount); in getSubTitle()
425 R.plurals.notification_few_channel_count_summary, channelCount, channelCount); in getSubTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java135 appRow.channelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
146 appRow.channelCount = 60; in getNotificationSummary_appNotBlocked()
163 appRow.channelCount = 10; in getNotificationSummary_channelsNotBlocked()
177 appRow.channelCount = 0; in getNotificationSummary_noChannels()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java299 int channelCount = mChannelDataManager.getChannelCountForInput(inputId); in createActionsInternal() local
300 if (mSetupUtils.isSetupDone(inputId) || channelCount > 0) { in createActionsInternal()
301 if (channelCount == 0) { in createActionsInternal()
308 channelCount, in createActionsInternal()
309 channelCount); in createActionsInternal()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java424 final int channelCount = mNotificationBackend.getChannelCount(packageName, uid); in getSubTitle() local
426 if (channelCount > DEFAULT_EXPANDED_ROW_COUNT) { in getSubTitle()
428 R.string.notification_many_channel_count_summary, channelCount); in getSubTitle()
432 R.plurals.notification_few_channel_count_summary, channelCount, channelCount); in getSubTitle()
DNotificationMultiChannelAppRow.java46 final int channelCount = mNotificationBackend.getChannelCount( in call() local
48 if (channelCount > 1) { in call()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DStackEvent.java77 int channelCount) { in audioConfigChanged() argument
81 event.mChannelCount = channelCount; in audioConfigChanged()
DA2dpSinkService.java422 private void onAudioConfigChanged(byte[] address, int sampleRate, int channelCount) { in onAudioConfigChanged() argument
424 channelCount); in onAudioConfigChanged()
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java65 public static synchronized void setScannedChannelCount(Context context, int channelCount) { in setScannedChannelCount() argument
69 .putInt(TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT, channelCount) in setScannedChannelCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppNotificationPreferenceController.java87 } else if (appRow.channelCount == 0) { in getNotificationSummary()
89 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceController.java87 } else if (appRow.channelCount == 0) { in getNotificationSummary()
89 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary()
/packages/apps/TV/tuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java39 int channelCount = in createMediaFormat() local
69 channelCount, in createMediaFormat()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java154 public static List<ChannelInfo> createChannelInfos(Context context, int channelCount) { in createChannelInfos() argument
156 for (int i = 1; i <= channelCount; i++) { in createChannelInfos()
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java662 int channelCount = mChannelDataManager.getChannelCount(); in getFetchDuration() local
665 if (channelCount <= targetChannelCount) { in getFetchDuration()
669 durationHours = knobsMaxHours * targetChannelCount / channelCount; in getFetchDuration()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java77 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow()
478 public int channelCount; field in NotificationBackend.AppRow
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java79 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow()
496 public int channelCount; field in NotificationBackend.AppRow
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java265 format.channelCount, in convertFormat()
/packages/apps/TV/src/com/android/tv/
DMainActivity.java1927 int channelCount = TvSettings.getMultiAudioChannelCount(this);
1928 bestTrack = TvTrackInfoUtils.getBestTrackInfo(tracks, id, language, channelCount);
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java1583 builder.setAudioChannelCount(infoFromPlayer.channelCount); in notifyAudioTracksUpdated()

12