1 /* 2 * Copyright (C) 2015 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 17 package com.android.bluetooth.gatt; 18 19 /** @hide */ 20 public class FilterParams { 21 private int mClientIf; 22 private int mFiltIndex; 23 private int mFeatSeln; 24 private int mListLogicType; 25 private int mFiltLogicType; 26 private int mRssiHighValue; 27 private int mRssiLowValue; 28 private int mDelyMode; 29 private int mFoundTimeOut; 30 private int mLostTimeOut; 31 private int mFoundTimeOutCnt; 32 private int mNumOfTrackEntries; 33 34 public FilterParams(int client_if, int filt_index, 35 int feat_seln, int list_logic_type, int filt_logic_type, 36 int rssi_high_thres, int rssi_low_thres, int dely_mode, 37 int found_timeout, int lost_timeout, int found_timeout_cnt, 38 int num_of_tracking_entries) { 39 40 mClientIf = client_if; 41 mFiltIndex = filt_index; 42 mFeatSeln = feat_seln; 43 mListLogicType = list_logic_type; 44 mFiltLogicType = filt_logic_type; 45 mRssiHighValue = rssi_high_thres; 46 mRssiLowValue = rssi_low_thres; 47 mDelyMode = dely_mode; 48 mFoundTimeOut = found_timeout; 49 mLostTimeOut = lost_timeout; 50 mFoundTimeOutCnt = found_timeout_cnt; 51 mNumOfTrackEntries = num_of_tracking_entries; 52 } 53 54 public int getClientIf () { 55 return mClientIf; 56 } 57 58 public int getFiltIndex () { 59 return mFiltIndex; 60 } 61 62 public int getFeatSeln () { 63 return mFeatSeln; 64 } 65 66 public int getDelyMode () { 67 return mDelyMode; 68 } 69 70 public int getListLogicType () { 71 return mListLogicType; 72 } 73 74 public int getFiltLogicType () { 75 return mFiltLogicType; 76 } 77 78 public int getRSSIHighValue () { 79 return mRssiHighValue; 80 } 81 82 public int getRSSILowValue () { 83 return mRssiLowValue; 84 } 85 86 public int getFoundTimeout () { 87 return mFoundTimeOut; 88 } 89 90 public int getFoundTimeOutCnt () { 91 return mFoundTimeOutCnt; 92 } 93 94 public int getLostTimeout () { 95 return mLostTimeOut; 96 } 97 98 public int getNumOfTrackEntries () { 99 return mNumOfTrackEntries; 100 } 101 102 } 103 104