Home
last modified time | relevance | path

Searched refs:slotIndex (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlidingWindow.java120 public AlbumSetEntry get(int slotIndex) { in get() argument
121 if (!isActiveSlot(slotIndex)) { in get()
123 slotIndex, mActiveStart, mActiveEnd); in get()
125 return mData[slotIndex % mData.length]; in get()
132 public boolean isActiveSlot(int slotIndex) { in isActiveSlot() argument
133 return slotIndex >= mActiveStart && slotIndex < mActiveEnd; in isActiveSlot()
210 private void requestImagesInSlot(int slotIndex) { in requestImagesInSlot() argument
211 if (slotIndex < mContentStart || slotIndex >= mContentEnd) return; in requestImagesInSlot()
212 AlbumSetEntry entry = mData[slotIndex % mData.length]; in requestImagesInSlot()
217 private void cancelImagesInSlot(int slotIndex) { in cancelImagesInSlot() argument
[all …]
DAlbumSlidingWindow.java114 public AlbumEntry get(int slotIndex) { in get() argument
115 if (!isActiveSlot(slotIndex)) { in get()
117 slotIndex, mActiveStart, mActiveEnd); in get()
119 return mData[slotIndex % mData.length]; in get()
122 public boolean isActiveSlot(int slotIndex) { in isActiveSlot() argument
123 return slotIndex >= mActiveStart && slotIndex < mActiveEnd; in isActiveSlot()
226 private boolean requestSlotImage(int slotIndex) { in requestSlotImage() argument
227 if (slotIndex < mContentStart || slotIndex >= mContentEnd) return false; in requestSlotImage()
228 AlbumEntry entry = mData[slotIndex % mData.length]; in requestSlotImage()
248 private void cancelSlotImage(int slotIndex) { in cancelSlotImage() argument
[all …]
DSlotView.java197 public Rect getSlotRect(int slotIndex) { in getSlotRect() argument
198 return mLayout.getSlotRect(slotIndex, new Rect()); in getSlotRect()
344 abstract public void apply(GLCanvas canvas, int slotIndex, Rect target); in apply() argument
351 public void apply(GLCanvas canvas, int slotIndex, Rect target) { in apply() argument
365 public void apply(GLCanvas canvas, int slotIndex, Rect target) { in apply() argument
369 slotIndex * PHOTO_DISTANCE * (1 - mProgress)); in apply()
741 public Rect getSlotRect(int slotIndex, GLView rootPane) { in getSlotRect() argument
745 Rect r = getSlotRect(slotIndex); in getSlotRect()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DDefaultCellBroadcastService.java73 public void onGsmCellBroadcastSms(int slotIndex, byte[] message) { in onGsmCellBroadcastSms() argument
74 Log.d(TAG, "onGsmCellBroadcastSms received message on slotId=" + slotIndex); in onGsmCellBroadcastSms()
78 mGsmCellBroadcastHandler.onGsmCellBroadcastSms(slotIndex, message); in onGsmCellBroadcastSms()
82 public void onCdmaCellBroadcastSms(int slotIndex, byte[] bearerData, int serviceCategory) { in onCdmaCellBroadcastSms() argument
83 Log.d(TAG, "onCdmaCellBroadcastSms received message on slotId=" + slotIndex); in onCdmaCellBroadcastSms()
89 Context.TELEPHONY_SUBSCRIPTION_SERVICE)).getSubscriptionIds(slotIndex); in onCdmaCellBroadcastSms()
99 SmsCbMessage message = parseCdmaBroadcastSms(getApplicationContext(), slotIndex, plmn, in onCdmaCellBroadcastSms()
107 public void onCdmaScpMessage(int slotIndex, List<CdmaSmsCbProgramData> programData, in onCdmaScpMessage() argument
109 Log.d(TAG, "onCdmaScpMessage received message on slotId=" + slotIndex); in onCdmaScpMessage()
113 mCdmaScpHandler.onCdmaScpMessage(slotIndex, new ArrayList<>(programData), in onCdmaScpMessage()
[all …]
DGsmCellBroadcastHandler.java223 public void onGsmCellBroadcastSms(int slotIndex, byte[] message) { in onGsmCellBroadcastSms() argument
224 sendMessage(EVENT_NEW_SMS_MESSAGE, slotIndex, -1, message); in onGsmCellBroadcastSms()
234 public String getCellBroadcastAreaInfo(int slotIndex) { in getCellBroadcastAreaInfo() argument
237 info = mAreaInfos.get(slotIndex); in getCellBroadcastAreaInfo()
254 private Resources getResourcesForSlot(int slotIndex) { in getResourcesForSlot() argument
256 int[] subIds = subMgr.getSubscriptionIds(slotIndex); in getResourcesForSlot()
274 GeoFencingTriggerMessage geoFencingTriggerMessage, int slotIndex) { in handleGeoFencingTriggerMessage() argument
278 Resources res = getResourcesForSlot(slotIndex); in handleGeoFencingTriggerMessage()
371 slotIndex, calculator); in handleGeoFencingTriggerMessage()
374 calculator, location, slotIndex, accuracy); in handleGeoFencingTriggerMessage()
[all …]
DCellBroadcastHandler.java347 int slotIndex = message.getSlotIndex(); in handleBroadcastSms() local
372 performGeoFencing(message, uri, calculator, location, slotIndex, in handleBroadcastSms()
382 calculator, message, uri, slotIndex); in handleBroadcastSms()
391 broadcastMessage(message, uri, slotIndex); in handleBroadcastSms()
427 Uri uri, int slotIndex) { in onLocationUnavailable() argument
440 broadcastGeofenceMessage(message, uri, slotIndex, calculator); in onLocationUnavailable()
629 CbSendMessageCalculator calculator, LatLng location, int slotIndex, float accuracy) { in performGeoFencing() argument
660 broadcastGeofenceMessage(message, uri, slotIndex, calculator); in performGeoFencing()
729 int slotIndex, CbSendMessageCalculator calculator) { in broadcastGeofenceMessage() argument
742 broadcastMessage(message, messageUri, slotIndex); in broadcastGeofenceMessage()
[all …]
DCdmaServiceCategoryProgramHandler.java76 public void onCdmaScpMessage(int slotIndex, ArrayList<CdmaSmsCbProgramData> programData, in onCdmaScpMessage() argument
78 onCdmaCellBroadcastSms(new CdmaScpMessage(slotIndex, programData, originatingAddress, in onCdmaScpMessage()
91 CdmaScpMessage(int slotIndex, ArrayList<CdmaSmsCbProgramData> programData, in CdmaScpMessage() argument
93 mSlotIndex = slotIndex; in CdmaScpMessage()
DGsmSmsCbMessage.java98 SmsCbLocation location, byte[][] pdus, int slotIndex) in createSmsCbMessage() argument
103 int[] subIds = sm.getSubscriptionIds(slotIndex); in createSmsCbMessage()
119 slotIndex, subId); in createSmsCbMessage()
153 geometries, receivedTimeMillis, slotIndex, subId); in createSmsCbMessage()
169 receivedTimeMillis, slotIndex, subId); in createSmsCbMessage()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumPage.java251 private void onSingleTapUp(int slotIndex) { in onSingleTapUp() argument
255 MediaItem item = mAlbumDataAdapter.get(slotIndex); in onSingleTapUp()
261 mAlbumView.setPressedIndex(slotIndex); in onSingleTapUp()
263 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PICK_PHOTO, slotIndex, 0), in onSingleTapUp()
268 private void pickPhoto(int slotIndex) { in pickPhoto() argument
269 pickPhoto(slotIndex, false); in pickPhoto()
272 private void pickPhoto(int slotIndex, boolean startInFilmstrip) { in pickPhoto() argument
280 MediaItem item = mAlbumDataAdapter.get(slotIndex); in pickPhoto()
289 transitions.put(PhotoPage.KEY_INDEX_HINT, slotIndex); in pickPhoto()
295 data.putInt(PhotoPage.KEY_INDEX_HINT, slotIndex); in pickPhoto()
[all …]
DAlbumSetPage.java180 private void getSlotCenter(int slotIndex, int center[]) { in getSlotCenter() argument
183 Rect r = mSlotView.getSlotRect(slotIndex); in getSlotCenter()
190 public void onSingleTapUp(int slotIndex) { in onSingleTapUp() argument
194 MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); in onSingleTapUp()
200 mAlbumSetView.setPressedIndex(slotIndex); in onSingleTapUp()
202 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PICK_ALBUM, slotIndex, 0), in onSingleTapUp()
237 private void pickAlbum(int slotIndex) { in pickAlbum() argument
240 MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); in pickAlbum()
252 getSlotCenter(slotIndex, center); in pickAlbum()
267 mSlotView.getSlotRect(slotIndex, mRootPane)); in pickAlbum()
[all …]
DAlbumSetDataLoader.java164 private void clearSlot(int slotIndex) { in clearSlot() argument
165 mData[slotIndex] = null; in clearSlot()
166 mCoverItem[slotIndex] = null; in clearSlot()
167 mTotalCount[slotIndex] = 0; in clearSlot()
168 mItemVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
169 mSetVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
DAlbumDataLoader.java152 private void clearSlot(int slotIndex) { in clearSlot() argument
153 mData[slotIndex] = null; in clearSlot()
154 mItemVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
155 mSetVersion[slotIndex] = MediaObject.INVALID_DATA_VERSION; in clearSlot()
DManageCachePage.java157 public void onSingleTapUp(int slotIndex) { in onSingleTapUp() argument
158 MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); in onSingleTapUp()
308 public void onSingleTapUp(int slotIndex) { in initializeViews()
309 ManageCachePage.this.onSingleTapUp(slotIndex); in initializeViews()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanNetworkService.java192 public IwlanNetworkServiceProvider(int slotIndex, IwlanNetworkService iwlanNetworkService) { in IwlanNetworkServiceProvider() argument
193 super(slotIndex); in IwlanNetworkServiceProvider()
194 SUB_TAG = TAG + "[" + slotIndex + "]"; in IwlanNetworkServiceProvider()
202 IwlanEventListener.getInstance(mContext, slotIndex).addEventListener(events, mHandler); in IwlanNetworkServiceProvider()
287 public NetworkServiceProvider onCreateNetworkServiceProvider(int slotIndex) { in onCreateNetworkServiceProvider() argument
288 Log.d(TAG, "onCreateNetworkServiceProvider: slotidx:" + slotIndex); in onCreateNetworkServiceProvider()
315 IwlanNetworkServiceProvider np = new IwlanNetworkServiceProvider(slotIndex, this); in onCreateNetworkServiceProvider()
374 IwlanNetworkServiceProvider getNetworkServiceProvider(int slotIndex) { in getNetworkServiceProvider() argument
376 if (np.getSlotIndex() == slotIndex) { in getNetworkServiceProvider()
DIwlanEventListener.java376 int slotIndex = SubscriptionManager.getSlotIndex(subIndex); in getCurrentUriSetting() local
378 if (slotIndex == SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in getCurrentUriSetting()
379 Log.e(SUB_TAG, "Invalid slot index: " + slotIndex); in getCurrentUriSetting()
384 boolean isCstEnabled = IwlanHelper.isCrossSimCallingEnabled(mContext, slotIndex); in getCurrentUriSetting()
389 getInstance(mContext, slotIndex).updateHandlers(event); in getCurrentUriSetting()
403 getInstance(mContext, slotIndex).updateHandlers(event); in getCurrentUriSetting()
DIwlanDataService.java629 public IwlanDataServiceProvider(int slotIndex, IwlanDataService iwlanDataService) { in IwlanDataServiceProvider() argument
630 super(slotIndex); in IwlanDataServiceProvider()
631 SUB_TAG = TAG + "[" + slotIndex + "]"; in IwlanDataServiceProvider()
638 mEpdgSelector = EpdgSelector.getSelectorInstance(mContext, slotIndex); in IwlanDataServiceProvider()
648 IwlanEventListener.getInstance(mContext, slotIndex).addEventListener(events, mHandler); in IwlanDataServiceProvider()
1287 public DataServiceProvider onCreateDataServiceProvider(int slotIndex) { in onCreateDataServiceProvider() argument
1289 Log.d(TAG, "Creating provider for " + slotIndex); in onCreateDataServiceProvider()
1307 IwlanDataServiceProvider dp = new IwlanDataServiceProvider(slotIndex, this); in onCreateDataServiceProvider()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java94 SmsCbLocation location, byte[][] pdus, int slotIndex) in createSmsCbMessage() argument
99 int[] subIds = sm.getSubscriptionIds(slotIndex); in createSmsCbMessage()
114 header.getCmasInfo(), 0, null /* geometries */, receivedTimeMillis, slotIndex, in createSmsCbMessage()
149 geometries, receivedTimeMillis, slotIndex, subId); in createSmsCbMessage()
165 null /* geometries */, receivedTimeMillis, slotIndex, subId); in createSmsCbMessage()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java168 private boolean isValidSlotIndex(int slotIndex, TelephonyManager telephonyManager) { in isValidSlotIndex() argument
169 return slotIndex >= 0 && slotIndex < telephonyManager.getPhoneCount(); in isValidSlotIndex()
DImeiInfoPreferenceController.java156 private int getPhoneType(int slotIndex) { in getPhoneType() argument
158 .getActiveSubscriptionInfoForSimSlotIndex(slotIndex); in getPhoneType()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java3103 public String getImeiForSlot(int slotIndex, String callingPackage, String callingFeatureId) { in getImeiForSlot() argument
3104 Phone phone = PhoneFactory.getPhone(slotIndex); in getImeiForSlot()
3124 public String getTypeAllocationCodeForSlot(int slotIndex) { in getTypeAllocationCodeForSlot() argument
3125 Phone phone = PhoneFactory.getPhone(slotIndex); in getTypeAllocationCodeForSlot()
3135 public String getMeidForSlot(int slotIndex, String callingPackage, String callingFeatureId) { in getMeidForSlot() argument
3136 Phone phone = PhoneFactory.getPhone(slotIndex); in getMeidForSlot()
3156 public String getManufacturerCodeForSlot(int slotIndex) { in getManufacturerCodeForSlot() argument
3157 Phone phone = PhoneFactory.getPhone(slotIndex); in getManufacturerCodeForSlot()
3167 public String getDeviceSoftwareVersionForSlot(int slotIndex, String callingPackage, in getDeviceSoftwareVersionForSlot() argument
3169 Phone phone = PhoneFactory.getPhone(slotIndex); in getDeviceSoftwareVersionForSlot()
[all …]
/packages/apps/Settings/src/com/android/settings/network/helper/
DQuerySimSlotIndex.java64 .filter(slotIndex -> (slotIndex >= slotIndexFilter)) in call()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastCursorAdapter.java84 int slotIndex = cursor.getInt( in createFromCursor() local
198 int[] subIds = sm.getSubscriptionIds(slotIndex); in createFromCursor()
211 slotIndex, subId); in createFromCursor()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java181 int slotIndex = SubscriptionManager.getSlotIndex(subId); in startSimSelectDialogIfNeeded() local
187 newIntent.putExtra(SimDialogActivity.PREFERRED_SIM, slotIndex); in startSimSelectDialogIfNeeded()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java620 protected AtomicReference<String> getEid(int slotIndex) { in getEid() argument
627 final int pSlotId = mapping.getOrDefault(slotIndex, in getEid()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DRcsFeatureController.java96 FeatureConnector<U> create(Context context, int slotIndex, in create() argument

12