Lines Matching refs:key

357     void addConfigurationProperty(int32_t deviceId, const String8& key, const String8& value) {
359 device->configuration.addProperty(key, value);
512 const KeyInfo* key = getKey(device, scanCode, usageCode);
513 if (key) {
515 *outKeycode = key->keyCode;
518 *outFlags = key->flags;
1252 << "Ignored device should return unknown key code state.";
1261 << "Ignored device should never mark any key codes.";
1262 ASSERT_EQ(0, flags[0]) << "Flag for unsupported key should be unchanged.";
1263 ASSERT_EQ(1, flags[1]) << "Flag for unsupported key should be unchanged.";
1268 mFakeEventHub->addConfigurationProperty(DEVICE_ID, String8("key"), String8("value"));
1290 ASSERT_TRUE(mDevice->getConfiguration().tryGetProperty(String8("key"), propertyValue))
1323 << "Should return unknown key code state when source not supported.";
1347 ASSERT_EQ(1, flags[0]) << "Flag for supported key should be set.";
1348 ASSERT_EQ(1, flags[1]) << "Flag for supported key should be set.";
1349 ASSERT_EQ(0, flags[2]) << "Flag for unsupported key should be unchanged.";
1350 ASSERT_EQ(1, flags[3]) << "Flag for unsupported key should be unchanged.";
1397 void addConfigurationProperty(const char* key, const char* value) {
1398 mFakeEventHub->addConfigurationProperty(DEVICE_ID, String8(key), String8(value));
1779 // Special case: if orientation changes while key is down, we still emit the same keycode
1780 // in the key up as we did in the key down.
2685 // Unknown key.
2688 // Virtual key is down.
2697 // Virtual key is up.
2714 // Unknown key.
2717 // Virtual key is down.
2726 // Virtual key is up.
2763 // Press virtual key.
2781 // Release virtual key.
2814 // Press virtual key.