Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 70) sorted by relevance

123

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java327 void start(int slot) { in start() argument
328 mSlot = slot; in start()
335 mNai.onAddNattKeepalivePacketFilter(slot, nattData); in start()
336 mNai.onStartNattSocketKeepalive(slot, mInterval, nattData); in start()
346 mNai.onAddTcpKeepalivePacketFilter(slot, tcpData); in start()
348 mNai.onStartTcpSocketKeepalive(slot, mInterval, tcpData); in start()
438 int slot; in findFirstFreeSlot() local
439 for (slot = 1; slot <= networkKeepalives.size(); slot++) { in findFirstFreeSlot()
440 if (networkKeepalives.get(slot) == null) { in findFirstFreeSlot()
441 return slot; in findFirstFreeSlot()
[all …]
DNetworkAgentInfo.java476 public void onStartNattSocketKeepalive(int slot, int intervalDurationMs, in onStartNattSocketKeepalive() argument
479 networkAgent.onStartNattSocketKeepalive(slot, intervalDurationMs, packetData); in onStartNattSocketKeepalive()
488 public void onStartTcpSocketKeepalive(int slot, int intervalDurationMs, in onStartTcpSocketKeepalive() argument
491 networkAgent.onStartTcpSocketKeepalive(slot, intervalDurationMs, packetData); in onStartTcpSocketKeepalive()
500 public void onStopSocketKeepalive(int slot) { in onStopSocketKeepalive() argument
502 networkAgent.onStopSocketKeepalive(slot); in onStopSocketKeepalive()
533 public void onAddNattKeepalivePacketFilter(int slot, in onAddNattKeepalivePacketFilter() argument
536 networkAgent.onAddNattKeepalivePacketFilter(slot, packetData); in onAddNattKeepalivePacketFilter()
545 public void onAddTcpKeepalivePacketFilter(int slot, in onAddTcpKeepalivePacketFilter() argument
548 networkAgent.onAddTcpKeepalivePacketFilter(slot, packetData); in onAddTcpKeepalivePacketFilter()
[all …]
DTcpKeepaliveController.java247 @NonNull final KeepaliveInfo ki, final int slot) in startSocketMonitor() argument
250 if (null != mListeners.get(slot)) { in startSocketMonitor()
274 mListeners.put(slot, fd); in startSocketMonitor()
282 public void stopSocketMonitor(final int slot) { in stopSocketMonitor() argument
285 fd = mListeners.get(slot); in stopSocketMonitor()
287 mListeners.remove(slot); in stopSocketMonitor()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java66 MergeSlot slot = new MergeSlot(list, i); in ImageListUber() local
67 if (slot.next()) mQueue.add(slot); in ImageListUber()
132 MergeSlot slot = nextMergeSlot(); in getImageAt() local
133 if (slot == null) return null; in getImageAt()
135 IImage result = slot.mImage; in getImageAt()
136 if (slot.next()) mQueue.add(slot); in getImageAt()
139 if (slot.next()) mQueue.add(slot); in getImageAt()
144 MergeSlot slot = mQueue.poll(); in nextMergeSlot() local
145 if (slot == null) return null; in nextMergeSlot()
146 if (slot.mListIndex == mLastListIndex) { in nextMergeSlot()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkAgent.java42 void onStartSocketKeepalive(int slot, @NonNull Duration interval, in onStartSocketKeepalive() argument
44 void onStopSocketKeepalive(int slot); in onStopSocketKeepalive() argument
45 void onAddKeepalivePacketFilter(int slot, @NonNull KeepalivePacketData packet); in onAddKeepalivePacketFilter() argument
46 void onRemoveKeepalivePacketFilter(int slot); in onRemoveKeepalivePacketFilter() argument
100 public void onStartSocketKeepalive(int slot, @NonNull Duration interval, in onStartSocketKeepalive() argument
102 mCallback.onStartSocketKeepalive(slot, interval, packet); in onStartSocketKeepalive()
106 public void onStopSocketKeepalive(int slot) { in onStopSocketKeepalive() argument
107 mCallback.onStopSocketKeepalive(slot); in onStopSocketKeepalive()
111 public void onAddKeepalivePacketFilter(int slot, @NonNull KeepalivePacketData packet) { in onAddKeepalivePacketFilter() argument
112 mCallback.onAddKeepalivePacketFilter(slot, packet); in onAddKeepalivePacketFilter()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java199 for (int slot = 0; slot < mOnDeck.length; slot++) { in clearSelection()
200 if (mOnDeck[slot] != null) { in clearSelection()
201 fadeAway(mOnDeck[slot], false); in clearSelection()
202 mOnDeck[slot] = null; in clearSelection()
204 if (mLoadOnDeckTasks[slot] != null && in clearSelection()
205 mLoadOnDeckTasks[slot].getStatus() != AsyncTask.Status.FINISHED) { in clearSelection()
206 mLoadOnDeckTasks[slot].cancel(true); in clearSelection()
207 mLoadOnDeckTasks[slot] = null; in clearSelection()
259 for (int slot = 0; slot < mOnDeck.length; slot++) { in promoteSelection()
260 if (mLoadOnDeckTasks[slot] != null && in promoteSelection()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorage.java150 private Writer createWriter(int slot) throws IOException { in createWriter() argument
151 File file = toSlotDataFile(slot); in createWriter()
156 public synchronized File getFile(int slot) throws IOException { in getFile() argument
157 createSlotFileObject(slot); in getFile()
159 File primary = toSlotDataFile(slot); in getFile()
161 String linkFileName = Integer.toString(mSlots[slot].list().length); in getFile()
162 File link = new File(mSlots[slot], linkFileName); in getFile()
240 int slot = claimStorageSlot(); in persistUris() local
241 persistUris(uris, slot); in persistUris()
242 return slot; in persistUris()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkAgent.java687 public void onStartNattSocketKeepalive(int slot, int intervalDurationMs, in onStartNattSocketKeepalive() argument
690 slot, intervalDurationMs, packetData)); in onStartNattSocketKeepalive()
694 public void onStartTcpSocketKeepalive(int slot, int intervalDurationMs, in onStartTcpSocketKeepalive() argument
697 slot, intervalDurationMs, packetData)); in onStartTcpSocketKeepalive()
701 public void onStopSocketKeepalive(int slot) { in onStopSocketKeepalive() argument
702 mHandler.sendMessage(mHandler.obtainMessage(CMD_STOP_SOCKET_KEEPALIVE, slot, 0)); in onStopSocketKeepalive()
717 public void onAddNattKeepalivePacketFilter(int slot, in onAddNattKeepalivePacketFilter() argument
720 slot, 0, packetData)); in onAddNattKeepalivePacketFilter()
724 public void onAddTcpKeepalivePacketFilter(int slot, in onAddTcpKeepalivePacketFilter() argument
727 slot, 0, packetData)); in onAddTcpKeepalivePacketFilter()
[all …]
DINetworkAgent.aidl35 void onStartNattSocketKeepalive(int slot, int intervalDurationMs, in onStartNattSocketKeepalive() argument
37 void onStartTcpSocketKeepalive(int slot, int intervalDurationMs, in onStartTcpSocketKeepalive() argument
39 void onStopSocketKeepalive(int slot); in onStopSocketKeepalive() argument
42 void onAddNattKeepalivePacketFilter(int slot, in onAddNattKeepalivePacketFilter() argument
44 void onAddTcpKeepalivePacketFilter(int slot, in onAddTcpKeepalivePacketFilter() argument
46 void onRemoveKeepalivePacketFilter(int slot); in onRemoveKeepalivePacketFilter() argument
/packages/modules/NeuralNetworks/common/
DExecutionBurstController.cpp133 for (int32_t slot : slots) { in serialize() local
135 datum.poolIdentifier(slot); in serialize()
400 std::transform(slots.begin(), slots.end(), memories.begin(), [this](int32_t slot) { in getMemories() argument
401 return slot < mMemoryCache.size() ? mMemoryCache[slot] : hardware::hidl_memory{}; in getMemories()
438 const int32_t slot = iter->second; in freeMemory() local
440 mMemoryCache[slot] = {}; in freeMemory()
441 mFreeSlots.push(slot); in freeMemory()
442 return {true, slot}; in freeMemory()
449 const int32_t slot = allocateSlotLocked(); in getSlotLocked() local
450 mMemoryIdToSlot[key] = slot; in getSlotLocked()
[all …]
DExecutionBurstServer.cpp59 bool isCacheEntryPresent(int32_t slot) const override { in isCacheEntryPresent()
60 const auto it = mMemoryCache.find(slot); in isCacheEntryPresent()
64 void addCacheEntry(const hardware::hidl_memory& memory, int32_t slot) override { in addCacheEntry() argument
65 mMemoryCache[slot] = memory; in addCacheEntry()
68 void removeCacheEntry(int32_t slot) override { mMemoryCache.erase(slot); } in removeCacheEntry() argument
76 [this](int32_t slot) { return mMemoryCache[slot]; }); in execute() argument
564 hardware::Return<void> ExecutionBurstServer::freeMemory(int32_t slot) { in freeMemory() argument
566 mExecutorWithCache->removeCacheEntry(slot); in freeMemory()
571 const auto slotIsKnown = [this](int32_t slot) { in ensureCacheEntriesArePresentLocked() argument
572 return mExecutorWithCache->isCacheEntryPresent(slot); in ensureCacheEntriesArePresentLocked()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIpClientManager.java220 public boolean addKeepalivePacketFilter(int slot, TcpKeepalivePacketData pkt) { in addKeepalivePacketFilter() argument
221 return addKeepalivePacketFilter(slot, KeepalivePacketDataUtil.toStableParcelable(pkt)); in addKeepalivePacketFilter()
231 public boolean addKeepalivePacketFilter(int slot, TcpKeepalivePacketDataParcelable pkt) { in addKeepalivePacketFilter() argument
234 mIpClient.addKeepalivePacketFilter(slot, pkt); in addKeepalivePacketFilter()
247 public boolean addKeepalivePacketFilter(int slot, NattKeepalivePacketData pkt) { in addKeepalivePacketFilter() argument
251 slot, KeepalivePacketDataUtil.toStableParcelable(pkt)); in addKeepalivePacketFilter()
264 public boolean removeKeepalivePacketFilter(int slot) { in removeKeepalivePacketFilter() argument
267 mIpClient.removeKeepalivePacketFilter(slot); in removeKeepalivePacketFilter()
DIIpClient.aidl35 void addKeepalivePacketFilter(int slot, in TcpKeepalivePacketDataParcelable pkt); in addKeepalivePacketFilter() argument
36 void removeKeepalivePacketFilter(int slot); in removeKeepalivePacketFilter() argument
39 void addNattKeepalivePacketFilter(int slot, in NattKeepalivePacketDataParcelable pkt); in addNattKeepalivePacketFilter() argument
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java673 for (int slot = 0; slot < mSimCount; slot++) { in handleMessage()
674 checkForSetupEvent(LANGUAGE_SELECTION_EVENT, (Bundle) msg.obj, slot); in handleMessage()
683 for (int slot = 0; slot < mSimCount; slot++) { in handleMessage()
684 if (mStkContext[slot] != null) { in handleMessage()
685 handleIdleScreen(slot); in handleMessage()
695 for (int slot = 0; slot < mSimCount; slot++) { in handleMessage()
696 checkForSetupEvent(USER_ACTIVITY_EVENT, null, slot); in handleMessage()
704 for (int slot = 0; slot < mSimCount; slot++) { in handleMessage()
705 if (mStkContext[slot] != null) { in handleMessage()
706 handleHomeKeyPressed(slot); in handleMessage()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt236 val slot: Int, in disconnect() constant in CallbackEntry.OnAddKeepalivePacketFilter
239 data class OnRemoveKeepalivePacketFilter(val slot: Int) : CallbackEntry() in disconnect() constant in CallbackEntry.OnRemoveKeepalivePacketFilter
241 val slot: Int, in disconnect() constant in CallbackEntry.OnStartSocketKeepalive
245 data class OnStopSocketKeepalive(val slot: Int) : CallbackEntry() in disconnect() constant in CallbackEntry.OnStopSocketKeepalive
267 override fun onAddKeepalivePacketFilter(slot: Int, packet: KeepalivePacketData) { in disconnect()
268 history.add(OnAddKeepalivePacketFilter(slot, packet)) in disconnect()
271 override fun onRemoveKeepalivePacketFilter(slot: Int) { in disconnect()
272 history.add(OnRemoveKeepalivePacketFilter(slot)) in disconnect()
276 slot: Int, in disconnect()
280 history.add(OnStartSocketKeepalive(slot, interval.seconds.toInt(), packet)) in disconnect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java126 MediaItem[] slot = new MediaItem[mSources.length]; in getMediaItem() local
132 slot[i] = mFetcher[i].getItem(subPos[i]); in getMediaItem()
140 if (slot[j] != null) { in getMediaItem()
141 if (k == -1 || mComparator.compare(slot[j], slot[k]) < 0) { in getMediaItem()
153 result.add(slot[k]); in getMediaItem()
155 slot[k] = mFetcher[k].getItem(subPos[k]); in getMediaItem()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java551 int slot = (int) (key % mMaxEntries); in lookupInternal() local
552 if (slot < 0) slot += mMaxEntries; in lookupInternal()
553 int slotBegin = slot; in lookupInternal()
555 int offset = hashStart + slot * 12; in lookupInternal()
566 if (++slot >= mMaxEntries) { in lookupInternal()
567 slot = 0; in lookupInternal()
569 if (slot == slotBegin) { in lookupInternal()
571 mIndexBuffer.putInt(hashStart + slot * 12 + 8, 0); in lookupInternal()
/packages/modules/NetworkStack/src/android/net/apf/
DApfGenerator.java775 public ApfGenerator addLoadFromMemory(Register register, int slot) in addLoadFromMemory() argument
777 if (slot < 0 || slot > (MEMORY_SLOTS - 1)) { in addLoadFromMemory()
778 throw new IllegalInstructionException("illegal memory slot number: " + slot); in addLoadFromMemory()
781 instruction.setUnsignedImm(ExtendedOpcodes.LDM.value + slot); in addLoadFromMemory()
790 public ApfGenerator addStoreToMemory(Register register, int slot) in addStoreToMemory() argument
792 if (slot < 0 || slot > (MEMORY_SLOTS - 1)) { in addStoreToMemory()
793 throw new IllegalInstructionException("illegal memory slot number: " + slot); in addStoreToMemory()
796 instruction.setUnsignedImm(ExtendedOpcodes.STM.value + slot); in addStoreToMemory()
/packages/apps/Settings/src/com/android/settings/network/helper/
DQuerySimSlotIndex.java62 .filter(slot -> filterSlot(slot)) in call()
63 .mapToInt(slot -> mapToSlotIndex(slot)) in call()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DMappedButtonConfig.java88 public List<Integer> getButtonsForSlot(int slot) { in getButtonsForSlot() argument
91 if (entry.getValue().getSlot() == slot) { in getButtonsForSlot()
184 static Builder builder(int slot) {
186 .setSlot(slot)
195 public abstract Builder setSlot(int slot);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DClipStorageTest.java109 int slot = mStorage.claimStorageSlot(); in testClaimStorageSlot_NoAvailableSlot() local
110 writeAll(slot, TEST_URIS); in testClaimStorageSlot_NoAvailableSlot()
111 mStorage.getFile(slot); in testClaimStorageSlot_NoAvailableSlot()
151 private void writeAll(int slot, List<Uri> uris) { in writeAll() argument
152 mStorage.persistUris(uris, slot); in writeAll()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java156 int slot = msg.arg1; in startSocketKeepalive() local
158 assertEquals((int) mWrapper.mExpectedKeepaliveSlot, slot); in startSocketKeepalive() local
161 () -> onSocketKeepaliveEvent(slot, mWrapper.mStartKeepaliveError), in startSocketKeepalive()
167 final int slot = msg.arg1; in stopSocketKeepalive() local
169 () -> onSocketKeepaliveEvent(slot, mWrapper.mStopKeepaliveError), in stopSocketKeepalive()
318 public void setExpectedKeepaliveSlot(Integer slot) { in setExpectedKeepaliveSlot() argument
319 mExpectedKeepaliveSlot = slot; in setExpectedKeepaliveSlot()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/ip/
DIIpClient.aidl29 …oneway void addKeepalivePacketFilter(int slot, in android.net.TcpKeepalivePacketDataParcelable pkt… in addKeepalivePacketFilter() argument
30 oneway void removeKeepalivePacketFilter(int slot); in removeKeepalivePacketFilter() argument
32 …oneway void addNattKeepalivePacketFilter(int slot, in android.net.NattKeepalivePacketDataParcelabl… in addNattKeepalivePacketFilter() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/ip/
DIIpClient.aidl12 …oneway void addKeepalivePacketFilter(int slot, in android.net.TcpKeepalivePacketDataParcelable pkt… in addKeepalivePacketFilter() argument
13 oneway void removeKeepalivePacketFilter(int slot); in removeKeepalivePacketFilter() argument
15 …oneway void addNattKeepalivePacketFilter(int slot, in android.net.NattKeepalivePacketDataParcelabl… in addNattKeepalivePacketFilter() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/ip/
DIIpClient.aidl30 …oneway void addKeepalivePacketFilter(int slot, in android.net.TcpKeepalivePacketDataParcelable pkt… in addKeepalivePacketFilter() argument
31 oneway void removeKeepalivePacketFilter(int slot); in removeKeepalivePacketFilter() argument
33 …oneway void addNattKeepalivePacketFilter(int slot, in android.net.NattKeepalivePacketDataParcelabl… in addNattKeepalivePacketFilter() argument

123