Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 102) sorted by relevance

12345

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java151 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels()
152 addChannel(scanSettings.channels[j].frequency); in addChannels()
173 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels()
174 addChannel(bucketSettings.channels[j].frequency); in addChannels()
186 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings()
187 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings()
202 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings()
203 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings()
219 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings()
220 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings()
[all …]
DKnownBandsChannelHelper.java118 WifiScanner.ChannelSpec[] channelSpec, int[] channels) { in copyChannels() argument
119 for (int i = 0; i < channels.length; i++) { in copyChannels()
120 channelSpec[i] = new WifiScanner.ChannelSpec(channels[i]); in copyChannels()
165 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
167 WifiScanner.ChannelSpec[][] channels = getAvailableScanChannels(settings.band); in estimateScanDuration() local
169 for (int i = 0; i < channels.length; ++i) { in estimateScanDuration()
170 len += channels[i].length; in estimateScanDuration()
228 settingsChannels = settings.channels; in settingsContainChannel()
423 bucketSettings.channels = null; in fillBucketSettings()
427 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java61 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() argument
65 request.channels = channels; in createRequest()
93 request.channels = null; in createRequest()
175 int period, int reportEvents, WifiScanner.ChannelSpec... channels) { in addBucketWithChannels() argument
176 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels()
177 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels()
178 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels()
184 int period, int reportEvents, int... channels) { in addBucketWithChannels() argument
188 bucket.num_channels = channels.length; in addBucketWithChannels()
189 bucket.channels = channelsToNativeSettings(channels); in addBucketWithChannels()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItem.java128 List<Channel> channels = new ArrayList<>(); in fromCursor() local
145 channels.add(channel); in fromCursor()
150 channels.add(channel.toBuilder().setTechnology(Channel.IMS_VIDEO).build()); in fromCursor()
155 builder.setChannels(ImmutableList.copyOf(channels)); in fromCursor()
212 if (channels().size() == 1) { in getDefaultVideoChannel()
230 for (int i = 0; i < channels().size() - 1; i++) { in getDefaultVideoChannel()
232 if (Objects.equals(defaultChannel(), channels().get(i))) { in getDefaultVideoChannel()
235 Channel channel = channels().get(i + 1); in getDefaultVideoChannel()
252 if (channels().size() == 1) { in getDefaultVoiceChannel()
255 return channels().get(0); in getDefaultVoiceChannel()
[all …]
DSpeedDialUiItemMutator.java449 if (item.channels().contains(defaultChannel) in getSpeedDialUiItemsFromEntries()
450 || isValidDuoDefaultChannel(item.channels(), defaultChannel)) { in getSpeedDialUiItemsFromEntries()
480 ImmutableList<Channel> channels, Channel defaultChannel) { in isValidDuoDefaultChannel() argument
485 for (Channel channel : channels) { in isValidDuoDefaultChannel()
659 Channel previousChannel = item.channels().get(0); in insertDuoChannelsToStarredContact()
662 for (int i = 1; i < item.channels().size(); i++) { in insertDuoChannelsToStarredContact()
663 Channel currentChannel = item.channels().get(i); in insertDuoChannelsToStarredContact()
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java116 Collections.sort(data.channels, mChannelComparator);
141 Collections.sort(data.channels, mChannelComparator);
274 return mData.channels.size(); in getChannelCount()
279 return new ArrayList<>(mData.channels); in getChannelList()
284 List<Channel> channels = new ArrayList<>(); in getBrowsableChannelList() local
285 for (Channel channel : mData.channels) { in getBrowsableChannelList()
287 channels.add(channel); in getBrowsableChannelList()
290 return channels; in getBrowsableChannelList()
317 for (Channel channel : mData.channels) { in areAllChannelsHidden()
493 data.channels.add(channel); in addChannel()
[all …]
DLineup.java49 return channels; in getChannels()
60 private final List<String> channels; field in Lineup
103 public Lineup(String id, int type, String name, String location, List<String> channels) { in Lineup() argument
108 this.channels = Collections.unmodifiableList(channels); in Lineup()
DChannelLogoFetcher.java60 public static void startFetchingChannelLogos(Context context, List<Channel> channels) { in startFetchingChannelLogos() argument
70 if (channels == null || channels.isEmpty()) { in startFetchingChannelLogos()
73 sFetchTask = new FetchLogoTask(context.getApplicationContext(), channels); in startFetchingChannelLogos()
83 private FetchLogoTask(Context context, List<Channel> channels) { in FetchLogoTask() argument
85 mChannels = channels; in FetchLogoTask()
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DChannelScanFragment.java174 List<Channel> channels = new ArrayList<>(); in scanChannel() local
175 channels.add(createFakeChannel("KQED", "9.1", 1)); in scanChannel()
176 channels.add(createFakeChannel("BBC", "2-2", 2)); in scanChannel()
177 channels.add(createFakeChannel("What\'s on", "1.1", 3)); in scanChannel()
178 channels.add(createFakeChannel("FOX", "7.1", 4)); in scanChannel()
179 channels.add(createFakeChannel("Play Movie", "1.1", 5)); in scanChannel()
180 channels.add(createFakeChannel("PBS", "9.2", 6)); in scanChannel()
181 channels.add(createFakeChannel("ApiTestChannel", "A.1", 7)); in scanChannel()
182 updateChannels(channels); in scanChannel()
184 return channels; in scanChannel()
[all …]
/packages/modules/NeuralNetworks/common/operations/
DResizeImageOps.cpp73 const int channels = getSizeOfDimension(inputShape, 3); in resizeNearestNeighbor() local
98 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
99 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
100 channels, in resizeNearestNeighbor()
101 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
102 y * outWidth * channels + x * channels); in resizeNearestNeighbor()
244 uint32_t channels = getSizeOfDimension(input, useNchw ? 1 : 3); in prepare() local
247 NN_RET_CHECK_GT(channels, 0); in prepare()
274 output.dimensions = {batches, channels, (uint32_t)height, (uint32_t)width}; in prepare()
276 output.dimensions = {batches, (uint32_t)height, (uint32_t)width, channels}; in prepare()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java324 @Nullable String passphrase, boolean hiddenSsid, @NonNull SparseIntArray channels, in SoftApConfiguration() argument
334 if (channels.size() != 0) { in SoftApConfiguration()
335 mChannels = channels.clone(); in SoftApConfiguration()
1116 SparseIntArray channels = new SparseIntArray(bands.length); in setBands() local
1121 channels.put(val, 0); in setBands()
1123 mChannels = channels; in setBands()
1215 public Builder setChannels(@NonNull SparseIntArray channels) { in setChannels() argument
1219 if (channels.size() == 0 || channels.size() > 2) { in setChannels()
1221 + channels.size() + ") configured"); in setChannels()
1223 for (int i = 0; i < channels.size(); i++) { in setChannels()
[all …]
DWifiScanner.java258 List<Integer> channels = bundle.getIntegerArrayList(GET_AVAILABLE_CHANNELS_EXTRA); in getAvailableChannels() local
259 return channels == null ? new ArrayList<>() : channels; in getAvailableChannels()
369 public ChannelSpec[] channels; field in WifiScanner.ScanSettings
556 if (channels != null) { in writeToParcel()
557 dest.writeInt(channels.length); in writeToParcel()
558 for (int i = 0; i < channels.length; i++) { in writeToParcel()
559 dest.writeInt(channels[i].frequency); in writeToParcel()
560 dest.writeInt(channels[i].dwellTimeMS); in writeToParcel()
561 dest.writeInt(channels[i].passive ? 1 : 0); in writeToParcel()
591 settings.channels = new ChannelSpec[num_channels];
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java287 List<Channel> channels = recommendChannels(); in showRecommendation() local
288 for (Channel c : channels) { in showRecommendation()
303 for (Channel c : channels) { in showRecommendation()
318 List<Channel> channels = recommendChannels(); in changeRecommendation() local
323 for (Channel c : channels) { in changeRecommendation()
334 List channels = mRecommender.recommendChannels(); in recommendChannels() local
335 if (channels.contains(mPlayingChannel)) { in recommendChannels()
336 channels = new ArrayList<>(channels); in recommendChannels()
337 channels.remove(mPlayingChannel); in recommendChannels()
339 return channels; in recommendChannels()
DRecommender.java191 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded() local
193 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordLoaded()
208 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged() local
210 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordChanged()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java104 SparseIntArray channels = config.getChannels(); in retrieveBackupDataFromSoftApConfiguration() local
105 int numOfChannels = channels.size(); in retrieveBackupDataFromSoftApConfiguration()
108 out.writeInt(channels.keyAt(i)); in retrieveBackupDataFromSoftApConfiguration()
109 out.writeInt(channels.valueAt(i)); in retrieveBackupDataFromSoftApConfiguration()
200 SparseIntArray channels = new SparseIntArray(numOfChannels); in retrieveSoftApConfigurationFromBackupData() local
202 channels.put(in.readInt(), in.readInt()); in retrieveSoftApConfigurationFromBackupData()
204 configBuilder.setChannels(channels); in retrieveSoftApConfigurationFromBackupData()
DHostapdHal.java957 String[] channels = channelRange.split("-"); in toAcsChannelRanges() local
958 if (channels.length != 2) { in toAcsChannelRanges()
959 Log.e(TAG, "Unrecognized channel range, length is " + channels.length); in toAcsChannelRanges()
962 int start = Integer.parseInt(channels[0].trim()); in toAcsChannelRanges()
963 int end = Integer.parseInt(channels[1].trim()); in toAcsChannelRanges()
1053 String[] channels = channelRange.split("-"); in toAcsFreqRanges() local
1054 if (channels.length != 2) { in toAcsFreqRanges()
1055 Log.e(TAG, "Unrecognized channel range, length is " + channels.length); in toAcsFreqRanges()
1058 int start = Integer.parseInt(channels[0].trim()); in toAcsFreqRanges()
1059 int end = Integer.parseInt(channels[1].trim()); in toAcsFreqRanges()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineup.java56 public static Lineup createLineup(String id, int type, String name, List<String> channels) { in createLineup() argument
58 id, type, name, Collections.unmodifiableList(new ArrayList<>(channels))); in createLineup()
65 String channels = contentValues.getAsString(EpgContract.Lineups.COLUMN_CHANNELS); in createLineup() local
66 List<String> channelList = EpgContract.toChannelList(channels); in createLineup()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java177 HashSet<Channel> channels = new HashSet<>(); in getExistingChannelsForMyPackage() local
198 channels.add(channel); in getExistingChannelsForMyPackage()
204 Log.d(TAG, "Found " + channels.size() + " channels for package " + myPackageName); in getExistingChannelsForMyPackage()
205 return channels; in getExistingChannelsForMyPackage()
567 Set<Channel> channels = getExistingChannelsFor(epgInput.getInputId()); in doInBackground() local
568 Integer result = fetchEpgFor(epgInput.getLineupId(), channels); in doInBackground()
666 final Set<EpgReader.EpgChannel> channels = in fetchEpgFor() local
672 if (channels.isEmpty()) { in fetchEpgFor()
676 EpgFetchHelper.updateNetworkAffiliation(mContext, channels); in fetchEpgFor()
679 batchFetchEpg(channels, getFastFetchDurationSec()); in fetchEpgFor()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DDisambigDialog.java62 @VisibleForTesting public List<Channel> channels; field in DisambigDialog
70 dialog.channels = speedDialUiItem.channels(); in show()
82 insertOptions(container.findViewById(R.id.communication_avenue_container), channels); in onCreateDialog() local
113 private void insertOptions(LinearLayout container, List<Channel> channels) { in insertOptions() argument
114 for (Channel channel : channels) { in insertOptions()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java68 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels() argument
83 for (ChannelInfo channel : channels) { in updateChannels()
155 List<ChannelInfo> channels = new ArrayList<>(); in createChannelInfos() local
157 channels.add(ChannelInfo.create(context, i)); in createChannelInfos()
159 return channels; in createChannelInfos()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCustomizeChannelListFragment.java189 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupBySource() local
190 Collections.sort(channels, mChannelComparator); in addItemForGroupBySource()
193 for (Channel channel : channels) { in addItemForGroupBySource()
212 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupByHdSd() local
214 channels, in addItemForGroupByHdSd()
227 for (Channel channel : channels) { in addItemForGroupByHdSd()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java129 WifiScanner.ChannelSpec[][] channels = in testBand() local
132 for (int i = 0; i < channels.length; ++i) { in testBand()
133 len += channels[i].length; in testBand()
137 for (int i = 0; i < channels.length; ++i) { in testBand()
138 for (int j = 0; j < channels[i].length; ++j) { in testBand()
140 expectedChannels[index++], channels[i][j].frequency); in testBand()
/packages/modules/NeuralNetworks/common/
DOperationsUtils.cpp427 uint32_t channels = getSizeOfDimension(input, 3); in depthToSpacePrepare() local
429 NN_OPS_CHECK(channels % (blockSize * blockSize) == 0); in depthToSpacePrepare()
432 channels / (blockSize * blockSize)}; in depthToSpacePrepare()
446 uint32_t channels = getSizeOfDimension(input, 3); in spaceToDepthPrepare() local
453 channels * (blockSize * blockSize)}; in spaceToDepthPrepare()
541 uint32_t channels = getSizeOfDimension(input, 3); in batchToSpacePrepare() local
546 height * blockSizeData[0], width * blockSizeData[1], channels}; in batchToSpacePrepare()
574 uint32_t channels = getSizeOfDimension(input, 3); in spaceToBatchPrepare() local
585 channels}; in spaceToBatchPrepare()
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java322 private void updateChannelData(List<Channel> channels) { in updateChannelData() argument
324 mChannels.addAll(channels); in updateChannelData()
328 for (int i = 0; i < channels.size(); ++i) { in updateChannelData()
329 Channel channel = channels.get(i); in updateChannelData()
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java111 List<Channel> channels = new ArrayList<>(); in buildChannelForTesting() local
113 channels.add(new ChannelImpl.Builder().setId(id).build()); in buildChannelForTesting()
115 return channels; in buildChannelForTesting()

12345