Home
last modified time | relevance | path

Searched refs:sub (Results 1 – 25 of 89) sorted by relevance

1234

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java243 final List<SubscriptionInfo> sub = setupMockSubscriptions(1); in displayPreference_providerAndHasSim_showPreference() local
244 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasSim_showPreference()
245 doReturn(sub).when(mSubscriptionManager).getAvailableSubscriptionInfoList(); in displayPreference_providerAndHasSim_showPreference()
256 final List<SubscriptionInfo> sub = setupMockSubscriptions(2); in displayPreference_providerAndHasMultiSim_showOnePreference() local
257 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSim_showOnePreference()
258 doReturn(sub).when(mSubscriptionManager).getAvailableSubscriptionInfoList(); in displayPreference_providerAndHasMultiSim_showOnePreference()
270 final List<SubscriptionInfo> sub = setupMockSubscriptions(2); in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat() local
271 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat()
272 setupGetIconConditions(sub.get(0).getSubscriptionId(), true, true, in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat()
289 final List<SubscriptionInfo> sub = setupMockSubscriptions(2); in displayPreference_providerAndHasMultiSimAndActiveCarrierWifi_connectedAndWPlus() local
[all …]
/packages/services/Car/tools/telemetry/lua-interpreter/
Djson.lua145 if set[str:sub(i, i)] ~= negate then
158 if str:sub(i, i) == "\n" then
185 local n1 = tonumber( s:sub(1, 4), 16 )
186 local n2 = tonumber( s:sub(7, 10), 16 )
208 res = res .. str:sub(k, j - 1)
210 local c = str:sub(j, j)
226 res = res .. str:sub(k, j - 1)
239 local s = str:sub(i, x - 1)
250 local word = str:sub(i, x - 1)
266 if str:sub(i, i) == "]" then
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java37 public final int sub; field in DeviceInfoUtils.KVersion
39 public KVersion(int major, int minor, int sub) { in KVersion() argument
42 this.sub = sub; in KVersion()
59 res = Integer.compare(this.sub, other.sub); in compareTo()
93 && this.sub == that.sub; in equals()
156 final int sub = TextUtils.isEmpty(m.group(4)) ? 0 : Integer.parseInt(m.group(4)); in getMajorMinorSubminorVersion() local
157 return new KVersion(major, minor, sub); in getMajorMinorSubminorVersion()
/packages/services/Car/tests/CarTelemetryApp/tests/src/com/android/car/
DConfigParserTest.java126 Subscriber sub = config.getSubscribers(0); in test_parseConfigReturnsCorrectMetricsConfig() local
127 assertThat(sub.getHandler()).isEqualTo("testHandler"); in test_parseConfigReturnsCorrectMetricsConfig()
128 assertThat(sub.getPriority()).isEqualTo(10); in test_parseConfigReturnsCorrectMetricsConfig()
130 Publisher pub = sub.getPublisher(); in test_parseConfigReturnsCorrectMetricsConfig()
394 Subscriber sub = config.getSubscribers(0); in test_parseStatsPublisherCorrectly() local
395 Publisher pub = sub.getPublisher(); in test_parseStatsPublisherCorrectly()
428 Subscriber sub = config.getSubscribers(0); in test_parseVehiclePropertyPublisherCorrectly() local
429 Publisher pub = sub.getPublisher(); in test_parseVehiclePropertyPublisherCorrectly()
461 Subscriber sub = config.getSubscribers(0); in test_parseCarTelemetrydPublisherCorrectly() local
462 Publisher pub = sub.getPublisher(); in test_parseCarTelemetrydPublisherCorrectly()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DMmsConfigManager.java119 for (SubscriptionInfo sub : subs) { in load()
120 final int subId = sub.getSubscriptionId(); in load()
122 + sub.getMccString() + "/" + sub.getMncString() in load()
123 + ", CarrierId " + sub.getCarrierId()); in load()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java113 for (final Pair<Integer, String> sub : filteredNewSubs) { in onSubscriptionsChanged()
117 if (CollectionUtils.any(mRatListeners, it -> it.equalsKey(sub.first, sub.second))) { in onSubscriptionsChanged()
121 final RatTypeListener listener = new RatTypeListener(this, sub.first, sub.second); in onSubscriptionsChanged()
125 mTeleManager.createForSubscriptionId(sub.first) in onSubscriptionsChanged()
127 Log.d(NetworkStatsService.TAG, "RAT type listener registered for sub " + sub.first); in onSubscriptionsChanged()
/packages/apps/Settings/src/com/android/settings/sim/
DChooseSimActivity.java261 for (SubscriptionInfo sub : mEmbeddedSubscriptions) { in displaySubscriptions()
265 sub.getSubscriptionId(), this); in displaySubscriptions()
266 item.setTitle(TextUtils.isEmpty(title) ? sub.getDisplayName() : title); in displaySubscriptions()
270 String phoneNumber = SubscriptionUtil.getFormattedPhoneNumber(this, sub); in displaySubscriptions()
282 for (SubscriptionInfo sub : subscriptions) { in updateSubscriptions()
283 if (sub == null) { in updateSubscriptions()
286 if (sub.isEmbedded()) { in updateSubscriptions()
287 mEmbeddedSubscriptions.add(sub); in updateSubscriptions()
289 mRemovableSubscription = sub; in updateSubscriptions()
DSimListDialogFragment.java224 final SubscriptionInfo sub = getItem(position); in getView() local
229 if (sub == null) { in getView()
237 title.setText(SubscriptionUtil.getUniqueSubscriptionDisplayName(sub, mContext)); in getView()
238 String phoneNumber = isMdnProvisioned(sub.getNumber()) ? sub.getNumber() : ""; in getView()
/packages/services/Car/tests/CarTelemetryApp/src/com/android/car/cartelemetryapp/
DConfigParser.java174 for (Subscriber sub : subscribers) { in parseMetricsConfig()
175 config.addSubscribers(sub); in parseMetricsConfig()
198 Subscriber sub = parseSubscriber(parser); in parseSubscribers() local
199 if (sub != null) { in parseSubscribers()
200 subscribers.add(sub); in parseSubscribers()
212 Subscriber.Builder sub = Subscriber.newBuilder(); in parseSubscriber() local
219 sub.setHandler(handler); in parseSubscriber()
227 sub.setPriority(Integer.parseInt(priority)); in parseSubscriber()
229 sub.setPriority(PRIORITY_LOW); in parseSubscriber()
247 sub.setPublisher(publisher); in parseSubscriber()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDefaultSubscriptionController.java165 for (SubscriptionInfoEntity sub : list) { in updateEntries()
166 if (sub.isOpportunistic) { in updateEntries()
169 displayNames.add(sub.uniqueName); in updateEntries()
170 final int subId = Integer.parseInt(sub.subId); in updateEntries()
171 subscriptionIds.add(sub.subId); in updateEntries()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DSubscriptionListData.java96 for (final ParticipantData sub : subs) { in bind()
98 SubscriptionListEntry.fromSelfParticipantData(sub, mContext); in bind()
99 if (!sub.isDefaultSelf()) { in bind()
/packages/modules/Bluetooth/system/blueberry/decorators/
Dandroid_bluetooth_client_decorator.py46 s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', cls_name)
47 return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DExifUtils.java161 long sub = Long.parseLong(subSec.substring(0, len)); in parseSubSeconds() local
163 sub *= 10; in parseSubSeconds()
165 return sub; in parseSubSeconds()
/packages/services/Car/tools/GenericCarApiBuilder/
Dhidden_api_check.py36 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
37 return re.sub("\((.*)\)", new_arg, api)
Dannotation_classlist_repohook.py36 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
37 return re.sub("\((.*)\)", new_arg, api)
/packages/services/Car/tools/GenericCarApiBuilder/scripts/
Dcheck_car_version.py42 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
43 return re.sub("\((.*)\)", new_arg, api)
Dcompare_hidden_apis_across_releases.py30 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
31 return re.sub("\((.*)\)", new_arg, api)
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
DKernelUtils.h45 static inline bool isAtLeastKernelVersion(unsigned major, unsigned minor, unsigned sub) { in isAtLeastKernelVersion() argument
46 return kernelVersion() >= KVER(major, minor, sub); in isAtLeastKernelVersion()
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSimSlotChangeHandler.java351 .filter(sub -> sub.isEmbedded()) in getGroupedEmbeddedSubscriptions()
362 .filter(sub -> !sub.isEmbedded()) in getAvailableRemovableSubscription()
/packages/modules/Connectivity/netbpfload/
DNetBpfLoad.cpp360 #define REQUIRE(maj, min, sub) \ in doLoad() argument
361 if (isKernelVersion(maj, min) && !isAtLeastKernelVersion(maj, min, sub)) { \ in doLoad()
362 ALOGW("Android V requires %d.%d kernel to be %d.%d.%d+.", maj, min, maj, min, sub); \ in doLoad()
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/
Ddiff_apis_versions.py59 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
60 return re.sub("\((.*)\)", new_arg, api)
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java347 final SubscriptionInfo sub = mock(SubscriptionInfo.class); in createMockSub() local
348 when(sub.getSubscriptionId()).thenReturn(id); in createMockSub()
349 when(sub.getDisplayName()).thenReturn(displayName); in createMockSub()
350 return sub; in createMockSub()
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_1/
Dsub.example.cpp7 namespace generated_tests::sub { namespace
74 namespace generated_tests::sub { namespace
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java129 Path sub = Path.fromString(sets[j]); in getAppliedFilters() local
130 getAppliedFilters(sub, result, underCluster); in getAppliedFilters()
/packages/services/Car/cpp/watchdog/server/src/
DUidProcStatsCollector.cpp149 std::string_view sub; in getLinesWithTags() local
152 sub = buffer.substr(base, found - base); in getLinesWithTags()
155 if (sub.find(*it) != sub.npos) { in getLinesWithTags()
163 result.push_back(std::string{sub}); in getLinesWithTags()

1234