Lines Matching refs:appId
159 int appId = registerHealthAppNative(appConfig.getDataType(), halRole,
161 if (appId == -1) {
175 appInfo.mAppId = appId;
185 int appId = (mApps.get(appConfig)).mAppId;
186 if (!unregisterHealthAppNative(appId)) {
187 Log.e(TAG, "Failed to unregister application: id: " + appId);
197 int appId = (mApps.get(chan.mConfig)).mAppId;
198 chan.mChannelId = connectChannelNative(devAddr, appId);
473 private void onAppRegistrationState(int appId, int state) {
475 msg.arg1 = appId;
480 private void onChannelStateChanged(int appId, byte[] addr, int cfgIndex,
483 ChannelStateEvent channelStateEvent = new ChannelStateEvent(appId, addr, cfgIndex,
513 private BluetoothHealthAppConfiguration findAppConfigByAppId(int appId) {
516 if (appId == (e.getValue()).mAppId) {
522 Log.e(TAG, "No appConfig found for " + appId);
838 private ChannelStateEvent(int appId, byte[] addr, int cfgIndex,
840 mAppId = appId;
876 private native boolean unregisterHealthAppNative(int appId);
877 private native int connectChannelNative(byte[] btAddress, int appId);