Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigService.java383 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig()
384 boolean enable = range.mAlwaysOn || enablePresidential; in getCellBroadcastChannelsConfig()
387 new CbConfig(range.mStartId, range.mEndId, range.mRanType, enable)); in getCellBroadcastChannelsConfig()
394 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig()
395 boolean enable = range.mAlwaysOn || enableCmasExtremeAlerts; in getCellBroadcastChannelsConfig()
398 new CbConfig(range.mStartId, range.mEndId, range.mRanType, enable)); in getCellBroadcastChannelsConfig()
405 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig()
406 boolean enable = range.mAlwaysOn || enableCmasSevereAlerts; in getCellBroadcastChannelsConfig()
409 new CbConfig(range.mStartId, range.mEndId, range.mRanType, enable)); in getCellBroadcastChannelsConfig()
416 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig()
[all …]
DCellBroadcastAlertService.java290 CellBroadcastChannelRange range = channelManager in shouldDisplayMessage() local
295 if (range != null && range.mAlertType == AlertType.AREA in shouldDisplayMessage()
302 if (range != null && range.mFilterLanguage) { in shouldDisplayMessage()
345 if (range != null && range.mTestMode && !CellBroadcastReceiver.isTestingMode(mContext)) { in shouldDisplayMessage()
407 CellBroadcastChannelRange range = channelManager in handleCellBroadcastIntent() local
414 if (range != null && range.mDisplay == true) { in handleCellBroadcastIntent()
436 || (range != null && range.mWriteToSmsInbox)) { in handleCellBroadcastIntent()
490 CellBroadcastChannelRange range = channelManager in showNewAlert() local
500 || (range != null && range.mDisplayDialogWithNotification)) { in showNewAlert()
543 CellBroadcastChannelRange range = channelManager.getCellBroadcastChannelRange(channel); in isChannelEnabled() local
[all …]
/packages/modules/Virtualization/vmbase/src/memory/
Dshared.rs56 fn get_va_range(range: &MemoryRange) -> VaRange { in get_va_range()
57 VaRange::new(range.start, range.end) in get_va_range()
71 range: MemoryRange, field
127 pub fn shrink(&mut self, range: &MemoryRange) -> Result<()> { in shrink()
128 if range.start != self.total.start { in shrink()
131 if self.total.end < range.end { in shrink()
134 if !self.regions.iter().all(|r| r.range.is_within(range)) { in shrink()
138 self.total = range.clone(); in shrink()
143 pub fn alloc_range(&mut self, range: &MemoryRange) -> Result<MemoryRange> { in alloc_range()
144 let region = MemoryRegion { range: range.clone(), mem_type: MemoryType::ReadOnly }; in alloc_range()
[all …]
Dpage_table.rs93 pub fn map_device_lazy(&mut self, range: &MemoryRegion) -> Result<()> { in map_device_lazy()
94 self.idmap.map_range(range, DEVICE_LAZY) in map_device_lazy()
99 pub fn map_device(&mut self, range: &MemoryRegion) -> Result<()> { in map_device()
100 self.idmap.map_range(range, DEVICE) in map_device()
105 pub fn map_data(&mut self, range: &MemoryRegion) -> Result<()> { in map_data()
106 self.idmap.map_range(range, DATA) in map_data()
111 pub fn map_data_dbm(&mut self, range: &MemoryRegion) -> Result<()> { in map_data_dbm()
117 range, in map_data_dbm()
125 pub fn map_code(&mut self, range: &MemoryRegion) -> Result<()> { in map_code()
126 self.idmap.map_range(range, CODE) in map_code()
[all …]
/packages/modules/NeuralNetworks/runtime/test/specs/AIDL_V3/
Dreverse.mod.py37 return range(hi, lo, -1)
53 input_data = list(range(24)),
54 output_data = list(chain(range(12,24), range(0,12))),
62 input_data = list(range(24)),
63 output_data = list(chain(range(8,12), range(4,8), range(0,4),
64 range(20,24), range(16,20), range(12,16))),
72 input_data = list(range(24)),
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRule.java92 boolean skip = !requiredRange.range.isInRange(deviceLevel); in apply()
99 + requiredRange.range in apply()
126 ranges.add(testRange.range);
133 ranges.add(testClassRange.range);
204 RequiresSdkRange range = (RequiresSdkRange) annotation;
205 ranges.add(Range.forRange(range.atLeast(), range.atMost()));
249 public final Range range;
252 RequiredRange(Range range, @Nullable String... reasons) {
256 range,
262 RequiredRange(Range range, List<String> reasons) {
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DUidRange.java148 for (UidRange range : ranges) { in containsUid()
149 if (range.contains(uid)) { in containsUid()
164 for (Range<Integer> range : ranges) { in fromIntRanges()
165 uids.add(new UidRange(range.getLower(), range.getUpper())); in fromIntRanges()
178 for (UidRange range : ranges) { in toIntRanges()
179 uids.add(new Range<Integer>(range.start, range.stop)); in toIntRanges()
195 for (UidRange range : uids1) { in hasSameUids()
196 if (!remainingUids.contains(range)) { in hasSameUids()
199 remainingUids.remove(range); in hasSameUids()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DIsoInterface.java100 public long[] range; field in IsoInterface.Box
106 public Box(int type, long[] range) { in Box() argument
108 this.range = range; in Box()
215 box.range = new long[] {box.range[0], headerSize, in parseNextBox()
216 box.range[0] + headerSize, box.range[1] - headerSize}; in parseNextBox()
302 for (int i = 0; i < box.range.length; i += 2) { in getBoxRanges()
303 res.add(box.range[i] + box.headerSize); in getBoxRanges()
304 res.add(box.range[i] + box.range[i + 1]); in getBoxRanges()
315 for (int i = 0; i < box.range.length; i += 2) { in getBoxRanges()
316 res.add(box.range[i] + box.headerSize); in getBoxRanges()
[all …]
/packages/modules/StatsD/statsd/benchmark/
Dstring_transform_benchmark.cpp45 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingCharacters()
46 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingCharacters()
58 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbers()
59 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbers()
71 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbersCppRegex()
72 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCppRegex()
83 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbersCRegex()
84 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCRegex()
/packages/modules/Virtualization/pvmfw/src/
Dconfig.rs70 Self::EntryOutOfBounds(entry, range, limits) => { in fmt()
253 let Some(range) = NonEmptyRange::new(entry_offset, entry_size) else { continue }; in new()
254 let range = range.as_range(); in new() localVariable
255 if !range.is_within(&limits) { in new()
256 return Err(Error::EntryOutOfBounds(entry, range, limits)); in new()
259 if last_end > range.start { in new()
262 last_end = range.end; in new()
284 for (i, range) in self.ranges.iter().enumerate() { in get_entries()
285 if let Some(range) = range { in get_entries()
286 body = &mut body[range.start - offset..]; in get_entries()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/autodelete/
DAutoDeleteRange.kt39 AutoDeleteRange.values().forEach { range -> in fromNumberOfMonths() method
40 if (range.numberOfMonths == numberOfMonths) { in fromNumberOfMonths()
41 return range in fromNumberOfMonths()
56 fun autoDeleteRangeEnd(timeSource: TimeSource, range: AutoDeleteRange): Instant { in autoDeleteRangeEnd()
58 when (range) { in autoDeleteRangeEnd()
62 localDateTimeNow.minusMonths(range.numberOfMonths.toLong()) in autoDeleteRangeEnd()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dconcat_float_3.mod.py32 input1_values = [x for x in range(row * col1)]
33 input2_values = [-x for x in range(row * col2)]
37 output_values = [x for x in range(row * output_col)]
38 for r in range(row):
39 for c1 in range(col1):
41 for c2 in range(col2):
Dconcat_quant8_3.mod.py32 input1_values = [(x % 128 + 128) for x in range(row * col1)]
33 input2_values = [x % 128 for x in range(row * col2)]
37 output_values = [x for x in range(row * output_col)]
38 for r in range(row):
39 for c1 in range(col1):
41 for c2 in range(col2):
Dembedding_lookup.mod.py22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
24 for j in range(columns):
25 for k in range(features):
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dconcat_float16_3.mod.py32 input1_values = [x for x in range(row * col1)]
33 input2_values = [-x for x in range(row * col2)]
37 output_values = [x for x in range(row * output_col)]
38 for r in range(row):
39 for c1 in range(col1):
41 for c2 in range(col2):
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dconcat_float_3_relaxed.mod.py33 input1_values = [x for x in range(row * col1)]
34 input2_values = [-x for x in range(row * col2)]
38 output_values = [x for x in range(row * output_col)]
39 for r in range(row):
40 for c1 in range(col1):
42 for c2 in range(col2):
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dconcat_quant8_signed.mod.py91 input1_values = [x % 256 for x in range(row1 * col)]
93 [(x + s1) % 256 for x in range(s2)])()
96 output_values = [x % 256 - 128 for x in range(output_row * col)]
118 input1_values = [(x % 128) for x in range(row * col1)]
119 input2_values = [x % 128 - 128 for x in range(row * col2)]
123 output_values = [x for x in range(row * output_col)]
124 for r in range(row):
125 for c1 in range(col1):
127 for c2 in range(col2):
Dqlstm_projection.mod.py129 projection_bias: [ 0 for _ in range(output_size) ],
134 output_state_in: [ 0 for _ in range(batch_size * output_size) ],
135 cell_state_in: [ 0 for _ in range(batch_size * num_units) ],
186 projection_bias: [ 0 for _ in range(output_size) ],
191 output_state_in: [ 0 for _ in range(batch_size * output_size) ],
192 cell_state_in: [ 0 for _ in range(batch_size * num_units) ],
Dembedding_lookup_v1_3.mod.py22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
24 for j in range(columns):
25 for k in range(features):
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleDataRepository.kt30 fun queryUsage(range: Range<Long>): NetworkUsageData in <lambda>()
56 override fun queryUsage(range: Range<Long>) = NetworkUsageData( in queryUsage()
57 startTime = range.lower, in queryUsage()
58 endTime = range.upper, in queryUsage()
59 usage = networkStatsRepository.querySummaryForDevice(range.lower, range.upper), in queryUsage()
DAppDataUsageDetailsRepository.kt49 private fun queryDetails(range: Range<Long>): NetworkUsageDetailsData { in queryDetails()
50 val buckets = networkStatsRepository.queryBuckets(range.lower, range.upper) in queryDetails()
56 range = range, in queryDetails()
DNetworkCycleBucketRepository.kt56 private fun aggregateUsage(range: Range<Long>) = NetworkUsageData(
57 startTime = range.lower,
58 endTime = range.upper,
59 usage = buckets.filterTime(range.lower, range.upper).aggregate()?.usage ?: 0,
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/ADV/
DBV_08_C.py87 for n in range(2):
104 for n in range(2):
125 for n in range(2):
150 for n in range(2):
163 for n in range(2):
176 for n in range(2):
220 for n in range(2):
233 for n in range(2):
246 for n in range(2):
273 for n in range(2):
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapUtility.java97 public static String[] getImapRangeValues(String range) { in getImapRangeValues() argument
100 if (range != null) { in getImapRangeValues()
101 int colonPos = range.indexOf(':'); in getImapRangeValues()
103 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues()
104 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues()
/packages/services/DeviceAsWebcam/res/raw/
DREADME.md57 When provided, DeviceAsWebcam will use this zoom ratio range instead of that
67 "<physical-camera-id-1>" : ["<zoom-ratio-range-lower-1>", "<zoom-ratio-range-upper-1>"],
68 "<physical-camera-id-2>" : ["<zoom-ratio-range-lower-2>", "<zoom-ratio-range-upper-2>"],
72 "<physical-camera-id-3>" : ["<zoom-ratio-range-lower-3>", "<zoom-ratio-range-upper-3>"],
73 "<physical-camera-id-4>" : ["<zoom-ratio-range-lower-4>", "<zoom-ratio-range-upper-4>"],

12345678910>>...18