/development/tools/repo_diff/service/repodiff/controllers/ |
D | denormalize.go | 22 err := denormalizeViewRecentProjectForTarget(target) 23 if err != nil { 24 return err 31 mappedTarget, err := getMappedTarget(target) 32 if err != nil { 33 return err 35 denormalizeRepo, err := repositories.NewScopedDenormalizerRepository(target, mappedTarget) 36 if err != nil { 37 return err 40 projectRepo, err := repositories.NewProjectRepository(mappedTarget) [all …]
|
D | differential.go | 30 err := createWorkingPath(config.OutputDirectory) 31 if err != nil { 32 return errors.Wrap(err, "Could not create working path") 35 commonManifest, err := defineCommonManifest(config) 36 if err != nil { 37 return err 42 err = clearOutputDirectory(config) 43 commitCSV, projectCSV, err := runPyScript(config, target) 44 if err != nil { 45 return errors.Wrap(err, "Error running python differential script") [all …]
|
D | reporter.go | 18 if err := generateCommitReport(appConfig, target); err != nil { 19 return err 27 sourceRepo, err := repositories.NewSourceRepository() 28 if err != nil { 29 return err 31 mappedTarget, err := sourceRepo.DiffTargetToMapped(target) 32 if err != nil { 33 return err 36 commitRepo, err := repositories.NewCommitRepository(mappedTarget) 37 if err != nil { [all …]
|
D | contract.go | 15 c, err := repositories.NewCommitRepository(target) 16 if err != nil { 17 return repositories.NewNullObject(err)
|
/development/tools/repo_diff/service/repodiff/persistence/sql/ |
D | sql.go | 50 var err error 51 db, err = newDBConnectionPool() 52 if err != nil { 53 return nil, err 66 tx, err := db.Begin() 67 if err != nil { 68 return errors.Wrap(err, "Error starting transaction") 70 stmt, err := tx.Prepare(insertQuery) 71 if err != nil { 72 return errors.Wrap(err, "Error preparing statement") [all …]
|
D | sql_test.go | 10 db, err := GetDBConnectionPool() 11 assert.Equal(t, nil, err, "Database interface error should not be nil") 12 err = db.Ping() 13 assert.Equal(t, nil, err, "No error should exist pinging the database")
|
/development/tools/repo_diff/service/repodiff/persistence/filesystem/ |
D | csv.go | 16 csvFile, err := os.Open(filePath) 17 if err != nil { 19 err, 29 line, err := reader.Read() 30 if err == io.EOF { 32 } else if err != nil { 34 err, 47 file, err := os.Create(filepath) 48 if err != nil { 49 return err [all …]
|
D | csv_test.go | 12 err := GenerateCSVLines( 20 assert.Equal(t, nil, err, "Read CSV Error output") 25 err := GenerateCSVLines( 29 assert.NotEqual(t, err, nil, "CSV Error should be generated") 50 err := WriteCSVToFile(header, rowsOfCols, outputPath) 51 assert.Equal(t, err, nil, "Error should not be generated") 54 err = GenerateCSVLines( 61 assert.Equal(t, nil, err, "No error should exist reading created CSV")
|
D | json.go | 12 serialized, err := json.MarshalIndent(jsonEntity, "", fourSpaces) 14 if err != nil { 15 return err 26 fileContents, err := ioutil.ReadFile(filename) 28 if err != nil { 29 return err
|
D | xml_test.go | 13 err := ReadXMLAsEntity("testdata/manifest.xml", &manifest) 14 assert.Equal(t, nil, err, "Error should be nil") 20 err := ReadXMLAsEntity("testdata/non_existent_file.xml", &manifest) 21 assert.NotEqual(t, nil, err, "Error should be generated")
|
D | xml.go | 9 xmlBytes, err := ioutil.ReadFile(filePath) 10 if err != nil { 11 return err
|
/development/tools/repo_diff/service/repodiff/ |
D | repodiff.go | 17 appConfig, err := loadConfig() 18 if err != nil { 19 panic(formattedError(err)) 33 if err := controllerFn(appConfig); err != nil { 34 topLevelErrorHandle(err, statusChannel) 61 func topLevelErrorHandle(err error, statusChannel chan ent.StatusMessage) { 64 Meta: formattedError(err), 66 fmt.Println(formattedError(err)) 71 err := filesystem.ReadFileAsJson(configFile, &appConfig) 72 if err != nil { [all …]
|
/development/tools/repo_diff/service/repodiff/repositories/ |
D | commit.go | 74 err := c.db.QueryRow( 86 if err != nil { 87 return 0, constants.NullUUID(), err 89 u, err := uuid.FromBytes(uuidBytes) 90 if err != nil { 91 return 0, constants.NullUUID(), errors.Wrap(err, "Error casting string to UUID") 97 timestamp, uid, err := c.GetMostRecentOuterKey() 98 if err == sql.ErrNoRows { 101 if err != nil { 102 return nil, err [all …]
|
D | denormalizer_test.go | 52 d, err := repositories.NewScopedDenormalizerRepository(fakeTarget, fakeMappedTarget) 53 assert.Equal(t, nil, err, "Error should not be nil") 56 err = d.DenormalizeToRecentView(fixtures) 57 assert.Equal(t, nil, err, "Error should be nil") 67 err := d.DenormalizeToChangesOverTime(fixtures) 68 assert.Equal(t, nil, err, "Error should be nil") 88 err := d.DenormalizeToRecentCommits( 94 assert.Equal(t, nil, err, "Error should be nil") 136 commitRepo, err := repositories.NewCommitRepository(fakeMappedTarget) 137 err = commitRepo.InsertCommitRows(fakeCommitRows) [all …]
|
D | project.go | 54 err := p.db.QueryRow( 66 if err != nil { 67 return 0, constants.NullUUID(), err 69 u, err := uuid.FromBytes(uuidBytes) 70 if err != nil { 71 return 0, constants.NullUUID(), errors.Wrap(err, "Error casting string to UUID") 77 timestamp, uid, err := p.GetMostRecentOuterKey() 78 if err == sql.ErrNoRows { 81 if err != nil { 83 return nil, err [all …]
|
D | denormalizer.go | 26 if _, err := g.db.Exec( 31 ); err != nil { 32 return err 34 _, err := g.db.Exec( 88 return err 93 if _, err := g.db.Exec( 98 ); err != nil { 99 return err 101 _, err := g.db.Exec( 153 return err [all …]
|
D | commit_test.go | 30 c, err := repositories.NewCommitRepository(fakeMappedTarget) 31 assert.Equal(t, nil, err, "Error should not be nil") 34 err = c.InsertCommitRows(fixtures) 35 assert.Equal(t, nil, err, "Error should be nil") 43 err := c.InsertCommitRows(fixtures) 44 assert.Equal(t, nil, err, "Eroror should be nil") 62 commitRows, err := c.GetMostRecentCommits() 63 assert.Equal(t, nil, err, "Error should not be nil") 69 rows, err := c.GetMostRecentCommits() 70 assert.Equal(t, nil, err, "Error should be nil") [all …]
|
D | source.go | 28 val, err := s.getOrCreateURLBranchIDPersistence(url, branch) 29 if err != nil { 30 return 0, err 37 id, err := s.getIDByURLBranch(url, branch) 38 if err == nil { 85 url, branch, err := s.getURLBranchByIDPersistence(id) 86 if err == nil { 89 return url, branch, err 128 db, err := repoSQL.GetDBConnectionPool() 131 }, errors.Wrap(err, "Could not establish a database connection")
|
D | project_test.go | 41 p, err := repositories.NewProjectRepository(testDiffTarget) 42 assert.Equal(t, nil, err, "Error should not be nil") 65 _, _, err := p.GetMostRecentOuterKey() 66 assert.NotEqual(t, nil, err, "Error should be returned when database is empty") 77 diffRows, err := p.GetMostRecentDifferentials() 78 assert.Equal(t, nil, err, "Error should not be nil") 104 rows, err := p.GetMostRecentDifferentials() 105 assert.Equal(t, nil, err, "Error should be nil")
|
/development/vndk/tools/elfcheck/bpflatten/ |
D | main.go | 87 if file, err := os.Open(filename); err != nil { 88 return nil, err 97 for _, err := range errs { 98 fmt.Fprintln(os.Stderr, err) 181 if err := recover(); err != nil { 182 fmt.Fprintf(os.Stderr, "error: %v\n", err) 198 if modules, err := processFile("<stdin>", os.Stdin); err != nil { 199 panic(err) 206 switch fileInfo, err := os.Stat(pathname); { 207 case err != nil: [all …]
|
/development/tools/bugreport/src/com/android/bugreport/ |
D | Main.java | 62 System.err.println("usage: bugreport --monkey MONKEYLOG --html HTML --logcat SYSTEMLOG" in usage() 80 System.err.println("Error reading monkey file: " + options.bugreport); in run() 81 System.err.println("Error: " + ex.getMessage()); in run() 92 System.err.println("Error reading bugreport file: " + options.bugreport); in run() 93 System.err.println("Error: " + ex.getMessage()); in run() 105 System.err.println("Error reading bugreport file: " + options.bugreport); in run() 106 System.err.println("Error: " + ex.getMessage()); in run() 117 System.err.println("No anr!"); in run() 126 System.err.println("Error reading output file: " + options.html); in run() 127 System.err.println("Error: " + ex.getMessage()); in run()
|
/development/tools/repo_diff/service/repodiff/interactors/ |
D | runner_test.go | 19 err := NewTaskRunner().ExecuteFunctionsAsync( 26 assert.NotEqual(t, nil, err, "Error should exist") 30 err := NewTaskRunner().ExecuteFunctionsAsync( 37 assert.Equal(t, nil, err, "Error should not exist")
|
D | logic.go | 11 for _, err := range errors { 12 if err != nil { 13 return err
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | Logger.java | 34 public static Logger err = new Logger() { field in Logger 37 System.err.println(s); 57 err.println(msg); in error() 58 err.println(Log.getStackTraceString(t)); in error()
|
/development/tools/repo_diff/service/repodiff/mappers/ |
D | mappers.go | 26 intVals, err := batchToInts(csvColumns[4:]...) 27 if err != nil { 28 return nil, err 30 diffStatus, err := constants.GetStatusEnum(csvColumns[3]) 31 if err != nil { 32 return nil, err 65 var err error 66 ints[i], err = strconv.Atoi(val) 67 if err != nil { 68 return nil, errors.Wrap(err, fmt.Sprintf("Could not convert from %s", val)) [all …]
|