/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 40 public static class Token { class in HanziToPinyin 50 public Token() { in Token() method in HanziToPinyin.Token 53 public Token(int type, String source, String target) { in Token() method in HanziToPinyin.Token 98 private void tokenize(char character, Token token) { in tokenize() 103 token.type = Token.LATIN; in tokenize() 110 token.type = Token.LATIN; in tokenize() 116 token.type = Token.PINYIN; in tokenize() 120 token.type = Token.UNKNOWN; in tokenize() 137 public ArrayList<Token> getTokens(final String input) { in getTokens() 138 ArrayList<Token> tokens = new ArrayList<Token>(); in getTokens() [all …]
|
D | ContactLocaleUtils.java | 29 import com.android.providers.contacts.HanziToPinyin.Token; 472 ArrayList<Token> tokens = HanziToPinyin.getInstance().getTokens(name); in getPinyinNameLookupKeys() 481 final Token token = tokens.get(i); in getPinyinNameLookupKeys() 482 if (Token.UNKNOWN == token.type) { in getPinyinNameLookupKeys() 485 if (Token.PINYIN == token.type) { in getPinyinNameLookupKeys() 488 } else if (Token.LATIN == token.type) { in getPinyinNameLookupKeys()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | HanziToPinyinTest.java | 23 import com.android.providers.contacts.HanziToPinyin.Token; 43 ArrayList<Token> tokens = HanziToPinyin.getInstance().getTokens(hanziString); in test() 49 tokens.get(0).type, Token.UNKNOWN); in test() 56 tokens.get(0).type, Token.PINYIN); in test() 68 ArrayList<Token> tokens = HanziToPinyin.getInstance().getTokens(ONE_HANZI); in testGetToken() 70 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken() 75 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken() 76 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken() 82 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken() 86 assertEquals(tokens.get(0).type, Token.UNKNOWN); in testGetToken() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 20 import com.android.quicksearchbox.util.LevenshteinDistance.Token; 43 final Token[] queryTokens = tokenize(query); in formatSuggestion() 44 final Token[] suggestionTokens = tokenize(suggestion); in formatSuggestion() 55 final Token t = suggestionTokens[i]; in formatSuggestion() 82 int[] findMatches(Token[] source, Token[] target) { in findMatches() 99 Token[] tokenize(final String seq) { in tokenize() 104 Token[] tokens = new Token[len]; in tokenize() 116 tokens[tokenCount++] = new Token(chars, start, end); in tokenize() 120 Token[] ret = new Token[tokenCount]; in tokenize()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 33 private final Token[] mSource; 34 private final Token[] mTarget; 38 public LevenshteinDistance(Token[] source, Token[] target) { in LevenshteinDistance() 65 final Token[] src = mSource; in calculate() 66 final Token[] trg = mTarget; in calculate() 72 Token sourceToken = src[s-1]; in calculate() 74 Token targetToken = trg[t-1]; in calculate() 149 public static final class Token implements CharSequence { class in LevenshteinDistance 154 public Token(char[] container, int start, int end) { in Token() method in LevenshteinDistance.Token 170 public boolean prefixOf(final Token that) { in prefixOf()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceController.java | 48 MediaSession.Token mActiveToken; 55 public void onRemoteUpdate(MediaSession.Token token, String name, 66 public void onRemoteRemoved(MediaSession.Token t) { 76 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) { 102 public static MediaSession.Token getActiveRemoteToken(Context context) { in getActiveRemoteToken() 219 MediaSession.Token token, MediaController.PlaybackInfo playbackInfo) { in updatePreference() 229 private void updateToken(MediaSession.Token token) { in updateToken() 268 public void onRemoteUpdate(MediaSession.Token token, String name, in onRemoteUpdate() 274 public void onRemoteRemoved(MediaSession.Token t) { in onRemoteRemoved() 279 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) { in onRemoteVolumeChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RemoteVolumePreferenceController.java | 49 MediaSession.Token mActiveToken; 56 public void onRemoteUpdate(MediaSession.Token token, String name, 67 public void onRemoteRemoved(MediaSession.Token t) { 77 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) { 201 MediaSession.Token token, MediaController.PlaybackInfo playbackInfo) { in updatePreference() 211 private void updateToken(MediaSession.Token token) { in updateToken() 250 public void onRemoteUpdate(MediaSession.Token token, String name, in onRemoteUpdate() 256 public void onRemoteRemoved(MediaSession.Token t) { in onRemoteRemoved() 261 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) { in onRemoteVolumeChanged()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 20 import com.android.quicksearchbox.util.LevenshteinDistance.Token; 39 Token[] sourceTokens = makeTokens(source); in verifyTargetOperations() 40 Token[] targetTokens = makeTokens(target); in verifyTargetOperations() 59 private Token[] makeTokens(String[] strings) { in makeTokens() 60 Token[] tokens = new Token[strings.length]; in makeTokens() 63 tokens[i] = new Token(str.toCharArray(), 0, str.length()); in makeTokens()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | pointer.h | 89 struct Token { struct 155 …GenericPointer(const Token* tokens, size_t tokenCount) : allocator_(), ownAllocator_(), nameBuffer… in GenericPointer() 201 GenericPointer Append(const Token& token, Allocator* allocator = 0) const { 220 Token token = { name, length, kPointerInvalidIndex }; 260 Token token = { (Ch*)buffer, length, index }; 267 Token token = { name, length, index }; 306 const Token* GetTokens() const { return tokens_; } in GetTokens() 391 for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) { 460 for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) { in Get() 688 const Token* last = tokens_ + (tokenCount_ - 1); in Erase() [all …]
|
D | reader.h | 1028 enum Token { enum 1047 RAPIDJSON_FORCEINLINE Token Tokenize(Ch c) { in Tokenize() 1069 return (Token)tokenMap[(unsigned char)c]; in Tokenize() 1074 RAPIDJSON_FORCEINLINE IterativeParsingState Predict(IterativeParsingState state, Token token) { in Predict() 1241 …RAPIDJSON_FORCEINLINE IterativeParsingState Transit(IterativeParsingState src, Token token, Iterat… in Transit() 1409 Token t = Tokenize(is.Peek()); in IterativeParse()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 20 import com.android.quicksearchbox.util.LevenshteinDistance.Token; 44 Token[] tokens = mFormatter.tokenize(input); in verifyTokenizeResult() 94 Token[] sourceTokens = mFormatter.tokenize(source); in verifyFindMatches() 95 Token[] targetTokens = mFormatter.tokenize(target); in verifyFindMatches() 113 Token srcToken = sourceTokens[sourceIdx]; in verifyFindMatches() 114 Token trgToken = targetTokens[i]; in verifyFindMatches()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceControllerTest.java | 59 private MediaSession.Token mToken; 60 private MediaSession.Token mToken2; 76 mToken = new MediaSession.Token(mStub); in setUp() 77 mToken2 = new MediaSession.Token(mStub2); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | VolumePanelTest.java | 76 MediaSession.Token token = new MediaSession.Token(mStub); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 83 when(mMediaController.getSessionToken()).thenReturn(new MediaSession.Token(mStub)); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 35 import android.media.session.MediaSession.Token; 468 private Map<Token, MediaControllerCallback> mCallbacks = new HashMap<>(); 479 Map<MediaSession.Token, MediaControllerCallback> updatedCallbacks = in registerCallbacks() 483 MediaSession.Token token = controller.getSessionToken(); in registerCallbacks() 493 for (MediaSession.Token token : mCallbacks.keySet()) { in registerCallbacks() 514 for (Map.Entry<Token, MediaControllerCallback> entry : mCallbacks.entrySet()) { in unregisterCallbacks()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourceViewModel.java | 72 MediaControllerCompat getControllerForSession(@Nullable MediaSessionCompat.Token session); in getControllerForSession() 105 @Nullable MediaSessionCompat.Token token) { in MediaSourceViewModel()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/ |
D | MediaController.java | 53 MediaController(Context context, MediaSession.Token token) { in MediaController() 151 public MediaSession.Token getSessionToken() { in getSessionToken()
|
D | MediaControllerFactory.java | 38 static MediaController make(Context context, MediaSession.Token token) { in make()
|
D | MediaBrowser.java | 115 public MediaSession.Token getSessionToken() { in getSessionToken()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/phone/ |
D | TmaLauncherActivity.java | 53 MediaSessionCompat.Token token = mediaBrowser.getSessionToken();
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | pointer.md | 134 ## Resolving Minus Sign Token 226 static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(123) };
|
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/ |
D | MediaSourceViewModelTest.java | 107 @Nullable MediaSessionCompat.Token token) { in initializeViewModel()
|
/packages/apps/Car/Radio/src/com/android/car/radio/media/ |
D | TunerSession.java | 130 public MediaSession.Token getSessionToken() { in getSessionToken()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | MediaPlayerList.java | 784 MediaSession.Token token) {
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | pointertest.cpp | 441 static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(0) }; // equivalent to "/foo/0"
|