Home
last modified time | relevance | path

Searched refs:fsiState (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordLoggerTest.java175 final int fsiState = NotificationRecordLogger.getFsiState( in testGetFsiState_isUpdate_zero() local
179 assertEquals(0, fsiState); in testGetFsiState_isUpdate_zero()
184 final int fsiState = NotificationRecordLogger.getFsiState( in testGetFsiState_hasFsi_allowedEnum() local
188 assertEquals(FrameworkStatsLog.NOTIFICATION_REPORTED__FSI_STATE__FSI_ALLOWED, fsiState); in testGetFsiState_hasFsi_allowedEnum()
193 final int fsiState = NotificationRecordLogger.getFsiState( in testGetFsiState_fsiPermissionDenied_deniedEnum() local
197 assertEquals(FrameworkStatsLog.NOTIFICATION_REPORTED__FSI_STATE__FSI_DENIED, fsiState); in testGetFsiState_fsiPermissionDenied_deniedEnum()
202 final int fsiState = NotificationRecordLogger.getFsiState( in testGetFsiState_noFsi_noFsiEnum() local
206 assertEquals(FrameworkStatsLog.NOTIFICATION_REPORTED__FSI_STATE__NO_FSI, fsiState); in testGetFsiState_noFsi_noFsiEnum()
DPreferencesHelperTest.java5954 final int fsiState = mHelper.getFsiState("pkg", /* uid= */ 0, in testGetFsiState_appDidNotRequest_enumNotRequested() local
5957 assertEquals(PACKAGE_NOTIFICATION_PREFERENCES__FSI_STATE__NOT_REQUESTED, fsiState); in testGetFsiState_appDidNotRequest_enumNotRequested()
5965 final int fsiState = mHelper.getFsiState("pkg", /* uid= */ 0, in testGetFsiState_permissionGranted_enumGranted() local
5968 assertEquals(PACKAGE_NOTIFICATION_PREFERENCES__FSI_STATE__GRANTED, fsiState); in testGetFsiState_permissionGranted_enumGranted()
5976 final int fsiState = mHelper.getFsiState("pkg", /* uid= */ 0, in testGetFsiState_permissionSoftDenied_enumDenied() local
5979 assertEquals(PACKAGE_NOTIFICATION_PREFERENCES__FSI_STATE__DENIED, fsiState); in testGetFsiState_permissionSoftDenied_enumDenied()
5987 final int fsiState = mHelper.getFsiState("pkg", /* uid= */ 0, in testGetFsiState_permissionHardDenied_enumDenied() local
5990 assertEquals(PACKAGE_NOTIFICATION_PREFERENCES__FSI_STATE__DENIED, fsiState); in testGetFsiState_permissionHardDenied_enumDenied()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java2239 boolean isFsiPermissionUserSet(String pkg, int uid, int fsiState, int currentPermissionFlags) { in isFsiPermissionUserSet() argument
2240 if (fsiState == PACKAGE_NOTIFICATION_PREFERENCES__FSI_STATE__NOT_REQUESTED) { in isFsiPermissionUserSet()
2286 final int fsiState = getFsiState(r.pkg, r.uid, requestedFSIPermission); in pullPackagePreferencesStats() local
2293 isFsiPermissionUserSet(r.pkg, r.uid, fsiState, in pullPackagePreferencesStats()
2303 /* optional FsiState fsi_state = 6 */ fsiState, in pullPackagePreferencesStats()