Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Contacts/tests/src/com/android/contacts/format/
DTextHighlighterTest.java42 CharSequence seq = mTextHighlighter.applyPrefixHighlight("", ""); in testApply_EmptyPrefix() local
43 SpannedTestUtils.assertNotSpanned(seq, ""); in testApply_EmptyPrefix()
45 seq = mTextHighlighter.applyPrefixHighlight("test", ""); in testApply_EmptyPrefix()
46 SpannedTestUtils.assertNotSpanned(seq, "test"); in testApply_EmptyPrefix()
52 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix() local
53 SpannedTestUtils.assertPrefixSpan(seq, 0, 1); in testSetText_MatchingPrefix()
55 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix()
56 SpannedTestUtils.assertPrefixSpan(seq, 0, 1); in testSetText_MatchingPrefix()
58 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix()
59 SpannedTestUtils.assertPrefixSpan(seq, 0, 1); in testSetText_MatchingPrefix()
[all …]
DSpannedTestUtils.java56 public static void assertPrefixSpan(CharSequence seq, int start, int end) { in assertPrefixSpan() argument
57 Assert.assertTrue(seq instanceof Spanned); in assertPrefixSpan()
58 Spanned spannable = (Spanned) seq; in assertPrefixSpan()
78 public static void assertNotSpanned(CharSequence seq, String expected) { in assertNotSpanned() argument
79 Assert.assertFalse(seq instanceof Spanned); in assertNotSpanned()
80 Assert.assertEquals(expected, seq); in assertNotSpanned()
83 public static int getNextTransition(SpannableString seq, int start) { in getNextTransition() argument
84 return seq.nextSpanTransition(start, seq.length(), StyleSpan.class); in getNextTransition()
/packages/apps/Contacts/tests/src/com/android/contacts/list/
DContactListItemViewTest.java80 CharSequence seq = view.getNameTextView().getText(); in testShowDisplayName_WithPrefix() local
81 assertEquals("John Doe", seq.toString()); in testShowDisplayName_WithPrefix()
82 SpannedTestUtils.assertPrefixSpan(seq, 5, 7); in testShowDisplayName_WithPrefix()
85 assertFalse("John Doe".equals(seq)); in testShowDisplayName_WithPrefix()
95 CharSequence seq = view.getNameTextView().getText(); in testShowDisplayName_WithPrefixReversed() local
96 assertEquals("John Doe", seq.toString()); in testShowDisplayName_WithPrefixReversed()
97 SpannedTestUtils.assertPrefixSpan(seq, 5, 7); in testShowDisplayName_WithPrefixReversed()
105 CharSequence seq = view.getSnippetView().getText(); in testSetSnippet_Prefix() local
107 assertEquals("This is a test", seq.toString()); in testSetSnippet_Prefix()
108 SpannedTestUtils.assertPrefixSpan(seq, 10, 13); in testSetSnippet_Prefix()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java65 final int seq = 0x11111111; in testFromTcpKeepaliveStableParcelable() local
77 testInfo.seq = seq; in testFromTcpKeepaliveStableParcelable()
93 assertEquals(testInfo.seq, resultData.tcpSeq); in testFromTcpKeepaliveStableParcelable()
125 assertEquals(buf.getInt(), seq); in testFromTcpKeepaliveStableParcelable() local
150 testInfo.seq = sequence; in testToTcpKeepaliveStableParcelable()
164 assertEquals(resultData.seq, sequence); in testToTcpKeepaliveStableParcelable()
193 testParcel.seq = sequence; in testParseTcpKeepalivePacketData()
/packages/modules/adb/
Dsysdeps_win32_test.cpp142 for (const auto& seq : multi_byte_sequences) { in TEST() local
146 for (size_t i = 0; i < seq.size() - 1; ++i) { in TEST()
147 buffer.push_back(seq[i]); in TEST()
153 std::vector<char>(seq.begin(), seq.begin() + i + 1)); in TEST()
157 buffer.push_back(seq.back()); in TEST()
/packages/apps/Messaging/tools/messagegen/
Dfillsms134 for k in `seq 1 $words`;
174 for i in `seq 1 $num_of_threads`;
201 for j in `seq 1 $sms_per_thread`;
214 for j in `seq 1 $mms_per_thread`;
/packages/apps/Settings/src/com/android/settings/notification/
DSuppressorHelper.java42 final CharSequence seq = info.loadLabel(pm); in getSuppressorCaption() local
43 if (seq != null) { in getSuppressorCaption()
44 final String str = seq.toString().trim(); in getSuppressorCaption()
/packages/modules/DnsResolver/
DPrivateDnsConfigurationTest.cpp142 testing::InSequence seq; in TEST_F() local
155 testing::InSequence seq; in TEST_F() local
171 testing::InSequence seq; in TEST_F() local
206 testing::InSequence seq; in TEST_F() local
250 testing::InSequence seq; in TEST_F() local
313 testing::InSequence seq; in TEST_F() local
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java83 parcel.seq = pkt.getTcpSeq(); in toStableParcelable()
114 tcpDetails.seq, tcpDetails.ack, tcpDetails.rcvWnd, tcpDetails.rcvWndScale, in fromStableParcelable()
143 buf.putInt(tcpDetails.seq); // Sequence Number in buildV4Packet()
213 p.seq = tcpSeq; in parseTcpKeepalivePacketData()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java99 Token[] tokenize(final String seq) { in tokenize() argument
101 final int len = seq.length(); in tokenize()
102 final char[] chars = seq.toCharArray(); in tokenize()
/packages/providers/MediaProvider/tests/res/raw/
Dtest_wpl.wpl12 <seq>
18 </seq>
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java178 tcpDetails.seq = Os.getsockoptInt(fd, IPPROTO_TCP, TCP_QUEUE_SEQ); in switchToRepairMode()
220 tcpDetails.seq = tcpDetails.seq - 1; in switchToRepairMode()
/packages/modules/NeuralNetworks/tools/
Dbuild_and_run_benchmark.sh72 for i in $(seq 1 $NUMBER_RUNS); do
89 for i in $(seq 1 $NUMBER_RUNS); do
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java203 String[] seq = Path.splitSequence(segment); in getMediaSetsFromString() local
204 int n = seq.length; in getMediaSetsFromString()
207 sets[i] = getMediaSet(seq[i]); in getMediaSetsFromString()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java593 for (int seq = 1; seq <= sequenceNumber; seq++) { in receiveWithSequence()
596 assertEquals(seq, sequenceNumberFn.applyAsInt(obj)); in receiveWithSequence()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java1048 public final int seq; field in ApfFilter.TcpKeepaliveAck.TcpKeepaliveAckData
1057 seq = sentKeepalivePacket.ack; in TcpKeepaliveAckData()
1058 ack = sentKeepalivePacket.seq + 1; in TcpKeepaliveAckData()
1070 mPacket.dstPort, mPacket.seq, mPacket.ack); in TcpKeepaliveAck()
1073 static byte[] generatePortSeqAckFingerprint(int srcPort, int dstPort, int seq, int ack) { in generatePortSeqAckFingerprint() argument
1078 fp.putInt(seq); in generatePortSeqAckFingerprint()
1090 Integer.toUnsignedLong(mPacket.seq), in toString()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DTcpKeepalivePacketDataParcelable.aidl7 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DTcpKeepalivePacketDataParcelable.aidl24 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DTcpKeepalivePacketDataParcelable.aidl7 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DTcpKeepalivePacketDataParcelable.aidl24 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DTcpKeepalivePacketDataParcelable.aidl24 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DTcpKeepalivePacketDataParcelable.aidl24 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DTcpKeepalivePacketDataParcelable.aidl7 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DTcpKeepalivePacketDataParcelable.aidl24 int seq;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DTcpKeepalivePacketDataParcelable.aidl25 int seq;

12