Home
last modified time | relevance | path

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

123456

/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 …]
/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/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/modules/NeuralNetworks/common/cpu_operations/
DResizeImageOps.cpp66 const int channels = getSizeOfDimension(inputShape, 3); in resizeNearestNeighbor() local
91 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
92 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
93 channels, in resizeNearestNeighbor()
94 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
95 y * outWidth * channels + x * channels); in resizeNearestNeighbor()
183 uint32_t channels = getSizeOfDimension(input, useNchw ? 1 : 3); in prepare() local
186 NN_RET_CHECK_GT(channels, 0u); in prepare()
213 output.dimensions = {batches, channels, (uint32_t)height, (uint32_t)width}; in prepare()
215 output.dimensions = {batches, (uint32_t)height, (uint32_t)width, channels}; in prepare()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java447 @Nullable String passphrase, boolean hiddenSsid, @NonNull SparseIntArray channels, in SoftApConfiguration() argument
463 if (channels.size() != 0) { in SoftApConfiguration()
464 mChannels = channels.clone(); in SoftApConfiguration()
1597 SparseIntArray channels = new SparseIntArray(bands.length); in setBands() local
1602 channels.put(val, 0); in setBands()
1604 mChannels = channels; in setBands()
1696 public Builder setChannels(@NonNull SparseIntArray channels) { in setChannels() argument
1700 if (channels.size() == 0 || channels.size() > 2) { in setChannels()
1702 + channels.size() + ") configured"); in setChannels()
1704 for (int i = 0; i < channels.size(); i++) { in setChannels()
[all …]
DWifiScanner.java261 List<Integer> channels = bundle.getIntegerArrayList(GET_AVAILABLE_CHANNELS_EXTRA); in getAvailableChannels() local
262 return channels == null ? new ArrayList<>() : channels; in getAvailableChannels()
377 public ChannelSpec[] channels; field in WifiScanner.ScanSettings
564 if (channels != null) { in writeToParcel()
565 dest.writeInt(channels.length); in writeToParcel()
566 for (int i = 0; i < channels.length; i++) { in writeToParcel()
567 dest.writeInt(channels[i].frequency); in writeToParcel()
568 dest.writeInt(channels[i].dwellTimeMS); in writeToParcel()
569 dest.writeInt(channels[i].passive ? 1 : 0); in writeToParcel()
599 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()
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DFiraDecoder.java181 List<Integer> channels = new ArrayList<>(); in getFiraSpecificationParamsFromTlvBuffer() local
183 channels.add(5); in getFiraSpecificationParamsFromTlvBuffer()
186 channels.add(6); in getFiraSpecificationParamsFromTlvBuffer()
189 channels.add(8); in getFiraSpecificationParamsFromTlvBuffer()
192 channels.add(9); in getFiraSpecificationParamsFromTlvBuffer()
195 channels.add(10); in getFiraSpecificationParamsFromTlvBuffer()
198 channels.add(12); in getFiraSpecificationParamsFromTlvBuffer()
201 channels.add(13); in getFiraSpecificationParamsFromTlvBuffer()
204 channels.add(14); in getFiraSpecificationParamsFromTlvBuffer()
206 builder.setSupportedChannels(channels); in getFiraSpecificationParamsFromTlvBuffer()
/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/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java131 SparseIntArray channels = config.getChannels(); in retrieveBackupDataFromSoftApConfiguration() local
132 int numOfChannels = channels.size(); in retrieveBackupDataFromSoftApConfiguration()
135 out.writeInt(channels.keyAt(i)); in retrieveBackupDataFromSoftApConfiguration()
136 out.writeInt(channels.valueAt(i)); in retrieveBackupDataFromSoftApConfiguration()
247 SparseIntArray channels = new SparseIntArray(numOfChannels); in retrieveSoftApConfigurationFromBackupData() local
249 channels.put(in.readInt(), in.readInt()); in retrieveSoftApConfigurationFromBackupData()
251 configBuilder.setChannels(channels); in retrieveSoftApConfigurationFromBackupData()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastSubgroup.java45 List<BluetoothLeBroadcastChannel> channels) { in BluetoothLeBroadcastSubgroup() argument
49 mChannels = channels; in BluetoothLeBroadcastSubgroup()
174 List<BluetoothLeBroadcastChannel> channels = new ArrayList<>();
175 in.readTypedList(channels, BluetoothLeBroadcastChannel.CREATOR);
176 for (BluetoothLeBroadcastChannel channel : channels) {
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java322 String[] channels = channelRange.split("-"); in convertStringToChannelList() local
323 if (channels.length != 2) { in convertStringToChannelList()
324 Log.e(TAG, "Unrecognized channel range, Length is " + channels.length); in convertStringToChannelList()
327 int start = Integer.parseInt(channels[0].trim()); in convertStringToChannelList()
328 int end = Integer.parseInt(channels[1].trim()); in convertStringToChannelList()
686 SparseIntArray channels = config.getChannels(); in remove6gBandForUnsupportedSecurity() local
687 SparseIntArray newChannels = new SparseIntArray(channels.size()); in remove6gBandForUnsupportedSecurity()
689 for (int i = 0; i < channels.size(); i++) { in remove6gBandForUnsupportedSecurity()
690 int band = channels.keyAt(i); in remove6gBandForUnsupportedSecurity()
696 newChannels.put(band, channels.valueAt(i)); in remove6gBandForUnsupportedSecurity()
[all …]
/packages/modules/Bluetooth/system/embdrv/lc3/tools/
Dwave.c67 uint16_t channels; member
117 *samplesize = format.framesize / format.channels; in wave_read_header()
119 *nchannels = format.channels; in wave_read_header()
157 .channels = nchannels, in wave_write_header()
Dlc3bin.c34 uint16_t channels; member
54 *nchannels = hdr.channels; in lc3bin_read_header()
91 .channels = nchannels, in lc3bin_write_header()
/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/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/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/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DBroadcastScanActivity.java130 List<BluetoothLeBroadcastChannel> channels = subGroup.getChannels(); in onCreate()
131 for (int i = 0; i < channels.size(); i++) { in onCreate()
132 BluetoothLeBroadcastChannel channel = channels.get(i); in onCreate()
139 channels.set(i, bob.build()); in onCreate()
/packages/modules/NeuralNetworks/common/
DOperationsExecutionUtils.cpp336 uint32_t channels = getSizeOfDimension(input, 3); in depthToSpacePrepare() local
338 NN_OPS_CHECK(channels % (blockSize * blockSize) == 0); in depthToSpacePrepare()
341 channels / (blockSize * blockSize)}; in depthToSpacePrepare()
355 uint32_t channels = getSizeOfDimension(input, 3); in spaceToDepthPrepare() local
362 channels * (blockSize * blockSize)}; in spaceToDepthPrepare()
450 uint32_t channels = getSizeOfDimension(input, 3); in batchToSpacePrepare() local
455 height * blockSizeData[0], width * blockSizeData[1], channels}; in batchToSpacePrepare()
483 uint32_t channels = getSizeOfDimension(input, 3); in spaceToBatchPrepare() local
494 channels}; in spaceToBatchPrepare()

123456