1984e52f31d596840cfa51b1238e1c43d2e1918f8saberian/* 2984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * Copyright (C) 2007 The Android Open Source Project 3984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * 4984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * Licensed under the Apache License, Version 2.0 (the "License"); 5984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * you may not use this file except in compliance with the License. 6984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * You may obtain a copy of the License at 7984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * 8984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * http://www.apache.org/licenses/LICENSE-2.0 9984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * 10984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * Unless required by applicable law or agreed to in writing, software 11984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * distributed under the License is distributed on an "AS IS" BASIS, 12984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * See the License for the specific language governing permissions and 14984e52f31d596840cfa51b1238e1c43d2e1918f8saberian * limitations under the License. 15984e52f31d596840cfa51b1238e1c43d2e1918f8saberian */ 16984e52f31d596840cfa51b1238e1c43d2e1918f8saberian 17984e52f31d596840cfa51b1238e1c43d2e1918f8saberianpackage android.bordeaux.services; 18984e52f31d596840cfa51b1238e1c43d2e1918f8saberian 19984e52f31d596840cfa51b1238e1c43d2e1918f8saberianimport android.bordeaux.services.StringString; 20984e52f31d596840cfa51b1238e1c43d2e1918f8saberian 21984e52f31d596840cfa51b1238e1c43d2e1918f8saberianinterface IAggregatorManager { 22984e52f31d596840cfa51b1238e1c43d2e1918f8saberian List<StringString> getData(in String dataName); 239c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua 249c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua // TODO: remove the following interfaces in production 259c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua // they are only used for demo purpose 269c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua List<String> getLocationClusters(); 27828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua List<String> getTimeOfDayValues(); 28828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua List<String> getDayOfWeekValues(); 299c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua // use "" to disable the fake location 309c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua boolean setFakeLocation(in String cluster); 31828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua // use "" to disable the fake time 32828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua boolean setFakeTimeOfDay(in String time_of_day); 33828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua // use "" to disable the fake day 34828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua boolean setFakeDayOfWeek(in String day_of_week); 35828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua // return whether the service is in fake mode 36828043fd24533ff38eeef18322e0db2a611bfd5fWei Hua // it's in fake mode, if any of the location, time and day is fake 379c3a7dc466e2f8de02e15030b2b7f4096ba97e5aWei Hua boolean getFakeMode(); 38984e52f31d596840cfa51b1238e1c43d2e1918f8saberian} 39