Searched refs:neededFor (Results 1 – 3 of 3) sorted by relevance
52 assertTrue(offer.neededFor(request1)) in testOfferNeededUnneeded()53 assertFalse(offer.neededFor(request2)) in testOfferNeededUnneeded()57 assertTrue(offer.neededFor(request1)) in testOfferNeededUnneeded()58 assertTrue(offer.neededFor(request2)) in testOfferNeededUnneeded()66 assertFalse(offer.neededFor(request1)) in testOfferNeededUnneeded()67 assertTrue(offer.neededFor(request2)) in testOfferNeededUnneeded()71 assertFalse(offer.neededFor(request1)) in testOfferNeededUnneeded()72 assertFalse(offer.neededFor(request2)) in testOfferNeededUnneeded()
124 public boolean neededFor(@NonNull final NetworkRequest request) { in neededFor() method in NetworkOffer
5974 if (req.isRequest() && noi.offer.neededFor(req)) {11083 if (request.canBeSatisfiedBy(offer.caps) && !offer.neededFor(request)) {11090 final boolean oldNeeded = offer.neededFor(activeRequest);11116 if (offer.neededFor(request)) {