Home
last modified time | relevance | path

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

/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.java71 public void onGsmCellBroadcastSms(int slotIndex, byte[] message) { in onGsmCellBroadcastSms() argument
72 Log.d(TAG, "onGsmCellBroadcastSms received message on slotId=" + slotIndex); in onGsmCellBroadcastSms()
76 mGsmCellBroadcastHandler.onGsmCellBroadcastSms(slotIndex, message); in onGsmCellBroadcastSms()
80 public void onCdmaCellBroadcastSms(int slotIndex, byte[] bearerData, int serviceCategory) { in onCdmaCellBroadcastSms() argument
81 Log.d(TAG, "onCdmaCellBroadcastSms received message on slotId=" + slotIndex); in onCdmaCellBroadcastSms()
87 Context.TELEPHONY_SUBSCRIPTION_SERVICE)).getSubscriptionIds(slotIndex); in onCdmaCellBroadcastSms()
97 SmsCbMessage message = parseCdmaBroadcastSms(getApplicationContext(), slotIndex, plmn, in onCdmaCellBroadcastSms()
105 public void onCdmaScpMessage(int slotIndex, List<CdmaSmsCbProgramData> programData, in onCdmaScpMessage() argument
107 Log.d(TAG, "onCdmaScpMessage received message on slotId=" + slotIndex); in onCdmaScpMessage()
111 mCdmaScpHandler.onCdmaScpMessage(slotIndex, new ArrayList<>(programData), in onCdmaScpMessage()
[all …]
DGsmCellBroadcastHandler.java99 public void onGsmCellBroadcastSms(int slotIndex, byte[] message) { in onGsmCellBroadcastSms() argument
100 sendMessage(EVENT_NEW_SMS_MESSAGE, slotIndex, -1, message); in onGsmCellBroadcastSms()
110 public String getCellBroadcastAreaInfo(int slotIndex) { in getCellBroadcastAreaInfo() argument
113 info = mAreaInfos.get(slotIndex); in getCellBroadcastAreaInfo()
137 GeoFencingTriggerMessage geoFencingTriggerMessage, int slotIndex) { in handleGeoFencingTriggerMessage() argument
143 int[] subIds = subMgr.getSubscriptionIds(slotIndex); in handleGeoFencingTriggerMessage()
223 broadcastMessage(cbMessages.get(i), cbMessageUris.get(i), slotIndex); in handleGeoFencingTriggerMessage()
230 broadcastMessage(cbMessages.get(i), cbMessageUris.get(i), slotIndex); in handleGeoFencingTriggerMessage()
233 location, slotIndex); in handleGeoFencingTriggerMessage()
249 private boolean handleAreaInfoMessage(int slotIndex, SmsCbMessage message) { in handleAreaInfoMessage() argument
[all …]
DCellBroadcastHandler.java306 int slotIndex = message.getSlotIndex(); in handleBroadcastSms() local
324 broadcastMessage(message, uri, slotIndex); in handleBroadcastSms()
326 performGeoFencing(message, uri, message.getGeometries(), location, slotIndex); in handleBroadcastSms()
335 broadcastMessage(message, uri, slotIndex); in handleBroadcastSms()
512 LatLng location, int slotIndex) { in performGeoFencing() argument
529 broadcastMessage(message, uri, slotIndex); in performGeoFencing()
598 int slotIndex) { in broadcastMessage() argument
610 putPhoneIdAndSubIdExtra(mContext, intent, slotIndex); in broadcastMessage()
653 Activity.RESULT_OK, slotIndex); in broadcastMessage()
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/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/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java2220 public int getCallStateForSlot(int slotIndex) { in getCallStateForSlot() argument
2223 Phone phone = PhoneFactory.getPhone(slotIndex); in getCallStateForSlot()
2548 public String getImeiForSlot(int slotIndex, String callingPackage, String callingFeatureId) { in getImeiForSlot() argument
2549 Phone phone = PhoneFactory.getPhone(slotIndex); in getImeiForSlot()
2568 public String getTypeAllocationCodeForSlot(int slotIndex) { in getTypeAllocationCodeForSlot() argument
2569 Phone phone = PhoneFactory.getPhone(slotIndex); in getTypeAllocationCodeForSlot()
2579 public String getMeidForSlot(int slotIndex, String callingPackage, String callingFeatureId) { in getMeidForSlot() argument
2580 Phone phone = PhoneFactory.getPhone(slotIndex); in getMeidForSlot()
2600 public String getManufacturerCodeForSlot(int slotIndex) { in getManufacturerCodeForSlot() argument
2601 Phone phone = PhoneFactory.getPhone(slotIndex); in getManufacturerCodeForSlot()
[all …]
/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.java152 private int getPhoneType(int slotIndex) { in getPhoneType() argument
154 .getActiveSubscriptionInfoForSimSlotIndex(slotIndex); in getPhoneType()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastCursorAdapter.java77 int slotIndex = cursor.getInt( in createFromCursor() local
191 int[] subIds = sm.getSubscriptionIds(slotIndex); in createFromCursor()
204 slotIndex, subId); in createFromCursor()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSelectNotification.java62 int slotIndex = SubscriptionManager.getSlotIndex(subId); in onReceive() local
67 newIntent.putExtra(SimDialogActivity.PREFERRED_SIM, slotIndex); in onReceive()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java167 int slotIndex = SubscriptionManager.getSlotIndex(subId); in startSimSelectDialogIfNeeded() local
173 newIntent.putExtra(SimDialogActivity.PREFERRED_SIM, slotIndex); in startSimSelectDialogIfNeeded()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java587 AtomicReference<String> getEid(int slotIndex) { in getEid() argument
594 final int pSlotId = mapping.getOrDefault(slotIndex, in getEid()