/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | FocusLogicTest.java | 63 int[][] map = transpose(new int[][] { in testMoveFromBottomRightToBottomLeft() local 70 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToBottomLeft() 75 int[][] map = transpose(new int[][] { in testMoveFromBottomRightToTopLeft() local 82 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_RIGHT, map, 100, 1, 2, false); in testMoveFromBottomRightToTopLeft() 88 int[][] map = transpose(new int[][] { in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() local 95 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 99 map = transpose(new int[][] { in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 106 i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithEqualHotseatAndWorkspaceColumns() 113 int[][] map = transpose(new int[][] { in testMoveIntoHotseatWithExtraColumnForAllApps() local 121 int i = FocusLogic.handleKeyEvent(KeyEvent.KEYCODE_DPAD_DOWN, map, 0, 1, 1, true); in testMoveIntoHotseatWithExtraColumnForAllApps() [all …]
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/ |
D | CacheManager.java | 330 SortedMap<Long, SampleCache> map = mCacheMap.get(id); in createNewWriteFile() local 331 if (map == null) { in createNewWriteFile() 332 map = new TreeMap<>(); in createNewWriteFile() 333 mCacheMap.put(id, map); in createNewWriteFile() 338 map.put(positionUs, sampleCache); in createNewWriteFile() 353 SortedMap<Long, SampleCache> map = mCacheMap.get(trackId); in loadTrackFormStorage() local 354 if (map == null) { in loadTrackFormStorage() 355 map = new TreeMap<>(); in loadTrackFormStorage() 356 mCacheMap.put(trackId, map); in loadTrackFormStorage() 363 map.put(positionUs, cache); in loadTrackFormStorage() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Settings.java | 289 public Map<String, Object> getValueMap(Map<String, Object> map) { in getValueMap() argument 290 if (map == null) { in getValueMap() 291 map = new HashMap<String, Object>(); in getValueMap() 294 map.put(SettingsColumns.SIGNATURE, signature); in getValueMap() 295 map.put(SettingsColumns.AUTO_ADVANCE, getAutoAdvanceSetting()); in getValueMap() 296 map.put(SettingsColumns.SNAP_HEADERS, snapHeaders); in getValueMap() 297 map.put(SettingsColumns.REPLY_BEHAVIOR, replyBehavior); in getValueMap() 298 map.put(SettingsColumns.CONV_LIST_ICON, convListIcon); in getValueMap() 299 map.put(SettingsColumns.CONFIRM_DELETE, confirmDelete ? 1 : 0); in getValueMap() 300 map.put(SettingsColumns.CONFIRM_ARCHIVE, confirmArchive ? 1 : 0); in getValueMap() [all …]
|
D | Account.java | 926 final Map<String, Object> map = new HashMap<String, Object>(); in getValueMap() local 928 map.put(AccountColumns._ID, 0); in getValueMap() 929 map.put(AccountColumns.NAME, displayName); in getValueMap() 930 map.put(AccountColumns.SENDER_NAME, senderName); in getValueMap() 931 map.put(AccountColumns.TYPE, type); in getValueMap() 932 map.put(AccountColumns.ACCOUNT_MANAGER_NAME, accountManagerName); in getValueMap() 933 map.put(AccountColumns.ACCOUNT_ID, accountId); in getValueMap() 934 map.put(AccountColumns.PROVIDER_VERSION, providerVersion); in getValueMap() 935 map.put(AccountColumns.URI, uri); in getValueMap() 936 map.put(AccountColumns.CAPABILITIES, capabilities); in getValueMap() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ContentCacheTests.java | 65 ContentCache.CounterMap<String> map = new ContentCache.CounterMap<String>(4); in testCounterMap() local 67 map.add("1"); in testCounterMap() 68 assertTrue(map.contains("1")); in testCounterMap() 69 map.add("2"); in testCounterMap() 70 map.add("2"); in testCounterMap() 72 map.subtract("2"); in testCounterMap() 73 assertTrue(map.contains("2")); in testCounterMap() 74 map.subtract("2"); in testCounterMap() 77 map.subtract("2"); in testCounterMap() 82 map.subtract("3"); in testCounterMap() [all …]
|
/packages/apps/TV/usbtuner/jni/ |
D | tunertvinput_jni.cpp | 33 static std::map<jlong, DvbManager *> sDvbManagers; 43 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeFinalize() 58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeTune() 78 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeCloseAllPidFilters() 92 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeStopTune() 106 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeAddPidFilter() 121 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeWriteInBuffer()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 262 Map<String, byte[]> map = getPkeyMap(); in installOthers() local 263 byte[] privatekey = map.get(key); in installOthers() 266 map.remove(key); in installOthers() 267 savePkeyMap(map); in installOthers() 293 Map<String, byte[]> map = getPkeyMap(); in saveKeyPair() local 294 map.put(key, privatekey); in saveKeyPair() 295 savePkeyMap(map); in saveKeyPair() 296 Log.d(TAG, "save privatekey: " + key + " --> #keys:" + map.size()); in saveKeyPair() 299 private void savePkeyMap(Map<String, byte[]> map) { in savePkeyMap() argument 300 if (map.isEmpty()) { in savePkeyMap() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | TagClustering.java | 41 final TreeMap<String, ArrayList<Path>> map = in run() local 57 ArrayList<Path> list = map.get(key); in run() 60 map.put(key, list); in run() 67 int m = map.size(); in run() 71 for (Map.Entry<String, ArrayList<Path>> entry : map.entrySet()) { in run()
|
D | FaceClustering.java | 92 final TreeMap<Face, FaceCluster> map = in run() local 106 FaceCluster cluster = map.get(face); in run() 109 map.put(face, cluster); in run() 116 int m = map.size(); in run() 117 mClusters = map.values().toArray(new FaceCluster[m + ((untagged.size() > 0) ? 1 : 0)]); in run()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 781 HashMap<Integer, Object> map = in parseHeaders() local 784 parseContentType(pduDataStream, map); in parseHeaders() 802 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders() 805 mTypeParam= (byte[]) map.get(PduPart.P_TYPE); in parseHeaders() 851 HashMap<Integer, Object> map = new HashMap<Integer, Object>(); in parseParts() local 852 byte[] contentType = parseContentType(pduDataStream, map); in parseParts() 860 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts() 866 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts() 1338 HashMap<Integer, Object> map, Integer length) { in parseContentTypeParams() argument 1393 map.put(PduPart.P_TYPE, type); in parseContentTypeParams() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduParser.java | 814 SparseArray<Object> map = new SparseArray<Object>(); in parseHeaders() local 816 parseContentType(pduDataStream, map); in parseHeaders() 835 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders() 838 mTypeParam = (byte[]) map.get(PduPart.P_TYPE); in parseHeaders() 885 SparseArray<Object> map = new SparseArray<Object>(); in parseParts() local 886 byte[] contentType = parseContentType(pduDataStream, map); in parseParts() 894 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts() 900 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts() 1375 SparseArray<Object> map, Integer length) { in parseContentTypeParams() argument 1430 map.put(PduPart.P_TYPE, type); in parseContentTypeParams() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 1061 ContentValues map = new ContentValues(); in getRow() local 1067 map.put(NUMERIC, numeric); in getRow() 1068 map.put(MCC, mcc); in getRow() 1069 map.put(MNC, mnc); in getRow() 1070 map.put(NAME, parser.getAttributeValue(null, "carrier")); in getRow() 1073 addStringAttribute(parser, "apn", map, APN); in getRow() 1074 addStringAttribute(parser, "user", map, USER); in getRow() 1075 addStringAttribute(parser, "server", map, SERVER); in getRow() 1076 addStringAttribute(parser, "password", map, PASSWORD); in getRow() 1077 addStringAttribute(parser, "proxy", map, PROXY); in getRow() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 160 StreamConfigurationMap map = p.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in printCameraInfo() local 162 int[] formats = map.getOutputFormats(); in printCameraInfo() 168 Size[] sizes = map.getOutputSizes(formats[i]); in printCameraInfo() 174 map.getOutputStallDuration(formats[i], sizes[j]) / 1000000, in printCameraInfo() 175 map.getOutputMinFrameDuration(formats[i], sizes[j]) / 1000000 in printCameraInfo() 183 int[] formats = map.getInputFormats(); in printCameraInfo() 186 Size[] sizes = map.getInputSizes(formats[i]); in printCameraInfo() 193 Size[] sizes = map.getOutputSizes(SurfaceHolder.class); in printCameraInfo() 198 Size[] sizes = map.getOutputSizes(SurfaceTexture.class); in printCameraInfo()
|
D | CameraInfoCache.java | 79 …StreamConfigurationMap map = mCameraCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIG… in CameraInfoCache() local 80 int[] formats = map.getOutputFormats(); in CameraInfoCache() 84 mLargestYuvSize = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 87 mLargestJpegSize = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 90 Size size = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 91 long stall = map.getOutputStallDuration(formats[i], size); in CameraInfoCache()
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | MapObexTestServer.java | 17 import com.android.bluetooth.map.BluetoothMapAccountItem; 18 import com.android.bluetooth.map.BluetoothMapContentObserver; 19 import com.android.bluetooth.map.BluetoothMapMasInstance; 20 import com.android.bluetooth.map.BluetoothMapObexServer; 21 import com.android.bluetooth.map.BluetoothMapUtils; 22 import com.android.bluetooth.map.BluetoothMnsObexClient;
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 253 HashMap<String, String> map = tokenizeImapId(id); in testImapIdBasic() local 254 assertEquals(mTestContext.getPackageName(), map.get("name")); in testImapIdBasic() 255 assertEquals("android", map.get("os")); in testImapIdBasic() 256 assertNotNull(map.get("os-version")); in testImapIdBasic() 257 assertNotNull(map.get("vendor")); in testImapIdBasic() 258 assertNotNull(map.get("AGUID")); in testImapIdBasic() 266 map = tokenizeImapId(id); in testImapIdBasic() 267 assertEquals("packageName", map.get("name")); in testImapIdBasic() 268 assertEquals("android", map.get("os")); in testImapIdBasic() 269 assertEquals("version; id", map.get("os-version")); in testImapIdBasic() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharEscaperBuilder.java | 65 private final Map<Character, String> map; field in CharEscaperBuilder 74 this.map = new HashMap<Character, String>(); in CharEscaperBuilder() 81 map.put(c, r); in addEscape() 107 for (Map.Entry<Character, String> entry : map.entrySet()) { in toArray()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | EffectSettingPopup.java | 90 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local 91 map.put("value", value); in initialize() 92 map.put("text", entries[i].toString()); in initialize() 93 if (iconIds != null) map.put("image", iconIds[i]); in initialize() 95 mSillyFacesItem.add(map); in initialize() 97 mBackgroundItem.add(map); in initialize()
|
D | BasicSettingPopup.java | 66 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local 67 map.put("text", entries[i].toString()); in initialize() 68 if (iconIds != null) map.put("image", iconIds[i]); in initialize() 69 listItem.add(map); in initialize()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 83 public static int handleKeyEvent(int keyCode, int [][] map, int iconIdx, int pageIndex, in handleKeyEvent() argument 86 int cntX = map == null ? -1 : map.length; in handleKeyEvent() 87 int cntY = map == null ? -1 : map[0].length; in handleKeyEvent() 98 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, -1 /*increment*/, isRtl); in handleKeyEvent() 106 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, 1 /*increment*/, isRtl); in handleKeyEvent() 114 newIndex = handleDpadVertical(iconIdx, cntX, cntY, map, 1 /*increment*/); in handleKeyEvent() 117 newIndex = handleDpadVertical(iconIdx, cntX, cntY, map, -1 /*increment*/); in handleKeyEvent()
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialNameMatcher.java | 61 public SmartDialNameMatcher(String query, SmartDialMap map) { in SmartDialNameMatcher() argument 63 mMap = map; in SmartDialNameMatcher() 95 public static String normalizeNumber(String number, SmartDialMap map) { in normalizeNumber() argument 96 return normalizeNumber(number, 0, map); in normalizeNumber() 106 public static String normalizeNumber(String number, int offset, SmartDialMap map) { in normalizeNumber() argument 110 if (map.isValidDialpadNumericChar(ch)) { in normalizeNumber()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | SendersFormattingTests.java | 272 final Map<String, Object> map = new HashMap<>(2); in createAccount() local 273 map.put(UIProvider.AccountColumns.NAME, "Fred Flintstone"); in createAccount() 274 map.put(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME, "fflintstone@example.com"); in createAccount() 275 map.put(UIProvider.AccountColumns.TYPE, "IMAP"); in createAccount() 276 map.put(UIProvider.AccountColumns.PROVIDER_VERSION, 1); in createAccount() 277 map.put(UIProvider.AccountColumns.CAPABILITIES, 0); in createAccount() 279 final JSONObject json = new JSONObject(map); in createAccount()
|
/packages/services/Car/bluetooth/bt-map-service/ |
D | Android.mk | 20 LOCAL_PACKAGE_NAME := bt-map-service 33 android.bluetooth.client.map \ 34 bt-map-client-lib \
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
D | PackedString.java | 83 HashMap<String, String> map = new HashMap<String, String>(); in explode() local 101 tag = Integer.toString(map.size()); in explode() 108 map.put(tag, value); in explode() 112 return map; in explode()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | PackedString.java | 84 HashMap<String, String> map = new HashMap<String, String>(); in explode() local 102 tag = Integer.toString(map.size()); in explode() 109 map.put(tag, value); in explode() 113 return map; in explode()
|