Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java268 ArrayList<AccessChainLink> currentChain = mAttributionChains.computeIfAbsent( in addLinkToChainIfNotPresentLocked() local
273 if (currentChain.contains(link)) { in addLinkToChainIfNotPresentLocked()
277 int currSize = currentChain.size(); in addLinkToChainIfNotPresentLocked()
278 if (currSize == 0 || link.isEnd() || !currentChain.get(currSize - 1).isEnd()) { in addLinkToChainIfNotPresentLocked()
281 currentChain.add(link); in addLinkToChainIfNotPresentLocked()
283 currentChain.add(0, link); in addLinkToChainIfNotPresentLocked()
284 } else if (currentChain.get(currentChain.size() - 1).isEnd()) { in addLinkToChainIfNotPresentLocked()
286 currentChain.add(currSize - 1, link); in addLinkToChainIfNotPresentLocked()