HomeSort by relevance Sort by last modified time
    Searched refs:KEY (Results 1 - 25 of 136) sorted by null

1 2 3 4 5 6

  /frameworks/av/services/camera/libcameraservice/utils/
ClientManager.h 101 * The ClientDescriptor class is a container for a given key/value pair identifying a shared
108 template<class KEY, class VALUE>
111 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
112 const std::set<KEY>& conflictingKeys, int32_t score, int32_t ownerId, int32_t state,
114 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
120 * Return the key for this descriptor.
122 const KEY& getKey() const
458 const KEY& key = client->getKey(); local
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowContentValuesTest.java 13 private static final String KEY = "key";
52 contentValues.put(KEY, 0);
53 assertThat(contentValues.getAsBoolean(KEY)).isFalse();
58 contentValues.put(KEY, 1);
59 assertThat(contentValues.getAsBoolean(KEY)).isTrue();
64 contentValues.put(KEY, false);
65 assertThat(contentValues.getAsBoolean(KEY)).isFalse();
70 contentValues.put(KEY, true);
71 assertThat(contentValues.getAsBoolean(KEY)).isTrue()
    [all...]
  /cts/tests/sample/src/android/sample/cts/
SampleDeviceTest.java 29 private static final String KEY = "foo";
62 * This inserts the key value pair and assert they can be retrieved. Then it clears the
68 // Save the key value pair to the preferences and assert they were saved.
69 mActivity.savePreference(KEY, VALUE);
70 assertEquals("Preferences were not saved", VALUE, mActivity.getPreference(KEY));
74 assertNull("Preferences were not cleared", mActivity.getPreference(KEY));
SampleJUnit4DeviceTest.java 37 private static final String KEY = "foo";
47 * This inserts the key value pair and assert they can be retrieved. Then it clears the
54 // Save the key value pair to the preferences and assert they were saved.
55 mActivityRule.getActivity().savePreference(KEY, VALUE);
57 mActivityRule.getActivity().getPreference(KEY));
62 mActivityRule.getActivity().getPreference(KEY));
  /cts/tests/tests/os/src/android/os/cts/
BundleTest.java 50 public static final String KEY = "Bruce Lee";
70 b1.putBoolean(KEY, true);
74 assertTrue(b2.getBoolean(KEY));
94 mBundle.putBoolean(KEY, true);
114 assertFalse(mBundle.containsKey(KEY));
115 mBundle.putBoolean(KEY, true);
116 assertTrue(mBundle.containsKey(KEY));
118 assertTrue(mBundle.containsKey(KEY));
124 assertNull(mBundle.get(KEY));
125 mBundle.putBoolean(KEY, true)
933 final String key = "key-" + i; local
    [all...]
  /external/grpc-grpc-java/core/src/test/java/io/grpc/
MetadataTest.java 30 import io.grpc.Metadata.Key;
64 private static final Metadata.Key<Fish> KEY = Metadata.Key.of("test-bin", FISH_MARSHALLER);
71 Metadata.Key.of(":test-bin", FISH_MARSHALLER);
80 assertEquals(null, metadata.get(KEY));
81 metadata.put(KEY, lance);
82 assertEquals(Arrays.asList(lance), Lists.newArrayList(metadata.getAll(KEY)));
83 assertEquals(lance, metadata.get(KEY));
84 metadata.put(KEY, lance)
295 Key<String> key = GrpcUtil.USER_AGENT_KEY; local
305 Key<String> key = GrpcUtil.USER_AGENT_KEY; local
    [all...]
  /external/python/cpython3/Modules/
hashtable.h 29 /* key (key_size bytes) and then data (data_size bytes) follows */
41 /* Get a key value from pkey: use memcpy() rather than a pointer dereference
49 #define _Py_HASHTABLE_ENTRY_READ_KEY(TABLE, ENTRY, KEY) \
51 assert(sizeof(KEY) == (TABLE)->key_size); \
52 memcpy(&(KEY), _Py_HASHTABLE_ENTRY_PKEY(ENTRY), sizeof(KEY)); \
150 /* Add a new entry to the hash. The key must not be present in the hash table.
162 #define _Py_HASHTABLE_SET(TABLE, KEY, DATA) \
163 _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA)
    [all...]
  /development/tools/repo_diff/service/repodiff/tools/migrations/
2018_03_26__22_36_44_upgrade.sql 5 PRIMARY KEY (id),
2018_02_21__21_30_16_upgrade.sql 11 PRIMARY KEY (upstream_target_id, downstream_target_id, timestamp, uuid, row_index)
  /external/smali/smalidea/src/main/java/org/jf/smalidea/psi/index/
SmaliClassNameIndex.java 40 public static final StubIndexKey<String, SmaliClass> KEY =
49 return KEY;
  /external/guava/guava-tests/test/com/google/common/collect/
ConcurrentHashMultisetTest.java 102 private static final String KEY = "puppies";
120 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT));
123 assertEquals(COUNT, multiset.count(KEY));
128 expect(backingMap.get(KEY)).andReturn(null);
131 assertEquals(0, multiset.count(KEY));
138 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT));
140 assertEquals(INITIAL_COUNT, multiset.add(KEY, 0));
147 expect(backingMap.get(KEY)).andReturn(null);
148 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null);
151 assertEquals(0, multiset.add(KEY, COUNT))
    [all...]
  /external/opencensus-java/contrib/agent/src/integration-test/java/io/opencensus/contrib/agent/instrumentation/
ThreadInstrumentationIT.java 40 private static final Context.Key<String> KEY = Context.key("mykey");
51 final Context context = Context.current().withValue(KEY, "myvalue");
61 assertThat(KEY.get()).isEqualTo("myvalue");
75 final Context context = Context.current().withValue(KEY, "myvalue");
85 assertThat(KEY.get()).isEqualTo("myvalue");
104 final Context context = Context.current().withValue(KEY, "myvalue");
115 Context context2 = Context.current().withValue(KEY, "wrong context");
ExecutorInstrumentationIT.java 44 private static final Context.Key<String> KEY = Context.key("mykey");
63 final Context context = Context.current().withValue(KEY, "myvalue");
74 assertThat(KEY.get()).isEqualTo("myvalue");
85 final Context context = Context.current().withValue(KEY, "myvalue");
97 assertThat(KEY.get()).isEqualTo("myvalue");
111 final Context context = Context.current().withValue(KEY, "myvalue");
123 assertThat(KEY.get()).isEqualTo("myvalue");
135 final Context context = Context.current().withValue(KEY, "myvalue")
    [all...]
  /cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DeviceConfigApiPermissionTests.java 40 private static final String KEY = "key";
107 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false);
114 DeviceConfig.getProperty(NAMESPACE, KEY);
147 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false);
154 DeviceConfig.getProperty(NAMESPACE, KEY);
189 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false);
196 String property = DeviceConfig.getProperty(NAMESPACE, KEY);
229 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false);
239 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false)
    [all...]
  /cts/tests/tests/preference/src/android/preference/cts/
PreferenceDataStoreTest.java 72 private static final String KEY = "TestPrefKey";
86 mPreference.setKey(KEY);
95 // Make sure that the key is not present in SharedPreferences to ensure test correctness.
96 mManager.getSharedPreferences().edit().remove(KEY).commit();
153 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any());
173 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class));
174 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString());
178 assertNull(mSharedPref.getString(KEY, null));
186 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR));
194 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR))
    [all...]
  /external/libese/apps/weaver/tests/
weaver_test.cpp 24 const uint8_t KEY[kEseWeaverKeySize] = {
64 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK);
68 ASSERT_EQ(ESE_APP_RESULT_OK, ese_weaver_read(&mSession, slotId, KEY, readValue, &timeout));
74 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK);
86 ASSERT_EQ(ese_weaver_write(&mSession, slotId, KEY, VALUE), ESE_APP_RESULT_OK);
89 // The read should be successful as the key is unchanged but the value should
93 ASSERT_EQ(ESE_APP_RESULT_OK, ese_weaver_read(&mSession, slotId, KEY, readValue, &timeout));
  /external/perfetto/test/trace_processor/
span_left_join_left_partitioned.sql 6 PRIMARY KEY (part, ts)
13 PRIMARY KEY (ts)
span_join_unordered_cols.sql 6 ts BIG INT PRIMARY KEY
22 PRIMARY KEY (part, ts)
span_join_unordered_cols_reverse.sql 6 ts BIG INT PRIMARY KEY
22 PRIMARY KEY (part, ts)
  /external/opencensus-java/api/src/test/java/io/opencensus/stats/
NoopViewManagerTest.java 44 private static final TagKey KEY = TagKey.create("KEY");
58 VIEW_NAME, "description 1", MEASURE, AGGREGATION, Arrays.asList(KEY), CUMULATIVE);
61 VIEW_NAME, "description 2", MEASURE, AGGREGATION, Arrays.asList(KEY), CUMULATIVE);
78 VIEW_NAME, VIEW_DESCRIPTION, MEASURE, AGGREGATION, Arrays.asList(KEY), CUMULATIVE);
101 VIEW_NAME, VIEW_DESCRIPTION, MEASURE, AGGREGATION, Arrays.asList(KEY), CUMULATIVE);
118 VIEW_NAME, VIEW_DESCRIPTION, MEASURE, AGGREGATION, Arrays.asList(KEY), INTERVAL);
145 Arrays.asList(KEY),
153 Arrays.asList(KEY),
161 Arrays.asList(KEY),
    [all...]
  /external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
ViewManagerImplTest.java 76 private static final TagKey KEY = TagKey.create("KEY");
128 return createCumulativeView(VIEW_NAME, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY));
150 View.Name.create("View 1"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY));
153 View.Name.create("View 2"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY));
160 Arrays.asList(KEY),
178 Arrays.asList(KEY),
189 Arrays.asList(KEY),
203 Arrays.asList(KEY),
227 Arrays.asList(KEY),
    [all...]
StatsRecorderImplTest.java 62 private static final TagKey KEY = TagKey.create("KEY");
95 Arrays.asList(KEY),
114 Arrays.asList(KEY),
119 .withValue(ContextUtils.TAG_CONTEXT_KEY, new SimpleTagContext(Tag.create(KEY, VALUE)))
140 Arrays.asList(KEY),
148 .record(new SimpleTagContext(Tag.create(KEY, VALUE)));
164 View.create(VIEW_NAME, "description", MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY));
189 Arrays.asList(KEY));
204 View.create(VIEW_NAME, "description", MEASURE_DOUBLE, Count.create(), Arrays.asList(KEY));
    [all...]
  /external/selinux/libselinux/src/
selinux_internal.h 132 /* Pthread key macros */
133 #define __selinux_key_create(KEY, DESTRUCTOR) \
134 (pthread_key_create != NULL ? pthread_key_create(KEY, DESTRUCTOR) : -1)
136 #define __selinux_key_delete(KEY) \
139 pthread_key_delete(KEY); \
142 #define __selinux_setspecific(KEY, VALUE) \
145 pthread_setspecific(KEY, VALUE); \
  /external/opencensus-java/api/src/test/java/io/opencensus/metrics/
LabelKeyTest.java 31 private static final LabelKey KEY = LabelKey.create("key", "description");
35 assertThat(KEY.getKey()).isEqualTo("key");
40 assertThat(KEY.getDescription()).isEqualTo("description");
49 String key = new String(chars); local
50 assertThat(LabelKey.create(key, "").getKey()).isEqualTo(key);
55 String key = "\2ab\3cd"; local
57 LabelKey labelKey = LabelKey.create(key, description)
64 String key = "?"; local
    [all...]
  /device/google/contexthub/util/common/
JSONObject.h 103 template<class KEY>
109 if (!getValue(key, &value)) { \
113 bool getFieldType(KEY key, JSONValue::FieldType *type) const {
119 bool getInt32(KEY key, int32_t *out) const {
124 bool getFloat(KEY key, float *out) const {
129 bool getString(KEY key, AString *out) const
    [all...]

Completed in 1214 milliseconds

1 2 3 4 5 6