Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 25 of 48) 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/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.java751 private final String getConnectionStatusString(CellInfo ci) { in getConnectionStatusString() argument
756 if (ci.isRegistered()) { in getConnectionStatusString()
759 switch (ci.getCellConnectionStatus()) { in getConnectionStatusString()
773 private final String buildCdmaInfoString(CellInfoCdma ci) { in buildCdmaInfoString() argument
774 CellIdentityCdma cidCdma = ci.getCellIdentity(); in buildCdmaInfoString()
775 CellSignalStrengthCdma ssCdma = ci.getCellSignalStrength(); in buildCdmaInfoString()
778 getConnectionStatusString(ci), in buildCdmaInfoString()
789 private final String buildGsmInfoString(CellInfoGsm ci) { in buildGsmInfoString() argument
790 CellIdentityGsm cidGsm = ci.getCellIdentity(); in buildGsmInfoString()
791 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/Telephony/src/com/android/phone/settings/
DRadioInfo.java923 private String getConnectionStatusString(CellInfo ci) { in getConnectionStatusString() argument
928 if (ci.isRegistered()) { in getConnectionStatusString()
931 switch (ci.getCellConnectionStatus()) { in getConnectionStatusString()
945 private String buildCdmaInfoString(CellInfoCdma ci) { in buildCdmaInfoString() argument
946 CellIdentityCdma cidCdma = ci.getCellIdentity(); in buildCdmaInfoString()
947 CellSignalStrengthCdma ssCdma = ci.getCellSignalStrength(); in buildCdmaInfoString()
950 getConnectionStatusString(ci), in buildCdmaInfoString()
961 private String buildGsmInfoString(CellInfoGsm ci) { in buildGsmInfoString() argument
962 CellIdentityGsm cidGsm = ci.getCellIdentity(); in buildGsmInfoString()
963 CellSignalStrengthGsm ssGsm = ci.getCellSignalStrength(); in buildGsmInfoString()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallerInfoLookupHelper.java183 return (token, cookie, ci) -> { in makeCallerInfoQueryListener()
192 l.onCallerInfoQueryComplete(handle, ci); in makeCallerInfoQueryListener()
194 if (ci.getContactDisplayPhotoUri() == null) { in makeCallerInfoQueryListener()
199 info.callerInfo = ci; in makeCallerInfoQueryListener()
201 startPhotoLookup(handle, ci.getContactDisplayPhotoUri()); 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.java187 CallerInfo ci = new CallerInfo(); in testAddCall() local
188 ci.setName("1-800-GOOG-411"); in testAddCall()
189 ci.numberType = Phone.TYPE_CUSTOM; in testAddCall()
190 ci.numberLabel = "Directory"; in testAddCall()
197 Uri uri = Calls.addCall(ci, getMockContext(), "1-800-263-7643", in testAddCall()
210 values.put(Calls.CACHED_NAME, ci.getName()); in testAddCall()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DCellInfoUtil.java156 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
157 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
158 return ci; in convertOperatorInfoToCellInfo()
DNetworkOperatorPreference.java98 private int getIconIdForCell(CellInfo ci) { in getIconIdForCell() argument
99 final int type = ci.getCellIdentity().getType(); in getIconIdForCell()
/packages/services/Telephony/src/com/android/phone/
DCellInfoUtil.java156 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
157 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
158 return ci; in convertOperatorInfoToCellInfo()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellInfoUtil.java156 CellInfoGsm ci = new CellInfoGsm(); in convertOperatorInfoToCellInfo() local
157 ci.setCellIdentity(cig); in convertOperatorInfoToCellInfo()
158 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.java491 CallerInfo ci = new CallerInfo(); in testLoadOneCallFromDb() local
492 listenerCaptor.getValue().onCallerInfoQueryComplete(escapedHandle, ci); in testLoadOneCallFromDb()
493 verify(mockCallInfoFactory).makeCallInfo(eq(ci), isNull(PhoneAccountHandle.class), in testLoadOneCallFromDb()
554 CallerInfo ci = new CallerInfo(); in testLoadTwoCallsFromDb() local
555 listenerCaptor.getAllValues().get(0).onCallerInfoQueryComplete(escapedTelHandle, ci); in testLoadTwoCallsFromDb()
556 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"
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
DThemeUiTestBase.java72 final CompatibilityInfo ci = context.getResources().getCompatibilityInfo(); in getThemeByUiMode() local
78 context.getResources().updateConfiguration(nightConfig, dm, ci); in getThemeByUiMode()

12