Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DChannelImpressionsTest.java33 ChannelImpressions ci = new ChannelImpressions(); in testNoResultNoBlock() local
34 assertFalse(ci.shouldTriggerBlock()); in testNoResultNoBlock()
39 ChannelImpressions ci = new ChannelImpressions(); in testNoStreakNoBlock() local
42 ci.incrementViews(); in testNoStreakNoBlock()
43 ci.incrementDismissals(); in testNoStreakNoBlock()
46 assertFalse(ci.shouldTriggerBlock()); in testNoStreakNoBlock()
51 ChannelImpressions ci = new ChannelImpressions(); in testNoStreakNoBlock_breakStreak() local
54 ci.incrementViews(); in testNoStreakNoBlock_breakStreak()
55 ci.incrementDismissals(); in testNoStreakNoBlock_breakStreak()
57 ci.resetStreak(); in testNoStreakNoBlock_breakStreak()
[all …]
DAssistantTest.java429 ChannelImpressions ci = new ChannelImpressions(); in testSettingsProviderUpdate() local
431 ci.incrementViews(); in testSettingsProviderUpdate()
433 ci.incrementDismissals(); in testSettingsProviderUpdate()
437 mAssistant.insertImpressions(key, ci); in testSettingsProviderUpdate()
440 assertEquals(false, ci.shouldTriggerBlock()); in testSettingsProviderUpdate()
450 assertEquals(true, ci.shouldTriggerBlock()); in testSettingsProviderUpdate()
/packages/apps/Settings/src/com/android/settings/notification/
DAbstractZenModeAutomaticRulePreferenceController.java87 public static ZenRuleInfo getRuleInfo(PackageManager pm, ComponentInfo ci) { in getRuleInfo() argument
88 if (ci == null || ci.metaData == null) { in getRuleInfo()
91 final String ruleType = (ci instanceof ServiceInfo) in getRuleInfo()
92 ? ci.metaData.getString(ConditionProviderService.META_DATA_RULE_TYPE) in getRuleInfo()
93 : ci.metaData.getString(NotificationManager.META_DATA_AUTOMATIC_RULE_TYPE); in getRuleInfo()
95 final ComponentName configurationActivity = getSettingsActivity(null, ci); in getRuleInfo()
99 (ci instanceof ServiceInfo) ? new ComponentName(ci.packageName, ci.name) : null; in getRuleInfo()
102 ri.packageName = ci.packageName; in getRuleInfo()
104 ri.packageLabel = ci.applicationInfo.loadLabel(pm); in getRuleInfo()
105 ri.ruleInstanceLimit = (ci instanceof ServiceInfo) in getRuleInfo()
[all …]
DZenModeEventRuleSettings.java232 final CalendarInfo ci = new CalendarInfo(); in addCalendar() local
233 ci.calendarId = calendarId; in addCalendar()
234 ci.name = calName; in addCalendar()
235 ci.userId = userId; in addCalendar()
236 if (!outCalendars.contains(ci)) { in addCalendar()
237 outCalendars.add(ci); in addCalendar()
DZenRuleSelectionDialog.java198 for (ComponentInfo ci : componentInfos) {
200 getRuleInfo(mPm, ci);
204 >= (mNm.getRuleInstanceCount(ci.getComponentName()) + 1))) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAbstractZenModeAutomaticRulePreferenceController.java87 public static ZenRuleInfo getRuleInfo(PackageManager pm, ComponentInfo ci) { in getRuleInfo() argument
88 if (ci == null || ci.metaData == null) { in getRuleInfo()
91 final String ruleType = (ci instanceof ServiceInfo) in getRuleInfo()
92 ? ci.metaData.getString(ConditionProviderService.META_DATA_RULE_TYPE) in getRuleInfo()
93 : ci.metaData.getString(NotificationManager.META_DATA_AUTOMATIC_RULE_TYPE); in getRuleInfo()
95 final ComponentName configurationActivity = getSettingsActivity(null, ci); in getRuleInfo()
99 (ci instanceof ServiceInfo) ? new ComponentName(ci.packageName, ci.name) : null; in getRuleInfo()
102 ri.packageName = ci.packageName; in getRuleInfo()
104 ri.packageLabel = ci.applicationInfo.loadLabel(pm); in getRuleInfo()
105 ri.ruleInstanceLimit = (ci instanceof ServiceInfo) in getRuleInfo()
[all …]
DZenModeEventRuleSettings.java232 final CalendarInfo ci = new CalendarInfo(); in addCalendar() local
233 ci.calendarId = calendarId; in addCalendar()
234 ci.name = calName; in addCalendar()
235 ci.userId = userId; in addCalendar()
236 if (!outCalendars.contains(ci)) { in addCalendar()
237 outCalendars.add(ci); in addCalendar()
DZenRuleSelectionDialog.java198 for (ComponentInfo ci : componentInfos) {
200 getRuleInfo(mPm, ci);
204 >= (mNm.getRuleInstanceCount(ci.getComponentName()) + 1))) {
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfoUtils.java128 CachedNumberLookupService lookupService, CallerInfo ci) { in buildCachedContactInfo() argument
130 info.name = ci.name; in buildCachedContactInfo()
131 info.type = ci.numberType; in buildCachedContactInfo()
132 info.label = ci.phoneLabel; in buildCachedContactInfo()
133 info.number = ci.phoneNumber; in buildCachedContactInfo()
134 info.normalizedNumber = ci.normalizedNumber; in buildCachedContactInfo()
135 info.photoUri = ci.contactDisplayPhotoUri; in buildCachedContactInfo()
136 info.userType = ci.userType; in buildCachedContactInfo()
139 cacheInfo.setLookupKey(ci.lookupKeyOrNull); in buildCachedContactInfo()
154 Context context, CallerInfo ci, String number, int presentation) { in modifyForSpecialCnapCases() argument
[all …]
DCallerInfoAsyncQuery.java59 void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
63 void onDataLoaded(int token, Object cookie, CallerInfo ci); in onDataLoaded() argument
98 public void onQueryComplete(int token, Object cookie, CallerInfo ci) { in startQuery()
102 if ((ci != null && ci.contactExists) in startQuery()
104 if (listener != null && ci != null) { in startQuery()
105 listener.onQueryComplete(token, cookie, ci); in startQuery()
111 public void onDataLoaded(int token, Object cookie, CallerInfo ci) { in startQuery()
113 listener.onDataLoaded(token, cookie, ci); in startQuery()
297 int token, Object cookie, CallerInfo ci, long directoryId) { in onDirectoryQueryComplete() argument
301 if (!isListenerCalled && (ci.contactExists || count == 0)) { in onDirectoryQueryComplete()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java990 public void onQueryComplete(int token, Object cookie, CallerInfo ci) {
996 if (DBG) log("- onQueryComplete: CallerInfo:" + ci);
997 if (ci.contactExists || ci.isEmergencyNumber() || ci.isVoiceMailNumber()) {
1014 if (0 == ci.numberPresentation) {
1015 ci.numberPresentation = conn.getNumberPresentation();
1027 newCi.phoneNumber = ci.phoneNumber; // To get formatted phone number
1028 newCi.geoDescription = ci.geoDescription; // To get geo description string
1029 ci = newCi;
1033 if (DBG) log("==> Stashing CallerInfo " + ci + " into the connection...");
1034 conn.setUserData(ci);
[all …]
DCellInfoUtil.java154 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
155 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
156 return ci; in convertOperatorInfoToCellInfo()
DNetworkQueryService.java399 CellInfoGsm ci = new CellInfoGsm(); in getCellInfoList() local
400 ci.setCellIdentity(cig); in getCellInfoList()
401 cellInfoList.add(ci); in getCellInfoList()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java171 ChannelImpressions ci = createChannelImpressionsWithThresholds(); in readXml() local
172 ci.populateFromXml(parser); in readXml()
174 ci.append(mkeyToImpressions.get(key)); in readXml()
175 mkeyToImpressions.put(key, ci); in readXml()
298 ChannelImpressions ci = mkeyToImpressions.getOrDefault(key,
300 mkeyToImpressions.put(key, ci);
301 shouldTriggerBlock = ci.shouldTriggerBlock();
326 ChannelImpressions ci = mkeyToImpressions.getOrDefault(key, in onNotificationRemoved() local
329 ci.incrementViews(); in onNotificationRemoved()
339 ci.incrementDismissals(); in onNotificationRemoved()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java748 private final String getConnectionStatusString(CellInfo ci) { in getConnectionStatusString() argument
753 if (ci.isRegistered()) { in getConnectionStatusString()
756 switch (ci.getCellConnectionStatus()) { in getConnectionStatusString()
770 private final String buildCdmaInfoString(CellInfoCdma ci) { in buildCdmaInfoString() argument
771 CellIdentityCdma cidCdma = ci.getCellIdentity(); in buildCdmaInfoString()
772 CellSignalStrengthCdma ssCdma = ci.getCellSignalStrength(); in buildCdmaInfoString()
775 getConnectionStatusString(ci), in buildCdmaInfoString()
786 private final String buildGsmInfoString(CellInfoGsm ci) { in buildGsmInfoString() argument
787 CellIdentityGsm cidGsm = ci.getCellIdentity(); in buildGsmInfoString()
788 CellSignalStrengthGsm ssGsm = ci.getCellSignalStrength(); in buildGsmInfoString()
[all …]
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java841 private final String getConnectionStatusString(CellInfo ci) { in getConnectionStatusString() argument
846 if (ci.isRegistered()) { in getConnectionStatusString()
849 switch (ci.getCellConnectionStatus()) { in getConnectionStatusString()
863 private final String buildCdmaInfoString(CellInfoCdma ci) { in buildCdmaInfoString() argument
864 CellIdentityCdma cidCdma = ci.getCellIdentity(); in buildCdmaInfoString()
865 CellSignalStrengthCdma ssCdma = ci.getCellSignalStrength(); in buildCdmaInfoString()
868 getConnectionStatusString(ci), in buildCdmaInfoString()
879 private final String buildGsmInfoString(CellInfoGsm ci) { in buildGsmInfoString() argument
880 CellIdentityGsm cidGsm = ci.getCellIdentity(); in buildGsmInfoString()
881 CellSignalStrengthGsm ssGsm = ci.getCellSignalStrength(); in buildGsmInfoString()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisableInstallShortcutListenersTask.java100 ComponentInfo ci; in disableReceivers() local
102 ci = ri.activityInfo; in disableReceivers()
104 ci = ri.serviceInfo; in disableReceivers()
106 ci = ri.providerInfo; in disableReceivers()
108 mUtils.disableComponent(new ComponentName(ci.packageName, ci.name), mUserId); in disableReceivers()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallerInfoLookupHelper.java186 return (token, cookie, ci) -> { in makeCallerInfoQueryListener()
195 l.onCallerInfoQueryComplete(handle, ci); in makeCallerInfoQueryListener()
197 if (ci.contactDisplayPhotoUri == null) { in makeCallerInfoQueryListener()
202 info.callerInfo = ci; in makeCallerInfoQueryListener()
204 startPhotoLookup(handle, ci.contactDisplayPhotoUri); in makeCallerInfoQueryListener()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DVoiceSearch.java94 ComponentInfo ci = ri.activityInfo != null ? ri.activityInfo : ri.serviceInfo; in getVersion()
96 return getContext().getPackageManager().getPackageInfo(ci.packageName, 0).versionCode; in getVersion()
98 Log.e(TAG, "Cannot find voice search package " + ci.packageName, e); in getVersion()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallLogProviderTest.java182 CallerInfo ci = new CallerInfo(); in testAddCall() local
183 ci.name = "1-800-GOOG-411"; in testAddCall()
184 ci.numberType = Phone.TYPE_CUSTOM; in testAddCall()
185 ci.numberLabel = "Directory"; in testAddCall()
192 Uri uri = Calls.addCall(ci, getMockContext(), "1-800-263-7643", in testAddCall()
205 values.put(Calls.CACHED_NAME, ci.name); in testAddCall()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DCellInfoUtil.java154 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
155 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
156 return ci; in convertOperatorInfoToCellInfo()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellInfoUtil.java155 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
156 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
157 return ci; in convertOperatorInfoToCellInfo()
DNetworkOperatorPreference.java91 private int getIconIdForCell(CellInfo ci) { in getIconIdForCell() argument
92 final int type = ci.getCellIdentity().getType(); in getIconIdForCell()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java490 CallerInfo ci = new CallerInfo(); in testLoadOneCallFromDb() local
491 listenerCaptor.getValue().onCallerInfoQueryComplete(escapedHandle, ci); in testLoadOneCallFromDb()
492 verify(mockCallInfoFactory).makeCallInfo(eq(ci), isNull(PhoneAccountHandle.class), in testLoadOneCallFromDb()
553 CallerInfo ci = new CallerInfo(); in testLoadTwoCallsFromDb() local
554 listenerCaptor.getAllValues().get(0).onCallerInfoQueryComplete(escapedTelHandle, ci); in testLoadTwoCallsFromDb()
555 listenerCaptor.getAllValues().get(1).onCallerInfoQueryComplete(escapedSipHandle, ci); in testLoadTwoCallsFromDb()
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md23 [lin-badge]: https://travis-ci.org/miloyip/rapidjson.png?branch=master "Travis build status"
24 [lin-link]: https://travis-ci.org/miloyip/rapidjson "Travis build status"
25 [win-badge]: https://ci.appveyor.com/api/projects/status/u658dcuwxo14a8m9/branch/master "AppVeyor b…
26 [win-link]: https://ci.appveyor.com/project/miloyip/rapidjson/branch/master "AppVeyor build status"

12