1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.bluetooth.gatt; 17 18 import java.util.UUID; 19 20 /** 21 * Helper class that keeps track of callback parameters for app callbacks. 22 * These are held during congestion and reported when congestion clears. 23 * @hide 24 */ 25 /*package*/ 26 27 class CallbackInfo { 28 String address; 29 int status; 30 int srvcType; 31 int srvcInstId; 32 UUID srvcUuid; 33 int charInstId; 34 UUID charUuid; 35 CallbackInfo(String address, int status, int srvcType, int srvcInstId, UUID srvcUuid, int charInstId, UUID charUuid)36 CallbackInfo(String address, int status, int srvcType, int srvcInstId, 37 UUID srvcUuid, int charInstId, UUID charUuid) { 38 this.address = address; 39 this.status = status; 40 this.srvcType = srvcType; 41 this.srvcInstId = srvcInstId; 42 this.srvcUuid = srvcUuid; 43 this.charInstId = charInstId; 44 this.charUuid = charUuid; 45 } 46 CallbackInfo(String address, int status)47 CallbackInfo(String address, int status) { 48 this.address = address; 49 this.status = status; 50 } 51 } 52 53