Home
last modified time | relevance | path

Searched refs:hasUserIdAndPackageName (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/ambientcontext/
DAmbientContextManagerServiceTest.java71 assertThat(clientRequest.hasUserIdAndPackageName(USER_ID, SYSTEM_PACKAGE_NAME)).isTrue(); in testClientRequest()
72 assertThat(clientRequest.hasUserIdAndPackageName(-1, SYSTEM_PACKAGE_NAME)).isFalse(); in testClientRequest()
73 assertThat(clientRequest.hasUserIdAndPackageName(USER_ID, "random.package.name")) in testClientRequest()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerService.java109 boolean hasUserIdAndPackageName(int userId, String packageName) { in hasUserIdAndPackageName() method in AmbientContextManagerService.ClientRequest
179 if (clientRequest.hasUserIdAndPackageName(userId, packageName)) { in findExistingRequests()
190 if (clientRequest.hasUserIdAndPackageName(userId, packageName)) { in getClientRequestObserver()
332 if (cr.hasUserIdAndPackageName(userId, packageName)) { in stopAmbientContextEvent()