Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A Android-IMSI-Catcher-Detector
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 162
    • Issues 162
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CellularPrivacy
  • Android-IMSI-Catcher-Detector
  • Issues
  • #583
Closed
Open
Issue created Jul 30, 2015 by Administrator@rootContributor

Simplify insertEventLog usage

Created by: E3V3A

Currently the insertEventLog function looks like this:

dbHelper.insertEventLog(
    MiscUtils.getCurrentTimeStamp(),        // time
    mMonitorCell.getLAC(),                  // LAC
    mMonitorCell.getCID(),                  // CID
    mMonitorCell.getPSC(),                  // PSC
    String.valueOf(mMonitorCell.getLat()),  // gpsd_lat
    String.valueOf(mMonitorCell.getLon()),  // gpsd_lon
    (int)mMonitorCell.getAccuracy(),        // gpsd_accu
    1,                                      // DF_id
    "Changing LAC"                          // DF_desc
);

However, this is highly inefficient as we need to always load all items that can be automatically loaded within function. The only variables we need to supply should be DF_id and DF_desc.

Like this: insertEventLog(1, "Changing LAC");

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Assignee
Assign to
Time tracking